Skip to content

Commit a93befd

Browse files
author
AWS
committed
Amazon EC2 Container Registry Update: Add a new parameter (ImageDigest) and a new exception (ImageDigestDoesNotMatchException) to PutImage API to support pushing image by digest.
1 parent afa7ae7 commit a93befd

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon EC2 Container Registry",
4+
"description": "Add a new parameter (ImageDigest) and a new exception (ImageDigestDoesNotMatchException) to PutImage API to support pushing image by digest."
5+
}

services/ecr/src/main/resources/codegen-resources/service-2.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,8 @@
333333
{"shape":"LayersNotFoundException"},
334334
{"shape":"ReferencedImagesNotFoundException"},
335335
{"shape":"LimitExceededException"},
336-
{"shape":"ImageTagAlreadyExistsException"}
336+
{"shape":"ImageTagAlreadyExistsException"},
337+
{"shape":"ImageDigestDoesNotMatchException"}
337338
],
338339
"documentation":"<p>Creates or updates the image manifest and tags associated with an image.</p> <p>When an image is pushed and all new image layers have been uploaded, the PutImage API is called once to create or update the image manifest and the tags associated with the image.</p> <note> <p>This operation is used by the Amazon ECR proxy and is not generally used by customers for pulling and pushing images. In most cases, you should use the <code>docker</code> CLI to pull, tag, and push images.</p> </note>"
339340
},
@@ -1281,6 +1282,14 @@
12811282
"member":{"shape":"ImageDetail"}
12821283
},
12831284
"ImageDigest":{"type":"string"},
1285+
"ImageDigestDoesNotMatchException":{
1286+
"type":"structure",
1287+
"members":{
1288+
"message":{"shape":"ExceptionMessage"}
1289+
},
1290+
"documentation":"<p>The specified image digest does not match the digest that Amazon ECR calculated for the image.</p>",
1291+
"exception":true
1292+
},
12841293
"ImageFailure":{
12851294
"type":"structure",
12861295
"members":{
@@ -1909,6 +1918,10 @@
19091918
"imageTag":{
19101919
"shape":"ImageTag",
19111920
"documentation":"<p>The tag to associate with the image. This parameter is required for images that use the Docker Image Manifest V2 Schema 2 or OCI formats.</p>"
1921+
},
1922+
"imageDigest":{
1923+
"shape":"ImageDigest",
1924+
"documentation":"<p>The image digest of the image manifest corresponding to the image.</p>"
19121925
}
19131926
}
19141927
},

0 commit comments

Comments
 (0)