aws-sdk-ecr 1.26.0 → 1.31.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 5a23f3ae0fb29ee651bd119f3d18fe88fdcade2a
4
- data.tar.gz: bae013acea9338f0b81c59cf42a8d4a06661da73
2
+ SHA256:
3
+ metadata.gz: 7349a7f8ff8c5b2d475bb85f266ad6254d8def2e675ae183276bc3c7e395b8eb
4
+ data.tar.gz: 54976deec755a744bb975e8f083d242d6050014b30d314a397cf67b63ec4f4d4
5
5
  SHA512:
6
- metadata.gz: 7c36d8ff1ce92ad9dc0043e58a2c2ef8f529d48576fd3d204ceae5f855e4531569430b014f276e31273707a82060986dfdab6179cbf115ae1096c720d00de361
7
- data.tar.gz: efc2f93b79cb3315ad92f9b05b7f146a43bfa32c8690bde4ca4f633fe83dc4ccc90c762e1db76734f21e1b91ba3f0f09e06af1db9da9144ea7340063623f315c
6
+ metadata.gz: 54738777008e8257634560b7268fa2b777e5c8d4c790caad40dad65bd1e76ef7f3bb910f3c2632b8212f095562906475793924f773e79e5565684ac15d9e247e
7
+ data.tar.gz: 07cdde64a6c6e92b2590385dc19441f32ad2233265ab7056467ff36e719b02931f11c3bf7d4822c6895f49b5bc999ddaa8a3ec03a6eb9b2841fd3e28d0d9766b
@@ -46,6 +46,6 @@ require_relative 'aws-sdk-ecr/customizations'
46
46
  # @service
47
47
  module Aws::ECR
48
48
 
49
- GEM_VERSION = '1.26.0'
49
+ GEM_VERSION = '1.31.1'
50
50
 
51
51
  end
@@ -24,6 +24,7 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
24
24
  require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
25
25
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
26
26
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
27
+ require 'aws-sdk-core/plugins/http_checksum.rb'
27
28
  require 'aws-sdk-core/plugins/signature_v4.rb'
28
29
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
29
30
 
@@ -32,11 +33,11 @@ Aws::Plugins::GlobalConfiguration.add_identifier(:ecr)
32
33
  module Aws::ECR
33
34
  # An API client for ECR. To construct a client, you need to configure a `:region` and `:credentials`.
34
35
  #
35
- # client = Aws::ECR::Client.new(
36
- # region: region_name,
37
- # credentials: credentials,
38
- # # ...
39
- # )
36
+ # client = Aws::ECR::Client.new(
37
+ # region: region_name,
38
+ # credentials: credentials,
39
+ # # ...
40
+ # )
40
41
  #
41
42
  # For details on configuring region and credentials see
42
43
  # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
@@ -69,6 +70,7 @@ module Aws::ECR
69
70
  add_plugin(Aws::Plugins::ClientMetricsPlugin)
70
71
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
71
72
  add_plugin(Aws::Plugins::TransferEncoding)
73
+ add_plugin(Aws::Plugins::HttpChecksum)
72
74
  add_plugin(Aws::Plugins::SignatureV4)
73
75
  add_plugin(Aws::Plugins::Protocols::JsonRpc)
74
76
 
@@ -105,7 +107,7 @@ module Aws::ECR
105
107
  # @option options [required, String] :region
106
108
  # The AWS region to connect to. The configured `:region` is
107
109
  # used to determine the service `:endpoint`. When not passed,
108
- # a default `:region` is search for in the following locations:
110
+ # a default `:region` is searched for in the following locations:
109
111
  #
110
112
  # * `Aws.config[:region]`
111
113
  # * `ENV['AWS_REGION']`
@@ -161,7 +163,7 @@ module Aws::ECR
161
163
  # @option options [String] :endpoint
162
164
  # The client endpoint is normally constructed from the `:region`
163
165
  # option. You should only configure an `:endpoint` when connecting
164
- # to test endpoints. This should be avalid HTTP(S) URI.
166
+ # to test or custom endpoints. This should be a valid HTTP(S) URI.
165
167
  #
166
168
  # @option options [Integer] :endpoint_cache_max_entries (1000)
