Enum TagMutability

java.lang.Object
java.lang.Enum<TagMutability>
software.amazon.awscdk.services.ecr.TagMutability
All Implemented Interfaces:
Serializable, Comparable<TagMutability>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:06.326Z") @Stability(Stable) public enum TagMutability extends Enum<TagMutability>
The tag mutability setting for your repository.

Example:

 Repository.Builder.create(this, "Repo").imageTagMutability(TagMutability.IMMUTABLE).build();
 
  • Enum Constant Details

    • MUTABLE

      @Stability(Stable) public static final TagMutability MUTABLE
      allow image tags to be overwritten.
    • IMMUTABLE

      @Stability(Stable) public static final TagMutability IMMUTABLE
      all image tags within the repository will be immutable which will prevent them from being overwritten.
  • Method Details

    • values

      public static TagMutability[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static TagMutability valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null