aws-sdk-ecr 1.37.0 → 1.42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.42.0
data/lib/aws-sdk-ecr.rb CHANGED
@@ -3,10 +3,11 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
10
+
10
11
  require 'aws-sdk-core'
11
12
  require 'aws-sigv4'
12
13
 
@@ -48,6 +49,6 @@ require_relative 'aws-sdk-ecr/customizations'
48
49
  # @!group service
49
50
  module Aws::ECR
50
51
 
51
- GEM_VERSION = '1.37.0'
52
+ GEM_VERSION = '1.42.0'
52
53
 
53
54
  end
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -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.37.0'
2395
+ context[:gem_version] = '1.42.0'
2223
2396
  Seahorse::Client::Request.new(handlers, context)
2224
2397
  end
2225
2398
 
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -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"