aws-sdk-ecr 1.35.0 → 1.40.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2b1a6d2d514c23e566ea671e6a13e63cfb75a410e6e0f48be3f731538fe6a901
4
- data.tar.gz: 0fb93618f10c5680713f990102c88f9370daeaeb976f936a0b929c2b1e221d56
3
+ metadata.gz: eb97dcda98103d175626dc847cca29119f043fb163bd9beb34c463036b5da02e
4
+ data.tar.gz: 7691cbce097ba56b93a192857ecb58fefdaee00c473810b5228e4aef7353b734
5
5
  SHA512:
6
- metadata.gz: 0dbc4e6f7862316dd57b011a87ddf8c6aff977192cf4de1d18e0f8be00091866a49a20c16fe23609ffc9e94e7dc9470a5ec646241ef004bac13131cb47d49252
7
- data.tar.gz: 4dac2b35c18ecc5460b2e97333483096e6be64320befd3d3a6e9bf1bf30a0bcc05a7c8e32cfdfb267bc376c98a9b2dd08643313753291c73e884062912fb23f2
6
+ metadata.gz: 49fc38ee1b788baf52869be88c54b1d7d9ca1f7664ede2764708249d5f9780d13ed48added6553ac0e6cd51be2bff4edbb6d71a3c6c972de15d9de5cfa8575b7
7
+ data.tar.gz: 0cbccc86fba02f13e7bac550d12cc503fc2404f9fc401910d4b34cf0d02e6202c41df0528b15c246c2e78f43919acb2023c0ca852ac69e5ce7e567cce11565e9
@@ -7,6 +7,7 @@
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
10
+
10
11
  require 'aws-sdk-core'
11
12
  require 'aws-sigv4'
12
13
 
@@ -45,9 +46,9 @@ require_relative 'aws-sdk-ecr/customizations'
45
46
  #
46
47
  # See {Errors} for more information.
47
48
  #
48
- # @service
49
+ # @!group service
49
50
  module Aws::ECR
50
51
 
51
- GEM_VERSION = '1.35.0'
52
+ GEM_VERSION = '1.40.0'
52
53
 
53
54
  end
@@ -85,13 +85,28 @@ module Aws::ECR
85
85
  # * `Aws::Credentials` - Used for configuring static, non-refreshing
86
86
  # credentials.
87
87
  #
88
+ # * `Aws::SharedCredentials` - Used for loading static credentials from a
89
+ # shared file, such as `~/.aws/config`.
90
+ #
91
+ # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
92
+ #
93
+ # * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
94
+ # assume a role after providing credentials via the web.
95
+ #
96
+ # * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
97
+ # access token generated from `aws login`.
98
+ #
99
+ # * `Aws::ProcessCredentials` - Used for loading credentials from a
100
+ # process that outputs to stdout.
101
+ #
88
102
  # * `Aws::InstanceProfileCredentials` - Used for loading credentials
89
103
  # from an EC2 IMDS on an EC2 instance.
90
104
  #
91
- # * `Aws::SharedCredentials` - Used for loading credentials from a
92
- # shared file, such as `~/.aws/config`.
105
+ # * `Aws::ECSCredentials` - Used for loading credentials from
106
+ # instances running in ECS.
93
107
  #
94
- # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
108
+ # * `Aws::CognitoIdentityCredentials` - Used for loading credentials
109
+ # from the Cognito Identity service.
95
110
  #
96
111
  # When `:credentials` are not configured directly, the following
97
112
  # locations will be searched for credentials:
@@ -101,10 +116,10 @@ module Aws::ECR
101
116
  # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
102
117
  # * `~/.aws/credentials`
103
118
  # * `~/.aws/config`
104
- # * EC2 IMDS instance profile - When used by default, the timeouts are
105
- # very aggressive. Construct and pass an instance of
106
- # `Aws::InstanceProfileCredentails` to enable retries and extended
107
- # timeouts.
119
+ # * EC2/ECS IMDS instance profile - When used by default, the timeouts
120
+ # are very aggressive. Construct and pass an instance of
121
+ # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
122
+ # enable retries and extended timeouts.
108
123
  #
109
124
  # @option options [required, String] :region
110
125
  # The AWS region to connect to. The configured `:region` is
@@ -771,6 +786,27 @@ module Aws::ECR
771
786
  req.send_request(options)
772
787
  end
773
788
 
789
+ # Deletes the registry permissions policy.
790
+ #
791
+ # @return [Types::DeleteRegistryPolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
792
+ #
793
+ # * {Types::DeleteRegistryPolicyResponse#registry_id #registry_id} => String
794
+ # * {Types::DeleteRegistryPolicyResponse#policy_text #policy_text} => String
795
+ #
796
+ # @example Response structure
797
+ #
798
+ # resp.registry_id #=> String
799
+ # resp.policy_text #=> String
800
+ #
801
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DeleteRegistryPolicy AWS API Documentation
802
+ #
803
+ # @overload delete_registry_policy(params = {})
804
+ # @param [Hash] params ({})
805
+ def delete_registry_policy(params = {}, options = {})
806
+ req = build_request(:delete_registry_policy, params)
807
+ req.send_request(options)
808
+ end
809
+
774
810
  # Deletes a repository. If the repository contains images, you must
775
811
  # either delete all images in the repository or use the `force` option
776
812
  # to delete the repository.
@@ -1071,6 +1107,8 @@ module Aws::ECR
1071
1107
  # resp.image_details[0].image_scan_findings_summary.vulnerability_source_updated_at #=> Time
1072
1108
  # resp.image_details[0].image_scan_findings_summary.finding_severity_counts #=> Hash
1073
1109
  # resp.image_details[0].image_scan_findings_summary.finding_severity_counts["FindingSeverity"] #=> Integer
1110
+ # resp.image_details[0].image_manifest_media_type #=> String
1111
+ # resp.image_details[0].artifact_media_type #=> String
1074
1112
  # resp.next_token #=> String
1075
1113
  #
1076
1114
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DescribeImages AWS API Documentation
@@ -1082,6 +1120,32 @@ module Aws::ECR
1082
1120
  req.send_request(options)
1083
1121
  end
1084
1122
 
