TagMutability

class aws_cdk.aws_ecr.TagMutability(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Enum

The tag mutability setting for your repository.

ExampleMetadata:

infused

Example:

ecr.Repository(self, "Repo", image_tag_mutability=ecr.TagMutability.IMMUTABLE)

Attributes

IMMUTABLE

all image tags within the repository will be immutable which will prevent them from being overwritten.

MUTABLE

allow image tags to be overwritten.