aws-sdk-ecr 1.26.0 → 1.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
 - data/lib/aws-sdk-ecr.rb +1 -1
 - data/lib/aws-sdk-ecr/client.rb +71 -51
 - data/lib/aws-sdk-ecr/client_api.rb +11 -0
 - data/lib/aws-sdk-ecr/errors.rb +32 -0
 - data/lib/aws-sdk-ecr/resource.rb +1 -7
 - data/lib/aws-sdk-ecr/types.rb +27 -0
 - data/lib/aws-sdk-ecr/waiters.rb +62 -0
 - metadata +3 -3
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 2 
     | 
    
         
            +
            SHA256:
         
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: a3331d72d4afebdf5b03add5870c6977a9ee32e8a77afce43809404976eb56ad
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 6fc834a56e4d47a96bb535437f47f2410165347d35e86ab5c0e17a65a02397ec
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: b4471b993cbe248ee5df446a89e03e6df3bc0126585774427f27f24f8b309bc63e629ac1b99d5b1db1c4db027e0d26fd737f3744438074a83a4c7c17117314e0
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: '01290d9ce8334a4f5fc64181d32253dfc271c00c89d25a739866a67cffe8b5a177e83dc36c02731ef5cd45d03631a86989c042c65194ad931bd45305e3de4245'
         
     | 
    
        data/lib/aws-sdk-ecr.rb
    CHANGED
    
    
    
        data/lib/aws-sdk-ecr/client.rb
    CHANGED
    
    | 
         @@ -32,11 +32,11 @@ Aws::Plugins::GlobalConfiguration.add_identifier(:ecr) 
     | 
|
| 
       32 
32 
     | 
    
         
             
            module Aws::ECR
         
     | 
| 
       33 
33 
     | 
    
         
             
              # An API client for ECR.  To construct a client, you need to configure a `:region` and `:credentials`.
         
     | 
| 
       34 
34 
     | 
    
         
             
              #
         
     | 
| 
       35 
     | 
    
         
            -
              # 
     | 
| 
       36 
     | 
    
         
            -
              # 
     | 
| 
       37 
     | 
    
         
            -
              # 
     | 
| 
       38 
     | 
    
         
            -
              # 
     | 
| 
       39 
     | 
    
         
            -
              # 
     | 
| 
      
 35 
     | 
    
         
            +
              #     client = Aws::ECR::Client.new(
         
     | 
| 
      
 36 
     | 
    
         
            +
              #       region: region_name,
         
     | 
| 
      
 37 
     | 
    
         
            +
              #       credentials: credentials,
         
     | 
| 
      
 38 
     | 
    
         
            +
              #       # ...
         
     | 
| 
      
 39 
     | 
    
         
            +
              #     )
         
     | 
| 
       40 
40 
     | 
    
         
             
              #
         
     | 
| 
       41 
41 
     | 
    
         
             
              # For details on configuring region and credentials see
         
     | 
| 
       42 
42 
     | 
    
         
             
              # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
         
     | 
| 
         @@ -229,15 +229,19 @@ module Aws::ECR 
     | 
|
| 
       229 
229 
     | 
    
         
             
                #
         
     | 
| 
       230 
230 
     | 
    
         
             
                #   @option options [String] :retry_mode ("legacy")
         
     | 
| 
       231 
231 
     | 
    
         
             
                #     Specifies which retry algorithm to use. Values are:
         
     | 
| 
       232 
     | 
    
         
            -
                # 
     | 
| 
       233 
     | 
    
         
            -
                # 
     | 
| 
       234 
     | 
    
         
            -
                #        
     | 
| 
       235 
     | 
    
         
            -
                # 
     | 
| 
       236 
     | 
    
         
            -
                # 
     | 
| 
       237 
     | 
    
         
            -
                #        
     | 
| 
       238 
     | 
    
         
            -
                # 
     | 
| 
       239 
     | 
    
         
            -
                # 
     | 
| 
       240 
     | 
    
         
            -
                # 
     | 
| 
      
 232 
     | 
    
         
            +
                #
         
     | 
| 
      
 233 
     | 
    
         
            +
                #     * `legacy` - The pre-existing retry behavior.  This is default value if
         
     | 
| 
      
 234 
     | 
    
         
            +
                #       no retry mode is provided.
         
     | 
| 
      
 235 
     | 
    
         
            +
                #
         
     | 
| 
      
 236 
     | 
    
         
            +
                #     * `standard` - A standardized set of retry rules across the AWS SDKs.
         
     | 
| 
      
 237 
     | 
    
         
            +
                #       This includes support for retry quotas, which limit the number of
         
     | 
| 
      
 238 
     | 
    
         
            +
                #       unsuccessful retries a client can make.
         
     | 
| 
      
 239 
     | 
    
         
            +
                #
         
     | 
| 
      
 240 
     | 
    
         
            +
                #     * `adaptive` - An experimental retry mode that includes all the
         
     | 
| 
      
 241 
     | 
    
         
            +
                #       functionality of `standard` mode along with automatic client side
         
     | 
| 
      
 242 
     | 
    
         
            +
                #       throttling.  This is a provisional mode that may change behavior
         
     | 
| 
      
 243 
     | 
    
         
            +
                #       in the future.
         
     | 
| 
      
 244 
     | 
    
         
            +
                #
         
     | 
| 
       241 
245 
     | 
    
         
             
                #
         
     | 
| 
       242 
246 
     | 
    
         
             
                #   @option options [String] :secret_access_key
         
     | 
| 
       243 
247 
     | 
    
         
             
                #
         
     | 
| 
         @@ -275,8 +279,7 @@ module Aws::ECR 
     | 
|
| 
       275 
279 
     | 
    
         
             
                #
         
     | 
| 
       276 
280 
     | 
    
         
             
                #   @option options [Integer] :http_read_timeout (60) The default
         
     | 
| 
       277 
281 
     | 
    
         
             
                #     number of seconds to wait for response data.  This value can
         
     | 
| 
       278 
     | 
    
         
            -
                #     safely be set
         
     | 
| 
       279 
     | 
    
         
            -
                #     per-request on the session yielded by {#session_for}.
         
     | 
| 
      
 282 
     | 
    
         
            +
                #     safely be set per-request on the session.
         
     | 
| 
       280 
283 
     | 
    
         
             
                #
         
     | 
| 
       281 
284 
     | 
    
         
             
                #   @option options [Float] :http_idle_timeout (5) The number of
         
     | 
| 
       282 
285 
     | 
    
         
             
                #     seconds a connection is allowed to sit idle before it is
         
     | 
| 
         @@ -288,7 +291,7 @@ module Aws::ECR 
     | 
|
| 
       288 
291 
     | 
    
         
             
                #     request body.  This option has no effect unless the request has
         
     | 
| 
       289 
292 
     | 
    
         
             
                #     "Expect" header set to "100-continue".  Defaults to `nil` which
         
     | 
| 
       290 
293 
     | 
    
         
             
                #     disables this behaviour.  This value can safely be set per
         
     | 