1123
+ # Describes the settings for a registry. The replication configuration
1124
+ # for a repository can be created or updated with the
1125
+ # PutReplicationConfiguration API action.
1126
+ #
1127
+ # @return [Types::DescribeRegistryResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1128
+ #
1129
+ # * {Types::DescribeRegistryResponse#registry_id #registry_id} => String
1130
+ # * {Types::DescribeRegistryResponse#replication_configuration #replication_configuration} => Types::ReplicationConfiguration
1131
+ #
1132
+ # @example Response structure
1133
+ #
1134
+ # resp.registry_id #=> String
1135
+ # resp.replication_configuration.rules #=> Array
1136
+ # resp.replication_configuration.rules[0].destinations #=> Array
1137
+ # resp.replication_configuration.rules[0].destinations[0].region #=> String
1138
+ # resp.replication_configuration.rules[0].destinations[0].registry_id #=> String
1139
+ #
1140
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DescribeRegistry AWS API Documentation
1141
+ #
1142
+ # @overload describe_registry(params = {})
1143
+ # @param [Hash] params ({})
1144
+ def describe_registry(params = {}, options = {})
1145
+ req = build_request(:describe_registry, params)
1146
+ req.send_request(options)
1147
+ end
1148
+
1085
1149
  # Describes image repositories in a registry.
1086
1150
  #
1087
1151
  # @option params [String] :registry_id
@@ -1442,6 +1506,27 @@ module Aws::ECR
1442
1506
  req.send_request(options)
1443
1507
  end
1444
1508
 
1509
+ # Retrieves the permissions policy for a registry.
1510
+ #
1511
+ # @return [Types::GetRegistryPolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1512
+ #
1513
+ # * {Types::GetRegistryPolicyResponse#registry_id #registry_id} => String
1514
+ # * {Types::GetRegistryPolicyResponse#policy_text #policy_text} => String
1515
+ #
1516
+ # @example Response structure
1517
+ #
1518
+ # resp.registry_id #=> String
1519
+ # resp.policy_text #=> String
1520
+ #
1521
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/GetRegistryPolicy AWS API Documentation
1522
+ #
1523
+ # @overload get_registry_policy(params = {})
1524
+ # @param [Hash] params ({})
1525
+ def get_registry_policy(params = {}, options = {})
1526
+ req = build_request(:get_registry_policy, params)
1527
+ req.send_request(options)
1528
+ end
1529
+
1445
1530
  # Retrieves the repository policy for the specified repository.
1446
1531
  #
1447
1532
  # @option params [String] :registry_id
@@ -1890,6 +1975,111 @@ module Aws::ECR
1890
1975
  req.send_request(options)
1891
1976
  end
1892
1977
 
1978
+ # Creates or updates the permissions policy for your registry.
1979
+ #
1980
+ # A registry policy is used to specify permissions for another AWS
1981
+ # account and is used when configuring cross-account replication. For
1982
+ # more information, see [Registry permissions][1] in the *Amazon Elastic
1983
+ # Container Registry User Guide*.
1984
+ #
1985
+ #
1986
+ #
1987
+ # [1]: https://docs.aws.amazon.com/AmazonECR/latest/userguide/registry-permissions.html
1988
+ #
1989
+ # @option params [required, String] :policy_text
1990
+ # The JSON policy text to apply to your registry. The policy text
1991
+ # follows the same format as IAM policy text. For more information, see
1992
+ # [Registry permissions][1] in the *Amazon Elastic Container Registry
1993
+ # User Guide*.
1994
+ #
1995
+ #
1996
+ #
1997
+ # [1]: https://docs.aws.amazon.com/AmazonECR/latest/userguide/registry-permissions.html
1998
+ #
1999
+ # @return [Types::PutRegistryPolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2000
+ #
2001
+ # * {Types::PutRegistryPolicyResponse#registry_id #registry_id} => String
2002
+ # * {Types::PutRegistryPolicyResponse#policy_text #policy_text} => String
2003
+ #
2004
+ # @example Request syntax with placeholder values
2005
+ #
2006
+ # resp = client.put_registry_policy({
2007
+ # policy_text: "RegistryPolicyText", # required
2008
+ # })
2009
+ #
2010
+ # @example Response structure
2011
+ #
2012
+ # resp.registry_id #=> String
2013
+ # resp.policy_text #=> String
2014
+ #
2015
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/PutRegistryPolicy AWS API Documentation
2016
+ #
2017
+ # @overload put_registry_policy(params = {})
2018
+ # @param [Hash] params ({})
2019
+ def put_registry_policy(params = {}, options = {})
2020
+ req = build_request(:put_registry_policy, params)
2021
+ req.send_request(options)
2022
+ end
2023
+
2024
+ # Creates or updates the replication configuration for a registry. The
2025
+ # existing replication configuration for a repository can be retrieved
2026
+ # with the DescribeRegistry API action. The first time the
2027
+ # PutReplicationConfiguration API is called, a service-linked IAM role
2028
+ # is created in your account for the replication process. For more
2029
+ # information, see [Using Service-Linked Roles for Amazon ECR][1] in the
2030
+ # *Amazon Elastic Container Registry User Guide*.
2031
+ #
2032
+ # <note markdown="1"> When configuring cross-account replication, the destination account
2033
+ # must grant the source account permission to replicate. This permission
2034
+ # is controlled using a registry permissions policy. For more
2035
+ # information, see PutRegistryPolicy.
2036
+ #
2037
+ # </note>
2038
+ #
2039
+ #
2040
+ #
2041
+ # [1]: https://docs.aws.amazon.com/AmazonECR/latest/userguide/using-service-linked-roles.html
2042
+ #
2043
+ # @option params [required, Types::ReplicationConfiguration] :replication_configuration
2044
+ # An object representing the replication configuration for a registry.
2045
+ #
2046
+ # @return [Types::PutReplicationConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2047
+ #
2048
+ # * {Types::PutReplicationConfigurationResponse#replication_configuration #replication_configuration} => Types::ReplicationConfiguration
2049
+ #
2050
+ # @example Request syntax with placeholder values
2051
+ #
2052
+ # resp = client.put_replication_configuration({
2053
+ # replication_configuration: { # required
2054
+ # rules: [ # required
2055
+ # {
2056
+ # destinations: [ # required
2057
+ # {
2058
+ # region: "Region", # required
2059
+ # registry_id: "RegistryId", # required
2060
+ # },
2061
+ # ],
2062
+ # },
2063
+ # ],
2064
+ # },
2065
+ # })
2066
+ #
2067
+ # @example Response structure
2068
+ #
2069
+ # resp.replication_configuration.rules #=> Array
2070
+ # resp.replication_configuration.rules[0].destinations #=> Array
2071
+ # resp.replication_configuration.rules[0].destinations[0].region #=> String
2072
+ # resp.replication_configuration.rules[0].destinations[0].registry_id #=> String
2073
+ #
2074
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/PutReplicationConfiguration AWS API Documentation
2075
+ #
2076
+ # @overload put_replication_configuration(params = {})
2077
+ # @param [Hash] params ({})
2078
+ def put_replication_configuration(params = {}, options = {})
2079
+ req = build_request(:put_replication_configuration, params)
2080
+ req.send_request(options)
2081
+ end
2082
+
1893
2083
  # Applies a repository policy to the specified repository to control
1894
2084
  # access permissions. For more information, see [Amazon ECR Repository
1895
2085
  # Policies][1] in the *Amazon Elastic Container Registry User Guide*.
@@ -2202,7 +2392,7 @@ module Aws::ECR
2202
2392
  params: params,
2203
2393
  config: config)
2204
2394
  context[:gem_name] = 'aws-sdk-ecr'
2205
- context[:gem_version] = '1.35.0'
2395
+ context[:gem_version] = '1.40.0'
2206
2396
  Seahorse::Client::Request.new(handlers, context)
2207
2397
  end
2208
2398
 
@@ -36,6 +36,8 @@ module Aws::ECR
36
36
  CreationTimestamp = Shapes::TimestampShape.new(name: 'CreationTimestamp')
37
37
  DeleteLifecyclePolicyRequest = Shapes::StructureShape.new(name: 'DeleteLifecyclePolicyRequest')
38
38
  DeleteLifecyclePolicyResponse = Shapes::StructureShape.new(name: 'DeleteLifecyclePolicyResponse')
39
+ DeleteRegistryPolicyRequest = Shapes::StructureShape.new(name: 'DeleteRegistryPolicyRequest')
40
+ DeleteRegistryPolicyResponse = Shapes::StructureShape.new(name: 'DeleteRegistryPolicyResponse')
39
41
  DeleteRepositoryPolicyRequest = Shapes::StructureShape.new(name: 'DeleteRepositoryPolicyRequest')
40
42
  DeleteRepositoryPolicyResponse = Shapes::StructureShape.new(name: 'DeleteRepositoryPolicyResponse')
41
43
  DeleteRepositoryRequest = Shapes::StructureShape.new(name: 'DeleteRepositoryRequest')
@@ -45,6 +47,8 @@ module Aws::ECR
45
47
  DescribeImagesFilter = Shapes::StructureShape.new(name: 'DescribeImagesFilter')
46
48
  DescribeImagesRequest = Shapes::StructureShape.new(name: 'DescribeImagesRequest')
47
49
  DescribeImagesResponse = Shapes::StructureShape.new(name: 'DescribeImagesResponse')
50
+ DescribeRegistryRequest = Shapes::StructureShape.new(name: 'DescribeRegistryRequest')
51
+ DescribeRegistryResponse = Shapes::StructureShape.new(name: 'DescribeRegistryResponse')
48
52
  DescribeRepositoriesRequest = Shapes::StructureShape.new(name: 'DescribeRepositoriesRequest')
49
53
  DescribeRepositoriesResponse = Shapes::StructureShape.new(name: 'DescribeRepositoriesResponse')
50
54
  EmptyUploadException = Shapes::StructureShape.new(name: 'EmptyUploadException')
@@ -67,6 +71,8 @@ module Aws::ECR
67
71
  GetLifecyclePolicyPreviewResponse = Shapes::StructureShape.new(name: 'GetLifecyclePolicyPreviewResponse')
68
72
  GetLifecyclePolicyRequest = Shapes::StructureShape.new(name: 'GetLifecyclePolicyRequest')
69
73
  GetLifecyclePolicyResponse = Shapes::StructureShape.new(name: 'GetLifecyclePolicyResponse')
74
+ GetRegistryPolicyRequest = Shapes::StructureShape.new(name: 'GetRegistryPolicyRequest')
75
+ GetRegistryPolicyResponse = Shapes::StructureShape.new(name: 'GetRegistryPolicyResponse')
70
76
  GetRepositoryPolicyRequest = Shapes::StructureShape.new(name: 'GetRepositoryPolicyRequest')
71
77
  GetRepositoryPolicyResponse = Shapes::StructureShape.new(name: 'GetRepositoryPolicyResponse')
72
78
  Image = Shapes::StructureShape.new(name: 'Image')
@@ -154,8 +160,20 @@ module Aws::ECR
154
160
  PutImageTagMutabilityResponse = Shapes::StructureShape.new(name: 'PutImageTagMutabilityResponse')
155
161
  PutLifecyclePolicyRequest = Shapes::StructureShape.new(name: 'PutLifecyclePolicyRequest')
156
162
  PutLifecyclePolicyResponse = Shapes::StructureShape.new(name: 'PutLifecyclePolicyResponse')
163
+ PutRegistryPolicyRequest = Shapes::StructureShape.new(name: 'PutRegistryPolicyRequest')
164
+ PutRegistryPolicyResponse = Shapes::StructureShape.new(name: 'PutRegistryPolicyResponse')
165
+ PutReplicationConfigurationRequest = Shapes::StructureShape.new(name: 'PutReplicationConfigurationRequest')
166
+ PutReplicationConfigurationResponse = Shapes::StructureShape.new(name: 'PutReplicationConfigurationResponse')
157
167
  ReferencedImagesNotFoundException = Shapes::StructureShape.new(name: 'ReferencedImagesNotFoundException')
168
+ Region = Shapes::StringShape.new(name: 'Region')
158
169
  RegistryId = Shapes::StringShape.new(name: 'RegistryId')
170
+ RegistryPolicyNotFoundException = Shapes::StructureShape.new(name: 'RegistryPolicyNotFoundException')
171
+ RegistryPolicyText = Shapes::StringShape.new(name: 'RegistryPolicyText')
172
+ ReplicationConfiguration = Shapes::StructureShape.new(name: 'ReplicationConfiguration')
173
+ ReplicationDestination = Shapes::StructureShape.new(name: 'ReplicationDestination')
174
+ ReplicationDestinationList = Shapes::ListShape.new(name: 'ReplicationDestinationList')
175
+ ReplicationRule = Shapes::StructureShape.new(name: 'ReplicationRule')
176
+ ReplicationRuleList = Shapes::ListShape.new(name: 'ReplicationRuleList')
159
177
  Repository = Shapes::StructureShape.new(name: 'Repository')
160
178
  RepositoryAlreadyExistsException = Shapes::StructureShape.new(name: 'RepositoryAlreadyExistsException')
161
179
  RepositoryList = Shapes::ListShape.new(name: 'RepositoryList')
@@ -195,6 +213,7 @@ module Aws::ECR
195
213
  UploadLayerPartResponse = Shapes::StructureShape.new(name: 'UploadLayerPartResponse')
196
214
  UploadNotFoundException = Shapes::StructureShape.new(name: 'UploadNotFoundException')
197
215
  Url = Shapes::StringShape.new(name: 'Url')
216
+ ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
198
217
  VulnerabilitySourceUpdateTimestamp = Shapes::TimestampShape.new(name: 'VulnerabilitySourceUpdateTimestamp')
199
218
 
200
219
  Attribute.add_member(:key, Shapes::ShapeRef.new(shape: AttributeKey, required: true, location_name: "key"))
@@ -272,6 +291,12 @@ module Aws::ECR
272
291
  DeleteLifecyclePolicyResponse.add_member(:last_evaluated_at, Shapes::ShapeRef.new(shape: EvaluationTimestamp, location_name: "lastEvaluatedAt"))
273
292
  DeleteLifecyclePolicyResponse.struct_class = Types::DeleteLifecyclePolicyResponse
274
293
 
294
+ DeleteRegistryPolicyRequest.struct_class = Types::DeleteRegistryPolicyRequest
295
+
296
+ DeleteRegistryPolicyResponse.add_member(:registry_id, Shapes::ShapeRef.new(shape: RegistryId, location_name: "registryId"))
297
+ DeleteRegistryPolicyResponse.add_member(:policy_text, Shapes::ShapeRef.new(shape: RegistryPolicyText, location_name: "policyText"))
298
+ DeleteRegistryPolicyResponse.struct_class = Types::DeleteRegistryPolicyResponse
299
+
275
300
  DeleteRepositoryPolicyRequest.add_member(:registry_id, Shapes::ShapeRef.new(shape: RegistryId, location_name: "registryId"))
276
301
  DeleteRepositoryPolicyRequest.add_member(:repository_name, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location_name: "repositoryName"))
277
302
  DeleteRepositoryPolicyRequest.struct_class = Types::DeleteRepositoryPolicyRequest
@@ -319,6 +344,12 @@ module Aws::ECR
319
344
  DescribeImagesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
320
345
  DescribeImagesResponse.struct_class = Types::DescribeImagesResponse
321
346
 
347
+ DescribeRegistryRequest.struct_class = Types::DescribeRegistryRequest
348
+
349
+ DescribeRegistryResponse.add_member(:registry_id, Shapes::ShapeRef.new(shape: RegistryId, location_name: "registryId"))
350
+ DescribeRegistryResponse.add_member(:replication_configuration, Shapes::ShapeRef.new(shape: ReplicationConfiguration, location_name: "replicationConfiguration"))
351
+ DescribeRegistryResponse.struct_class = Types::DescribeRegistryResponse
352
+
322
353
  DescribeRepositoriesRequest.add_member(:registry_id, Shapes::ShapeRef.new(shape: RegistryId, location_name: "registryId"))
323
354
  DescribeRepositoriesRequest.add_member(:repository_names, Shapes::ShapeRef.new(shape: RepositoryNameList, location_name: "repositoryNames"))
324
355
  DescribeRepositoriesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
@@ -341,7 +372,7 @@ module Aws::ECR
341
372
 
342
373
  GetAuthorizationTokenRegistryIdList.member = Shapes::ShapeRef.new(shape: RegistryId)
343
374
 
344
- GetAuthorizationTokenRequest.add_member(:registry_ids, Shapes::ShapeRef.new(shape: GetAuthorizationTokenRegistryIdList, location_name: "registryIds"))
375
+ GetAuthorizationTokenRequest.add_member(:registry_ids, Shapes::ShapeRef.new(shape: GetAuthorizationTokenRegistryIdList, deprecated: true, location_name: "registryIds", metadata: {"deprecatedMessage"=>"This field is deprecated. The returned authorization token can be used to access any Amazon ECR registry that the IAM principal has access to, specifying a registry ID doesn't change the permissions scope of the authorization token."}))
345
376
  GetAuthorizationTokenRequest.struct_class = Types::GetAuthorizationTokenRequest
346
377
 
347
378
  GetAuthorizationTokenResponse.add_member(:authorization_data, Shapes::ShapeRef.new(shape: AuthorizationDataList, location_name: "authorizationData"))
@@ -383,6 +414,12 @@ module Aws::ECR
383
414
  GetLifecyclePolicyResponse.add_member(:last_evaluated_at, Shapes::ShapeRef.new(shape: EvaluationTimestamp, location_name: "lastEvaluatedAt"))
384
415
  GetLifecyclePolicyResponse.struct_class = Types::GetLifecyclePolicyResponse
385
416
 
417
+ GetRegistryPolicyRequest.struct_class = Types::GetRegistryPolicyRequest
418
+
419
+ GetRegistryPolicyResponse.add_member(:registry_id, Shapes::ShapeRef.new(shape: RegistryId, location_name: "registryId"))
420
+ GetRegistryPolicyResponse.add_member(:policy_text, Shapes::ShapeRef.new(shape: RegistryPolicyText, location_name: "policyText"))
421
+ GetRegistryPolicyResponse.struct_class = Types::GetRegistryPolicyResponse
422
+
386
423
  GetRepositoryPolicyRequest.add_member(:registry_id, Shapes::ShapeRef.new(shape: RegistryId, location_name: "registryId"))
387
424
  GetRepositoryPolicyRequest.add_member(:repository_name, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location_name: "repositoryName"))
388
425
  GetRepositoryPolicyRequest.struct_class = Types::GetRepositoryPolicyRequest
@@ -410,6 +447,8 @@ module Aws::ECR
410
447
  ImageDetail.add_member(:image_pushed_at, Shapes::ShapeRef.new(shape: PushTimestamp, location_name: "imagePushedAt"))
411
448
  ImageDetail.add_member(:image_scan_status, Shapes::ShapeRef.new(shape: ImageScanStatus, location_name: "imageScanStatus"))
412
449
  ImageDetail.add_member(:image_scan_findings_summary, Shapes::ShapeRef.new(shape: ImageScanFindingsSummary, location_name: "imageScanFindingsSummary"))
450
+ ImageDetail.add_member(:image_manifest_media_type, Shapes::ShapeRef.new(shape: MediaType, location_name: "imageManifestMediaType"))
451
+ ImageDetail.add_member(:artifact_media_type, Shapes::ShapeRef.new(shape: MediaType, location_name: "artifactMediaType"))
413
452
  ImageDetail.struct_class = Types::ImageDetail
414
453
 
415
454
  ImageDetailList.member = Shapes::ShapeRef.new(shape: ImageDetail)
@@ -617,9 +656,39 @@ module Aws::ECR
617
656
  PutLifecyclePolicyResponse.add_member(:lifecycle_policy_text, Shapes::ShapeRef.new(shape: LifecyclePolicyText, location_name: "lifecyclePolicyText"))
618
657
  PutLifecyclePolicyResponse.struct_class = Types::PutLifecyclePolicyResponse
619
658
 
659
+ PutRegistryPolicyRequest.add_member(:policy_text, Shapes::ShapeRef.new(shape: RegistryPolicyText, required: true, location_name: "policyText"))
660
+ PutRegistryPolicyRequest.struct_class = Types::PutRegistryPolicyRequest
661
+
662
+ PutRegistryPolicyResponse.add_member(:registry_id, Shapes::ShapeRef.new(shape: RegistryId, location_name: "registryId"))
663
+ PutRegistryPolicyResponse.add_member(:policy_text, Shapes::ShapeRef.new(shape: RegistryPolicyText, location_name: "policyText"))
664
+ PutRegistryPolicyResponse.struct_class = Types::PutRegistryPolicyResponse
665
+
666
+ PutReplicationConfigurationRequest.add_member(:replication_configuration, Shapes::ShapeRef.new(shape: ReplicationConfiguration, required: true, location_name: "replicationConfiguration"))
667
+ PutReplicationConfigurationRequest.struct_class = Types::PutReplicationConfigurationRequest
668
+
669
+ PutReplicationConfigurationResponse.add_member(:replication_configuration, Shapes::ShapeRef.new(shape: ReplicationConfiguration, location_name: "replicationConfiguration"))
670
+ PutReplicationConfigurationResponse.struct_class = Types::PutReplicationConfigurationResponse
671
+
620
672
  ReferencedImagesNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
621
673
  ReferencedImagesNotFoundException.struct_class = Types::ReferencedImagesNotFoundException
622
674
 
675
+ RegistryPolicyNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
676
+ RegistryPolicyNotFoundException.struct_class = Types::RegistryPolicyNotFoundException
677
+
678
+ ReplicationConfiguration.add_member(:rules, Shapes::ShapeRef.new(shape: ReplicationRuleList, required: true, location_name: "rules"))
679
+ ReplicationConfiguration.struct_class = Types::ReplicationConfiguration
680
+
681
+ ReplicationDestination.add_member(:region, Shapes::ShapeRef.new(shape: Region, required: true, location_name: "region"))
682
+ ReplicationDestination.add_member(:registry_id, Shapes::ShapeRef.new(shape: RegistryId, required: true, location_name: "registryId"))
683
+ ReplicationDestination.struct_class = Types::ReplicationDestination
684
+
685
+ ReplicationDestinationList.member = Shapes::ShapeRef.new(shape: ReplicationDestination)
686
+
687
+ ReplicationRule.add_member(:destinations, Shapes::ShapeRef.new(shape: ReplicationDestinationList, required: true, location_name: "destinations"))
688
+ ReplicationRule.struct_class = Types::ReplicationRule
689
+
690
+ ReplicationRuleList.member = Shapes::ShapeRef.new(shape: ReplicationRule)
691
+
623
692
  Repository.add_member(:repository_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "repositoryArn"))
624
693
  Repository.add_member(:registry_id, Shapes::ShapeRef.new(shape: RegistryId, location_name: "registryId"))
625
694
  Repository.add_member(:repository_name, Shapes::ShapeRef.new(shape: RepositoryName, location_name: "repositoryName"))
@@ -728,6 +797,9 @@ module Aws::ECR
728
797
  UploadNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
729
798
  UploadNotFoundException.struct_class = Types::UploadNotFoundException
730
799
 
800
+ ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
801
+ ValidationException.struct_class = Types::ValidationException
802
+
731
803
 
732
804
  # @api private
733
805
  API = Seahorse::Model::Api.new.tap do |api|
@@ -825,6 +897,17 @@ module Aws::ECR
825
897
  o.errors << Shapes::ShapeRef.new(shape: LifecyclePolicyNotFoundException)
826
898
  end)
827
899
 
900
+ api.add_operation(:delete_registry_policy, Seahorse::Model::Operation.new.tap do |o|
901
+ o.name = "DeleteRegistryPolicy"
902
+ o.http_method = "POST"
903
+ o.http_request_uri = "/"
904
+ o.input = Shapes::ShapeRef.new(shape: DeleteRegistryPolicyRequest)
905
+ o.output = Shapes::ShapeRef.new(shape: DeleteRegistryPolicyResponse)
906
+ o.errors << Shapes::ShapeRef.new(shape: ServerException)
907
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
908
+ o.errors << Shapes::ShapeRef.new(shape: RegistryPolicyNotFoundException)
909
+ end)
910
+
828
911
  api.add_operation(:delete_repository, Seahorse::Model::Operation.new.tap do |o|
829
912
  o.name = "DeleteRepository"
830
913
  o.http_method = "POST"
@@ -887,6 +970,17 @@ module Aws::ECR
887
970
  )
