Skip to content

Commit e967a7d

Browse files
Adds support to handle the new basic scanning daily quota.
1 parent 8a73ce5 commit e967a7d

File tree

11 files changed

+91
-31
lines changed

11 files changed

+91
-31
lines changed

generator/ServiceModels/ecr/ecr-2015-09-21.api.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2530,7 +2530,8 @@
25302530
"ACTIVE",
25312531
"PENDING",
25322532
"SCAN_ELIGIBILITY_EXPIRED",
2533-
"FINDINGS_UNAVAILABLE"
2533+
"FINDINGS_UNAVAILABLE",
2534+
"LIMIT_EXCEEDED"
25342535
]
25352536
},
25362537
"ScanStatusDescription":{"type":"string"},

generator/ServiceModels/ecr/ecr-2015-09-21.docs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"PutRegistryScanningConfiguration": "<p>Creates or updates the scanning configuration for your private registry.</p>",
4444
"PutReplicationConfiguration": "<p>Creates or updates the replication configuration for a registry. The existing replication configuration for a repository can be retrieved with the <a>DescribeRegistry</a> API action. The first time the PutReplicationConfiguration API is called, a service-linked IAM role is created in your account for the replication process. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonECR/latest/userguide/using-service-linked-roles.html\">Using service-linked roles for Amazon ECR</a> in the <i>Amazon Elastic Container Registry User Guide</i>. For more information on the custom role for replication, see <a href=\"https://docs.aws.amazon.com/AmazonECR/latest/userguide/replication-creation-templates.html#roles-creatingrole-user-console\">Creating an IAM role for replication</a>.</p> <note> <p>When configuring cross-account replication, the destination account must grant the source account permission to replicate. This permission is controlled using a registry permissions policy. For more information, see <a>PutRegistryPolicy</a>.</p> </note>",
4545
"SetRepositoryPolicy": "<p>Applies a repository policy to the specified repository to control access permissions. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonECR/latest/userguide/repository-policies.html\">Amazon ECR Repository policies</a> in the <i>Amazon Elastic Container Registry User Guide</i>.</p>",
46-
"StartImageScan": "<p>Starts an image vulnerability scan. An 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 <i>Amazon Elastic Container Registry User Guide</i>.</p>",
46+
"StartImageScan": "<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. 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>",
4747
"StartLifecyclePolicyPreview": "<p>Starts a preview of a lifecycle policy for the specified repository. This allows you to see the results before associating the lifecycle policy with the repository.</p>",
4848
"TagResource": "<p>Adds specified tags to a resource with the specified ARN. Existing tags on a resource are not changed if they are not specified in the request parameters.</p>",
4949
"UntagResource": "<p>Deletes specified tags from a resource.</p>",

generator/ServiceModels/ecr/ecr-2015-09-21.normal.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@
703703
{"shape":"ImageNotFoundException"},
704704
{"shape":"ValidationException"}
705705
],
706-
"documentation":"<p>Starts an image vulnerability scan. An 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 <i>Amazon Elastic Container Registry User Guide</i>.</p>"
706+
"documentation":"<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. 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>"
707707
},
708708
"StartLifecyclePolicyPreview":{
709709
"name":"StartLifecyclePolicyPreview",
@@ -3836,7 +3836,8 @@
38363836
"ACTIVE",
38373837
"PENDING",
38383838
"SCAN_ELIGIBILITY_EXPIRED",
3839-
"FINDINGS_UNAVAILABLE"
3839+
"FINDINGS_UNAVAILABLE",
3840+
"LIMIT_EXCEEDED"
38403841
]
38413842
},
38423843
"ScanStatusDescription":{"type":"string"},

