Skip to content

Commit

Permalink
feat(client-ecr): Adds support to handle the new basic scanning daily…
Browse files Browse the repository at this point in the history
… quota.
  • Loading branch information
awstools committed Feb 7, 2025
1 parent 91fce74 commit 07297d3
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export interface DescribeImageScanFindingsCommandOutput extends DescribeImageSca
* // imageTag: "STRING_VALUE",
* // },
* // imageScanStatus: { // ImageScanStatus
* // status: "IN_PROGRESS" || "COMPLETE" || "FAILED" || "UNSUPPORTED_IMAGE" || "ACTIVE" || "PENDING" || "SCAN_ELIGIBILITY_EXPIRED" || "FINDINGS_UNAVAILABLE",
* // status: "IN_PROGRESS" || "COMPLETE" || "FAILED" || "UNSUPPORTED_IMAGE" || "ACTIVE" || "PENDING" || "SCAN_ELIGIBILITY_EXPIRED" || "FINDINGS_UNAVAILABLE" || "LIMIT_EXCEEDED",
* // description: "STRING_VALUE",
* // },
* // imageScanFindings: { // ImageScanFindings
Expand Down
2 changes: 1 addition & 1 deletion clients/client-ecr/src/commands/DescribeImagesCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export interface DescribeImagesCommandOutput extends DescribeImagesResponse, __M
* // imageSizeInBytes: Number("long"),
* // imagePushedAt: new Date("TIMESTAMP"),
* // imageScanStatus: { // ImageScanStatus
* // status: "IN_PROGRESS" || "COMPLETE" || "FAILED" || "UNSUPPORTED_IMAGE" || "ACTIVE" || "PENDING" || "SCAN_ELIGIBILITY_EXPIRED" || "FINDINGS_UNAVAILABLE",
* // status: "IN_PROGRESS" || "COMPLETE" || "FAILED" || "UNSUPPORTED_IMAGE" || "ACTIVE" || "PENDING" || "SCAN_ELIGIBILITY_EXPIRED" || "FINDINGS_UNAVAILABLE" || "LIMIT_EXCEEDED",
* // description: "STRING_VALUE",
* // },
* // imageScanFindingsSummary: { // ImageScanFindingsSummary
Expand Down
8 changes: 5 additions & 3 deletions clients/client-ecr/src/commands/StartImageScanCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ export interface StartImageScanCommandInput extends StartImageScanRequest {}
export interface StartImageScanCommandOutput extends StartImageScanResponse, __MetadataBearer {}

/**
* <p>Starts an image vulnerability scan. An image scan can only be started once per 24
* <p>Starts a basic image vulnerability scan.</p>
* <p> A basic image scan can only be started once per 24
* hours on an individual image. This limit includes if an image was scanned on initial
* push. For more information, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning.html">Image scanning</a> in the
* push. You can start up to 100,000 basic scans per 24 hours. This limit includes both scans on initial push
* and scans initiated by the StartImageScan API. For more information, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning-basic.html">Basic scanning</a> in the
* <i>Amazon Elastic Container Registry User Guide</i>.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
Expand All @@ -56,7 +58,7 @@ export interface StartImageScanCommandOutput extends StartImageScanResponse, __M
* // imageTag: "STRING_VALUE",
* // },
* // imageScanStatus: { // ImageScanStatus
* // status: "IN_PROGRESS" || "COMPLETE" || "FAILED" || "UNSUPPORTED_IMAGE" || "ACTIVE" || "PENDING" || "SCAN_ELIGIBILITY_EXPIRED" || "FINDINGS_UNAVAILABLE",
* // status: "IN_PROGRESS" || "COMPLETE" || "FAILED" || "UNSUPPORTED_IMAGE" || "ACTIVE" || "PENDING" || "SCAN_ELIGIBILITY_EXPIRED" || "FINDINGS_UNAVAILABLE" || "LIMIT_EXCEEDED",
* // description: "STRING_VALUE",
* // },
* // };
Expand Down
1 change: 1 addition & 0 deletions clients/client-ecr/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2185,6 +2185,7 @@ export const ScanStatus = {
FAILED: "FAILED",
FINDINGS_UNAVAILABLE: "FINDINGS_UNAVAILABLE",
IN_PROGRESS: "IN_PROGRESS",
LIMIT_EXCEEDED: "LIMIT_EXCEEDED",
PENDING: "PENDING",
SCAN_ELIGIBILITY_EXPIRED: "SCAN_ELIGIBILITY_EXPIRED",
UNSUPPORTED_IMAGE: "UNSUPPORTED_IMAGE",
Expand Down
8 changes: 7 additions & 1 deletion codegen/sdk-codegen/aws-models/ecr.json
Original file line number Diff line number Diff line change
Expand Up @@ -7360,6 +7360,12 @@
"traits": {
"smithy.api#enumValue": "FINDINGS_UNAVAILABLE"
}
},
"LIMIT_EXCEEDED": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "LIMIT_EXCEEDED"
}
}
}
},
Expand Down Expand Up @@ -7650,7 +7656,7 @@
}
],
"traits": {
"smithy.api#documentation": "<p>Starts an image vulnerability scan. An image scan can only be started once per 24\n hours on an individual image. This limit includes if an image was scanned on initial\n push. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning.html\">Image scanning</a> in the\n <i>Amazon Elastic Container Registry User Guide</i>.</p>"
"smithy.api#documentation": "<p>Starts a basic image vulnerability scan.</p>\n <p> A basic image scan can only be started once per 24\n hours on an individual image. This limit includes if an image was scanned on initial\n push. You can start up to 100,000 basic scans per 24 hours. This limit includes both scans on initial push\n and scans initiated by the StartImageScan API. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning-basic.html\">Basic scanning</a> in the\n <i>Amazon Elastic Container Registry User Guide</i>.</p>"
}
},
"com.amazonaws.ecr#StartImageScanRequest": {
Expand Down

0 comments on commit 07297d3

Please sign in to comment.