| 
       291 
     | 
    
         
            -
                #     request on the session 
     | 
| 
      
 294 
     | 
    
         
            +
                #     request on the session.
         
     | 
| 
       292 
295 
     | 
    
         
             
                #
         
     | 
| 
       293 
296 
     | 
    
         
             
                #   @option options [Boolean] :http_wire_trace (false) When `true`,
         
     | 
| 
       294 
297 
     | 
    
         
             
                #     HTTP debug output will be sent to the `:logger`.
         
     | 
| 
         @@ -318,15 +321,12 @@ module Aws::ECR 
     | 
|
| 
       318 
321 
     | 
    
         
             
                # Checks the availability of one or more image layers in a repository.
         
     | 
| 
       319 
322 
     | 
    
         
             
                #
         
     | 
| 
       320 
323 
     | 
    
         
             
                # When an image is pushed to a repository, each image layer is checked
         
     | 
| 
       321 
     | 
    
         
            -
                # to verify if it has been uploaded before. If it  
     | 
| 
       322 
     | 
    
         
            -
                # layer is skipped.
         
     | 
| 
      
 324 
     | 
    
         
            +
                # to verify if it has been uploaded before. If it has been uploaded,
         
     | 
| 
      
 325 
     | 
    
         
            +
                # then the image layer is skipped.
         
     | 
| 
       323 
326 
     | 
    
         
             
                #
         
     | 
| 
       324 
     | 
    
         
            -
                #  
     | 
| 
       325 
     | 
    
         
            -
                #  
     | 
| 
       326 
     | 
    
         
            -
                #
         
     | 
| 
       327 
     | 
    
         
            -
                # <note markdown="1"> This operation is used by the Amazon ECR proxy, and it is not intended
         
     | 
| 
       328 
     | 
    
         
            -
                # for general use by customers for pulling and pushing images. In most
         
     | 
| 
       329 
     | 
    
         
            -
                # cases, you should use the `docker` CLI to pull, tag, and push images.
         
     | 
| 
      
 327 
     | 
    
         
            +
                # <note markdown="1"> This operation is used by the Amazon ECR proxy and is not generally
         
     | 
| 
      
 328 
     | 
    
         
            +
                # used by customers for pulling and pushing images. In most cases, you
         
     | 
| 
      
 329 
     | 
    
         
            +
                # should use the `docker` CLI to pull, tag, and push images.
         
     | 
| 
       330 
330 
     | 
    
         
             
                #
         
     | 
| 
       331 
331 
     | 
    
         
             
                #  </note>
         
     | 
| 
       332 
332 
     | 
    
         
             
                #
         
     | 
| 
         @@ -452,7 +452,7 @@ module Aws::ECR 
     | 
|
| 
       452 
452 
     | 
    
         
             
                #   resp.failures #=> Array
         
     | 
| 
       453 
453 
     | 
    
         
             
                #   resp.failures[0].image_id.image_digest #=> String
         
     | 
| 
       454 
454 
     | 
    
         
             
                #   resp.failures[0].image_id.image_tag #=> String
         
     | 
| 
       455 
     | 
    
         
            -
                #   resp.failures[0].failure_code #=> String, one of "InvalidImageDigest", "InvalidImageTag", "ImageTagDoesNotMatchDigest", "ImageNotFound", "MissingDigestAndTag"
         
     | 
| 
      
 455 
     | 
    
         
            +
                #   resp.failures[0].failure_code #=> String, one of "InvalidImageDigest", "InvalidImageTag", "ImageTagDoesNotMatchDigest", "ImageNotFound", "MissingDigestAndTag", "ImageReferencedByManifestList"
         
     | 
| 
       456 
456 
     | 
    
         
             
                #   resp.failures[0].failure_reason #=> String
         
     | 
| 
       457 
457 
     | 
    
         
             
                #
         
     | 
| 
       458 
458 
     | 
    
         
             
                # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/BatchDeleteImage AWS API Documentation
         
     | 
| 
         @@ -552,7 +552,7 @@ module Aws::ECR 
     | 
|
| 
       552 
552 
     | 
    
         
             
                #   resp.failures #=> Array
         
     | 
| 
       553 
553 
     | 
    
         
             
                #   resp.failures[0].image_id.image_digest #=> String
         
     | 
| 
       554 
554 
     | 
    
         
             
                #   resp.failures[0].image_id.image_tag #=> String
         
     | 
| 
       555 
     | 
    
         
            -
                #   resp.failures[0].failure_code #=> String, one of "InvalidImageDigest", "InvalidImageTag", "ImageTagDoesNotMatchDigest", "ImageNotFound", "MissingDigestAndTag"
         
     | 
| 
      
 555 
     | 
    
         
            +
                #   resp.failures[0].failure_code #=> String, one of "InvalidImageDigest", "InvalidImageTag", "ImageTagDoesNotMatchDigest", "ImageNotFound", "MissingDigestAndTag", "ImageReferencedByManifestList"
         
     | 
| 
       556 
556 
     | 
    
         
             
                #   resp.failures[0].failure_reason #=> String
         
     | 
| 
       557 
557 
     | 
    
         
             
                #
         
     | 
| 
       558 
558 
     | 
    
         
             
                # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/BatchGetImage AWS API Documentation
         
     | 
| 
         @@ -572,9 +572,9 @@ module Aws::ECR 
     | 
|
| 
       572 
572 
     | 
    
         
             
                # When an image is pushed, the CompleteLayerUpload API is called once
         
     | 
| 
       573 
573 
     | 
    
         
             
                # per each new image layer to verify that the upload has completed.
         
     | 
| 
       574 
574 
     | 
    
         
             
                #
         
     | 
| 
       575 
     | 
    
         
            -
                # <note markdown="1"> This operation is used by the Amazon ECR proxy 
     | 
| 
       576 
     | 
    
         
            -
                #  
     | 
| 
       577 
     | 
    
         
            -
                #  
     | 
| 
      
 575 
     | 
    
         
            +
                # <note markdown="1"> This operation is used by the Amazon ECR proxy and is not generally
         
     | 
| 
      
 576 
     | 
    
         
            +
                # used by customers for pulling and pushing images. In most cases, you
         
     | 
| 
      
 577 
     | 
    
         
            +
                # should use the `docker` CLI to pull, tag, and push images.
         
     | 
| 
       578 
578 
     | 
    
         
             
                #
         
     | 
| 
       579 
579 
     | 
    
         
             
                #  </note>
         
     | 
| 
       580 
580 
     | 
    
         
             
                #
         
     | 
| 
         @@ -918,6 +918,8 @@ module Aws::ECR 
     | 
|
| 
       918 
918 
     | 
    
         
             
                #   * {Types::DescribeImageScanFindingsResponse#image_scan_findings #image_scan_findings} => Types::ImageScanFindings
         
     | 
| 
       919 
919 
     | 
    
         
             
                #   * {Types::DescribeImageScanFindingsResponse#next_token #next_token} => String
         
     | 
| 
       920 
920 
     | 
    
         
             
                #
         
     | 
