Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaixiang-AWS committed Jul 3, 2019
1 parent 7dfbe2c commit ee51df2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions packages/@aws-cdk/aws-codebuild/lib/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -949,13 +949,18 @@ export enum ComputeType {
}

/**
* The type of credentials AWS CodeBuild uses to pull images in your build. There are two valid values:
* - CODEBUILD specifies that AWS CodeBuild uses its own credentials.
* This requires that you modify your ECR repository policy to trust AWS CodeBuild's service principal.
* - SERVICE_ROLE specifies that AWS CodeBuild uses your build project's service role.
* The type of credentials AWS CodeBuild uses to pull images in your build.
*/
export enum ImagePullCredentialsType {
/**
* CODEBUILD specifies that AWS CodeBuild uses its own credentials.
* This requires that you modify your ECR repository policy to trust AWS CodeBuild's service principal.
*/
CODEBUILD = 'CODEBUILD',

/**
* SERVICE_ROLE specifies that AWS CodeBuild uses your build project's service role.
*/
SERVICE_ROLE = 'SERVICE_ROLE'
}

Expand Down Expand Up @@ -1019,11 +1024,15 @@ export interface IBuildImage {

/**
* The type of credentials AWS CodeBuild uses to pull images in your build.
*
* @default ImagePullCredentialsType.CODEBUILD
*/
readonly imagePullCredentialsType?: ImagePullCredentialsType;

/**
* The credentials for access to a private registry.
*
* @default undefined
*/
readonly secretsManagerCredential?: secretsmanager.ISecret;

Expand Down

0 comments on commit ee51df2

Please sign in to comment.