aws-sdk-ecr 1.39.0 → 1.40.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-ecr.rb +1 -1
- data/lib/aws-sdk-ecr/client.rb +174 -1
- data/lib/aws-sdk-ecr/client_api.rb +125 -1
- data/lib/aws-sdk-ecr/errors.rb +32 -0
- data/lib/aws-sdk-ecr/types.rb +271 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb97dcda98103d175626dc847cca29119f043fb163bd9beb34c463036b5da02e
|
4
|
+
data.tar.gz: 7691cbce097ba56b93a192857ecb58fefdaee00c473810b5228e4aef7353b734
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49fc38ee1b788baf52869be88c54b1d7d9ca1f7664ede2764708249d5f9780d13ed48added6553ac0e6cd51be2bff4edbb6d71a3c6c972de15d9de5cfa8575b7
|
7
|
+
data.tar.gz: 0cbccc86fba02f13e7bac550d12cc503fc2404f9fc401910d4b34cf0d02e6202c41df0528b15c246c2e78f43919acb2023c0ca852ac69e5ce7e567cce11565e9
|
data/lib/aws-sdk-ecr.rb
CHANGED
data/lib/aws-sdk-ecr/client.rb
CHANGED
@@ -786,6 +786,27 @@ module Aws::ECR
|
|
786
786
|
req.send_request(options)
|
787
787
|
end
|
788
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
|
+
|
789
810
|
# Deletes a repository. If the repository contains images, you must
|
790
811
|
# either delete all images in the repository or use the `force` option
|
791
812
|
# to delete the repository.
|
@@ -1099,6 +1120,32 @@ module Aws::ECR
|
|
1099
1120
|
req.send_request(options)
|
1100
1121
|
end
|
1101
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
|
+
|
1102
1149
|
# Describes image repositories in a registry.
|
1103
1150
|
#
|
1104
1151
|
# @option params [String] :registry_id
|
@@ -1459,6 +1506,27 @@ module Aws::ECR
|
|
1459
1506
|
req.send_request(options)
|
1460
1507
|
end
|
1461
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
|
+
|
1462
1530
|
# Retrieves the repository policy for the specified repository.
|
1463
1531
|
#
|
1464
1532
|
# @option params [String] :registry_id
|
@@ -1907,6 +1975,111 @@ module Aws::ECR
|
|
1907
1975
|
req.send_request(options)
|
1908
1976
|
end
|
1909
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
|
+
|
1910
2083
|
# Applies a repository policy to the specified repository to control
|
1911
2084
|
# access permissions. For more information, see [Amazon ECR Repository
|
1912
2085
|
# Policies][1] in the *Amazon Elastic Container Registry User Guide*.
|
@@ -2219,7 +2392,7 @@ module Aws::ECR
|
|
2219
2392
|
params: params,
|
2220
2393
|
config: config)
|
2221
2394
|
context[:gem_name] = 'aws-sdk-ecr'
|
2222
|
-
context[:gem_version] = '1.
|
2395
|
+
context[:gem_version] = '1.40.0'
|
2223
2396
|
Seahorse::Client::Request.new(handlers, context)
|
2224
2397
|
end
|
2225
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
|
@@ -619,9 +656,39 @@ module Aws::ECR
|
|
619
656
|
PutLifecyclePolicyResponse.add_member(:lifecycle_policy_text, Shapes::ShapeRef.new(shape: LifecyclePolicyText, location_name: "lifecyclePolicyText"))
|
620
657
|
PutLifecyclePolicyResponse.struct_class = Types::PutLifecyclePolicyResponse
|
621
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
|
+
|
622
672
|
ReferencedImagesNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
|
623
673
|
ReferencedImagesNotFoundException.struct_class = Types::ReferencedImagesNotFoundException
|
624
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
|
+
|
625
692
|
Repository.add_member(:repository_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "repositoryArn"))
|
626
693
|
Repository.add_member(:registry_id, Shapes::ShapeRef.new(shape: RegistryId, location_name: "registryId"))
|
627
694
|
Repository.add_member(:repository_name, Shapes::ShapeRef.new(shape: RepositoryName, location_name: "repositoryName"))
|
@@ -730,6 +797,9 @@ module Aws::ECR
|
|
730
797
|
UploadNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
|
731
798
|
UploadNotFoundException.struct_class = Types::UploadNotFoundException
|
732
799
|
|
800
|
+
ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
|
801
|
+
ValidationException.struct_class = Types::ValidationException
|
802
|
+
|
733
803
|
|
734
804
|
# @api private
|
735
805
|
API = Seahorse::Model::Api.new.tap do |api|
|
@@ -827,6 +897,17 @@ module Aws::ECR
|
|
827
897
|
o.errors << Shapes::ShapeRef.new(shape: LifecyclePolicyNotFoundException)
|
828
898
|
end)
|
829
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
|
+
|
830
911
|
api.add_operation(:delete_repository, Seahorse::Model::Operation.new.tap do |o|
|
831
912
|
o.name = "DeleteRepository"
|
832
913
|
o.http_method = "POST"
|
@@ -889,6 +970,17 @@ module Aws::ECR
|
|
889
970
|
)
|
890
971
|
end)
|
891
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
|
+
|
892
984
|
api.add_operation(:describe_repositories, Seahorse::Model::Operation.new.tap do |o|
|
893
985
|
o.name = "DescribeRepositories"
|
894
986
|
o.http_method = "POST"
|
@@ -959,6 +1051,17 @@ module Aws::ECR
|
|
959
1051
|
)
|
960
1052
|
end)
|
961
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
|
+
|
962
1065
|
api.add_operation(:get_repository_policy, Seahorse::Model::Operation.new.tap do |o|
|
963
1066
|
o.name = "GetRepositoryPolicy"
|
964
1067
|
o.http_method = "POST"
|
@@ -1062,6 +1165,27 @@ module Aws::ECR
|
|
1062
1165
|
o.errors << Shapes::ShapeRef.new(shape: RepositoryNotFoundException)
|
1063
1166
|
end)
|
1064
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
|
+
|
1065
1189
|
api.add_operation(:set_repository_policy, Seahorse::Model::Operation.new.tap do |o|
|
1066
1190
|
o.name = "SetRepositoryPolicy"
|
1067
1191
|
o.http_method = "POST"
|
data/lib/aws-sdk-ecr/errors.rb
CHANGED
@@ -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
|
data/lib/aws-sdk-ecr/types.rb
CHANGED
@@ -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
|
#
|
@@ -2362,6 +2431,91 @@ module Aws::ECR
|
|
2362
2431
|
include Aws::Structure
|
2363
2432
|
end
|
2364
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
|
+
|
2365
2519
|
# The manifest list is referencing an image that does not exist.
|
2366
2520
|
#
|
2367
2521
|
# @!attribute [rw] message
|
@@ -2375,6 +2529,110 @@ module Aws::ECR
|
|
2375
2529
|
include Aws::Structure
|
2376
2530
|
end
|
2377
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
|
+
|
2378
2636
|
# An object representing a repository.
|
2379
2637
|
#
|
2380
2638
|
# @!attribute [rw] repository_arn
|
@@ -2942,5 +3200,18 @@ module Aws::ECR
|
|
2942
3200
|
include Aws::Structure
|
2943
3201
|
end
|
2944
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
|
+
|
2945
3216
|
end
|
2946
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.
|
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-
|
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
|