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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionCODEBUILD specifies that CodeBuild uses its own identity when pulling the image.SERVICE_ROLE specifies that AWS CodeBuild uses the project's role when pulling the image. -
Method Summary
Modifier and TypeMethodDescriptionstatic ImagePullPrincipalType
Returns the enum constant of this type with the specified name.static ImagePullPrincipalType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
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
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
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
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 nameNullPointerException
- if the argument is null
-