Interface IBuildImage
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
IBindableBuildImage,IBindableBuildImage.Jsii$Default,IBuildImage.Jsii$Default
- All Known Implementing Classes:
IBindableBuildImage.Jsii$Proxy,IBuildImage.Jsii$Proxy,LinuxArmBuildImage,LinuxArmLambdaBuildImage,LinuxBuildImage,LinuxGpuBuildImage,LinuxLambdaBuildImage,MacBuildImage,WindowsBuildImage
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:34.792Z")
@Stability(Stable)
public interface IBuildImage
extends software.amazon.jsii.JsiiSerializable
Represents a Docker image used for the CodeBuild Project builds.
Use the concrete subclasses, either:
LinuxBuildImage or WindowsBuildImage.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInternal default implementation forIBuildImage.static final classA proxy class which represents a concrete javascript instance of this type. -
Method Summary
Modifier and TypeMethodDescriptionThe defaultComputeTypeto use with this image, if one was not specified inBuildEnvironment#computeTypeexplicitly.The Docker image identifier that the build environment uses.default ImagePullPrincipalTypeThe type of principal that CodeBuild will use to pull this build Docker image.default IRepositoryAn optional ECR repository that the image is hosted in.default ISecretThe secretsManagerCredentials for access to a private registry.getType()The type of build environment.runScriptBuildspec(String entrypoint) Make a buildspec to run the indicated script.validate(BuildEnvironment buildEnvironment) Allows the image a chance to validate whether the passed configuration is correct.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDefaultComputeType
The defaultComputeTypeto use with this image, if one was not specified inBuildEnvironment#computeTypeexplicitly. -
getImageId
The Docker image identifier that the build environment uses.- See Also:
-
getType
The type of build environment. -
getImagePullPrincipalType
The type of principal that CodeBuild will use to pull this build Docker image.Default: ImagePullPrincipalType.SERVICE_ROLE
-
getRepository
An optional ECR repository that the image is hosted in.Default: no repository
-
getSecretsManagerCredentials
The secretsManagerCredentials for access to a private registry.Default: no credentials will be used
-
runScriptBuildspec
Make a buildspec to run the indicated script.- Parameters:
entrypoint- This parameter is required.
-
validate
Allows the image a chance to validate whether the passed configuration is correct.- Parameters:
buildEnvironment- the current build environment. This parameter is required.
-