@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.345Z") @Stability(value=Stable) public class LinuxArmBuildImage extends software.amazon.jsii.JsiiObject implements IBuildImage
This class has a bunch of public constants that represent the CodeBuild ARM images.
You can also specify a custom image using the static method:
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.codebuild.*;
IBuildImage linuxArmBuildImage = LinuxArmBuildImage.fromCodeBuildImageId("id");
software.amazon.jsii.JsiiObject.InitializationModeIBuildImage.Jsii$Default, IBuildImage.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static IBuildImage |
AMAZON_LINUX_2_STANDARD_1_0
Image "aws/codebuild/amazonlinux2-aarch64-standard:1.0".
|
static IBuildImage |
AMAZON_LINUX_2_STANDARD_2_0
Image "aws/codebuild/amazonlinux2-aarch64-standard:2.0".
|
| Modifier | Constructor and Description |
|---|---|
protected |
LinuxArmBuildImage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
LinuxArmBuildImage(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static IBuildImage |
fromCodeBuildImageId(String id)
Uses a Docker image provided by CodeBuild.
|
static IBuildImage |
fromEcrRepository(IRepository repository)
Returns an ARM image running Linux from an ECR repository.
|
static IBuildImage |
fromEcrRepository(IRepository repository,
String tagOrDigest)
Returns an ARM image running Linux from an ECR repository.
|
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.
|
ImagePullPrincipalType |
getImagePullPrincipalType()
The type of principal that CodeBuild will use to pull this build Docker image.
|
IRepository |
getRepository()
An optional ECR repository that the image is hosted in.
|
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)
Validates by checking the BuildEnvironment computeType as aarch64 images only support ComputeType.SMALL and ComputeType.LARGE.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final IBuildImage AMAZON_LINUX_2_STANDARD_1_0
@Stability(value=Stable) public static final IBuildImage AMAZON_LINUX_2_STANDARD_2_0
protected LinuxArmBuildImage(software.amazon.jsii.JsiiObjectRef objRef)
protected LinuxArmBuildImage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) @NotNull public static IBuildImage fromCodeBuildImageId(@NotNull String id)
Example:
"aws/codebuild/amazonlinux2-aarch64-standard:1.0";
id - The image identifier. This parameter is required.@Stability(value=Stable) @NotNull public static IBuildImage fromEcrRepository(@NotNull IRepository repository, @Nullable String tagOrDigest)
NOTE: if the repository is external (i.e. imported), then we won't be able to add a resource policy statement for it so CodeBuild can pull the image.
repository - The ECR repository. This parameter is required.tagOrDigest - Image tag or digest (default "latest", digests must start with `sha256:`).@Stability(value=Stable) @NotNull public static IBuildImage fromEcrRepository(@NotNull IRepository repository)
NOTE: if the repository is external (i.e. imported), then we won't be able to add a resource policy statement for it so CodeBuild can pull the image.
repository - The ECR repository. This parameter is required.@Stability(value=Stable) @NotNull public BuildSpec runScriptBuildspec(@NotNull String entrypoint)
runScriptBuildspec in interface IBuildImageentrypoint - This parameter is required.@Stability(value=Stable) @NotNull public List<String> validate(@NotNull BuildEnvironment buildEnvironment)
validate in interface IBuildImagebuildEnvironment - BuildEnvironment. This parameter is required.@Stability(value=Stable) @NotNull public ComputeType getDefaultComputeType()
ComputeType to use with this image, if one was not specified in BuildEnvironment#computeType explicitly.getDefaultComputeType in interface IBuildImage@Stability(value=Stable) @NotNull public String getImageId()
getImageId in interface IBuildImage@Stability(value=Stable) @NotNull public String getType()
getType in interface IBuildImage@Stability(value=Stable) @Nullable public ImagePullPrincipalType getImagePullPrincipalType()
getImagePullPrincipalType in interface IBuildImage@Stability(value=Stable) @Nullable public IRepository getRepository()
getRepository in interface IBuildImage@Stability(value=Stable) @Nullable public ISecret getSecretsManagerCredentials()
getSecretsManagerCredentials in interface IBuildImageCopyright © 2022. All rights reserved.