@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.337Z") @Stability(value=Stable) public interface IBuildImage extends software.amazon.jsii.JsiiSerializable
Use the concrete subclasses, either: {@link LinuxBuildImage} or {@link WindowsBuildImage}.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
IBuildImage.Jsii$Default
Internal default implementation for
IBuildImage. |
static class |
IBuildImage.Jsii$Proxy
A proxy class which represents a concrete javascript instance of this type.
|
| Modifier and Type | Method and Description |
|---|---|
ComputeType |
getDefaultComputeType()
The default
ComputeType to use with this image, if one was not specified in BuildEnvironment#computeType explicitly. |
String |
getImageId()
The Docker image identifier that the build environment uses.
|
default ImagePullPrincipalType |
getImagePullPrincipalType()
The type of principal that CodeBuild will use to pull this build Docker image.
|
default IRepository |
getRepository()
An optional ECR repository that the image is hosted in.
|
default ISecret |
getSecretsManagerCredentials()
The secretsManagerCredentials for access to a private registry.
|
String |
getType()
The type of build environment.
|
BuildSpec |
runScriptBuildspec(String entrypoint)
Make a buildspec to run the indicated script.
|
List<String> |
validate(BuildEnvironment buildEnvironment)
Allows the image a chance to validate whether the passed configuration is correct.
|
@Stability(value=Stable) @NotNull ComputeType getDefaultComputeType()
ComputeType to use with this image, if one was not specified in BuildEnvironment#computeType explicitly.@Stability(value=Stable) @NotNull String getImageId()
@Stability(value=Stable) @NotNull String getType()
@Stability(value=Stable) @Nullable default ImagePullPrincipalType getImagePullPrincipalType()
Default: ImagePullPrincipalType.SERVICE_ROLE
@Stability(value=Stable) @Nullable default IRepository getRepository()
Default: no repository
@Stability(value=Stable) @Nullable default ISecret getSecretsManagerCredentials()
Default: no credentials will be used
@Stability(value=Stable) @NotNull BuildSpec runScriptBuildspec(@NotNull String entrypoint)
entrypoint - This parameter is required.@Stability(value=Stable) @NotNull List<String> validate(@NotNull BuildEnvironment buildEnvironment)
buildEnvironment - the current build environment. This parameter is required.Copyright © 2022. All rights reserved.