IBindableBuildImage
- class aws_cdk.aws_codebuild.IBindableBuildImage(*args, **kwargs)
Bases:
IBuildImage
,Protocol
A variant of
IBuildImage
that allows binding to the project.Methods
- bind(scope, project)
Function that allows the build image access to the construct tree.
- Parameters:
- Return type:
- run_script_buildspec(entrypoint)
Make a buildspec to run the indicated script.
- Parameters:
entrypoint (
str
) –- Return type:
- validate(*, build_image=None, certificate=None, compute_type=None, environment_variables=None, fleet=None, privileged=None)
Allows the image a chance to validate whether the passed configuration is correct.
- Parameters:
build_image (
Optional
[IBuildImage
]) – The image used for the builds. Default: LinuxBuildImage.STANDARD_1_0certificate (
Union
[BuildEnvironmentCertificate
,Dict
[str
,Any
],None
]) – The location of the PEM-encoded certificate for the build project. Default: - No external certificate is added to the projectcompute_type (
Optional
[ComputeType
]) – The type of compute to use for this build. See theComputeType
enum for the possible values. Default: taken from#buildImage#defaultComputeType
environment_variables (
Optional
[Mapping
[str
,Union
[BuildEnvironmentVariable
,Dict
[str
,Any
]]]]) – The environment variables that your builds can use.fleet (
Optional
[IFleet
]) – Fleet resource for a reserved capacity CodeBuild project. Fleets allow for process builds or tests to run immediately and reduces build durations, by reserving compute resources for your projects. You will be charged for the resources in the fleet, even if they are idle. Default: - No fleet will be attached to the project, which will remain on-demand.privileged (
Optional
[bool
]) – Indicates how the project builds Docker images. Specify true to enable running the Docker daemon inside a Docker container. This value must be set to true only if this build project will be used to build Docker images, and the specified build environment image is not one provided by AWS CodeBuild with Docker support. Otherwise, all associated builds that attempt to interact with the Docker daemon will fail. Default: false
- Return type:
List
[str
]
Attributes
- default_compute_type
The default
ComputeType
to use with this image, if one was not specified inBuildEnvironment#computeType
explicitly.
- image_id
The Docker image identifier that the build environment uses.
- image_pull_principal_type
The type of principal that CodeBuild will use to pull this build Docker image.
- Default:
ImagePullPrincipalType.SERVICE_ROLE
- repository
An optional ECR repository that the image is hosted in.
- Default:
no repository
- secrets_manager_credentials
The secretsManagerCredentials for access to a private registry.
- Default:
no credentials will be used
- type
The type of build environment.