import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ECRClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ECRClient"; import type { DescribeImageScanFindingsRequest, DescribeImageScanFindingsResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DescribeImageScanFindingsCommand}. */ export interface DescribeImageScanFindingsCommandInput extends DescribeImageScanFindingsRequest { } /** * @public * * The output of {@link DescribeImageScanFindingsCommand}. */ export interface DescribeImageScanFindingsCommandOutput extends DescribeImageScanFindingsResponse, __MetadataBearer { } declare const DescribeImageScanFindingsCommand_base: { new (input: DescribeImageScanFindingsCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: DescribeImageScanFindingsCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Returns the scan findings for the specified image.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ECRClient, DescribeImageScanFindingsCommand } from "@aws-sdk/client-ecr"; // ES Modules import * // const { ECRClient, DescribeImageScanFindingsCommand } = require("@aws-sdk/client-ecr"); // CommonJS import * // import type { ECRClientConfig } from "@aws-sdk/client-ecr"; * const config = {}; // type is ECRClientConfig * const client = new ECRClient(config); * const input = { // DescribeImageScanFindingsRequest * registryId: "STRING_VALUE", * repositoryName: "STRING_VALUE", // required * imageId: { // ImageIdentifier * imageDigest: "STRING_VALUE", * imageTag: "STRING_VALUE", * }, * nextToken: "STRING_VALUE", * maxResults: Number("int"), * }; * const command = new DescribeImageScanFindingsCommand(input); * const response = await client.send(command); * // { // DescribeImageScanFindingsResponse * // registryId: "STRING_VALUE", * // repositoryName: "STRING_VALUE", * // imageId: { // ImageIdentifier * // imageDigest: "STRING_VALUE", * // imageTag: "STRING_VALUE", * // }, * // imageScanStatus: { // ImageScanStatus * // status: "IN_PROGRESS" || "COMPLETE" || "FAILED" || "UNSUPPORTED_IMAGE" || "ACTIVE" || "PENDING" || "SCAN_ELIGIBILITY_EXPIRED" || "FINDINGS_UNAVAILABLE" || "LIMIT_EXCEEDED" || "IMAGE_ARCHIVED", * // description: "STRING_VALUE", * // }, * // imageScanFindings: { // ImageScanFindings * // imageScanCompletedAt: new Date("TIMESTAMP"), * // vulnerabilitySourceUpdatedAt: new Date("TIMESTAMP"), * // findingSeverityCounts: { // FindingSeverityCounts * // "": Number("int"), * // }, * // findings: [ // ImageScanFindingList * // { // ImageScanFinding * // name: "STRING_VALUE", * // description: "STRING_VALUE", * // uri: "STRING_VALUE", * // severity: "INFORMATIONAL" || "LOW" || "MEDIUM" || "HIGH" || "CRITICAL" || "UNDEFINED", * // attributes: [ // AttributeList * // { // Attribute * // key: "STRING_VALUE", // required * // value: "STRING_VALUE", * // }, * // ], * // }, * // ], * // enhancedFindings: [ // EnhancedImageScanFindingList * // { // EnhancedImageScanFinding * // awsAccountId: "STRING_VALUE", * // description: "STRING_VALUE", * // findingArn: "STRING_VALUE", * // firstObservedAt: new Date("TIMESTAMP"), * // lastObservedAt: new Date("TIMESTAMP"), * // packageVulnerabilityDetails: { // PackageVulnerabilityDetails * // cvss: [ // CvssScoreList * // { // CvssScore * // baseScore: Number("double"), * // scoringVector: "STRING_VALUE", * // source: "STRING_VALUE", * // version: "STRING_VALUE", * // }, * // ], * // referenceUrls: [ // ReferenceUrlsList * // "STRING_VALUE", * // ], * // relatedVulnerabilities: [ // RelatedVulnerabilitiesList * // "STRING_VALUE", * // ], * // source: "STRING_VALUE", * // sourceUrl: "STRING_VALUE", * // vendorCreatedAt: new Date("TIMESTAMP"), * // vendorSeverity: "STRING_VALUE", * // vendorUpdatedAt: new Date("TIMESTAMP"), * // vulnerabilityId: "STRING_VALUE", * // vulnerablePackages: [ // VulnerablePackagesList * // { // VulnerablePackage * // arch: "STRING_VALUE", * // epoch: Number("int"), * // filePath: "STRING_VALUE", * // name: "STRING_VALUE", * // packageManager: "STRING_VALUE", * // release: "STRING_VALUE", * // sourceLayerHash: "STRING_VALUE", * // version: "STRING_VALUE", * // fixedInVersion: "STRING_VALUE", * // }, * // ], * // }, * // remediation: { // Remediation * // recommendation: { // Recommendation * // url: "STRING_VALUE", * // text: "STRING_VALUE", * // }, * // }, * // resources: [ // ResourceList * // { // Resource * // details: { // ResourceDetails * // awsEcrContainerImage: { // AwsEcrContainerImageDetails * // architecture: "STRING_VALUE", * // author: "STRING_VALUE", * // imageHash: "STRING_VALUE", * // imageTags: [ // ImageTagsList * // "STRING_VALUE", * // ], * // platform: "STRING_VALUE", * // pushedAt: new Date("TIMESTAMP"), * // lastInUseAt: new Date("TIMESTAMP"), * // inUseCount: Number("long"), * // registry: "STRING_VALUE", * // repositoryName: "STRING_VALUE", * // }, * // }, * // id: "STRING_VALUE", * // tags: { // Tags * // "": "STRING_VALUE", * // }, * // type: "STRING_VALUE", * // }, * // ], * // score: Number("double"), * // scoreDetails: { // ScoreDetails * // cvss: { // CvssScoreDetails * // adjustments: [ // CvssScoreAdjustmentList * // { // CvssScoreAdjustment * // metric: "STRING_VALUE", * // reason: "STRING_VALUE", * // }, * // ], * // score: Number("double"), * // scoreSource: "STRING_VALUE", * // scoringVector: "STRING_VALUE", * // version: "STRING_VALUE", * // }, * // }, * // severity: "STRING_VALUE", * // status: "STRING_VALUE", * // title: "STRING_VALUE", * // type: "STRING_VALUE", * // updatedAt: new Date("TIMESTAMP"), * // fixAvailable: "STRING_VALUE", * // exploitAvailable: "STRING_VALUE", * // }, * // ], * // }, * // nextToken: "STRING_VALUE", * // }; * * ``` * * @param DescribeImageScanFindingsCommandInput - {@link DescribeImageScanFindingsCommandInput} * @returns {@link DescribeImageScanFindingsCommandOutput} * @see {@link DescribeImageScanFindingsCommandInput} for command's `input` shape. * @see {@link DescribeImageScanFindingsCommandOutput} for command's `response` shape. * @see {@link ECRClientResolvedConfig | config} for ECRClient's `config` shape. * * @throws {@link ImageNotFoundException} (client fault) *

The image requested does not exist in the specified repository.

* * @throws {@link InvalidParameterException} (client fault) *

The specified parameter is invalid. Review the available parameters for the API * request.

* * @throws {@link RepositoryNotFoundException} (client fault) *

The specified repository could not be found. Check the spelling of the specified * repository and ensure that you are performing operations on the correct registry.

* * @throws {@link ScanNotFoundException} (client fault) *

The specified image scan could not be found. Ensure that image scanning is enabled on * the repository and try again.

* * @throws {@link ServerException} (server fault) *

These errors are usually caused by a server-side issue.

* * @throws {@link ValidationException} (client fault) *

There was an exception validating this request.

* * @throws {@link ECRServiceException} *

Base exception class for all service exceptions from ECR service.

* * * @public */ export declare class DescribeImageScanFindingsCommand extends DescribeImageScanFindingsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DescribeImageScanFindingsRequest; output: DescribeImageScanFindingsResponse; }; sdk: { input: DescribeImageScanFindingsCommandInput; output: DescribeImageScanFindingsCommandOutput; }; }; }