Class ImagePullPrincipalType
The type of principal CodeBuild will use to pull your build Docker image.
Inheritance
System.Object
ImagePullPrincipalType
Namespace: Amazon.CDK.AWS.CodeBuild
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class ImagePullPrincipalType : Enum
Syntax (vb)
Public NotInheritable Class ImagePullPrincipalType
Inherits
Enum
Synopsis
Fields
CODEBUILD | CODEBUILD specifies that CodeBuild uses its own identity when pulling the image. |
SERVICE_ROLE | SERVICE_ROLE specifies that AWS CodeBuild uses the project's role when pulling the image. |
value__ |
Fields
CODEBUILD
CODEBUILD specifies that CodeBuild uses its own identity when pulling the image.
public const ImagePullPrincipalType CODEBUILD
Field Value
Type | Description |
---|---|
ImagePullPrincipalType |
Remarks
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.
public const ImagePullPrincipalType SERVICE_ROLE
Field Value
Type | Description |
---|---|
ImagePullPrincipalType |
Remarks
The role will be granted pull permissions on the ECR repository hosting the image.
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |