interface IBindableBuildImage
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.CodeBuild.IBindableBuildImage |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscodebuild#IBindableBuildImage |
Java | software.amazon.awscdk.services.codebuild.IBindableBuildImage |
Python | aws_cdk.aws_codebuild.IBindableBuildImage |
TypeScript (source) | aws-cdk-lib » aws_codebuild » IBindableBuildImage |
Implemented by
Linux
A variant of IBuildImage
that allows binding to the project.
Properties
Name | Type | Description |
---|---|---|
default | Compute | The default ComputeType to use with this image, if one was not specified in BuildEnvironment#computeType explicitly. |
image | string | The Docker image identifier that the build environment uses. |
type | string | The type of build environment. |
image | Image | The type of principal that CodeBuild will use to pull this build Docker image. |
repository? | IRepository | An optional ECR repository that the image is hosted in. |
secrets | ISecret | The secretsManagerCredentials for access to a private registry. |
defaultComputeType
Type:
Compute
The default ComputeType
to use with this image, if one was not specified in BuildEnvironment#computeType
explicitly.
imageId
Type:
string
The Docker image identifier that the build environment uses.
type
Type:
string
The type of build environment.
imagePullPrincipalType?
Type:
Image
(optional, default: ImagePullPrincipalType.SERVICE_ROLE)
The type of principal that CodeBuild will use to pull this build Docker image.
repository?
Type:
IRepository
(optional, default: no repository)
An optional ECR repository that the image is hosted in.
secretsManagerCredentials?
Type:
ISecret
(optional, default: no credentials will be used)
The secretsManagerCredentials for access to a private registry.
Methods
Name | Description |
---|---|
bind(scope, project, options) | Function that allows the build image access to the construct tree. |
run | Make a buildspec to run the indicated script. |
validate(buildEnvironment) | Allows the image a chance to validate whether the passed configuration is correct. |
bind(scope, project, options)
public bind(scope: Construct, project: IProject, options: BuildImageBindOptions): BuildImageConfig
Parameters
- scope
Construct
- project
IProject
- options
Build
Image Bind Options
Returns
Function that allows the build image access to the construct tree.
ScriptBuildspec(entrypoint)
runpublic runScriptBuildspec(entrypoint: string): BuildSpec
Parameters
- entrypoint
string
Returns
Make a buildspec to run the indicated script.
validate(buildEnvironment)
public validate(buildEnvironment: BuildEnvironment): string[]
Parameters
- buildEnvironment
Build
— the current build environment.Environment
Returns
string[]
Allows the image a chance to validate whether the passed configuration is correct.