sdk/src/Services/ECR/Generated/Model/StartImageScanRequest.cs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,16 @@ namespace Amazon.ECR.Model
3131
{
3232
/// <summary>
3333
/// Container for the parameters to the StartImageScan operation.
34-
/// Starts an image vulnerability scan. An image scan can only be started once per 24
35-
/// hours on an individual image. This limit includes if an image was scanned on initial
36-
/// push. For more information, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning.html">Image
34+
/// Starts a basic image vulnerability scan.
35+
///
36+
///
37+
/// <para>
38+
/// A basic image scan can only be started once per 24 hours on an individual image.
39+
/// This limit includes if an image was scanned on initial push. You can start up to 100,000
40+
/// basic scans per 24 hours. This limit includes both scans on initial push and scans
41+
/// initiated by the StartImageScan API. For more information, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning-basic.html">Basic
3742
/// scanning</a> in the <i>Amazon Elastic Container Registry User Guide</i>.
43+
/// </para>
3844
/// </summary>
3945
public partial class StartImageScanRequest : AmazonECRRequest
4046
{

sdk/src/Services/ECR/Generated/ServiceEnumerations.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -803,6 +803,10 @@ public class ScanStatus : ConstantClass
803803
/// </summary>
804804
public static readonly ScanStatus IN_PROGRESS = new ScanStatus("IN_PROGRESS");
805805
/// <summary>
806+
/// Constant LIMIT_EXCEEDED for ScanStatus
807+
/// </summary>
808+
public static readonly ScanStatus LIMIT_EXCEEDED = new ScanStatus("LIMIT_EXCEEDED");
809+
/// <summary>
806810
/// Constant PENDING for ScanStatus
807811
/// </summary>
808812
public static readonly ScanStatus PENDING = new ScanStatus("PENDING");

sdk/src/Services/ECR/Generated/_bcl35/AmazonECRClient.cs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3255,10 +3255,16 @@ public virtual SetRepositoryPolicyResponse EndSetRepositoryPolicy(IAsyncResult a
32553255
#region StartImageScan
32563256

32573257
/// <summary>
3258-
/// Starts an image vulnerability scan. An image scan can only be started once per 24
3259-
/// hours on an individual image. This limit includes if an image was scanned on initial
3260-
/// push. For more information, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning.html">Image
3258+
/// Starts a basic image vulnerability scan.
3259+
///
3260+
///
3261+
/// <para>
3262+
/// A basic image scan can only be started once per 24 hours on an individual image.
3263+
/// This limit includes if an image was scanned on initial push. You can start up to 100,000
3264+
/// basic scans per 24 hours. This limit includes both scans on initial push and scans
3265+
/// initiated by the StartImageScan API. For more information, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning-basic.html">Basic
32613266
/// scanning</a> in the <i>Amazon Elastic Container Registry User Guide</i>.
3267+
/// </para>
32623268
/// </summary>
32633269
/// <param name="request">Container for the necessary parameters to execute the StartImageScan service method.</param>
32643270
///

sdk/src/Services/ECR/Generated/_bcl35/IAmazonECR.cs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2463,10 +2463,16 @@ public partial interface IAmazonECR : IAmazonService, IDisposable
24632463

24642464

24652465
/// <summary>
2466-
/// Starts an image vulnerability scan. An image scan can only be started once per 24
2467-
/// hours on an individual image. This limit includes if an image was scanned on initial
2468-
/// push. For more information, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning.html">Image
2466+
/// Starts a basic image vulnerability scan.
2467+
///
2468+
///
2469+
/// <para>
2470+
/// A basic image scan can only be started once per 24 hours on an individual image.
2471+
/// This limit includes if an image was scanned on initial push. You can start up to 100,000
2472+
/// basic scans per 24 hours. This limit includes both scans on initial push and scans
2473+
/// initiated by the StartImageScan API. For more information, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning-basic.html">Basic
24692474
/// scanning</a> in the <i>Amazon Elastic Container Registry User Guide</i>.
2475+
/// </para>
24702476
/// </summary>
24712477
/// <param name="request">Container for the necessary parameters to execute the StartImageScan service method.</param>
24722478
///

sdk/src/Services/ECR/Generated/_bcl45/AmazonECRClient.cs

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3483,10 +3483,16 @@ public virtual SetRepositoryPolicyResponse SetRepositoryPolicy(SetRepositoryPoli
34833483

34843484

34853485
/// <summary>
3486-
/// Starts an image vulnerability scan. An image scan can only be started once per 24
3487-
/// hours on an individual image. This limit includes if an image was scanned on initial
3488-
/// push. For more information, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning.html">Image
3486+
/// Starts a basic image vulnerability scan.
3487+
///
3488+
///
3489+
/// <para>
3490+
/// A basic image scan can only be started once per 24 hours on an individual image.
3491+
/// This limit includes if an image was scanned on initial push. You can start up to 100,000
3492+
/// basic scans per 24 hours. This limit includes both scans on initial push and scans
3493+
/// initiated by the StartImageScan API. For more information, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning-basic.html">Basic
34893494
/// scanning</a> in the <i>Amazon Elastic Container Registry User Guide</i>.
3495+
/// </para>
34903496
/// </summary>
34913497
/// <param name="request">Container for the necessary parameters to execute the StartImageScan service method.</param>
34923498
///
@@ -3527,10 +3533,16 @@ public virtual StartImageScanResponse StartImageScan(StartImageScanRequest reque
35273533

35283534

35293535
/// <summary>
3530-
/// Starts an image vulnerability scan. An image scan can only be started once per 24
3531-
/// hours on an individual image. This limit includes if an image was scanned on initial
3532-
/// push. For more information, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning.html">Image
3536+
/// Starts a basic image vulnerability scan.
3537+
///
3538+
///
3539+
/// <para>
3540+
/// A basic image scan can only be started once per 24 hours on an individual image.
3541+
/// This limit includes if an image was scanned on initial push. You can start up to 100,000
3542+
/// basic scans per 24 hours. This limit includes both scans on initial push and scans
3543+
/// initiated by the StartImageScan API. For more information, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning-basic.html">Basic
35333544
/// scanning</a> in the <i>Amazon Elastic Container Registry User Guide</i>.
3545+
/// </para>
35343546
/// </summary>
35353547
/// <param name="request">Container for the necessary parameters to execute the StartImageScan service method.</param>
35363548
/// <param name="cancellationToken">

sdk/src/Services/ECR/Generated/_bcl45/IAmazonECR.cs

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2729,10 +2729,16 @@ public partial interface IAmazonECR : IAmazonService, IDisposable
27292729

27302730

27312731
/// <summary>
2732-
/// Starts an image vulnerability scan. An image scan can only be started once per 24
2733-
/// hours on an individual image. This limit includes if an image was scanned on initial
2734-
/// push. For more information, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning.html">Image
2732+
/// Starts a basic image vulnerability scan.
2733+
///
2734+
///
2735+
/// <para>
2736+
/// A basic image scan can only be started once per 24 hours on an individual image.
2737+
/// This limit includes if an image was scanned on initial push. You can start up to 100,000
2738+
/// basic scans per 24 hours. This limit includes both scans on initial push and scans
2739+
/// initiated by the StartImageScan API. For more information, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning-basic.html">Basic
27352740
/// scanning</a> in the <i>Amazon Elastic Container Registry User Guide</i>.
2741+
/// </para>
27362742
/// </summary>
27372743
/// <param name="request">Container for the necessary parameters to execute the StartImageScan service method.</param>
27382744
///
@@ -2767,10 +2773,16 @@ public partial interface IAmazonECR : IAmazonService, IDisposable
27672773

27682774

27692775
/// <summary>
2770-
/// Starts an image vulnerability scan. An image scan can only be started once per 24
2771-
/// hours on an individual image. This limit includes if an image was scanned on initial
2772-
/// push. For more information, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning.html">Image
2776+
/// Starts a basic image vulnerability scan.
2777+
///
2778+
///
2779+
/// <para>
2780+
/// A basic image scan can only be started once per 24 hours on an individual image.
2781+
/// This limit includes if an image was scanned on initial push. You can start up to 100,000
2782+
/// basic scans per 24 hours. This limit includes both scans on initial push and scans
2783+
/// initiated by the StartImageScan API. For more information, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning-basic.html">Basic
27732784
/// scanning</a> in the <i>Amazon Elastic Container Registry User Guide</i>.
2785+
/// </para>
27742786
/// </summary>
27752787
/// <param name="request">Container for the necessary parameters to execute the StartImageScan service method.</param>
27762788
/// <param name="cancellationToken">

sdk/src/Services/ECR/Generated/_netstandard/AmazonECRClient.cs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2450,10 +2450,16 @@ internal virtual StartImageScanResponse StartImageScan(StartImageScanRequest req
24502450

24512451

24522452
/// <summary>
2453-
/// Starts an image vulnerability scan. An image scan can only be started once per 24
2454-
/// hours on an individual image. This limit includes if an image was scanned on initial
2455-
/// push. For more information, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning.html">Image
2453+
/// Starts a basic image vulnerability scan.
2454+
///
2455+
///
2456+
/// <para>
2457+
/// A basic image scan can only be started once per 24 hours on an individual image.
2458+
/// This limit includes if an image was scanned on initial push. You can start up to 100,000
2459+
/// basic scans per 24 hours. This limit includes both scans on initial push and scans
2460+
/// initiated by the StartImageScan API. For more information, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning-basic.html">Basic
24562461
/// scanning</a> in the <i>Amazon Elastic Container Registry User Guide</i>.
2462+
/// </para>
24572463
/// </summary>
24582464
/// <param name="request">Container for the necessary parameters to execute the StartImageScan service method.</param>
24592465
/// <param name="cancellationToken">

0 commit comments

Comments
 (0)