Creates or updates the image manifest and tags associated with an image.
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.
The operation did not succeed because it would have exceeded a service limit for your
account. For more information, see Amazon ECR service quotas in
the Amazon Elastic Container Registry User Guide.
The specified repository could not be found. Check the spelling of the specified
repository and ensure that you are performing operations on the correct registry.
Creates or updates the image manifest and tags associated with an image.
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.
Example
Use a bare-bones client and the command you need to make an API call.
Param
PutImageCommandInput
Returns
PutImageCommandOutput
See
input
shape.response
shape.config
shape.Throws
ImageAlreadyExistsException (client fault)
The specified image has already been pushed, and there were no changes to the manifest or image tag after the last push.
Throws
ImageDigestDoesNotMatchException (client fault)
The specified image digest does not match the digest that Amazon ECR calculated for the image.
Throws
ImageTagAlreadyExistsException (client fault)
The specified image is tagged with a tag that already exists. The repository is configured for tag immutability.
Throws
InvalidParameterException (client fault)
The specified parameter is invalid. Review the available parameters for the API request.
Throws
KmsException (client fault)
The operation failed due to a KMS exception.
Throws
LayersNotFoundException (client fault)
The specified layers could not be found, or the specified layer is not valid for this repository.
Throws
LimitExceededException (client fault)
The operation did not succeed because it would have exceeded a service limit for your account. For more information, see Amazon ECR service quotas in the Amazon Elastic Container Registry User Guide.
Throws
ReferencedImagesNotFoundException (client fault)
The manifest list is referencing an image that does not exist.
Throws
RepositoryNotFoundException (client fault)
The specified repository could not be found. Check the spelling of the specified repository and ensure that you are performing operations on the correct registry.
Throws
ServerException (server fault)
These errors are usually caused by a server-side issue.