interface DockerImageOptions
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.CodeBuild.DockerImageOptions |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscodebuild#DockerImageOptions |
Java | software.amazon.awscdk.services.codebuild.DockerImageOptions |
Python | aws_cdk.aws_codebuild.DockerImageOptions |
TypeScript (source) | aws-cdk-lib » aws_codebuild » DockerImageOptions |
The options when creating a CodeBuild Docker build image using LinuxBuildImage.fromDockerRegistry
, WindowsBuildImage.fromDockerRegistry
, or MacBuildImage.fromDockerRegistry
.
Example
environment: {
buildImage: codebuild.LinuxBuildImage.fromDockerRegistry('my-registry/my-repo', {
secretsManagerCredentials: secrets,
}),
},
Properties
Name | Type | Description |
---|---|---|
secrets | ISecret | The credentials, stored in Secrets Manager, used for accessing the repository holding the image, if the repository is private. |
secretsManagerCredentials?
Type:
ISecret
(optional, default: no credentials will be used (we assume the repository is public))
The credentials, stored in Secrets Manager, used for accessing the repository holding the image, if the repository is private.