| 
      
 921 
     | 
    
         
            +
                # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
         
     | 
| 
      
 922 
     | 
    
         
            +
                #
         
     | 
| 
       921 
923 
     | 
    
         
             
                # @example Request syntax with placeholder values
         
     | 
| 
       922 
924 
     | 
    
         
             
                #
         
     | 
| 
       923 
925 
     | 
    
         
             
                #   resp = client.describe_image_scan_findings({
         
     | 
| 
         @@ -953,6 +955,11 @@ module Aws::ECR 
     | 
|
| 
       953 
955 
     | 
    
         
             
                #   resp.image_scan_findings.finding_severity_counts["FindingSeverity"] #=> Integer
         
     | 
| 
       954 
956 
     | 
    
         
             
                #   resp.next_token #=> String
         
     | 
| 
       955 
957 
     | 
    
         
             
                #
         
     | 
| 
      
 958 
     | 
    
         
            +
                #
         
     | 
| 
      
 959 
     | 
    
         
            +
                # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
         
     | 
| 
      
 960 
     | 
    
         
            +
                #
         
     | 
| 
      
 961 
     | 
    
         
            +
                #   * image_scan_complete
         
     | 
| 
      
 962 
     | 
    
         
            +
                #
         
     | 
| 
       956 
963 
     | 
    
         
             
                # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DescribeImageScanFindings AWS API Documentation
         
     | 
| 
       957 
964 
     | 
    
         
             
                #
         
     | 
| 
       958 
965 
     | 
    
         
             
                # @overload describe_image_scan_findings(params = {})
         
     | 
| 
         @@ -1011,6 +1018,8 @@ module Aws::ECR 
     | 
|
| 
       1011 
1018 
     | 
    
         
             
                #   * {Types::DescribeImagesResponse#image_details #image_details} => Array<Types::ImageDetail>
         
     | 
| 
       1012 
1019 
     | 
    
         
             
                #   * {Types::DescribeImagesResponse#next_token #next_token} => String
         
     | 
| 
       1013 
1020 
     | 
    
         
             
                #
         
     | 
| 
      
 1021 
     | 
    
         
            +
                # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
         
     | 
| 
      
 1022 
     | 
    
         
            +
                #
         
     | 
| 
       1014 
1023 
     | 
    
         
             
                # @example Request syntax with placeholder values
         
     | 
| 
       1015 
1024 
     | 
    
         
             
                #
         
     | 
| 
       1016 
1025 
     | 
    
         
             
                #   resp = client.describe_images({
         
     | 
| 
         @@ -1099,6 +1108,8 @@ module Aws::ECR 
     | 
|
| 
       1099 
1108 
     | 
    
         
             
                #   * {Types::DescribeRepositoriesResponse#repositories #repositories} => Array<Types::Repository>
         
     | 
| 
       1100 
1109 
     | 
    
         
             
                #   * {Types::DescribeRepositoriesResponse#next_token #next_token} => String
         
     | 
| 
       1101 
1110 
     | 
    
         
             
                #
         
     | 
| 
      
 1111 
     | 
    
         
            +
                # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
         
     | 
| 
      
 1112 
     | 
    
         
            +
                #
         
     | 
| 
       1102 
1113 
     | 
    
         
             
                #
         
     | 
| 
       1103 
1114 
     | 
    
         
             
                # @example Example: To describe all repositories in the current account
         
     | 
| 
       1104 
1115 
     | 
    
         
             
                #
         
     | 
| 
         @@ -1225,11 +1236,11 @@ module Aws::ECR 
     | 
|
| 
       1225 
1236 
     | 
    
         
             
                # referenced in an image.
         
     | 
| 
       1226 
1237 
     | 
    
         
             
                #
         
     | 
| 
       1227 
1238 
     | 
    
         
             
                # When an image is pulled, the GetDownloadUrlForLayer API is called once
         
     | 
| 
       1228 
     | 
    
         
            -
                # per image layer.
         
     | 
| 
      
 1239 
     | 
    
         
            +
                # per image layer that is not already cached.
         
     | 
| 
       1229 
1240 
     | 
    
         
             
                #
         
     | 
| 
       1230 
     | 
    
         
            -
                # <note markdown="1"> This operation is used by the Amazon ECR proxy 
     | 
| 
       1231 
     | 
    
         
            -
                #  
     | 
| 
       1232 
     | 
    
         
            -
                #  
     | 
| 
      
 1241 
     | 
    
         
            +
                # <note markdown="1"> This operation is used by the Amazon ECR proxy and is not generally
         
     | 
| 
      
 1242 
     | 
    
         
            +
                # used by customers for pulling and pushing images. In most cases, you
         
     | 
| 
      
 1243 
     | 
    
         
            +
                # should use the `docker` CLI to pull, tag, and push images.
         
     | 
| 
       1233 
1244 
     | 
    
         
             
                #
         
     | 
| 
       1234 
1245 
     | 
    
         
             
                #  </note>
         
     | 
| 
       1235 
1246 
     | 
    
         
             
                #
         
     | 
| 
         @@ -1362,6 +1373,8 @@ module Aws::ECR 
     | 
|
| 
       1362 
1373 
     | 
    
         
             
                #   * {Types::GetLifecyclePolicyPreviewResponse#preview_results #preview_results} => Array<Types::LifecyclePolicyPreviewResult>
         
     | 
| 
       1363 
1374 
     | 
    
         
             
                #   * {Types::GetLifecyclePolicyPreviewResponse#summary #summary} => Types::LifecyclePolicyPreviewSummary
         
     | 
| 
       1364 
1375 
     | 
    
         
             
                #
         
     | 
| 
      
 1376 
     | 
    
         
            +
                # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
         
     | 
| 
      
 1377 
     | 
    
         
            +
                #
         
     | 
| 
       1365 
1378 
     | 
    
         
             
                # @example Request syntax with placeholder values
         
     | 
| 
       1366 
1379 
     | 
    
         
             
                #
         
     | 
| 
       1367 
1380 
     | 
    
         
             
                #   resp = client.get_lifecycle_policy_preview({
         
     | 
| 
         @@ -1396,6 +1409,11 @@ module Aws::ECR 
     | 
|
| 
       1396 
1409 
     | 
    
         
             
                #   resp.preview_results[0].applied_rule_priority #=> Integer
         
     | 
| 
       1397 
1410 
     | 
    
         
             
                #   resp.summary.expiring_image_total_count #=> Integer
         
     | 
| 
       1398 
1411 
     | 
    
         
             
                #
         
     | 
| 
      
 1412 
     | 
    
         
            +
                #
         
     | 
| 
      
 1413 
     | 
    
         
            +
                # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
         
     | 
| 
      
 1414 
     | 
    
         
            +
                #
         
     | 
| 
      
 1415 
     | 
    
         
            +
                #   * lifecycle_policy_preview_complete
         
     | 
| 
      
 1416 
     | 
    
         
            +
                #
         
     | 
| 
       1399 
1417 
     | 
    
         
             
                # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/GetLifecyclePolicyPreview AWS API Documentation
         
     | 
| 
       1400 
1418 
     | 
    
         
             
                #
         
     | 
| 
       1401 
1419 
     | 
    
         
             
                # @overload get_lifecycle_policy_preview(params = {})
         
     | 
| 
         @@ -1462,13 +1480,13 @@ module Aws::ECR 
     | 
|
| 
       1462 
1480 
     | 
    
         
             
                # Notifies Amazon ECR that you intend to upload an image layer.
         
     | 
| 
       1463 
1481 
     | 
    
         
             
                #
         
     | 
| 
       1464 
1482 
     | 
    
         
             
                # When an image is pushed, the InitiateLayerUpload API is called once
         
     | 
| 
       1465 
     | 
    
         
            -
                # per image layer that has not already been uploaded. Whether an 
     | 
| 
       1466 
     | 
    
         
            -
                # layer has been uploaded  
     | 
| 
      
 1483 
     | 
    
         
            +
                # per image layer that has not already been uploaded. Whether or not an
         
     | 
| 
      
 1484 
     | 
    
         
            +
                # image layer has been uploaded is determined by the
         
     | 
| 
       1467 
1485 
     | 
    
         
             
                # BatchCheckLayerAvailability API action.
         
     | 
| 
       1468 
1486 
     | 
    
         
             
                #
         
     | 
| 
       1469 
     | 
    
         
            -
                # <note markdown="1"> This operation is used by the Amazon ECR proxy 
     | 
| 
       1470 
     | 
    
         
            -
                #  
     | 
| 
       1471 
     | 
    
         
            -
                #  
     | 
| 
      
 1487 
     | 
    
         
            +
                # <note markdown="1"> This operation is used by the Amazon ECR proxy and is not generally
         
     | 
| 
      
 1488 
     | 
    
         
            +
                # used by customers for pulling and pushing images. In most cases, you
         
     | 
| 
      
 1489 
     | 
    
         
            +
                # should use the `docker` CLI to pull, tag, and push images.
         
     | 
| 
       1472 
1490 
     | 
    
         
             
                #
         
     | 
| 
       1473 
1491 
     | 
    
         
             
                #  </note>
         
     | 
| 
       1474 
1492 
     | 
    
         
             
                #
         
     | 
| 
         @@ -1555,6 +1573,8 @@ module Aws::ECR 
     | 
|
| 
       1555 
1573 
     | 
    
         
             
                #   * {Types::ListImagesResponse#image_ids #image_ids} => Array<Types::ImageIdentifier>
         
     | 
| 
       1556 
1574 
     | 
    
         
             
                #   * {Types::ListImagesResponse#next_token #next_token} => String
         
     | 
| 
       1557 
1575 
     | 
    
         
             
                #
         
     | 
| 
      
 1576 
     | 
    
         
            +
                # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
         
     | 
| 
      
 1577 
     | 
    
         
            +
                #
         
     | 
| 
       1558 
1578 
     | 
    
         
             
                #
         
     | 
| 
       1559 
1579 
     | 
    
         
             
                # @example Example: To list all images in a repository
         
     | 
| 
       1560 
1580 
     | 
    
         
             
                #
         
     | 
| 
         @@ -1639,11 +1659,11 @@ module Aws::ECR 
     | 
|
| 
       1639 
1659 
     | 
    
         
             
                #
         
     | 
| 
       1640 
1660 
     | 
    
         
             
                # When an image is pushed and all new image layers have been uploaded,
         
     | 
| 
       1641 
1661 
     | 
    
         
             
                # the PutImage API is called once to create or update the image manifest
         
     | 
| 
       1642 
     | 
    
         
            -
                # and tags associated with the image.
         
     | 
| 
      
 1662 
     | 
    
         
            +
                # and the tags associated with the image.
         
     | 
| 
       1643 
1663 
     | 
    
         
             
                #
         
     | 
| 
       1644 
     | 
    
         
            -
                # <note markdown="1"> This operation is used by the Amazon ECR proxy 
     | 
| 
       1645 
     | 
    
         
            -
                #  
     | 
| 
       1646 
     | 
    
         
            -
                #  
     | 
| 
      
 1664 
     | 
    
         
            +
                # <note markdown="1"> This operation is used by the Amazon ECR proxy and is not generally
         
     | 
| 
      
 1665 
     | 
    
         
            +
                # used by customers for pulling and pushing images. In most cases, you
         
     | 
| 
      
 1666 
     | 
    
         
            +
                # should use the `docker` CLI to pull, tag, and push images.
         
     | 
| 
       1647 
1667 
     | 
    
         
             
                #
         
     | 
| 
       1648 
1668 
     | 
    
         
             
                #  </note>
         
     | 
| 
       1649 
1669 
     | 
    
         
             
                #
         
     | 
| 
         @@ -2075,9 +2095,9 @@ module Aws::ECR 
     | 
|
| 
       2075 
2095 
     | 
    
         
             
                # about 20MB). The UploadLayerPart API is called once per each new image
         
     | 
| 
       2076 
2096 
     | 
    
         
             
                # layer part.
         
     | 
| 
       2077 
2097 
     | 
    
         
             
                #
         
     | 
| 
       2078 
     | 
    
         
            -
                # <note markdown="1"> This operation is used by the Amazon ECR proxy 
     | 
| 
       2079 
     | 
    
         
            -
                #  
     | 
| 
       2080 
     | 
    
         
            -
                #  
     | 
| 
      
 2098 
     | 
    
         
            +
                # <note markdown="1"> This operation is used by the Amazon ECR proxy and is not generally
         
     | 
| 
      
 2099 
     | 
    
         
            +
                # used by customers for pulling and pushing images. In most cases, you
         
     | 
| 
      
 2100 
     | 
    
         
            +
                # should use the `docker` CLI to pull, tag, and push images.
         
     | 
| 
       2081 
2101 
     | 
    
         
             
                #
         
     | 
| 
       2082 
2102 
     | 
    
         
             
                #  </note>
         
     | 
| 
       2083 
2103 
     | 
    
         
             
                #
         
     | 
| 
         @@ -2149,7 +2169,7 @@ module Aws::ECR 
     | 
|
| 
       2149 
2169 
     | 
    
         
             
                    params: params,
         
     | 
| 
       2150 
2170 
     | 
    
         
             
                    config: config)
         
     | 
| 
       2151 
2171 
     | 
    
         
             
                  context[:gem_name] = 'aws-sdk-ecr'
         
     | 
| 
       2152 
     | 
    
         
            -
                  context[:gem_version] = '1. 
     | 
| 
      
 2172 
     | 
    
         
            +
                  context[:gem_version] = '1.27.0'
         
     | 
| 
       2153 
2173 
     | 
    
         
             
                  Seahorse::Client::Request.new(handlers, context)
         
     | 
| 
       2154 
2174 
     | 
    
         
             
                end
         
     | 
| 
       2155 
2175 
     | 
    
         | 
| 
         @@ -2215,10 +2235,10 @@ module Aws::ECR 
     | 
|
| 
       2215 
