@Generated(value="jsii-pacmak/1.29.0 (build 41df200)", date="2021-06-02T09:55:06.754Z") @Stability(value=Experimental) public enum ImagePullPrincipalType extends Enum<ImagePullPrincipalType>
| Enum Constant and Description |
|---|
CODEBUILD
(experimental) CODEBUILD specifies that CodeBuild uses its own identity when pulling the image.
|
SERVICE_ROLE
(experimental) SERVICE_ROLE specifies that AWS CodeBuild uses the project's role when pulling the image.
|
| Modifier and Type | Method and Description |
|---|---|
static ImagePullPrincipalType |
valueOf(String name)
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.
|
@Stability(value=Experimental) public static final ImagePullPrincipalType CODEBUILD
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.
@Stability(value=Experimental) public static final ImagePullPrincipalType SERVICE_ROLE
The role will be granted pull permissions on the ECR repository hosting the image.
public static ImagePullPrincipalType[] values()
for (ImagePullPrincipalType c : ImagePullPrincipalType.values()) System.out.println(c);
public static ImagePullPrincipalType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2021. All rights reserved.