888
971
  end)
889
972
 
973
+ api.add_operation(:describe_registry, Seahorse::Model::Operation.new.tap do |o|
974
+ o.name = "DescribeRegistry"
975
+ o.http_method = "POST"
976
+ o.http_request_uri = "/"
977
+ o.input = Shapes::ShapeRef.new(shape: DescribeRegistryRequest)
978
+ o.output = Shapes::ShapeRef.new(shape: DescribeRegistryResponse)
979
+ o.errors << Shapes::ShapeRef.new(shape: ServerException)
980
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
981
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
982
+ end)
983
+
890
984
  api.add_operation(:describe_repositories, Seahorse::Model::Operation.new.tap do |o|
891
985
  o.name = "DescribeRepositories"
892
986
  o.http_method = "POST"
@@ -957,6 +1051,17 @@ module Aws::ECR
957
1051
  )
958
1052
  end)
959
1053
 
1054
+ api.add_operation(:get_registry_policy, Seahorse::Model::Operation.new.tap do |o|
1055
+ o.name = "GetRegistryPolicy"
1056
+ o.http_method = "POST"
1057
+ o.http_request_uri = "/"
1058
+ o.input = Shapes::ShapeRef.new(shape: GetRegistryPolicyRequest)
1059
+ o.output = Shapes::ShapeRef.new(shape: GetRegistryPolicyResponse)
1060
+ o.errors << Shapes::ShapeRef.new(shape: ServerException)
1061
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
1062
+ o.errors << Shapes::ShapeRef.new(shape: RegistryPolicyNotFoundException)
1063
+ end)
1064
+
960
1065
  api.add_operation(:get_repository_policy, Seahorse::Model::Operation.new.tap do |o|
961
1066
  o.name = "GetRepositoryPolicy"
962
1067
  o.http_method = "POST"
@@ -1060,6 +1165,27 @@ module Aws::ECR
1060
1165
  o.errors << Shapes::ShapeRef.new(shape: RepositoryNotFoundException)
1061
1166
  end)
1062
1167
 
