Enum ImagePullPrincipalType

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

@Generated(value="jsii-pacmak/1.97.0 (build 729de35)", date="2024-04-24T21:00:27.039Z") @Stability(Stable) public enum ImagePullPrincipalType extends Enum<ImagePullPrincipalType>
The type of principal CodeBuild will use to pull your build Docker image.
  • Enum Constant Details

    • CODEBUILD

      @Stability(Stable) public static final ImagePullPrincipalType CODEBUILD
      CODEBUILD specifies that CodeBuild uses its own identity when pulling the image.

      This means the resource policy of the ECR repository that hosts the image will be modified to trust CodeBuild's service principal. This is the required principal type when using CodeBuild's pre-defined images.

    • SERVICE_ROLE

      @Stability(Stable) public static final ImagePullPrincipalType SERVICE_ROLE
      SERVICE_ROLE specifies that AWS CodeBuild uses the project's role when pulling the image.

      The role will be granted pull permissions on the ECR repository hosting the image.

  • Method Details

    • values

      public static ImagePullPrincipalType[] 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 ImagePullPrincipalType 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