2235 
     | 
    
         
             
                # The following table lists the valid waiter names, the operations they call,
         
     | 
| 
       2216 
2236 
     | 
    
         
             
                # and the default `:delay` and `:max_attempts` values.
         
     | 
| 
       2217 
2237 
     | 
    
         
             
                #
         
     | 
| 
       2218 
     | 
    
         
            -
                # | waiter_name                       | params 
     | 
| 
       2219 
     | 
    
         
            -
                # | --------------------------------- |  
     | 
| 
       2220 
     | 
    
         
            -
                # | image_scan_complete               | {#describe_image_scan_findings} | 5        | 60            |
         
     | 
| 
       2221 
     | 
    
         
            -
                # | lifecycle_policy_preview_complete | {#get_lifecycle_policy_preview} | 5        | 20            |
         
     | 
| 
      
 2238 
     | 
    
         
            +
                # | waiter_name                       | params                                | :delay   | :max_attempts |
         
     | 
| 
      
 2239 
     | 
    
         
            +
                # | --------------------------------- | ------------------------------------- | -------- | ------------- |
         
     | 
| 
      
 2240 
     | 
    
         
            +
                # | image_scan_complete               | {Client#describe_image_scan_findings} | 5        | 60            |
         
     | 
| 
      
 2241 
     | 
    
         
            +
                # | lifecycle_policy_preview_complete | {Client#get_lifecycle_policy_preview} | 5        | 20            |
         
     | 
| 
       2222 
2242 
     | 
    
         
             
                #
         
     | 
| 
       2223 
2243 
     | 
    
         
             
                # @raise [Errors::FailureStateError] Raised when the waiter terminates
         
     | 
| 
       2224 
2244 
     | 
    
         
             
                #   because the waiter has entered a state that it will not transition
         
     | 
| 
         @@ -146,6 +146,7 @@ module Aws::ECR 
     | 
|
| 
       146 
146 
     | 
    
         
             
                PutImageTagMutabilityResponse = Shapes::StructureShape.new(name: 'PutImageTagMutabilityResponse')
         
     | 
| 
       147 
147 
     | 
    
         
             
                PutLifecyclePolicyRequest = Shapes::StructureShape.new(name: 'PutLifecyclePolicyRequest')
         
     | 
| 
       148 
148 
     | 
    
         
             
                PutLifecyclePolicyResponse = Shapes::StructureShape.new(name: 'PutLifecyclePolicyResponse')
         
     | 
| 
      
 149 
     | 
    
         
            +
                ReferencedImagesNotFoundException = Shapes::StructureShape.new(name: 'ReferencedImagesNotFoundException')
         
     | 
| 
       149 
150 
     | 
    
         
             
                RegistryId = Shapes::StringShape.new(name: 'RegistryId')
         
     | 
| 
       150 
151 
     | 
    
         
             
                Repository = Shapes::StructureShape.new(name: 'Repository')
         
     | 
| 
       151 
152 
     | 
    
         
             
                RepositoryAlreadyExistsException = Shapes::StructureShape.new(name: 'RepositoryAlreadyExistsException')
         
     | 
| 
         @@ -178,6 +179,7 @@ module Aws::ECR 
     | 
|
| 
       178 
179 
     | 
    
         
             
                TagStatus = Shapes::StringShape.new(name: 'TagStatus')
         
     | 
| 
       179 
180 
     | 
    
         
             
                TagValue = Shapes::StringShape.new(name: 'TagValue')
         
     | 
| 
       180 
181 
     | 
    
         
             
                TooManyTagsException = Shapes::StructureShape.new(name: 'TooManyTagsException')
         
     | 
| 
      
 182 
     | 
    
         
            +
                UnsupportedImageTypeException = Shapes::StructureShape.new(name: 'UnsupportedImageTypeException')
         
     | 
| 
       181 
183 
     | 
    
         
             
                UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
         
     | 
| 
       182 
184 
     | 
    
         
             
                UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
         
     | 
| 
       183 
185 
     | 
    
         
             
                UploadId = Shapes::StringShape.new(name: 'UploadId')
         
     | 
| 
         @@ -592,6 +594,9 @@ module Aws::ECR 
     | 
|
| 
       592 
594 
     | 
    
         
             
                PutLifecyclePolicyResponse.add_member(:lifecycle_policy_text, Shapes::ShapeRef.new(shape: LifecyclePolicyText, location_name: "lifecyclePolicyText"))
         
     | 
| 
       593 
595 
     | 
    
         
             
                PutLifecyclePolicyResponse.struct_class = Types::PutLifecyclePolicyResponse
         
     | 
| 
       594 
596 
     | 
    
         | 
| 
      
 597 
     | 
    
         
            +
                ReferencedImagesNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
         
     | 
| 
      
 598 
     | 
    
         
            +
                ReferencedImagesNotFoundException.struct_class = Types::ReferencedImagesNotFoundException
         
     | 
| 
      
 599 
     | 
    
         
            +
             
     | 
| 
       595 
600 
     | 
    
         
             
                Repository.add_member(:repository_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "repositoryArn"))
         
     | 
| 
       596 
601 
     | 
    
         
             
                Repository.add_member(:registry_id, Shapes::ShapeRef.new(shape: RegistryId, location_name: "registryId"))
         
     | 
| 
       597 
602 
     | 
    
         
             
                Repository.add_member(:repository_name, Shapes::ShapeRef.new(shape: RepositoryName, location_name: "repositoryName"))
         
     | 
| 
         @@ -673,6 +678,9 @@ module Aws::ECR 
     | 
|
| 
       673 
678 
     | 
    
         
             
                TooManyTagsException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
         
     | 
| 
       674 
679 
     | 
    
         
             
                TooManyTagsException.struct_class = Types::TooManyTagsException
         
     | 
| 
       675 
680 
     | 
    
         | 
| 
      
 681 
     | 
    
         
            +
                UnsupportedImageTypeException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
         
     | 
| 
      
 682 
     | 
    
         
            +
                UnsupportedImageTypeException.struct_class = Types::UnsupportedImageTypeException
         
     | 
| 
      
 683 
     | 
    
         
            +
             
     | 
| 
       676 
684 
     | 
    
         
             
                UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "resourceArn"))
         
     | 
| 
       677 
685 
     | 
    
         
             
                UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "tagKeys"))
         
     | 
| 
       678 
686 
     | 
    
         
             
                UntagResourceRequest.struct_class = Types::UntagResourceRequest
         
     | 
| 
         @@ -984,6 +992,7 @@ module Aws::ECR 
     | 
|
| 
       984 
992 
     | 
    
         
             
                    o.errors << Shapes::ShapeRef.new(shape: RepositoryNotFoundException)
         
     | 
| 
       985 
993 
     | 
    
         
             
                    o.errors << Shapes::ShapeRef.new(shape: ImageAlreadyExistsException)
         
     | 
| 
       986 
994 
     | 
    
         
             
                    o.errors << Shapes::ShapeRef.new(shape: LayersNotFoundException)
         
     | 
