aws-sdk-ecr 1.78.0 → 1.79.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ecr/client.rb +528 -5
- data/lib/aws-sdk-ecr/client_api.rb +151 -0
- data/lib/aws-sdk-ecr/endpoints.rb +56 -0
- data/lib/aws-sdk-ecr/errors.rb +32 -0
- data/lib/aws-sdk-ecr/plugins/endpoints.rb +8 -0
- data/lib/aws-sdk-ecr/types.rb +460 -10
- data/lib/aws-sdk-ecr.rb +1 -1
- data/sig/client.rbs +79 -0
- data/sig/errors.rbs +6 -0
- data/sig/types.rbs +94 -0
- metadata +2 -2
@@ -39,10 +39,13 @@ module Aws::ECR
|
|
39
39
|
CompleteLayerUploadResponse = Shapes::StructureShape.new(name: 'CompleteLayerUploadResponse')
|
40
40
|
CreatePullThroughCacheRuleRequest = Shapes::StructureShape.new(name: 'CreatePullThroughCacheRuleRequest')
|
41
41
|
CreatePullThroughCacheRuleResponse = Shapes::StructureShape.new(name: 'CreatePullThroughCacheRuleResponse')
|
42
|
+
CreateRepositoryCreationTemplateRequest = Shapes::StructureShape.new(name: 'CreateRepositoryCreationTemplateRequest')
|
43
|
+
CreateRepositoryCreationTemplateResponse = Shapes::StructureShape.new(name: 'CreateRepositoryCreationTemplateResponse')
|
42
44
|
CreateRepositoryRequest = Shapes::StructureShape.new(name: 'CreateRepositoryRequest')
|
43
45
|
CreateRepositoryResponse = Shapes::StructureShape.new(name: 'CreateRepositoryResponse')
|
44
46
|
CreationTimestamp = Shapes::TimestampShape.new(name: 'CreationTimestamp')
|
45
47
|
CredentialArn = Shapes::StringShape.new(name: 'CredentialArn')
|
48
|
+
CustomRoleArn = Shapes::StringShape.new(name: 'CustomRoleArn')
|
46
49
|
CvssScore = Shapes::StructureShape.new(name: 'CvssScore')
|
47
50
|
CvssScoreAdjustment = Shapes::StructureShape.new(name: 'CvssScoreAdjustment')
|
48
51
|
CvssScoreAdjustmentList = Shapes::ListShape.new(name: 'CvssScoreAdjustmentList')
|
@@ -55,6 +58,8 @@ module Aws::ECR
|
|
55
58
|
DeletePullThroughCacheRuleResponse = Shapes::StructureShape.new(name: 'DeletePullThroughCacheRuleResponse')
|
56
59
|
DeleteRegistryPolicyRequest = Shapes::StructureShape.new(name: 'DeleteRegistryPolicyRequest')
|
57
60
|
DeleteRegistryPolicyResponse = Shapes::StructureShape.new(name: 'DeleteRegistryPolicyResponse')
|
61
|
+
DeleteRepositoryCreationTemplateRequest = Shapes::StructureShape.new(name: 'DeleteRepositoryCreationTemplateRequest')
|
62
|
+
DeleteRepositoryCreationTemplateResponse = Shapes::StructureShape.new(name: 'DeleteRepositoryCreationTemplateResponse')
|
58
63
|
DeleteRepositoryPolicyRequest = Shapes::StructureShape.new(name: 'DeleteRepositoryPolicyRequest')
|
59
64
|
DeleteRepositoryPolicyResponse = Shapes::StructureShape.new(name: 'DeleteRepositoryPolicyResponse')
|
60
65
|
DeleteRepositoryRequest = Shapes::StructureShape.new(name: 'DeleteRepositoryRequest')
|
@@ -72,8 +77,11 @@ module Aws::ECR
|
|
72
77
|
DescribeRegistryResponse = Shapes::StructureShape.new(name: 'DescribeRegistryResponse')
|
73
78
|
DescribeRepositoriesRequest = Shapes::StructureShape.new(name: 'DescribeRepositoriesRequest')
|
74
79
|
DescribeRepositoriesResponse = Shapes::StructureShape.new(name: 'DescribeRepositoriesResponse')
|
80
|
+
DescribeRepositoryCreationTemplatesRequest = Shapes::StructureShape.new(name: 'DescribeRepositoryCreationTemplatesRequest')
|
81
|
+
DescribeRepositoryCreationTemplatesResponse = Shapes::StructureShape.new(name: 'DescribeRepositoryCreationTemplatesResponse')
|
75
82
|
EmptyUploadException = Shapes::StructureShape.new(name: 'EmptyUploadException')
|
76
83
|
EncryptionConfiguration = Shapes::StructureShape.new(name: 'EncryptionConfiguration')
|
84
|
+
EncryptionConfigurationForRepositoryCreationTemplate = Shapes::StructureShape.new(name: 'EncryptionConfigurationForRepositoryCreationTemplate')
|
77
85
|
EncryptionType = Shapes::StringShape.new(name: 'EncryptionType')
|
78
86
|
EnhancedImageScanFinding = Shapes::StructureShape.new(name: 'EnhancedImageScanFinding')
|
79
87
|
EnhancedImageScanFindingList = Shapes::ListShape.new(name: 'EnhancedImageScanFindingList')
|
@@ -144,6 +152,7 @@ module Aws::ECR
|
|
144
152
|
KmsError = Shapes::StringShape.new(name: 'KmsError')
|
145
153
|
KmsException = Shapes::StructureShape.new(name: 'KmsException')
|
146
154
|
KmsKey = Shapes::StringShape.new(name: 'KmsKey')
|
155
|
+
KmsKeyForRepositoryCreationTemplate = Shapes::StringShape.new(name: 'KmsKeyForRepositoryCreationTemplate')
|
147
156
|
Layer = Shapes::StructureShape.new(name: 'Layer')
|
148
157
|
LayerAlreadyExistsException = Shapes::StructureShape.new(name: 'LayerAlreadyExistsException')
|
149
158
|
LayerAvailability = Shapes::StringShape.new(name: 'LayerAvailability')
|
@@ -170,6 +179,7 @@ module Aws::ECR
|
|
170
179
|
LifecyclePolicyRuleAction = Shapes::StructureShape.new(name: 'LifecyclePolicyRuleAction')
|
171
180
|
LifecyclePolicyRulePriority = Shapes::IntegerShape.new(name: 'LifecyclePolicyRulePriority')
|
172
181
|
LifecyclePolicyText = Shapes::StringShape.new(name: 'LifecyclePolicyText')
|
182
|
+
LifecyclePolicyTextForRepositoryCreationTemplate = Shapes::StringShape.new(name: 'LifecyclePolicyTextForRepositoryCreationTemplate')
|
173
183
|
LifecyclePreviewMaxResults = Shapes::IntegerShape.new(name: 'LifecyclePreviewMaxResults')
|
174
184
|
LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
|
175
185
|
ListImagesFilter = Shapes::StructureShape.new(name: 'ListImagesFilter')
|
@@ -187,6 +197,8 @@ module Aws::ECR
|
|
187
197
|
PackageVulnerabilityDetails = Shapes::StructureShape.new(name: 'PackageVulnerabilityDetails')
|
188
198
|
PartSize = Shapes::IntegerShape.new(name: 'PartSize')
|
189
199
|
Platform = Shapes::StringShape.new(name: 'Platform')
|
200
|
+
Prefix = Shapes::StringShape.new(name: 'Prefix')
|
201
|
+
PrefixList = Shapes::ListShape.new(name: 'PrefixList')
|
190
202
|
ProxyEndpoint = Shapes::StringShape.new(name: 'ProxyEndpoint')
|
191
203
|
PullThroughCacheRule = Shapes::StructureShape.new(name: 'PullThroughCacheRule')
|
192
204
|
PullThroughCacheRuleAlreadyExistsException = Shapes::StructureShape.new(name: 'PullThroughCacheRuleAlreadyExistsException')
|
@@ -209,6 +221,8 @@ module Aws::ECR
|
|
209
221
|
PutRegistryScanningConfigurationResponse = Shapes::StructureShape.new(name: 'PutRegistryScanningConfigurationResponse')
|
210
222
|
PutReplicationConfigurationRequest = Shapes::StructureShape.new(name: 'PutReplicationConfigurationRequest')
|
211
223
|
PutReplicationConfigurationResponse = Shapes::StructureShape.new(name: 'PutReplicationConfigurationResponse')
|
224
|
+
RCTAppliedFor = Shapes::StringShape.new(name: 'RCTAppliedFor')
|
225
|
+
RCTAppliedForList = Shapes::ListShape.new(name: 'RCTAppliedForList')
|
212
226
|
Reason = Shapes::StringShape.new(name: 'Reason')
|
213
227
|
Recommendation = Shapes::StructureShape.new(name: 'Recommendation')
|
214
228
|
RecommendationText = Shapes::StringShape.new(name: 'RecommendationText')
|
@@ -235,6 +249,8 @@ module Aws::ECR
|
|
235
249
|
ReplicationStatus = Shapes::StringShape.new(name: 'ReplicationStatus')
|
236
250
|
Repository = Shapes::StructureShape.new(name: 'Repository')
|
237
251
|
RepositoryAlreadyExistsException = Shapes::StructureShape.new(name: 'RepositoryAlreadyExistsException')
|
252
|
+
RepositoryCreationTemplate = Shapes::StructureShape.new(name: 'RepositoryCreationTemplate')
|
253
|
+
RepositoryCreationTemplateList = Shapes::ListShape.new(name: 'RepositoryCreationTemplateList')
|
238
254
|
RepositoryFilter = Shapes::StructureShape.new(name: 'RepositoryFilter')
|
239
255
|
RepositoryFilterList = Shapes::ListShape.new(name: 'RepositoryFilterList')
|
240
256
|
RepositoryFilterType = Shapes::StringShape.new(name: 'RepositoryFilterType')
|
@@ -250,6 +266,7 @@ module Aws::ECR
|
|
250
266
|
RepositoryScanningConfigurationFailure = Shapes::StructureShape.new(name: 'RepositoryScanningConfigurationFailure')
|
251
267
|
RepositoryScanningConfigurationFailureList = Shapes::ListShape.new(name: 'RepositoryScanningConfigurationFailureList')
|
252
268
|
RepositoryScanningConfigurationList = Shapes::ListShape.new(name: 'RepositoryScanningConfigurationList')
|
269
|
+
RepositoryTemplateDescription = Shapes::StringShape.new(name: 'RepositoryTemplateDescription')
|
253
270
|
Resource = Shapes::StructureShape.new(name: 'Resource')
|
254
271
|
ResourceDetails = Shapes::StructureShape.new(name: 'ResourceDetails')
|
255
272
|
ResourceId = Shapes::StringShape.new(name: 'ResourceId')
|
@@ -293,6 +310,8 @@ module Aws::ECR
|
|
293
310
|
TagStatus = Shapes::StringShape.new(name: 'TagStatus')
|
294
311
|
TagValue = Shapes::StringShape.new(name: 'TagValue')
|
295
312
|
Tags = Shapes::MapShape.new(name: 'Tags')
|
313
|
+
TemplateAlreadyExistsException = Shapes::StructureShape.new(name: 'TemplateAlreadyExistsException')
|
314
|
+
TemplateNotFoundException = Shapes::StructureShape.new(name: 'TemplateNotFoundException')
|
296
315
|
Title = Shapes::StringShape.new(name: 'Title')
|
297
316
|
TooManyTagsException = Shapes::StructureShape.new(name: 'TooManyTagsException')
|
298
317
|
Type = Shapes::StringShape.new(name: 'Type')
|
@@ -306,6 +325,8 @@ module Aws::ECR
|
|
306
325
|
UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
|
307
326
|
UpdatePullThroughCacheRuleRequest = Shapes::StructureShape.new(name: 'UpdatePullThroughCacheRuleRequest')
|
308
327
|
UpdatePullThroughCacheRuleResponse = Shapes::StructureShape.new(name: 'UpdatePullThroughCacheRuleResponse')
|
328
|
+
UpdateRepositoryCreationTemplateRequest = Shapes::StructureShape.new(name: 'UpdateRepositoryCreationTemplateRequest')
|
329
|
+
UpdateRepositoryCreationTemplateResponse = Shapes::StructureShape.new(name: 'UpdateRepositoryCreationTemplateResponse')
|
309
330
|
UpdatedTimestamp = Shapes::TimestampShape.new(name: 'UpdatedTimestamp')
|
310
331
|
UploadId = Shapes::StringShape.new(name: 'UploadId')
|
311
332
|
UploadLayerPartRequest = Shapes::StructureShape.new(name: 'UploadLayerPartRequest')
|
@@ -410,6 +431,21 @@ module Aws::ECR
|
|
410
431
|
CreatePullThroughCacheRuleResponse.add_member(:credential_arn, Shapes::ShapeRef.new(shape: CredentialArn, location_name: "credentialArn"))
|
411
432
|
CreatePullThroughCacheRuleResponse.struct_class = Types::CreatePullThroughCacheRuleResponse
|
412
433
|
|
434
|
+
CreateRepositoryCreationTemplateRequest.add_member(:prefix, Shapes::ShapeRef.new(shape: Prefix, required: true, location_name: "prefix"))
|
435
|
+
CreateRepositoryCreationTemplateRequest.add_member(:description, Shapes::ShapeRef.new(shape: RepositoryTemplateDescription, location_name: "description"))
|
436
|
+
CreateRepositoryCreationTemplateRequest.add_member(:encryption_configuration, Shapes::ShapeRef.new(shape: EncryptionConfigurationForRepositoryCreationTemplate, location_name: "encryptionConfiguration"))
|
437
|
+
CreateRepositoryCreationTemplateRequest.add_member(:resource_tags, Shapes::ShapeRef.new(shape: TagList, location_name: "resourceTags"))
|
438
|
+
CreateRepositoryCreationTemplateRequest.add_member(:image_tag_mutability, Shapes::ShapeRef.new(shape: ImageTagMutability, location_name: "imageTagMutability"))
|
439
|
+
CreateRepositoryCreationTemplateRequest.add_member(:repository_policy, Shapes::ShapeRef.new(shape: RepositoryPolicyText, location_name: "repositoryPolicy"))
|
440
|
+
CreateRepositoryCreationTemplateRequest.add_member(:lifecycle_policy, Shapes::ShapeRef.new(shape: LifecyclePolicyTextForRepositoryCreationTemplate, location_name: "lifecyclePolicy"))
|
441
|
+
CreateRepositoryCreationTemplateRequest.add_member(:applied_for, Shapes::ShapeRef.new(shape: RCTAppliedForList, required: true, location_name: "appliedFor"))
|
442
|
+
CreateRepositoryCreationTemplateRequest.add_member(:custom_role_arn, Shapes::ShapeRef.new(shape: CustomRoleArn, location_name: "customRoleArn"))
|
443
|
+
CreateRepositoryCreationTemplateRequest.struct_class = Types::CreateRepositoryCreationTemplateRequest
|
444
|
+
|
445
|
+
CreateRepositoryCreationTemplateResponse.add_member(:registry_id, Shapes::ShapeRef.new(shape: RegistryId, location_name: "registryId"))
|
446
|
+
CreateRepositoryCreationTemplateResponse.add_member(:repository_creation_template, Shapes::ShapeRef.new(shape: RepositoryCreationTemplate, location_name: "repositoryCreationTemplate"))
|
447
|
+
CreateRepositoryCreationTemplateResponse.struct_class = Types::CreateRepositoryCreationTemplateResponse
|
448
|
+
|
413
449
|
CreateRepositoryRequest.add_member(:registry_id, Shapes::ShapeRef.new(shape: RegistryId, location_name: "registryId"))
|
414
450
|
CreateRepositoryRequest.add_member(:repository_name, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location_name: "repositoryName"))
|
415
451
|
CreateRepositoryRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
|
@@ -469,6 +505,13 @@ module Aws::ECR
|
|
469
505
|
DeleteRegistryPolicyResponse.add_member(:policy_text, Shapes::ShapeRef.new(shape: RegistryPolicyText, location_name: "policyText"))
|
470
506
|
DeleteRegistryPolicyResponse.struct_class = Types::DeleteRegistryPolicyResponse
|
471
507
|
|
508
|
+
DeleteRepositoryCreationTemplateRequest.add_member(:prefix, Shapes::ShapeRef.new(shape: Prefix, required: true, location_name: "prefix"))
|
509
|
+
DeleteRepositoryCreationTemplateRequest.struct_class = Types::DeleteRepositoryCreationTemplateRequest
|
510
|
+
|
511
|
+
DeleteRepositoryCreationTemplateResponse.add_member(:registry_id, Shapes::ShapeRef.new(shape: RegistryId, location_name: "registryId"))
|
512
|
+
DeleteRepositoryCreationTemplateResponse.add_member(:repository_creation_template, Shapes::ShapeRef.new(shape: RepositoryCreationTemplate, location_name: "repositoryCreationTemplate"))
|
513
|
+
DeleteRepositoryCreationTemplateResponse.struct_class = Types::DeleteRepositoryCreationTemplateResponse
|
514
|
+
|
472
515
|
DeleteRepositoryPolicyRequest.add_member(:registry_id, Shapes::ShapeRef.new(shape: RegistryId, location_name: "registryId"))
|
473
516
|
DeleteRepositoryPolicyRequest.add_member(:repository_name, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location_name: "repositoryName"))
|
474
517
|
DeleteRepositoryPolicyRequest.struct_class = Types::DeleteRepositoryPolicyRequest
|
@@ -552,6 +595,16 @@ module Aws::ECR
|
|
552
595
|
DescribeRepositoriesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
553
596
|
DescribeRepositoriesResponse.struct_class = Types::DescribeRepositoriesResponse
|
554
597
|
|
598
|
+
DescribeRepositoryCreationTemplatesRequest.add_member(:prefixes, Shapes::ShapeRef.new(shape: PrefixList, location_name: "prefixes"))
|
599
|
+
DescribeRepositoryCreationTemplatesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
600
|
+
DescribeRepositoryCreationTemplatesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
|
601
|
+
DescribeRepositoryCreationTemplatesRequest.struct_class = Types::DescribeRepositoryCreationTemplatesRequest
|
602
|
+
|
603
|
+
DescribeRepositoryCreationTemplatesResponse.add_member(:registry_id, Shapes::ShapeRef.new(shape: RegistryId, location_name: "registryId"))
|
604
|
+
DescribeRepositoryCreationTemplatesResponse.add_member(:repository_creation_templates, Shapes::ShapeRef.new(shape: RepositoryCreationTemplateList, location_name: "repositoryCreationTemplates"))
|
605
|
+
DescribeRepositoryCreationTemplatesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
606
|
+
DescribeRepositoryCreationTemplatesResponse.struct_class = Types::DescribeRepositoryCreationTemplatesResponse
|
607
|
+
|
555
608
|
EmptyUploadException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
|
556
609
|
EmptyUploadException.struct_class = Types::EmptyUploadException
|
557
610
|
|
@@ -559,6 +612,10 @@ module Aws::ECR
|
|
559
612
|
EncryptionConfiguration.add_member(:kms_key, Shapes::ShapeRef.new(shape: KmsKey, location_name: "kmsKey"))
|
560
613
|
EncryptionConfiguration.struct_class = Types::EncryptionConfiguration
|
561
614
|
|
615
|
+
EncryptionConfigurationForRepositoryCreationTemplate.add_member(:encryption_type, Shapes::ShapeRef.new(shape: EncryptionType, required: true, location_name: "encryptionType"))
|
616
|
+
EncryptionConfigurationForRepositoryCreationTemplate.add_member(:kms_key, Shapes::ShapeRef.new(shape: KmsKeyForRepositoryCreationTemplate, location_name: "kmsKey"))
|
617
|
+
EncryptionConfigurationForRepositoryCreationTemplate.struct_class = Types::EncryptionConfigurationForRepositoryCreationTemplate
|
618
|
+
|
562
619
|
EnhancedImageScanFinding.add_member(:aws_account_id, Shapes::ShapeRef.new(shape: RegistryId, location_name: "awsAccountId"))
|
563
620
|
EnhancedImageScanFinding.add_member(:description, Shapes::ShapeRef.new(shape: FindingDescription, location_name: "description"))
|
564
621
|
EnhancedImageScanFinding.add_member(:finding_arn, Shapes::ShapeRef.new(shape: FindingArn, location_name: "findingArn"))
|
@@ -856,6 +913,8 @@ module Aws::ECR
|
|
856
913
|
PackageVulnerabilityDetails.add_member(:vulnerable_packages, Shapes::ShapeRef.new(shape: VulnerablePackagesList, location_name: "vulnerablePackages"))
|
857
914
|
PackageVulnerabilityDetails.struct_class = Types::PackageVulnerabilityDetails
|
858
915
|
|
916
|
+
PrefixList.member = Shapes::ShapeRef.new(shape: Prefix)
|
917
|
+
|
859
918
|
PullThroughCacheRule.add_member(:ecr_repository_prefix, Shapes::ShapeRef.new(shape: PullThroughCacheRuleRepositoryPrefix, location_name: "ecrRepositoryPrefix"))
|
860
919
|
PullThroughCacheRule.add_member(:upstream_registry_url, Shapes::ShapeRef.new(shape: Url, location_name: "upstreamRegistryUrl"))
|
861
920
|
PullThroughCacheRule.add_member(:created_at, Shapes::ShapeRef.new(shape: CreationTimestamp, location_name: "createdAt"))
|
@@ -936,6 +995,8 @@ module Aws::ECR
|
|
936
995
|
PutReplicationConfigurationResponse.add_member(:replication_configuration, Shapes::ShapeRef.new(shape: ReplicationConfiguration, location_name: "replicationConfiguration"))
|
937
996
|
PutReplicationConfigurationResponse.struct_class = Types::PutReplicationConfigurationResponse
|
938
997
|
|
998
|
+
RCTAppliedForList.member = Shapes::ShapeRef.new(shape: RCTAppliedFor)
|
999
|
+
|
939
1000
|
Recommendation.add_member(:url, Shapes::ShapeRef.new(shape: Url, location_name: "url"))
|
940
1001
|
Recommendation.add_member(:text, Shapes::ShapeRef.new(shape: RecommendationText, location_name: "text"))
|
941
1002
|
Recommendation.struct_class = Types::Recommendation
|
@@ -991,6 +1052,21 @@ module Aws::ECR
|
|
991
1052
|
RepositoryAlreadyExistsException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
|
992
1053
|
RepositoryAlreadyExistsException.struct_class = Types::RepositoryAlreadyExistsException
|
993
1054
|
|
1055
|
+
RepositoryCreationTemplate.add_member(:prefix, Shapes::ShapeRef.new(shape: Prefix, location_name: "prefix"))
|
1056
|
+
RepositoryCreationTemplate.add_member(:description, Shapes::ShapeRef.new(shape: RepositoryTemplateDescription, location_name: "description"))
|
1057
|
+
RepositoryCreationTemplate.add_member(:encryption_configuration, Shapes::ShapeRef.new(shape: EncryptionConfigurationForRepositoryCreationTemplate, location_name: "encryptionConfiguration"))
|
1058
|
+
RepositoryCreationTemplate.add_member(:resource_tags, Shapes::ShapeRef.new(shape: TagList, location_name: "resourceTags"))
|
1059
|
+
RepositoryCreationTemplate.add_member(:image_tag_mutability, Shapes::ShapeRef.new(shape: ImageTagMutability, location_name: "imageTagMutability"))
|
1060
|
+
RepositoryCreationTemplate.add_member(:repository_policy, Shapes::ShapeRef.new(shape: RepositoryPolicyText, location_name: "repositoryPolicy"))
|
1061
|
+
RepositoryCreationTemplate.add_member(:lifecycle_policy, Shapes::ShapeRef.new(shape: LifecyclePolicyTextForRepositoryCreationTemplate, location_name: "lifecyclePolicy"))
|
1062
|
+
RepositoryCreationTemplate.add_member(:applied_for, Shapes::ShapeRef.new(shape: RCTAppliedForList, location_name: "appliedFor"))
|
1063
|
+
RepositoryCreationTemplate.add_member(:custom_role_arn, Shapes::ShapeRef.new(shape: CustomRoleArn, location_name: "customRoleArn"))
|
1064
|
+
RepositoryCreationTemplate.add_member(:created_at, Shapes::ShapeRef.new(shape: Date, location_name: "createdAt"))
|
1065
|
+
RepositoryCreationTemplate.add_member(:updated_at, Shapes::ShapeRef.new(shape: Date, location_name: "updatedAt"))
|
1066
|
+
RepositoryCreationTemplate.struct_class = Types::RepositoryCreationTemplate
|
1067
|
+
|
1068
|
+
RepositoryCreationTemplateList.member = Shapes::ShapeRef.new(shape: RepositoryCreationTemplate)
|
1069
|
+
|
994
1070
|
RepositoryFilter.add_member(:filter, Shapes::ShapeRef.new(shape: RepositoryFilterValue, required: true, location_name: "filter"))
|
995
1071
|
RepositoryFilter.add_member(:filter_type, Shapes::ShapeRef.new(shape: RepositoryFilterType, required: true, location_name: "filterType"))
|
996
1072
|
RepositoryFilter.struct_class = Types::RepositoryFilter
|
@@ -1107,6 +1183,12 @@ module Aws::ECR
|
|
1107
1183
|
Tags.key = Shapes::ShapeRef.new(shape: TagKey)
|
1108
1184
|
Tags.value = Shapes::ShapeRef.new(shape: TagValue)
|
1109
1185
|
|
1186
|
+
TemplateAlreadyExistsException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
|
1187
|
+
TemplateAlreadyExistsException.struct_class = Types::TemplateAlreadyExistsException
|
1188
|
+
|
1189
|
+
TemplateNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
|
1190
|
+
TemplateNotFoundException.struct_class = Types::TemplateNotFoundException
|
1191
|
+
|
1110
1192
|
TooManyTagsException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
|
1111
1193
|
TooManyTagsException.struct_class = Types::TooManyTagsException
|
1112
1194
|
|
@@ -1145,6 +1227,21 @@ module Aws::ECR
|
|
1145
1227
|
UpdatePullThroughCacheRuleResponse.add_member(:credential_arn, Shapes::ShapeRef.new(shape: CredentialArn, location_name: "credentialArn"))
|
1146
1228
|
UpdatePullThroughCacheRuleResponse.struct_class = Types::UpdatePullThroughCacheRuleResponse
|
1147
1229
|
|
1230
|
+
UpdateRepositoryCreationTemplateRequest.add_member(:prefix, Shapes::ShapeRef.new(shape: Prefix, required: true, location_name: "prefix"))
|
1231
|
+
UpdateRepositoryCreationTemplateRequest.add_member(:description, Shapes::ShapeRef.new(shape: RepositoryTemplateDescription, location_name: "description"))
|
1232
|
+
UpdateRepositoryCreationTemplateRequest.add_member(:encryption_configuration, Shapes::ShapeRef.new(shape: EncryptionConfigurationForRepositoryCreationTemplate, location_name: "encryptionConfiguration"))
|
1233
|
+
UpdateRepositoryCreationTemplateRequest.add_member(:resource_tags, Shapes::ShapeRef.new(shape: TagList, location_name: "resourceTags"))
|
1234
|
+
UpdateRepositoryCreationTemplateRequest.add_member(:image_tag_mutability, Shapes::ShapeRef.new(shape: ImageTagMutability, location_name: "imageTagMutability"))
|
1235
|
+
UpdateRepositoryCreationTemplateRequest.add_member(:repository_policy, Shapes::ShapeRef.new(shape: RepositoryPolicyText, location_name: "repositoryPolicy"))
|
1236
|
+
UpdateRepositoryCreationTemplateRequest.add_member(:lifecycle_policy, Shapes::ShapeRef.new(shape: LifecyclePolicyTextForRepositoryCreationTemplate, location_name: "lifecyclePolicy"))
|
1237
|
+
UpdateRepositoryCreationTemplateRequest.add_member(:applied_for, Shapes::ShapeRef.new(shape: RCTAppliedForList, location_name: "appliedFor"))
|
1238
|
+
UpdateRepositoryCreationTemplateRequest.add_member(:custom_role_arn, Shapes::ShapeRef.new(shape: CustomRoleArn, location_name: "customRoleArn"))
|
1239
|
+
UpdateRepositoryCreationTemplateRequest.struct_class = Types::UpdateRepositoryCreationTemplateRequest
|
1240
|
+
|
1241
|
+
UpdateRepositoryCreationTemplateResponse.add_member(:registry_id, Shapes::ShapeRef.new(shape: RegistryId, location_name: "registryId"))
|
1242
|
+
UpdateRepositoryCreationTemplateResponse.add_member(:repository_creation_template, Shapes::ShapeRef.new(shape: RepositoryCreationTemplate, location_name: "repositoryCreationTemplate"))
|
1243
|
+
UpdateRepositoryCreationTemplateResponse.struct_class = Types::UpdateRepositoryCreationTemplateResponse
|
1244
|
+
|
1148
1245
|
UploadLayerPartRequest.add_member(:registry_id, Shapes::ShapeRef.new(shape: RegistryId, location_name: "registryId"))
|
1149
1246
|
UploadLayerPartRequest.add_member(:repository_name, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location_name: "repositoryName"))
|
1150
1247
|
UploadLayerPartRequest.add_member(:upload_id, Shapes::ShapeRef.new(shape: UploadId, required: true, location_name: "uploadId"))
|
@@ -1307,6 +1404,19 @@ module Aws::ECR
|
|
1307
1404
|
o.errors << Shapes::ShapeRef.new(shape: KmsException)
|
1308
1405
|
end)
|
1309
1406
|
|
1407
|
+
api.add_operation(:create_repository_creation_template, Seahorse::Model::Operation.new.tap do |o|
|
1408
|
+
o.name = "CreateRepositoryCreationTemplate"
|
1409
|
+
o.http_method = "POST"
|
1410
|
+
o.http_request_uri = "/"
|
1411
|
+
o.input = Shapes::ShapeRef.new(shape: CreateRepositoryCreationTemplateRequest)
|
1412
|
+
o.output = Shapes::ShapeRef.new(shape: CreateRepositoryCreationTemplateResponse)
|
1413
|
+
o.errors << Shapes::ShapeRef.new(shape: ServerException)
|
1414
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
1415
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
1416
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
1417
|
+
o.errors << Shapes::ShapeRef.new(shape: TemplateAlreadyExistsException)
|
1418
|
+
end)
|
1419
|
+
|
1310
1420
|
api.add_operation(:delete_lifecycle_policy, Seahorse::Model::Operation.new.tap do |o|
|
1311
1421
|
o.name = "DeleteLifecyclePolicy"
|
1312
1422
|
o.http_method = "POST"
|
@@ -1357,6 +1467,18 @@ module Aws::ECR
|
|
1357
1467
|
o.errors << Shapes::ShapeRef.new(shape: KmsException)
|
1358
1468
|
end)
|
1359
1469
|
|
1470
|
+
api.add_operation(:delete_repository_creation_template, Seahorse::Model::Operation.new.tap do |o|
|
1471
|
+
o.name = "DeleteRepositoryCreationTemplate"
|
1472
|
+
o.http_method = "POST"
|
1473
|
+
o.http_request_uri = "/"
|
1474
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteRepositoryCreationTemplateRequest)
|
1475
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteRepositoryCreationTemplateResponse)
|
1476
|
+
o.errors << Shapes::ShapeRef.new(shape: ServerException)
|
1477
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
1478
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
1479
|
+
o.errors << Shapes::ShapeRef.new(shape: TemplateNotFoundException)
|
1480
|
+
end)
|
1481
|
+
|
1360
1482
|
api.add_operation(:delete_repository_policy, Seahorse::Model::Operation.new.tap do |o|
|
1361
1483
|
o.name = "DeleteRepositoryPolicy"
|
1362
1484
|
o.http_method = "POST"
|
@@ -1466,6 +1588,23 @@ module Aws::ECR
|
|
1466
1588
|
)
|
1467
1589
|
end)
|
1468
1590
|
|
1591
|
+
api.add_operation(:describe_repository_creation_templates, Seahorse::Model::Operation.new.tap do |o|
|
1592
|
+
o.name = "DescribeRepositoryCreationTemplates"
|
1593
|
+
o.http_method = "POST"
|
1594
|
+
o.http_request_uri = "/"
|
1595
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeRepositoryCreationTemplatesRequest)
|
1596
|
+
o.output = Shapes::ShapeRef.new(shape: DescribeRepositoryCreationTemplatesResponse)
|
1597
|
+
o.errors << Shapes::ShapeRef.new(shape: ServerException)
|
1598
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
1599
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
1600
|
+
o[:pager] = Aws::Pager.new(
|
1601
|
+
limit_key: "max_results",
|
1602
|
+
tokens: {
|
1603
|
+
"next_token" => "next_token"
|
1604
|
+
}
|
1605
|
+
)
|
1606
|
+
end)
|
1607
|
+
|
1469
1608
|
api.add_operation(:get_authorization_token, Seahorse::Model::Operation.new.tap do |o|
|
1470
1609
|
o.name = "GetAuthorizationToken"
|
1471
1610
|
o.http_method = "POST"
|
@@ -1764,6 +1903,18 @@ module Aws::ECR
|
|
1764
1903
|
o.errors << Shapes::ShapeRef.new(shape: UnableToDecryptSecretValueException)
|
1765
1904
|
end)
|
1766
1905
|
|
1906
|
+
api.add_operation(:update_repository_creation_template, Seahorse::Model::Operation.new.tap do |o|
|
1907
|
+
o.name = "UpdateRepositoryCreationTemplate"
|
1908
|
+
o.http_method = "POST"
|
1909
|
+
o.http_request_uri = "/"
|
1910
|
+
o.input = Shapes::ShapeRef.new(shape: UpdateRepositoryCreationTemplateRequest)
|
1911
|
+
o.output = Shapes::ShapeRef.new(shape: UpdateRepositoryCreationTemplateResponse)
|
1912
|
+
o.errors << Shapes::ShapeRef.new(shape: ServerException)
|
1913
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
1914
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
1915
|
+
o.errors << Shapes::ShapeRef.new(shape: TemplateNotFoundException)
|
1916
|
+
end)
|
1917
|
+
|
1767
1918
|
api.add_operation(:upload_layer_part, Seahorse::Model::Operation.new.tap do |o|
|
1768
1919
|
o.name = "UploadLayerPart"
|
1769
1920
|
o.http_method = "POST"
|
@@ -110,6 +110,20 @@ module Aws::ECR
|
|
110
110
|
end
|
111
111
|
end
|
112
112
|
|
113
|
+
class CreateRepositoryCreationTemplate
|
114
|
+
def self.build(context)
|
115
|
+
unless context.config.regional_endpoint
|
116
|
+
endpoint = context.config.endpoint.to_s
|
117
|
+
end
|
118
|
+
Aws::ECR::EndpointParameters.new(
|
119
|
+
region: context.config.region,
|
120
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
121
|
+
use_fips: context.config.use_fips_endpoint,
|
122
|
+
endpoint: endpoint,
|
123
|
+
)
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
113
127
|
class DeleteLifecyclePolicy
|
114
128
|
def self.build(context)
|
115
129
|
unless context.config.regional_endpoint
|
@@ -166,6 +180,20 @@ module Aws::ECR
|
|
166
180
|
end
|
167
181
|
end
|
168
182
|
|
183
|
+
class DeleteRepositoryCreationTemplate
|
184
|
+
def self.build(context)
|
185
|
+
unless context.config.regional_endpoint
|
186
|
+
endpoint = context.config.endpoint.to_s
|
187
|
+
end
|
188
|
+
Aws::ECR::EndpointParameters.new(
|
189
|
+
region: context.config.region,
|
190
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
191
|
+
use_fips: context.config.use_fips_endpoint,
|
192
|
+
endpoint: endpoint,
|
193
|
+
)
|
194
|
+
end
|
195
|
+
end
|
196
|
+
|
169
197
|
class DeleteRepositoryPolicy
|
170
198
|
def self.build(context)
|
171
199
|
unless context.config.regional_endpoint
|
@@ -264,6 +292,20 @@ module Aws::ECR
|
|
264
292
|
end
|
265
293
|
end
|
266
294
|
|
295
|
+
class DescribeRepositoryCreationTemplates
|
296
|
+
def self.build(context)
|
297
|
+
unless context.config.regional_endpoint
|
298
|
+
endpoint = context.config.endpoint.to_s
|
299
|
+
end
|
300
|
+
Aws::ECR::EndpointParameters.new(
|
301
|
+
region: context.config.region,
|
302
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
303
|
+
use_fips: context.config.use_fips_endpoint,
|
304
|
+
endpoint: endpoint,
|
305
|
+
)
|
306
|
+
end
|
307
|
+
end
|
308
|
+
|
267
309
|
class GetAuthorizationToken
|
268
310
|
def self.build(context)
|
269
311
|
unless context.config.regional_endpoint
|
@@ -586,6 +628,20 @@ module Aws::ECR
|
|
586
628
|
end
|
587
629
|
end
|
588
630
|
|
631
|
+
class UpdateRepositoryCreationTemplate
|
632
|
+
def self.build(context)
|
633
|
+
unless context.config.regional_endpoint
|
634
|
+
endpoint = context.config.endpoint.to_s
|
635
|
+
end
|
636
|
+
Aws::ECR::EndpointParameters.new(
|
637
|
+
region: context.config.region,
|
638
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
639
|
+
use_fips: context.config.use_fips_endpoint,
|
640
|
+
endpoint: endpoint,
|
641
|
+
)
|
642
|
+
end
|
643
|
+
end
|
644
|
+
|
589
645
|
class UploadLayerPart
|
590
646
|
def self.build(context)
|
591
647
|
unless context.config.regional_endpoint
|
data/lib/aws-sdk-ecr/errors.rb
CHANGED
@@ -56,6 +56,8 @@ module Aws::ECR
|
|
56
56
|
# * {ScanNotFoundException}
|
57
57
|
# * {SecretNotFoundException}
|
58
58
|
# * {ServerException}
|
59
|
+
# * {TemplateAlreadyExistsException}
|
60
|
+
# * {TemplateNotFoundException}
|
59
61
|
# * {TooManyTagsException}
|
60
62
|
# * {UnableToAccessSecretException}
|
61
63
|
# * {UnableToDecryptSecretValueException}
|
@@ -532,6 +534,36 @@ module Aws::ECR
|
|
532
534
|
end
|
533
535
|
end
|
534
536
|
|
537
|
+
class TemplateAlreadyExistsException < ServiceError
|
538
|
+
|
539
|
+
# @param [Seahorse::Client::RequestContext] context
|
540
|
+
# @param [String] message
|
541
|
+
# @param [Aws::ECR::Types::TemplateAlreadyExistsException] data
|
542
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
543
|
+
super(context, message, data)
|
544
|
+
end
|
545
|
+
|
546
|
+
# @return [String]
|
547
|
+
def message
|
548
|
+
@message || @data[:message]
|
549
|
+
end
|
550
|
+
end
|
551
|
+
|
552
|
+
class TemplateNotFoundException < ServiceError
|
553
|
+
|
554
|
+
# @param [Seahorse::Client::RequestContext] context
|
555
|
+
# @param [String] message
|
556
|
+
# @param [Aws::ECR::Types::TemplateNotFoundException] data
|
557
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
558
|
+
super(context, message, data)
|
559
|
+
end
|
560
|
+
|
561
|
+
# @return [String]
|
562
|
+
def message
|
563
|
+
@message || @data[:message]
|
564
|
+
end
|
565
|
+
end
|
566
|
+
|
535
567
|
class TooManyTagsException < ServiceError
|
536
568
|
|
537
569
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -72,6 +72,8 @@ module Aws::ECR
|
|
72
72
|
Aws::ECR::Endpoints::CreatePullThroughCacheRule.build(context)
|
73
73
|
when :create_repository
|
74
74
|
Aws::ECR::Endpoints::CreateRepository.build(context)
|
75
|
+
when :create_repository_creation_template
|
76
|
+
Aws::ECR::Endpoints::CreateRepositoryCreationTemplate.build(context)
|
75
77
|
when :delete_lifecycle_policy
|
76
78
|
Aws::ECR::Endpoints::DeleteLifecyclePolicy.build(context)
|
77
79
|
when :delete_pull_through_cache_rule
|
@@ -80,6 +82,8 @@ module Aws::ECR
|
|
80
82
|
Aws::ECR::Endpoints::DeleteRegistryPolicy.build(context)
|
81
83
|
when :delete_repository
|
82
84
|
Aws::ECR::Endpoints::DeleteRepository.build(context)
|
85
|
+
when :delete_repository_creation_template
|
86
|
+
Aws::ECR::Endpoints::DeleteRepositoryCreationTemplate.build(context)
|
83
87
|
when :delete_repository_policy
|
84
88
|
Aws::ECR::Endpoints::DeleteRepositoryPolicy.build(context)
|
85
89
|
when :describe_image_replication_status
|
@@ -94,6 +98,8 @@ module Aws::ECR
|
|
94
98
|
Aws::ECR::Endpoints::DescribeRegistry.build(context)
|
95
99
|
when :describe_repositories
|
96
100
|
Aws::ECR::Endpoints::DescribeRepositories.build(context)
|
101
|
+
when :describe_repository_creation_templates
|
102
|
+
Aws::ECR::Endpoints::DescribeRepositoryCreationTemplates.build(context)
|
97
103
|
when :get_authorization_token
|
98
104
|
Aws::ECR::Endpoints::GetAuthorizationToken.build(context)
|
99
105
|
when :get_download_url_for_layer
|
@@ -140,6 +146,8 @@ module Aws::ECR
|
|
140
146
|
Aws::ECR::Endpoints::UntagResource.build(context)
|
141
147
|
when :update_pull_through_cache_rule
|
142
148
|
Aws::ECR::Endpoints::UpdatePullThroughCacheRule.build(context)
|
149
|
+
when :update_repository_creation_template
|
150
|
+
Aws::ECR::Endpoints::UpdateRepositoryCreationTemplate.build(context)
|
143
151
|
when :upload_layer_part
|
144
152
|
Aws::ECR::Endpoints::UploadLayerPart.build(context)
|
145
153
|
when :validate_pull_through_cache_rule
|