167
169
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -176,7 +178,7 @@ module Aws::ECR
176
178
  # requests fetching endpoints information. Defaults to 60 sec.
177
179
  #
178
180
  # @option options [Boolean] :endpoint_discovery (false)
179
- # When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`.
181
+ # When set to `true`, endpoint discovery will be enabled for operations when available.
180
182
  #
181
183
  # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
182
184
  # The log formatter.
@@ -229,15 +231,19 @@ module Aws::ECR
229
231
  #
230
232
  # @option options [String] :retry_mode ("legacy")
231
233
  # Specifies which retry algorithm to use. Values are:
232
- # * `legacy` - The pre-existing retry behavior. This is default value if
233
- # no retry mode is provided.
234
- # * `standard` - A standardized set of retry rules across the AWS SDKs.
235
- # This includes support for retry quotas, which limit the number of
236
- # unsuccessful retries a client can make.
237
- # * `adaptive` - An experimental retry mode that includes all the
238
- # functionality of `standard` mode along with automatic client side
239
- # throttling. This is a provisional mode that may change behavior
240
- # in the future.
234
+ #
235
+ # * `legacy` - The pre-existing retry behavior. This is default value if
236
+ # no retry mode is provided.
237
+ #
238
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
239
+ # This includes support for retry quotas, which limit the number of
240
+ # unsuccessful retries a client can make.
241
+ #
242
+ # * `adaptive` - An experimental retry mode that includes all the
243
+ # functionality of `standard` mode along with automatic client side
244
+ # throttling. This is a provisional mode that may change behavior
245
+ # in the future.
246
+ #
241
247
  #
242
248
  # @option options [String] :secret_access_key
243
249
  #
@@ -275,8 +281,7 @@ module Aws::ECR
275
281
  #
276
282
  # @option options [Integer] :http_read_timeout (60) The default
277
283
  # 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}.
284
+ # safely be set per-request on the session.
280
285
  #
281
286
  # @option options [Float] :http_idle_timeout (5) The number of
282
287
  # seconds a connection is allowed to sit idle before it is
@@ -288,7 +293,7 @@ module Aws::ECR
288
293
  # request body. This option has no effect unless the request has
289
294
  # "Expect" header set to "100-continue". Defaults to `nil` which
290
295
  # disables this behaviour. This value can safely be set per
291
- # request on the session yielded by {#session_for}.
296
+ # request on the session.
292
297
  #
293
298
  # @option options [Boolean] :http_wire_trace (false) When `true`,
294
299
  # HTTP debug output will be sent to the `:logger`.
@@ -318,15 +323,12 @@ module Aws::ECR
318
323
  # Checks the availability of one or more image layers in a repository.
319
324
  #
320
325
  # When an image is pushed to a repository, each image layer is checked
321
- # to verify if it has been uploaded before. If it is, then the image
322
- # layer is skipped.
323
- #
324
- # When an image is pulled from a repository, each image layer is checked
325
- # once to verify it is available to be pulled.
326
+ # to verify if it has been uploaded before. If it has been uploaded,
327
+ # then the image layer is skipped.
326
328
  #
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.
329
+ # <note markdown="1"> This operation is used by the Amazon ECR proxy and is not generally
330
+ # used by customers for pulling and pushing images. In most cases, you
331
+ # should use the `docker` CLI to pull, tag, and push images.
330
332
  #
331
333
  # </note>
332
334
  #
@@ -452,7 +454,7 @@ module Aws::ECR
452
454
  # resp.failures #=> Array
453
455
  # resp.failures[0].image_id.image_digest #=> String
454
456
  # resp.failures[0].image_id.image_tag #=> String
455
- # resp.failures[0].failure_code #=> String, one of "InvalidImageDigest", "InvalidImageTag", "ImageTagDoesNotMatchDigest", "ImageNotFound", "MissingDigestAndTag"
457
+ # resp.failures[0].failure_code #=> String, one of "InvalidImageDigest", "InvalidImageTag", "ImageTagDoesNotMatchDigest", "ImageNotFound", "MissingDigestAndTag", "ImageReferencedByManifestList"
456
458
  # resp.failures[0].failure_reason #=> String
457
459
  #
458
460
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/BatchDeleteImage AWS API Documentation
@@ -549,10 +551,11 @@ module Aws::ECR
549
551
  # resp.images[0].image_id.image_digest #=> String
550
552
  # resp.images[0].image_id.image_tag #=> String
551
553
  # resp.images[0].image_manifest #=> String
554
+ # resp.images[0].image_manifest_media_type #=> String
552
555
  # resp.failures #=> Array
553
556
  # resp.failures[0].image_id.image_digest #=> String
554
557
  # resp.failures[0].image_id.image_tag #=> String
555
- # resp.failures[0].failure_code #=> String, one of "InvalidImageDigest", "InvalidImageTag", "ImageTagDoesNotMatchDigest", "ImageNotFound", "MissingDigestAndTag"
558
+ # resp.failures[0].failure_code #=> String, one of "InvalidImageDigest", "InvalidImageTag", "ImageTagDoesNotMatchDigest", "ImageNotFound", "MissingDigestAndTag", "ImageReferencedByManifestList"
556
559
  # resp.failures[0].failure_reason #=> String
557
560
  #
558
561
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/BatchGetImage AWS API Documentation
@@ -572,9 +575,9 @@ module Aws::ECR
572
575
  # When an image is pushed, the CompleteLayerUpload API is called once
573
576
  # per each new image layer to verify that the upload has completed.
574
577
  #
575
- # <note markdown="1"> This operation is used by the Amazon ECR proxy, and it is not intended
576
- # for general use by customers for pulling and pushing images. In most
577
- # cases, you should use the `docker` CLI to pull, tag, and push images.
578
+ # <note markdown="1"> This operation is used by the Amazon ECR proxy and is not generally
579
+ # used by customers for pulling and pushing images. In most cases, you
580
+ # should use the `docker` CLI to pull, tag, and push images.
578
581
  #
579
582
  # </note>
580
583
  #
@@ -918,6 +921,8 @@ module Aws::ECR
918
921
  # * {Types::DescribeImageScanFindingsResponse#image_scan_findings #image_scan_findings} => Types::ImageScanFindings
919
922
  # * {Types::DescribeImageScanFindingsResponse#next_token #next_token} => String
920
923
  #
924
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
925
+ #
921
926
  # @example Request syntax with placeholder values
922
927
  #
923
928
  # resp = client.describe_image_scan_findings({
@@ -953,6 +958,11 @@ module Aws::ECR
953
958
  # resp.image_scan_findings.finding_severity_counts["FindingSeverity"] #=> Integer
954
959
  # resp.next_token #=> String
955
960
  #
961
+ #
962
+ # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
963
+ #
964
+ # * image_scan_complete
965
+ #
956
966
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DescribeImageScanFindings AWS API Documentation
957
967
  #
958
968
  # @overload describe_image_scan_findings(params = {})
@@ -1011,6 +1021,8 @@ module Aws::ECR
1011
1021
  # * {Types::DescribeImagesResponse#image_details #image_details} => Array&lt;Types::ImageDetail&gt;
1012
1022
  # * {Types::DescribeImagesResponse#next_token #next_token} => String
1013
1023
  #
1024
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1025
+ #
1014
1026
  # @example Request syntax with placeholder values
1015
1027
  #
1016
1028
  # resp = client.describe_images({
@@ -1099,6 +1111,8 @@ module Aws::ECR
1099
1111
  # * {Types::DescribeRepositoriesResponse#repositories #repositories} => Array&lt;Types::Repository&gt;
1100
1112
  # * {Types::DescribeRepositoriesResponse#next_token #next_token} => String
1101
1113
  #
1114
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1115
+ #
1102
1116
  #
1103
1117
  # @example Example: To describe all repositories in the current account
1104
1118
  #
@@ -1225,11 +1239,11 @@ module Aws::ECR
1225
1239
  # referenced in an image.
1226
1240
  #
1227
1241
  # When an image is pulled, the GetDownloadUrlForLayer API is called once
1228
- # per image layer.
1242
+ # per image layer that is not already cached.
1229
1243
  #
1230
- # <note markdown="1"> This operation is used by the Amazon ECR proxy, and it is not intended
1231
- # for general use by customers for pulling and pushing images. In most
1232
- # cases, you should use the `docker` CLI to pull, tag, and push images.
1244
+ # <note markdown="1"> This operation is used by the Amazon ECR proxy and is not generally
1245
+ # used by customers for pulling and pushing images. In most cases, you
1246
+ # should use the `docker` CLI to pull, tag, and push images.
1233
1247
  #