| 
      
 995 
     | 
    
         
            +
                    o.errors << Shapes::ShapeRef.new(shape: ReferencedImagesNotFoundException)
         
     | 
| 
       987 
996 
     | 
    
         
             
                    o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
         
     | 
| 
       988 
997 
     | 
    
         
             
                    o.errors << Shapes::ShapeRef.new(shape: ImageTagAlreadyExistsException)
         
     | 
| 
       989 
998 
     | 
    
         
             
                  end)
         
     | 
| 
         @@ -1040,6 +1049,8 @@ module Aws::ECR 
     | 
|
| 
       1040 
1049 
     | 
    
         
             
                    o.output = Shapes::ShapeRef.new(shape: StartImageScanResponse)
         
     | 
| 
       1041 
1050 
     | 
    
         
             
                    o.errors << Shapes::ShapeRef.new(shape: ServerException)
         
     | 
| 
       1042 
1051 
     | 
    
         
             
                    o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
         
     | 
| 
      
 1052 
     | 
    
         
            +
                    o.errors << Shapes::ShapeRef.new(shape: UnsupportedImageTypeException)
         
     | 
| 
      
 1053 
     | 
    
         
            +
                    o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
         
     | 
| 
       1043 
1054 
     | 
    
         
             
                    o.errors << Shapes::ShapeRef.new(shape: RepositoryNotFoundException)
         
     | 
| 
       1044 
1055 
     | 
    
         
             
                    o.errors << Shapes::ShapeRef.new(shape: ImageNotFoundException)
         
     | 
| 
       1045 
1056 
     | 
    
         
             
                  end)
         
     | 
    
        data/lib/aws-sdk-ecr/errors.rb
    CHANGED
    
    | 
         @@ -41,6 +41,7 @@ module Aws::ECR 
     | 
|
| 
       41 
41 
     | 
    
         
             
              # * {LifecyclePolicyPreviewInProgressException}
         
     | 
| 
       42 
42 
     | 
    
         
             
              # * {LifecyclePolicyPreviewNotFoundException}
         
     | 
| 
       43 
43 
     | 
    
         
             
              # * {LimitExceededException}
         
     | 
| 
      
 44 
     | 
    
         
            +
              # * {ReferencedImagesNotFoundException}
         
     | 
| 
       44 
45 
     | 
    
         
             
              # * {RepositoryAlreadyExistsException}
         
     | 
| 
       45 
46 
     | 
    
         
             
              # * {RepositoryNotEmptyException}
         
     | 
| 
       46 
47 
     | 
    
         
             
              # * {RepositoryNotFoundException}
         
     | 
| 
         @@ -48,6 +49,7 @@ module Aws::ECR 
     | 
|
| 
       48 
49 
     | 
    
         
             
              # * {ScanNotFoundException}
         
     | 
| 
       49 
50 
     | 
    
         
             
              # * {ServerException}
         
     | 
| 
       50 
51 
     | 
    
         
             
              # * {TooManyTagsException}
         
     | 
| 
      
 52 
     | 
    
         
            +
              # * {UnsupportedImageTypeException}
         
     | 
| 
       51 
53 
     | 
    
         
             
              # * {UploadNotFoundException}
         
     | 
| 
       52 
54 
     | 
    
         
             
              #
         
     | 
| 
       53 
55 
     | 
    
         
             
              # Additionally, error classes are dynamically generated for service errors based on the error code
         
     | 
| 
         @@ -316,6 +318,21 @@ module Aws::ECR 
     | 
|
| 
       316 
318 
     | 
    
         
             
                  end
         
     | 
| 
       317 
319 
     | 
    
         
             
                end
         
     | 
| 
       318 
320 
     | 
    
         | 
| 
      
 321 
     | 
    
         
            +
                class ReferencedImagesNotFoundException < ServiceError
         
     | 
| 
      
 322 
     | 
    
         
            +
             
     | 
| 
      
 323 
     | 
    
         
            +
                  # @param [Seahorse::Client::RequestContext] context
         
     | 
| 
      
 324 
     | 
    
         
            +
                  # @param [String] message
         
     | 
| 
      
 325 
     | 
    
         
            +
                  # @param [Aws::ECR::Types::ReferencedImagesNotFoundException] data
         
     | 
| 
      
 326 
     | 
    
         
            +
                  def initialize(context, message, data = Aws::EmptyStructure.new)
         
     | 
| 
      
 327 
     | 
    
         
            +
                    super(context, message, data)
         
     | 
| 
      
 328 
     | 
    
         
            +
                  end
         
     | 
| 
      
 329 
     | 
    
         
            +
             
     | 
| 
      
 330 
     | 
    
         
            +
                  # @return [String]
         
     | 
| 
      
 331 
     | 
    
         
            +
                  def message
         
     | 
| 
      
 332 
     | 
    
         
            +
                    @message || @data[:message]
         
     | 
| 
      
 333 
     | 
    
         
            +
                  end
         
     | 
| 
      
 334 
     | 
    
         
            +
                end
         
     | 
| 
      
 335 
     | 
    
         
            +
             
     | 
| 
       319 
336 
     | 
    
         
             
                class RepositoryAlreadyExistsException < ServiceError
         
     | 
| 
       320 
337 
     | 
    
         | 
| 
       321 
338 
     | 
    
         
             
                  # @param [Seahorse::Client::RequestContext] context
         
     | 
| 
         @@ -421,6 +438,21 @@ module Aws::ECR 
     | 
|
| 
       421 
438 
     | 
    
         
             
                  end
         
     | 
| 
       422 
439 
     | 
    
         
             
                end
         
     | 
| 
       423 
440 
     | 
    
         | 
| 
      
 441 
     | 
    
         
            +
                class UnsupportedImageTypeException < ServiceError
         
     | 
| 
      
 442 
     | 
    
         
            +
             
     | 
| 
      
 443 
     | 
    
         
            +
                  # @param [Seahorse::Client::RequestContext] context
         
     | 
| 
      
 444 
     | 
    
         
            +
                  # @param [String] message
         
     | 
| 
      
 445 
     | 
    
         
            +
                  # @param [Aws::ECR::Types::UnsupportedImageTypeException] data
         
     | 
| 
      
 446 
     | 
    
         
            +
                  def initialize(context, message, data = Aws::EmptyStructure.new)
         
     | 
| 
      
 447 
     | 
    
         
            +
                    super(context, message, data)
         
     | 
| 
      
 448 
     | 
    
         
            +
                  end
         
     | 
| 
      
 449 
     | 
    
         
            +
             
     | 
| 
      
 450 
     | 
    
         
            +
                  # @return [String]
         
     | 
| 
      
 451 
     | 
    
         
            +
                  def message
         
     | 
| 
      
 452 
     | 
    
         
            +
                    @message || @data[:message]
         
     | 
| 
      
 453 
     | 
    
         
            +
                  end
         
     | 
| 
      
 454 
     | 
    
         
            +
                end
         
     | 
| 
      
 455 
     | 
    
         
            +
             
     | 
| 
       424 
456 
     | 
    
         
             
                class UploadNotFoundException < ServiceError
         
     | 
