v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1441293181.2 KB

Updates the image tag mutability settings for the specified repository. For more information, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-tag-mutability.html">Image tag mutability</a> in the <i>Amazon Elastic Container Registry User Guide</i>.

post/#X-Amz-Target=AmazonEC2ContainerRegistry_V20150921.PutImageTagMutability

Headers

X-Amz-Target'AmazonEC2ContainerRegistry_V20150921.PutImageTagMutability' required

Request body

registryIdstring

The Amazon Web Services account ID associated with the registry that contains the repository in which to update the image tag mutability settings. If you do not specify a registry, the default registry is assumed.

repositoryNamestring required

The name of the repository in which to update the image tag mutability settings.

imageTagMutability'MUTABLE' | 'IMMUTABLE' required

The tag mutability setting for the repository. If <code>MUTABLE</code> is specified, image tags can be overwritten. If <code>IMMUTABLE</code> is specified, all image tags within the repository will be immutable which will prevent them from being overwritten.

Response

Success

registryIdstring

The registry ID associated with the request.

repositoryNamestring

The repository name associated with the request.

imageTagMutability'MUTABLE' | 'IMMUTABLE'

The image tag mutability setting for the repository.