1234
1248
  # </note>
1235
1249
  #
@@ -1362,6 +1376,8 @@ module Aws::ECR
1362
1376
  # * {Types::GetLifecyclePolicyPreviewResponse#preview_results #preview_results} => Array&lt;Types::LifecyclePolicyPreviewResult&gt;
1363
1377
  # * {Types::GetLifecyclePolicyPreviewResponse#summary #summary} => Types::LifecyclePolicyPreviewSummary
1364
1378
  #
1379
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1380
+ #
1365
1381
  # @example Request syntax with placeholder values
1366
1382
  #
1367
1383
  # resp = client.get_lifecycle_policy_preview({
@@ -1396,6 +1412,11 @@ module Aws::ECR
1396
1412
  # resp.preview_results[0].applied_rule_priority #=> Integer
1397
1413
  # resp.summary.expiring_image_total_count #=> Integer
1398
1414
  #
1415
+ #
1416
+ # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
1417
+ #
1418
+ # * lifecycle_policy_preview_complete
1419
+ #
1399
1420
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/GetLifecyclePolicyPreview AWS API Documentation
1400
1421
  #
1401
1422
  # @overload get_lifecycle_policy_preview(params = {})
@@ -1462,13 +1483,13 @@ module Aws::ECR
1462
1483
  # Notifies Amazon ECR that you intend to upload an image layer.
1463
1484
  #
1464
1485
  # When an image is pushed, the InitiateLayerUpload API is called once
1465
- # per image layer that has not already been uploaded. Whether an image
1466
- # layer has been uploaded before is determined by the
1486
+ # per image layer that has not already been uploaded. Whether or not an
1487
+ # image layer has been uploaded is determined by the
1467
1488
  # BatchCheckLayerAvailability API action.
1468
1489
  #
1469
- # <note markdown="1"> This operation is used by the Amazon ECR proxy, and it is not intended
1470
- # for general use by customers for pulling and pushing images. In most
1471
- # cases, you should use the `docker` CLI to pull, tag, and push images.
1490
+ # <note markdown="1"> This operation is used by the Amazon ECR proxy and is not generally
1491
+ # used by customers for pulling and pushing images. In most cases, you
1492
+ # should use the `docker` CLI to pull, tag, and push images.
1472
1493
  #
1473
1494
  # </note>
1474
1495
  #
@@ -1555,6 +1576,8 @@ module Aws::ECR
1555
1576
  # * {Types::ListImagesResponse#image_ids #image_ids} => Array&lt;Types::ImageIdentifier&gt;
1556
1577
  # * {Types::ListImagesResponse#next_token #next_token} => String
1557
1578
  #
1579
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1580
+ #
1558
1581
  #
1559
1582
  # @example Example: To list all images in a repository
1560
1583
  #
@@ -1639,11 +1662,11 @@ module Aws::ECR
1639
1662
  #
1640
1663
  # When an image is pushed and all new image layers have been uploaded,
1641
1664
  # the PutImage API is called once to create or update the image manifest
1642
- # and tags associated with the image.
1665
+ # and the tags associated with the image.
1643
1666
  #
1644
- # <note markdown="1"> This operation is used by the Amazon ECR proxy, and it is not intended
1645
- # for general use by customers for pulling and pushing images. In most
1646
- # cases, you should use the `docker` CLI to pull, tag, and push images.
1667
+ # <note markdown="1"> This operation is used by the Amazon ECR proxy and is not generally
1668
+ # used by customers for pulling and pushing images. In most cases, you
1669
+ # should use the `docker` CLI to pull, tag, and push images.
1647
1670
  #
1648
1671
  # </note>
1649
1672
  #
@@ -1658,6 +1681,11 @@ module Aws::ECR
1658
1681
  # @option params [required, String] :image_manifest
1659
1682
  # The image manifest corresponding to the image to be uploaded.
1660
1683
  #