| 
       425 
457 
     | 
    
         | 
| 
       426 
458 
     | 
    
         
             
                  # @param [Seahorse::Client::RequestContext] context
         
     | 
    
        data/lib/aws-sdk-ecr/resource.rb
    CHANGED
    
    | 
         @@ -6,13 +6,7 @@ 
     | 
|
| 
       6 
6 
     | 
    
         
             
            # WARNING ABOUT GENERATED CODE
         
     | 
| 
       7 
7 
     | 
    
         | 
| 
       8 
8 
     | 
    
         
             
            module Aws::ECR
         
     | 
| 
       9 
     | 
    
         
            -
             
     | 
| 
       10 
     | 
    
         
            -
              # To create a resource object:
         
     | 
| 
       11 
     | 
    
         
            -
              #     resource = Aws::ECR::Resource.new(region: 'us-west-2')
         
     | 
| 
       12 
     | 
    
         
            -
              # You can supply a client object with custom configuration that will be used for all resource operations.
         
     | 
| 
       13 
     | 
    
         
            -
              # If you do not pass +:client+, a default client will be constructed.
         
     | 
| 
       14 
     | 
    
         
            -
              #     client = Aws::ECR::Client.new(region: 'us-west-2')
         
     | 
| 
       15 
     | 
    
         
            -
              #     resource = Aws::ECR::Resource.new(client: client)
         
     | 
| 
      
 9 
     | 
    
         
            +
             
     | 
| 
       16 
10 
     | 
    
         
             
              class Resource
         
     | 
| 
       17 
11 
     | 
    
         | 
| 
       18 
12 
     | 
    
         
             
                # @param options ({})
         
     | 
    
        data/lib/aws-sdk-ecr/types.rb
    CHANGED
    
    | 
         @@ -1178,6 +1178,9 @@ module Aws::ECR 
     | 
|
| 
       1178 
1178 
     | 
    
         
             
                # @!attribute [rw] image_size_in_bytes
         
     | 
| 
       1179 
1179 
     | 
    
         
             
                #   The size, in bytes, of the image in the repository.
         
     | 
| 
       1180 
1180 
     | 
    
         
             
                #
         
     | 
| 
      
 1181 
     | 
    
         
            +
                #   If the image is a manifest list, this will be the max size of all
         
     | 
| 
      
 1182 
     | 
    
         
            +
                #   manifests in the list.
         
     | 
| 
      
 1183 
     | 
    
         
            +
                #
         
     | 
| 
       1181 
1184 
     | 
    
         
             
                #   <note markdown="1"> Beginning with Docker version 1.9, the Docker client compresses
         
     | 
| 
       1182 
1185 
     | 
    
         
             
                #   image layers before pushing them to a V2 Docker registry. The output
         
     | 
| 
       1183 
1186 
     | 
    
         
             
                #   of the `docker images` command shows the uncompressed image size, so
         
     | 
| 
         @@ -2137,6 +2140,18 @@ module Aws::ECR 
     | 
|
| 
       2137 
2140 
     | 
    
         
             
                  include Aws::Structure
         
     | 
| 
       2138 
2141 
     | 
    
         
             
                end
         
     | 
| 
       2139 
2142 
     | 
    
         | 
| 
      
 2143 
     | 
    
         
            +
                # The manifest list is referencing an image that does not exist.
         
     | 
| 
      
 2144 
     | 
    
         
            +
                #
         
     | 
| 
      
 2145 
     | 
    
         
            +
                # @!attribute [rw] message
         
     | 
| 
      
 2146 
     | 
    
         
            +
                #   @return [String]
         
     | 
| 
      
 2147 
     | 
    
         
            +
                #
         
     | 
| 
      
 2148 
     | 
    
         
            +
                # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/ReferencedImagesNotFoundException AWS API Documentation
         
     | 
| 
      
 2149 
     | 
    
         
            +
                #
         
     | 
| 
      
 2150 
     | 
    
         
            +
                class ReferencedImagesNotFoundException < Struct.new(
         
     | 
| 
      
 2151 
     | 
    
         
            +
                  :message)
         
     | 
| 
      
 2152 
     | 
    
         
            +
                  include Aws::Structure
         
     | 
| 
      
 2153 
     | 
    
         
            +
                end
         
     | 
| 
      
 2154 
     | 
    
         
            +
             
     | 
| 
       2140 
2155 
     | 
    
         
             
                # An object representing a repository.
         
     | 
| 
       2141 
2156 
     | 
    
         
             
                #
         
     | 
| 
       2142 
2157 
     | 
    
         
             
                # @!attribute [rw] repository_arn
         
     | 
| 
         @@ -2542,6 +2557,18 @@ module Aws::ECR 
     | 
|
| 
       2542 
2557 
     | 
    
         
             
                  include Aws::Structure
         
     | 
| 
       2543 
2558 
     | 
    
         
             
                end
         
     | 
| 
       2544 
2559 
     | 
    
         | 
| 
      
 2560 
     | 
    
         
            +
                # The image is of a type that cannot be scanned.
         
     | 
| 
      
 2561 
     | 
    
         
            +
                #
         
     | 
| 
      
 2562 
     | 
    
         
            +
                # @!attribute [rw] message
         
     | 
| 
      
 2563 
     | 
    
         
            +
                #   @return [String]
         
     | 
| 
      
 2564 
     | 
    
         
            +
                #
         
     | 
| 
      
 2565 
     | 
    
         
            +
                # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/UnsupportedImageTypeException AWS API Documentation
         
     | 
| 
      
 2566 
     | 
    
         
            +
                #
         
     | 
| 
      
 2567 
     | 
    
         
            +
                class UnsupportedImageTypeException < Struct.new(
         
     | 
| 
      
 2568 
     | 
    
         
            +
                  :message)
         
     | 
| 
      
 2569 
     | 
    
         
            +
                  include Aws::Structure
         
     | 
| 
      
 2570 
     | 
    
         
            +
                end
         
     | 
| 
      
 2571 
     | 
    
         
            +
             
     | 
| 
       2545 
2572 
     | 
    
         
             
                # @note When making an API call, you may pass UntagResourceRequest
         
     | 
| 
       2546 
2573 
     | 
    
         
             
                #   data as a hash:
         
     | 
| 
       2547 
2574 
     | 
    
         
             
                #
         
     | 
    
        data/lib/aws-sdk-ecr/waiters.rb
    CHANGED
    
    | 
         @@ -8,6 +8,68 @@ 
     | 
|
| 
       8 
8 
     | 
    
         
             
            require 'aws-sdk-core/waiters'
         
     | 
| 
       9 
9 
     | 
    
         | 
| 
       10 
10 
     | 
    
         
             
            module Aws::ECR
         
     | 
| 
      
 11 
     | 
    
         
            +
              # Waiters are utility methods that poll for a particular state to occur
         
     | 
| 
      
 12 
     | 
    
         
            +
              # on a client. Waiters can fail after a number of attempts at a polling
         
     | 
| 
      
 13 
     | 
    
         
            +
              # interval defined for the service client.
         
     | 
| 
      
 14 
     | 
    
         
            +
              #
         
     | 
| 
      
 15 
     | 
    
         
            +
              # For a list of operations that can be waited for and the
         
     | 
| 
      
 16 
     | 
    
         
            +
              # client methods called for each operation, see the table below or the
         
     | 
| 
      
 17 
     | 
    
         
            +
              # {Client#wait_until} field documentation for the {Client}.
         
     | 
| 
      
 18 
     | 
    
         
            +
              #
         
     | 
| 
      
 19 
     | 
    
         
            +
              # # Invoking a Waiter
         
     | 
| 
      
 20 
     | 
    
         
            +
              # To invoke a waiter, call #wait_until on a {Client}. The first parameter
         
     | 
| 
      
 21 
     | 
    
         
            +
              # is the waiter name, which is specific to the service client and indicates
         
     | 
| 
      
 22 
     | 
    
         
            +
              # which operation is being waited for. The second parameter is a hash of
         
     | 
| 
      
 23 
     | 
    
         
            +
              # parameters that are passed to the client method called by the waiter,
         
     | 
| 
      
 24 
     | 
    
         
            +
              # which varies according to the waiter name.
         
     | 
| 
      
 25 
     | 
    
         
            +
              #
         
     | 
| 
      
 26 
     | 
    
         
            +
              # # Wait Failures
         
     | 
| 
      
 27 
     | 
    
         
            +
              # To catch errors in a waiter, use WaiterFailed,
         
     | 
| 
      
 28 
     | 
    
         
            +
              # as shown in the following example.
         
     | 
| 
      
 29 
     | 
    
         
            +
              #
         
     | 
| 
      
 30 
     | 
    
         
            +
              #     rescue rescue Aws::Waiters::Errors::WaiterFailed => error
         
     | 
| 
      
 31 
     | 
    
         
            +
              #       puts "failed waiting for instance running: #{error.message}
         
     | 
| 
      
 32 
     | 
    
         
            +
              #     end
         
     | 
| 
      
 33 
     | 
    
         
            +
              #
         
     | 
| 
      
 34 
     | 
    
         
            +
              # # Configuring a Waiter
         
     | 
| 
      
 35 
     | 
    
         
            +
              # Each waiter has a default polling interval and a maximum number of
         
     | 
| 
      
 36 
     | 
    
         
            +
              # attempts it will make before returning control to your program.
         
     | 
| 
      
 37 
     | 
    
         
            +
              # To set these values, use the `max_attempts` and `delay` parameters
         
     | 
| 
      
 38 
     | 
    
         
            +
              # in your `#wait_until` call.
         
     | 
| 
      
 39 
     | 
    
         
            +
              # The following example waits for up to 25 seconds, polling every five seconds.
         
     | 
| 
      
 40 
     | 
    
         
            +
              #
         
     | 
| 
      
 41 
     | 
    
         
            +
              #     client.wait_until(...) do |w|
         
     | 
| 
      
 42 
     | 
    
         
            +
              #       w.max_attempts = 5
         
     | 
| 
      
 43 
     | 
    
         
            +
              #       w.delay = 5
         
     | 
| 
      
 44 
     | 
    
         
            +
              #     end
         
     | 
| 
      
 45 
     | 
    
         
            +
              #
         
     | 
| 
      
 46 
     | 
    
         
            +
              # To disable wait failures, set the value of either of these parameters
         
     | 
| 
      
 47 
     | 
    
         
            +
              # to `nil`.
         
     | 
| 
      
 48 
     | 
    
         
            +
              #
         
     | 
| 
      
 49 
     | 
    
         
            +
              # # Extending a Waiter
         
     | 
| 
      
 50 
     | 
    
         
            +
              # To modify the behavior of waiters, you can register callbacks that are
         
     | 
| 
      
 51 
     | 
    
         
            +
              # triggered before each polling attempt and before waiting.
         
     | 
| 
      
 52 
     | 
    
         
            +
              #
         
     | 
| 
      
 53 
     | 
    
         
            +
              # The following example implements an exponential backoff in a waiter
         
     | 
| 
      
 54 
     | 
    
         
            +
              # by doubling the amount of time to wait on every attempt.
         
     | 
| 
      
 55 
     | 
    
         
            +
              #
         
     | 
| 
      
 56 
     | 
    
         
            +
              #     client.wait_until(...) do |w|
         
     | 
| 
      
 57 
     | 
    
         
            +
              #       w.interval = 0 # disable normal sleep
         
     | 
| 
      
 58 
     | 
    
         
            +
              #       w.before_wait do |n, resp|
         
     | 
| 
      
 59 
     | 
    
         
            +
              #         sleep(n ** 2)
         
     | 
| 
      
 60 
     | 
    
         
            +
              #       end
         
     | 
| 
      
 61 
     | 
    
         
            +
              #     end
         
     | 
| 
      
 62 
     | 
    
         
            +
              #
         
     | 
| 
      
 63 
     | 
    
         
            +
              # # Available Waiters
         
     | 
| 
      
 64 
     | 
    
         
            +
              #
         
     | 
| 
      
 65 
     | 
    
         
            +
              # The following table lists the valid waiter names, the operations they call,
         
     | 
| 
      
 66 
     | 
    
         
            +
              # and the default `:delay` and `:max_attempts` values.
         
     | 
| 
      
 67 
     | 
    
         
            +
              #
         
     | 
| 
      
 68 
     | 
    
         
            +
              # | waiter_name                       | params                                | :delay   | :max_attempts |
         
     | 
| 
      
 69 
     | 
    
         
            +
              # | --------------------------------- | ------------------------------------- | -------- | ------------- |
         
     | 
| 
      
 70 
     | 
    
         
            +
              # | image_scan_complete               | {Client#describe_image_scan_findings} | 5        | 60            |
         
     | 
| 
      
 71 
     | 
    
         
            +
              # | lifecycle_policy_preview_complete | {Client#get_lifecycle_policy_preview} | 5        | 20            |
         
     | 
| 
      
 72 
     | 
    
         
            +
              #
         
     | 
| 
       11 
73 
     | 
    
         
             
              module Waiters
         
     | 
| 
       12 
74 
     | 
    
         | 
| 
       13 
75 
     | 
    
         
             
                # Wait until an image scan is complete and findings can be accessed
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: aws-sdk-ecr
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 1. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 1.27.0
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Amazon Web Services
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2020- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2020-04-28 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: aws-sdk-core
         
     | 
| 
         @@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       82 
82 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       83 
83 
     | 
    
         
             
            requirements: []
         
     | 
| 
       84 
84 
     | 
    
         
             
            rubyforge_project: 
         
     | 
| 
       85 
     | 
    
         
            -
            rubygems_version: 2. 
     | 
| 
      
 85 
     | 
    
         
            +
            rubygems_version: 2.7.6.2
         
     | 
| 
       86 
86 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       87 
87 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       88 
88 
     | 
    
         
             
            summary: AWS SDK for Ruby - Amazon ECR
         
     |