1168
+ api.add_operation(:put_registry_policy, Seahorse::Model::Operation.new.tap do |o|
1169
+ o.name = "PutRegistryPolicy"
1170
+ o.http_method = "POST"
1171
+ o.http_request_uri = "/"
1172
+ o.input = Shapes::ShapeRef.new(shape: PutRegistryPolicyRequest)
1173
+ o.output = Shapes::ShapeRef.new(shape: PutRegistryPolicyResponse)
1174
+ o.errors << Shapes::ShapeRef.new(shape: ServerException)
1175
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
1176
+ end)
1177
+
1178
+ api.add_operation(:put_replication_configuration, Seahorse::Model::Operation.new.tap do |o|
1179
+ o.name = "PutReplicationConfiguration"
1180
+ o.http_method = "POST"
1181
+ o.http_request_uri = "/"
1182
+ o.input = Shapes::ShapeRef.new(shape: PutReplicationConfigurationRequest)
1183
+ o.output = Shapes::ShapeRef.new(shape: PutReplicationConfigurationResponse)
1184
+ o.errors << Shapes::ShapeRef.new(shape: ServerException)
1185
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
1186
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1187
+ end)
1188
+
1063
1189
  api.add_operation(:set_repository_policy, Seahorse::Model::Operation.new.tap do |o|
1064
1190
  o.name = "SetRepositoryPolicy"
1065
1191
  o.http_method = "POST"
@@ -46,6 +46,7 @@ module Aws::ECR
46
46
  # * {LifecyclePolicyPreviewNotFoundException}
47
47
  # * {LimitExceededException}
48
48
  # * {ReferencedImagesNotFoundException}
49
+ # * {RegistryPolicyNotFoundException}
49
50
  # * {RepositoryAlreadyExistsException}
50
51
  # * {RepositoryNotEmptyException}
51
52
  # * {RepositoryNotFoundException}
@@ -55,6 +56,7 @@ module Aws::ECR
55
56
  # * {TooManyTagsException}
56
57
  # * {UnsupportedImageTypeException}
57
58
  # * {UploadNotFoundException}
59
+ # * {ValidationException}
58
60
  #
59
61
  # Additionally, error classes are dynamically generated for service errors based on the error code
60
62
  # if they are not defined above.
@@ -372,6 +374,21 @@ module Aws::ECR
372
374
  end
373
375
  end
374
376
 
377
+ class RegistryPolicyNotFoundException < ServiceError
378
+
379
+ # @param [Seahorse::Client::RequestContext] context
380
+ # @param [String] message
381
+ # @param [Aws::ECR::Types::RegistryPolicyNotFoundException] data
382
+ def initialize(context, message, data = Aws::EmptyStructure.new)
383
+ super(context, message, data)
384
+ end
385
+
386
+ # @return [String]
387
+ def message
388
+ @message || @data[:message]
389
+ end
390
+ end
391
+
375
392
  class RepositoryAlreadyExistsException < ServiceError
376
393
 
377
394
  # @param [Seahorse::Client::RequestContext] context
@@ -507,5 +524,20 @@ module Aws::ECR
507
524
  end
508
525
  end
509
526
 
527
+ class ValidationException < ServiceError
528
+
529
+ # @param [Seahorse::Client::RequestContext] context
530
+ # @param [String] message
531
+ # @param [Aws::ECR::Types::ValidationException] data
532
+ def initialize(context, message, data = Aws::EmptyStructure.new)
533
+ super(context, message, data)
534
+ end
535
+
536
+ # @return [String]
537
+ def message
538
+ @message || @data[:message]
539
+ end
540
+ end
541
+
510
542
  end
511
543
  end
@@ -440,6 +440,29 @@ module Aws::ECR
440
440
  include Aws::Structure
441
441
  end
442
442
 
443
+ # @api private
444
+ #
445
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DeleteRegistryPolicyRequest AWS API Documentation
446
+ #
447
+ class DeleteRegistryPolicyRequest < Aws::EmptyStructure; end
448
+
449
+ # @!attribute [rw] registry_id
450
+ # The registry ID associated with the request.
451
+ # @return [String]
452
+ #
453
+ # @!attribute [rw] policy_text
454
+ # The contents of the registry permissions policy that was deleted.
455
+ # @return [String]
456
+ #
457
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DeleteRegistryPolicyResponse AWS API Documentation
458
+ #
459
+ class DeleteRegistryPolicyResponse < Struct.new(
460
+ :registry_id,
461
+ :policy_text)
462
+ SENSITIVE = []
463
+ include Aws::Structure
464
+ end
465
+
443
466
  # @note When making an API call, you may pass DeleteRepositoryPolicyRequest
444
467
  # data as a hash:
445
468
  #
@@ -754,6 +777,29 @@ module Aws::ECR
754
777
  include Aws::Structure
755
778
  end
756
779
 
780
+ # @api private
781
+ #
782
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DescribeRegistryRequest AWS API Documentation
783
+ #
784
+ class DescribeRegistryRequest < Aws::EmptyStructure; end
785
+
786
+ # @!attribute [rw] registry_id
787
+ # The ID of the registry.
788
+ # @return [String]
789
+ #
790
+ # @!attribute [rw] replication_configuration
791
+ # The replication configuration for the registry.
792
+ # @return [Types::ReplicationConfiguration]
793
+ #
794
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DescribeRegistryResponse AWS API Documentation
795
+ #
796
+ class DescribeRegistryResponse < Struct.new(
797
+ :registry_id,
798
+ :replication_configuration)
799
+ SENSITIVE = []
800
+ include Aws::Structure
801
+ end
802
+
757
803
  # @note When making an API call, you may pass DescribeRepositoriesRequest
758
804
  # data as a hash:
759
805
  #
@@ -1179,6 +1225,29 @@ module Aws::ECR
1179
1225
  include Aws::Structure
1180
1226
  end
1181
1227
 
1228
+ # @api private
1229
+ #
1230
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/GetRegistryPolicyRequest AWS API Documentation
1231
+ #
1232
+ class GetRegistryPolicyRequest < Aws::EmptyStructure; end
1233
+
1234
+ # @!attribute [rw] registry_id
1235
+ # The ID of the registry.
1236
+ # @return [String]
1237
+ #
1238
+ # @!attribute [rw] policy_text
1239
+ # The JSON text of the permissions policy for a registry.
1240
+ # @return [String]
1241
+ #
1242
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/GetRegistryPolicyResponse AWS API Documentation
1243
+ #
1244
+ class GetRegistryPolicyResponse < Struct.new(
1245
+ :registry_id,
1246
+ :policy_text)
1247
+ SENSITIVE = []
1248
+ include Aws::Structure
1249
+ end
1250
+
1182
1251
  # @note When making an API call, you may pass GetRepositoryPolicyRequest
1183
1252
  # data as a hash:
1184
1253
  #
@@ -1249,7 +1318,7 @@ module Aws::ECR
1249
1318
  # @return [String]
1250
1319
  #
1251
1320
  # @!attribute [rw] image_manifest_media_type
1252
- # The media type associated with the image manifest.
1321
+ # The manifest media type of the image.
1253
1322
  # @return [String]
1254
1323
  #
1255
1324
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/Image AWS API Documentation
@@ -1327,6 +1396,14 @@ module Aws::ECR
1327
1396
  # A summary of the last completed image scan.
1328
1397
  # @return [Types::ImageScanFindingsSummary]
1329
1398
  #
1399
+ # @!attribute [rw] image_manifest_media_type
1400
+ # The media type of the image manifest.
1401
+ # @return [String]
1402
+ #
1403
+ # @!attribute [rw] artifact_media_type
1404
+ # The artifact media type of the image.
1405
+ # @return [String]
1406
+ #
1330
1407
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/ImageDetail AWS API Documentation
1331
1408
  #
1332
1409
  class ImageDetail < Struct.new(
@@ -1337,7 +1414,9 @@ module Aws::ECR
1337
1414
  :image_size_in_bytes,
1338
1415
  :image_pushed_at,
1339
1416
  :image_scan_status,
1340
- :image_scan_findings_summary)
1417
+ :image_scan_findings_summary,
1418
+ :image_manifest_media_type,
1419
+ :artifact_media_type)
1341
1420
  SENSITIVE = []
1342
1421
  include Aws::Structure
1343
1422
  end
@@ -2352,6 +2431,91 @@ module Aws::ECR
2352
2431
  include Aws::Structure
2353
2432
  end
2354
2433
 
2434
+ # @note When making an API call, you may pass PutRegistryPolicyRequest
2435
+ # data as a hash:
2436
+ #
2437
+ # {
2438
+ # policy_text: "RegistryPolicyText", # required
2439
+ # }
2440
+ #
2441
+ # @!attribute [rw] policy_text
2442
+ # The JSON policy text to apply to your registry. The policy text
2443
+ # follows the same format as IAM policy text. For more information,
2444
+ # see [Registry permissions][1] in the *Amazon Elastic Container
2445
+ # Registry User Guide*.
2446
+ #
2447
+ #
2448
+ #
2449
+ # [1]: https://docs.aws.amazon.com/AmazonECR/latest/userguide/registry-permissions.html
2450
+ # @return [String]
2451
+ #
2452
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/PutRegistryPolicyRequest AWS API Documentation
2453
+ #
2454
+ class PutRegistryPolicyRequest < Struct.new(
2455
+ :policy_text)
2456
+ SENSITIVE = []
2457
+ include Aws::Structure
2458
+ end
2459
+
2460
+ # @!attribute [rw] registry_id
2461
+ # The registry ID.
2462
+ # @return [String]
2463
+ #
2464
+ # @!attribute [rw] policy_text
2465
+ # The JSON policy text for your registry.
2466
+ # @return [String]
2467
+ #
2468
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/PutRegistryPolicyResponse AWS API Documentation
2469
+ #
2470
+ class PutRegistryPolicyResponse < Struct.new(
2471
+ :registry_id,
2472
+ :policy_text)
2473
+ SENSITIVE = []
2474
+ include Aws::Structure
2475
+ end
2476
+
2477
+ # @note When making an API call, you may pass PutReplicationConfigurationRequest
2478
+ # data as a hash:
2479
+ #
2480
+ # {
2481
+ # replication_configuration: { # required
2482
+ # rules: [ # required
2483
+ # {
2484
+ # destinations: [ # required
2485
+ # {
2486
+ # region: "Region", # required
2487
+ # registry_id: "RegistryId", # required
2488
+ # },
2489
+ # ],
2490
+ # },
2491
+ # ],
2492
+ # },
2493
+ # }
2494
+ #
2495
+ # @!attribute [rw] replication_configuration
2496
+ # An object representing the replication configuration for a registry.
2497
+ # @return [Types::ReplicationConfiguration]
2498
+ #
2499
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/PutReplicationConfigurationRequest AWS API Documentation
2500
+ #
2501
+ class PutReplicationConfigurationRequest < Struct.new(
2502
+ :replication_configuration)
2503
+ SENSITIVE = []
2504
+ include Aws::Structure
2505
+ end
2506
+
2507
+ # @!attribute [rw] replication_configuration
2508
+ # The contents of the replication configuration for the registry.
2509
+ # @return [Types::ReplicationConfiguration]
2510
+ #
2511
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/PutReplicationConfigurationResponse AWS API Documentation
2512
+ #
2513
+ class PutReplicationConfigurationResponse < Struct.new(
2514
+ :replication_configuration)
2515
+ SENSITIVE = []
2516
+ include Aws::Structure
2517
+ end
2518
+
2355
2519
  # The manifest list is referencing an image that does not exist.