1684
+ # @option params [String] :image_manifest_media_type
1685
+ # The media type of the image manifest. If you push an image manifest
1686
+ # that does not contain the `mediaType` field, you must specify the
1687
+ # `imageManifestMediaType` in the request.
1688
+ #
1661
1689
  # @option params [String] :image_tag
1662
1690
  # The tag to associate with the image. This parameter is required for
1663
1691
  # images that use the Docker Image Manifest V2 Schema 2 or OCI formats.
@@ -1672,6 +1700,7 @@ module Aws::ECR
1672
1700
  # registry_id: "RegistryId",
1673
1701
  # repository_name: "RepositoryName", # required
1674
1702
  # image_manifest: "ImageManifest", # required
1703
+ # image_manifest_media_type: "MediaType",
1675
1704
  # image_tag: "ImageTag",
1676
1705
  # })
1677
1706
  #
@@ -1682,6 +1711,7 @@ module Aws::ECR
1682
1711
  # resp.image.image_id.image_digest #=> String
1683
1712
  # resp.image.image_id.image_tag #=> String
1684
1713
  # resp.image.image_manifest #=> String
1714
+ # resp.image.image_manifest_media_type #=> String
1685
1715
  #
1686
1716
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/PutImage AWS API Documentation
1687
1717
  #
@@ -1845,7 +1875,7 @@ module Aws::ECR
1845
1875
  #
1846
1876
  #
1847
1877
  #
1848
- # [1]: https://docs.aws.amazon.com/AmazonECR/latest/userguide/RepositoryPolicies.html
1878
+ # [1]: https://docs.aws.amazon.com/AmazonECR/latest/userguide/repository-policies.html
1849
1879
  #
1850
1880
  # @option params [String] :registry_id
1851
1881
  # The AWS account ID associated with the registry that contains the
@@ -1857,12 +1887,12 @@ module Aws::ECR
1857
1887
  #
1858
1888
  # @option params [required, String] :policy_text
1859
1889
  # The JSON repository policy text to apply to the repository. For more
1860
- # information, see [Amazon ECR Repository Policy Examples][1] in the
1861
- # *Amazon Elastic Container Registry User Guide*.
1890
+ # information, see [Amazon ECR Repository Policies][1] in the *Amazon
1891
+ # Elastic Container Registry User Guide*.
1862
1892
  #
1863
1893
  #
1864
1894
  #
1865
- # [1]: https://docs.aws.amazon.com/AmazonECR/latest/userguide/RepositoryPolicyExamples.html
1895
+ # [1]: https://docs.aws.amazon.com/AmazonECR/latest/userguide/repository-policy-examples.html
1866
1896
  #
1867
1897
  # @option params [Boolean] :force
1868
1898
  # If the policy you are attempting to set on a repository policy would
@@ -2075,9 +2105,9 @@ module Aws::ECR
2075
2105
  # about 20MB). The UploadLayerPart API is called once per each new image
2076
2106
  # layer part.
2077
2107
  #
2078
- # <note markdown="1"> This operation is used by the Amazon ECR proxy, and it is not intended
2079
- # for general use by customers for pulling and pushing images. In most
2080
- # cases, you should use the `docker` CLI to pull, tag, and push images.
2108
+ # <note markdown="1"> This operation is used by the Amazon ECR proxy and is not generally
2109
+ # used by customers for pulling and pushing images. In most cases, you
2110
+ # should use the `docker` CLI to pull, tag, and push images.
2081
2111
  #
2082
2112
  # </note>
2083
2113
  #
@@ -2094,10 +2124,12 @@ module Aws::ECR
2094
2124
  # associate with the layer part upload.
2095
2125
  #
2096
2126
  # @option params [required, Integer] :part_first_byte
2097
- # The integer value of the first byte of the layer part.
2127
+ # The position of the first byte of the layer part witin the overall
2128
+ # image layer.
2098
2129
  #
2099
2130
  # @option params [required, Integer] :part_last_byte
2100
- # The integer value of the last byte of the layer part.
2131
+ # The position of the last byte of the layer part within the overall
2132
+ # image layer.
2101
2133
  #
2102
2134
  # @option params [required, String, IO] :layer_part_blob
2103
2135
  # The base64-encoded layer part payload.
@@ -2149,7 +2181,7 @@ module Aws::ECR
2149
2181
  params: params,
2150
2182
  config: config)
2151
2183
  context[:gem_name] = 'aws-sdk-ecr'
2152
- context[:gem_version] = '1.26.0'
2184
+ context[:gem_version] = '1.31.1'
2153
2185
  Seahorse::Client::Request.new(handlers, context)
2154
2186
  end
2155
2187
 
@@ -2215,10 +2247,10 @@ module Aws::ECR
2215
2247
  # The following table lists the valid waiter names, the operations they call,
2216
2248
  # and the default `:delay` and `:max_attempts` values.
2217
2249
  #
2218
- # | waiter_name | params | :delay | :max_attempts |
2219
- # | --------------------------------- | ------------------------------- | -------- | ------------- |
2220
- # | image_scan_complete | {#describe_image_scan_findings} | 5 | 60 |
2221
- # | lifecycle_policy_preview_complete | {#get_lifecycle_policy_preview} | 5 | 20 |
2250
+ # | waiter_name | params | :delay | :max_attempts |
2251
+ # | --------------------------------- | ------------------------------------- | -------- | ------------- |
2252
+ # | image_scan_complete | {Client#describe_image_scan_findings} | 5 | 60 |
2253
+ # | lifecycle_policy_preview_complete | {Client#get_lifecycle_policy_preview} | 5 | 20 |
2222
2254
  #
2223
2255
  # @raise [Errors::FailureStateError] Raised when the waiter terminates
2224
2256
  # 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')
@@ -381,6 +383,7 @@ module Aws::ECR
381
383
  Image.add_member(:repository_name, Shapes::ShapeRef.new(shape: RepositoryName, location_name: "repositoryName"))
382
384
  Image.add_member(:image_id, Shapes::ShapeRef.new(shape: ImageIdentifier, location_name: "imageId"))
383
385
  Image.add_member(:image_manifest, Shapes::ShapeRef.new(shape: ImageManifest, location_name: "imageManifest"))
386
+ Image.add_member(:image_manifest_media_type, Shapes::ShapeRef.new(shape: MediaType, location_name: "imageManifestMediaType"))
384
387
  Image.struct_class = Types::Image
385
388
 
386
389
  ImageAlreadyExistsException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
@@ -556,6 +559,7 @@ module Aws::ECR
556
559
  PutImageRequest.add_member(:registry_id, Shapes::ShapeRef.new(shape: RegistryId, location_name: "registryId"))
557
560
  PutImageRequest.add_member(:repository_name, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location_name: "repositoryName"))
558
561
  PutImageRequest.add_member(:image_manifest, Shapes::ShapeRef.new(shape: ImageManifest, required: true, location_name: "imageManifest"))
562
+ PutImageRequest.add_member(:image_manifest_media_type, Shapes::ShapeRef.new(shape: MediaType, location_name: "imageManifestMediaType"))
559
563
  PutImageRequest.add_member(:image_tag, Shapes::ShapeRef.new(shape: ImageTag, location_name: "imageTag"))
560
564
  PutImageRequest.struct_class = Types::PutImageRequest
561
565
 
@@ -592,6 +596,9 @@ module Aws::ECR
592
596
  PutLifecyclePolicyResponse.add_member(:lifecycle_policy_text, Shapes::ShapeRef.new(shape: LifecyclePolicyText, location_name: "lifecyclePolicyText"))
593
597
  PutLifecyclePolicyResponse.struct_class = Types::PutLifecyclePolicyResponse
594
598
 
599
+ ReferencedImagesNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
600
+ ReferencedImagesNotFoundException.struct_class = Types::ReferencedImagesNotFoundException
601
+
595
602
  Repository.add_member(:repository_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "repositoryArn"))
596
603
  Repository.add_member(:registry_id, Shapes::ShapeRef.new(shape: RegistryId, location_name: "registryId"))
597
604
  Repository.add_member(:repository_name, Shapes::ShapeRef.new(shape: RepositoryName, location_name: "repositoryName"))
@@ -673,6 +680,9 @@ module Aws::ECR
673
680
  TooManyTagsException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
674
681
  TooManyTagsException.struct_class = Types::TooManyTagsException
675
682
 
683
+ UnsupportedImageTypeException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
684
+ UnsupportedImageTypeException.struct_class = Types::UnsupportedImageTypeException
685
+
676
686
  UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "resourceArn"))
677
687
  UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "tagKeys"))
678
688
  UntagResourceRequest.struct_class = Types::UntagResourceRequest
@@ -984,6 +994,7 @@ module Aws::ECR
984
994
  o.errors << Shapes::ShapeRef.new(shape: RepositoryNotFoundException)
985
995
  o.errors << Shapes::ShapeRef.new(shape: ImageAlreadyExistsException)
986
996
  o.errors << Shapes::ShapeRef.new(shape: LayersNotFoundException)
997
+ o.errors << Shapes::ShapeRef.new(shape: ReferencedImagesNotFoundException)
987
998
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
988
999
  o.errors << Shapes::ShapeRef.new(shape: ImageTagAlreadyExistsException)
989
1000
  end)
@@ -1040,6 +1051,8 @@ module Aws::ECR
1040
1051
  o.output = Shapes::ShapeRef.new(shape: StartImageScanResponse)
1041
1052
  o.errors << Shapes::ShapeRef.new(shape: ServerException)
1042
1053
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
1054
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedImageTypeException)
1055
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
1043
1056
  o.errors << Shapes::ShapeRef.new(shape: RepositoryNotFoundException)
1044
1057
  o.errors << Shapes::ShapeRef.new(shape: ImageNotFoundException)
1045
1058
  end)
@@ -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
@@ -6,13 +6,7 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::ECR
9
- # This class provides a resource oriented interface for ECR.
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 ({})
@@ -1131,13 +1131,18 @@ module Aws::ECR
1131
1131
  # The image manifest associated with the image.
1132
1132
  # @return [String]
1133
1133
  #
1134
+ # @!attribute [rw] image_manifest_media_type
1135
+ # The media type associated with the image manifest.
1136
+ # @return [String]
1137
+ #
1134
1138
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/Image AWS API Documentation
1135
1139
  #
1136
1140
  class Image < Struct.new(
1137
1141
  :registry_id,
1138
1142
  :repository_name,
1139
1143
  :image_id,
1140
- :image_manifest)
1144
+ :image_manifest,
1145
+ :image_manifest_media_type)
1141
1146
  include Aws::Structure
1142
1147
  end
1143
1148
 
@@ -1178,6 +1183,9 @@ module Aws::ECR
1178
1183
  # @!attribute [rw] image_size_in_bytes
1179
1184
  # The size, in bytes, of the image in the repository.
1180
1185
  #
1186
+ # If the image is a manifest list, this will be the max size of all
1187
+ # manifests in the list.
1188
+ #
1181
1189
  # <note markdown="1"> Beginning with Docker version 1.9, the Docker client compresses
1182
1190
  # image layers before pushing them to a V2 Docker registry. The output
1183
1191
  # of the `docker images` command shows the uncompressed image size, so
@@ -1763,13 +1771,12 @@ module Aws::ECR
1763
1771
  end
1764
1772
 
1765
1773
  # The operation did not succeed because it would have exceeded a service
1766
- # limit for your account. For more information, see [Amazon ECR Default
1767
- # Service Limits][1] in the Amazon Elastic Container Registry User
1768
- # Guide.
1774
+ # limit for your account. For more information, see [Amazon ECR Service
1775
+ # Quotas][1] in the Amazon Elastic Container Registry User Guide.
1769
1776
  #
1770
1777
  #
1771
1778
  #
1772
- # [1]: https://docs.aws.amazon.com/AmazonECR/latest/userguide/service_limits.html
1779
+ # [1]: https://docs.aws.amazon.com/AmazonECR/latest/userguide/service-quotas.html
1773
1780
  #
1774
1781
  # @!attribute [rw] message
1775
1782
  # The error message associated with the exception.
@@ -1924,6 +1931,7 @@ module Aws::ECR
1924
1931
  # registry_id: "RegistryId",
1925
1932
  # repository_name: "RepositoryName", # required
1926
1933
  # image_manifest: "ImageManifest", # required
1934
+ # image_manifest_media_type: "MediaType",
1927
1935
  # image_tag: "ImageTag",
1928
1936
  # }
1929
1937
  #
@@ -1941,6 +1949,12 @@ module Aws::ECR
1941
1949
  # The image manifest corresponding to the image to be uploaded.
1942
1950
  # @return [String]
1943
1951
  #
1952
+ # @!attribute [rw] image_manifest_media_type
1953
+ # The media type of the image manifest. If you push an image manifest
1954
+ # that does not contain the `mediaType` field, you must specify the
1955
+ # `imageManifestMediaType` in the request.
1956
+ # @return [String]
1957
+ #
1944
1958
  # @!attribute [rw] image_tag
1945
1959
  # The tag to associate with the image. This parameter is required for
1946
1960
  # images that use the Docker Image Manifest V2 Schema 2 or OCI
@@ -1953,6 +1967,7 @@ module Aws::ECR
1953
1967
  :registry_id,
1954
1968
  :repository_name,
1955
1969
  :image_manifest,
1970
+ :image_manifest_media_type,
1956
1971
  :image_tag)
1957
1972
  include Aws::Structure
1958
1973
  end
@@ -2137,6 +2152,18 @@ module Aws::ECR
2137
2152
  include Aws::Structure
2138
2153
  end
2139
2154
 
2155
+ # The manifest list is referencing an image that does not exist.
2156
+ #
2157
+ # @!attribute [rw] message
2158
+ # @return [String]
2159
+ #
2160
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/ReferencedImagesNotFoundException AWS API Documentation
2161
+ #
2162
+ class ReferencedImagesNotFoundException < Struct.new(
2163
+ :message)
2164
+ include Aws::Structure
2165
+ end
2166
+
2140
2167
  # An object representing a repository.
2141
2168
  #
2142
2169
  # @!attribute [rw] repository_arn
@@ -2292,12 +2319,12 @@ module Aws::ECR
2292
2319
  #
2293
2320
  # @!attribute [rw] policy_text
2294
2321
  # The JSON repository policy text to apply to the repository. For more
2295
- # information, see [Amazon ECR Repository Policy Examples][1] in the
2296
- # *Amazon Elastic Container Registry User Guide*.
2322
+ # information, see [Amazon ECR Repository Policies][1] in the *Amazon
2323
+ # Elastic Container Registry User Guide*.
2297
2324
  #
2298
2325
  #
2299
2326
  #
2300
- # [1]: https://docs.aws.amazon.com/AmazonECR/latest/userguide/RepositoryPolicyExamples.html
2327
+ # [1]: https://docs.aws.amazon.com/AmazonECR/latest/userguide/repository-policy-examples.html
2301
2328
  # @return [String]
2302
2329
  #
2303
2330
  # @!attribute [rw] force
@@ -2542,6 +2569,18 @@ module Aws::ECR
2542
2569
  include Aws::Structure
2543
2570
  end
2544
2571
 
2572
+ # The image is of a type that cannot be scanned.
2573
+ #
2574
+ # @!attribute [rw] message
2575
+ # @return [String]
2576
+ #
2577
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/UnsupportedImageTypeException AWS API Documentation
2578
+ #
2579
+ class UnsupportedImageTypeException < Struct.new(
2580
+ :message)
2581
+ include Aws::Structure
2582
+ end
2583
+
2545
2584
  # @note When making an API call, you may pass UntagResourceRequest
2546
2585
  # data as a hash:
2547
2586
  #
@@ -2600,11 +2639,13 @@ module Aws::ECR
2600
2639
  # @return [String]
2601
2640
  #
2602
2641
  # @!attribute [rw] part_first_byte
2603
- # The integer value of the first byte of the layer part.
2642
+ # The position of the first byte of the layer part witin the overall
2643
+ # image layer.
2604
2644
  # @return [Integer]
2605
2645
  #
2606
2646
  # @!attribute [rw] part_last_byte
2607
- # The integer value of the last byte of the layer part.
2647
+ # The position of the last byte of the layer part within the overall
2648
+ # image layer.
2608
2649
  # @return [Integer]
2609
2650
  #
2610
2651
  # @!attribute [rw] layer_part_blob
@@ -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.26.0
4
+ version: 1.31.1
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-03-09 00:00:00.000000000 Z
11
+ date: 2020-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.71.0
22
+ version: 3.99.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.71.0
32
+ version: 3.99.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -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.5.2.3
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