Skip to content

Commit 4259a45

Browse files
This release will have ValidationException be thrown from ECR LifecyclePolicy APIs in regions LifecyclePolicy is not supported, this includes existing Amazon Dedicated Cloud (ADC) regions. This release will also change Tag: TagValue and Tag: TagKey to required.
1 parent 94f1833 commit 4259a45

25 files changed

+1041
-3264
lines changed

generator/ServiceModels/ecr/ecr-2015-09-21.api.json

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@
138138
{"shape":"ServerException"},
139139
{"shape":"InvalidParameterException"},
140140
{"shape":"RepositoryNotFoundException"},
141-
{"shape":"LifecyclePolicyNotFoundException"}
141+
{"shape":"LifecyclePolicyNotFoundException"},
142+
{"shape":"ValidationException"}
142143
]
143144
},
144145
"DeletePullThroughCacheRule":{
@@ -334,7 +335,8 @@
334335
{"shape":"ServerException"},
335336
{"shape":"InvalidParameterException"},
336337
{"shape":"RepositoryNotFoundException"},
337-
{"shape":"LifecyclePolicyNotFoundException"}
338+
{"shape":"LifecyclePolicyNotFoundException"},
339+
{"shape":"ValidationException"}
338340
]
339341
},
340342
"GetLifecyclePolicyPreview":{
@@ -349,7 +351,8 @@
349351
{"shape":"ServerException"},
350352
{"shape":"InvalidParameterException"},
351353
{"shape":"RepositoryNotFoundException"},
352-
{"shape":"LifecyclePolicyPreviewNotFoundException"}
354+
{"shape":"LifecyclePolicyPreviewNotFoundException"},
355+
{"shape":"ValidationException"}
353356
]
354357
},
355358
"GetRegistryPolicy":{
@@ -500,7 +503,8 @@
500503
"errors":[
501504
{"shape":"ServerException"},
502505
{"shape":"InvalidParameterException"},
503-
{"shape":"RepositoryNotFoundException"}
506+
{"shape":"RepositoryNotFoundException"},
507+
{"shape":"ValidationException"}
504508
]
505509
},
506510
"PutRegistryPolicy":{
@@ -590,7 +594,8 @@
590594
{"shape":"InvalidParameterException"},
591595
{"shape":"RepositoryNotFoundException"},
592596
{"shape":"LifecyclePolicyNotFoundException"},
593-
{"shape":"LifecyclePolicyPreviewInProgressException"}
597+
{"shape":"LifecyclePolicyPreviewInProgressException"},
598+
{"shape":"ValidationException"}
594599
]
595600
},
596601
"TagResource":{
@@ -2345,6 +2350,10 @@
23452350
"Status":{"type":"string"},
23462351
"Tag":{
23472352
"type":"structure",
2353+
"required":[
2354+
"Key",
2355+
"Value"
2356+
],
23482357
"members":{
23492358
"Key":{"shape":"TagKey"},
23502359
"Value":{"shape":"TagValue"}

generator/ServiceModels/ecr/ecr-2015-09-21.docs.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"base": null,
5757
"refs": {
5858
"ListTagsForResourceRequest$resourceArn": "<p>The Amazon Resource Name (ARN) that identifies the resource for which to list the tags. Currently, the only supported resource is an Amazon ECR repository.</p>",
59-
"Repository$repositoryArn": "<p>The Amazon Resource Name (ARN) that identifies the repository. The ARN contains the <code>arn:aws:ecr</code> namespace, followed by the region of the repository, Amazon Web Services account ID of the repository owner, repository namespace, and repository name. For example, <code>arn:aws:ecr:region:012345678910:repository/test</code>.</p>",
59+
"Repository$repositoryArn": "<p>The Amazon Resource Name (ARN) that identifies the repository. The ARN contains the <code>arn:aws:ecr</code> namespace, followed by the region of the repository, Amazon Web Services account ID of the repository owner, repository namespace, and repository name. For example, <code>arn:aws:ecr:region:012345678910:repository-namespace/repository-name</code>.</p>",
6060
"RepositoryScanningConfiguration$repositoryArn": "<p>The ARN of the repository.</p>",
6161
"TagResourceRequest$resourceArn": "<p>The Amazon Resource Name (ARN) of the the resource to which to add tags. Currently, the only supported resource is an Amazon ECR repository.</p>",
6262
"UntagResourceRequest$resourceArn": "<p>The Amazon Resource Name (ARN) of the resource from which to remove tags. Currently, the only supported resource is an Amazon ECR repository.</p>"
@@ -1461,7 +1461,7 @@
14611461
}
14621462
},
14631463
"RepositoryFilter": {
1464-
"base": "<p>The filter settings used with image replication. Specifying a repository filter to a replication rule provides a method for controlling which repositories in a private registry are replicated. If no repository filter is specified, all images in the repository are replicated.</p>",
1464+
"base": "<p>The filter settings used with image replication. Specifying a repository filter to a replication rule provides a method for controlling which repositories in a private registry are replicated. If no filters are added, the contents of all repositories are replicated.</p>",
14651465
"refs": {
14661466
"RepositoryFilterList$member": null
14671467
}
@@ -1499,7 +1499,7 @@
14991499
"BatchGetImageRequest$repositoryName": "<p>The repository that contains the images to describe.</p>",
15001500
"CompleteLayerUploadRequest$repositoryName": "<p>The name of the repository to associate with the image layer.</p>",
15011501
"CompleteLayerUploadResponse$repositoryName": "<p>The repository name associated with the request.</p>",
1502-
"CreateRepositoryRequest$repositoryName": "<p>The name to use for the repository. The repository name may be specified on its own (such as <code>nginx-web-app</code>) or it can be prepended with a namespace to group the repository into a category (such as <code>project-a/nginx-web-app</code>).</p>",
1502+
"CreateRepositoryRequest$repositoryName": "<p>The name to use for the repository. The repository name may be specified on its own (such as <code>nginx-web-app</code>) or it can be prepended with a namespace to group the repository into a category (such as <code>project-a/nginx-web-app</code>).</p> <p>The repository name must start with a letter and can only contain lowercase letters, numbers, hyphens, underscores, and forward slashes.</p>",
15031503
"DeleteLifecyclePolicyRequest$repositoryName": "<p>The name of the repository.</p>",
15041504
"DeleteLifecyclePolicyResponse$repositoryName": "<p>The repository name associated with the request.</p>",
15051505
"DeleteRepositoryPolicyRequest$repositoryName": "<p>The name of the repository that is associated with the repository policy to delete.</p>",
@@ -1625,7 +1625,7 @@
16251625
"ScanFrequency": {
16261626
"base": null,
16271627
"refs": {
1628-
"RegistryScanningRule$scanFrequency": "<p>The frequency that scans are performed at for a private registry. When the <code>ENHANCED</code> scan type is specified, the supported scan frequencies are <code>CONTINUOUS_SCAN</code> and <code>SCAN_ON_PUSH</code>. When the <code>BASIC</code> scan type is specified, the <code>SCAN_ON_PUSH</code> and <code>MANUAL</code> scan frequencies are supported.</p>",
1628+
"RegistryScanningRule$scanFrequency": "<p>The frequency that scans are performed at for a private registry. When the <code>ENHANCED</code> scan type is specified, the supported scan frequencies are <code>CONTINUOUS_SCAN</code> and <code>SCAN_ON_PUSH</code>. When the <code>BASIC</code> scan type is specified, the <code>SCAN_ON_PUSH</code> scan frequency is supported. If scan on push is not specified, then the <code>MANUAL</code> scan frequency is set by default.</p>",
16291629
"RepositoryScanningConfiguration$scanFrequency": "<p>The scan frequency for the repository.</p>"
16301630
}
16311631
},

0 commit comments

Comments
 (0)