2356
2520
  #
2357
2521
  # @!attribute [rw] message
@@ -2365,6 +2529,110 @@ module Aws::ECR
2365
2529
  include Aws::Structure
2366
2530
  end
2367
2531
 
2532
+ # The registry doesn't have an associated registry policy.
2533
+ #
2534
+ # @!attribute [rw] message
2535
+ # @return [String]
2536
+ #
2537
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/RegistryPolicyNotFoundException AWS API Documentation
2538
+ #
2539
+ class RegistryPolicyNotFoundException < Struct.new(
2540
+ :message)
2541
+ SENSITIVE = []
2542
+ include Aws::Structure
2543
+ end
2544
+
2545
+ # The replication configuration for a registry.
2546
+ #
2547
+ # @note When making an API call, you may pass ReplicationConfiguration
2548
+ # data as a hash:
2549
+ #
2550
+ # {
2551
+ # rules: [ # required
2552
+ # {
2553
+ # destinations: [ # required
2554
+ # {
2555
+ # region: "Region", # required
2556
+ # registry_id: "RegistryId", # required
2557
+ # },
2558
+ # ],
2559
+ # },
2560
+ # ],
2561
+ # }
2562
+ #
2563
+ # @!attribute [rw] rules
2564
+ # An array of objects representing the replication rules for a
2565
+ # replication configuration. A replication configuration may contain
2566
+ # only one replication rule but the rule may contain one or more
2567
+ # replication destinations.
2568
+ # @return [Array<Types::ReplicationRule>]
2569
+ #
2570
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/ReplicationConfiguration AWS API Documentation
2571
+ #
2572
+ class ReplicationConfiguration < Struct.new(
2573
+ :rules)
2574
+ SENSITIVE = []
2575
+ include Aws::Structure
2576
+ end
2577
+
2578
+ # An array of objects representing the details of a replication
2579
+ # destination.
2580
+ #
2581
+ # @note When making an API call, you may pass ReplicationDestination
2582
+ # data as a hash:
2583
+ #
2584
+ # {
2585
+ # region: "Region", # required
2586
+ # registry_id: "RegistryId", # required
2587
+ # }
2588
+ #
2589
+ # @!attribute [rw] region
2590
+ # A Region to replicate to.
2591
+ # @return [String]
2592
+ #
2593
+ # @!attribute [rw] registry_id
2594
+ # The account ID of the destination registry to replicate to.
2595
+ # @return [String]
2596
+ #
2597
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/ReplicationDestination AWS API Documentation
2598
+ #
2599
+ class ReplicationDestination < Struct.new(
2600
+ :region,
2601
+ :registry_id)
2602
+ SENSITIVE = []
2603
+ include Aws::Structure
2604
+ end
2605
+
2606
+ # An array of objects representing the replication destinations for a
2607
+ # replication configuration. A replication configuration may contain
2608
+ # only one replication rule but the rule may contain one or more
2609
+ # replication destinations.
2610
+ #
2611
+ # @note When making an API call, you may pass ReplicationRule
2612
+ # data as a hash:
2613
+ #
2614
+ # {
2615
+ # destinations: [ # required
2616
+ # {
2617
+ # region: "Region", # required
2618
+ # registry_id: "RegistryId", # required
2619
+ # },
2620
+ # ],
2621
+ # }
2622
+ #
2623
+ # @!attribute [rw] destinations
2624
+ # An array of objects representing the details of a replication
2625
+ # destination.
2626
+ # @return [Array<Types::ReplicationDestination>]
2627
+ #
2628
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/ReplicationRule AWS API Documentation
2629
+ #
2630
+ class ReplicationRule < Struct.new(
2631
+ :destinations)
2632
+ SENSITIVE = []
2633
+ include Aws::Structure
2634
+ end
2635
+
2368
2636
  # An object representing a repository.
2369
2637
  #
2370
2638
  # @!attribute [rw] repository_arn
@@ -2932,5 +3200,18 @@ module Aws::ECR
2932
3200
  include Aws::Structure
2933
3201
  end
2934
3202
 
3203
+ # There was an exception validating this request.
3204
+ #
3205
+ # @!attribute [rw] message
3206
+ # @return [String]
3207
+ #
3208
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/ValidationException AWS API Documentation
3209
+ #
3210
+ class ValidationException < Struct.new(
3211
+ :message)
3212
+ SENSITIVE = []
3213
+ include Aws::Structure
3214
+ end
3215
+
2935
3216
  end
2936
3217
  end
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.35.0
4
+ version: 1.40.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-07-29 00:00:00.000000000 Z
11
+ date: 2020-12-08 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.99.0
22
+ version: 3.109.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.99.0
32
+ version: 3.109.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement