Class LinuxArmBuildImage
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.codebuild.LinuxArmBuildImage
- All Implemented Interfaces:
IBuildImage,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:34.800Z")
@Stability(Stable)
public class LinuxArmBuildImage
extends software.amazon.jsii.JsiiObject
implements IBuildImage
A CodeBuild image running aarch64 Linux.
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:
- LinuxBuildImage.fromEcrRepository(repo[, tag])
- LinuxBuildImage.fromDockerRegistry(image[, { secretsManagerCredentials }])
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");
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.codebuild.IBuildImage
IBuildImage.Jsii$Default, IBuildImage.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IBuildImageDeprecated.static final IBuildImageImage "aws/codebuild/amazonlinux2-aarch64-standard:2.0" based on Amazon Linux 2.static final IBuildImageImage "aws/codebuild/amazonlinux2-aarch64-standard:3.0" based on Amazon Linux 2023.static final IBuildImageImage "aws/codebuild/amazonlinux-aarch64-standard:2.0" based on Amazon Linux 2023.static final IBuildImageImage "aws/codebuild/amazonlinux-aarch64-standard:3.0" based on Amazon Linux 2023. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLinuxArmBuildImage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedLinuxArmBuildImage(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic IBuildImageUses a Docker image provided by CodeBuild.static IBuildImagefromDockerRegistry(String name) static IBuildImagefromDockerRegistry(String name, DockerImageOptions options) static IBuildImagefromEcrRepository(IRepository repository) Returns an ARM image running Linux from an ECR repository.static IBuildImagefromEcrRepository(IRepository repository, String tagOrDigest) Returns an ARM image running Linux from an ECR repository.The defaultComputeTypeto use with this image, if one was not specified inBuildEnvironment#computeTypeexplicitly.The Docker image identifier that the build environment uses.The type of principal that CodeBuild will use to pull this build Docker image.An optional ECR repository that the image is hosted in.The 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) Validates by checking the BuildEnvironments' images are not Lambda ComputeTypes.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
AMAZON_LINUX_2_STANDARD_1_0
Deprecated.Useinstead.invalid reference
LinuxArmBuildImage.AMAZON_LINUX_2_STANDARD_3_0(deprecated) Image "aws/codebuild/amazonlinux2-aarch64-standard:1.0". -
AMAZON_LINUX_2_STANDARD_2_0
Image "aws/codebuild/amazonlinux2-aarch64-standard:2.0" based on Amazon Linux 2. -
AMAZON_LINUX_2_STANDARD_3_0
Image "aws/codebuild/amazonlinux2-aarch64-standard:3.0" based on Amazon Linux 2023. -
AMAZON_LINUX_2023_STANDARD_2_0
Image "aws/codebuild/amazonlinux-aarch64-standard:2.0" based on Amazon Linux 2023. -
AMAZON_LINUX_2023_STANDARD_3_0
Image "aws/codebuild/amazonlinux-aarch64-standard:3.0" based on Amazon Linux 2023.
-
-
Constructor Details
-
LinuxArmBuildImage
protected LinuxArmBuildImage(software.amazon.jsii.JsiiObjectRef objRef) -
LinuxArmBuildImage
protected LinuxArmBuildImage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
-
Method Details
-
fromCodeBuildImageId
Uses a Docker image provided by CodeBuild.Example:
"aws/codebuild/amazonlinux2-aarch64-standard:1.0";
- Parameters:
id- The image identifier. This parameter is required.- Returns:
- A Docker image provided by CodeBuild.
- See Also:
-
fromDockerRegistry
@Stability(Stable) @NotNull public static IBuildImage fromDockerRegistry(@NotNull String name, @Nullable DockerImageOptions options) - Parameters:
name- This parameter is required.options-- Returns:
- a aarch-64 Linux build image from a Docker Hub image.
-
fromDockerRegistry
- Parameters:
name- This parameter is required.- Returns:
- a aarch-64 Linux build image from a Docker Hub image.
-
fromEcrRepository
@Stability(Stable) @NotNull public static IBuildImage fromEcrRepository(@NotNull IRepository repository, @Nullable String tagOrDigest) Returns an ARM image running Linux from an ECR 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.
- Parameters:
repository- The ECR repository. This parameter is required.tagOrDigest- Image tag or digest (default "latest", digests must start withsha256:).- Returns:
- An aarch64 Linux build image from an ECR repository.
- See Also:
-
fromEcrRepository
@Stability(Stable) @NotNull public static IBuildImage fromEcrRepository(@NotNull IRepository repository) Returns an ARM image running Linux from an ECR 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.
- Parameters:
repository- The ECR repository. This parameter is required.- Returns:
- An aarch64 Linux build image from an ECR repository.
- See Also:
-
runScriptBuildspec
Make a buildspec to run the indicated script.- Specified by:
runScriptBuildspecin interfaceIBuildImage- Parameters:
entrypoint- This parameter is required.
-
validate
@Stability(Stable) @NotNull public List<String> validate(@NotNull BuildEnvironment buildEnvironment) Validates by checking the BuildEnvironments' images are not Lambda ComputeTypes.- Specified by:
validatein interfaceIBuildImage- Parameters:
buildEnvironment- BuildEnvironment. This parameter is required.
-
getDefaultComputeType
The defaultComputeTypeto use with this image, if one was not specified inBuildEnvironment#computeTypeexplicitly.- Specified by:
getDefaultComputeTypein interfaceIBuildImage
-
getImageId
The Docker image identifier that the build environment uses.- Specified by:
getImageIdin interfaceIBuildImage- See Also:
-
getType
The type of build environment.- Specified by:
getTypein interfaceIBuildImage
-
getImagePullPrincipalType
The type of principal that CodeBuild will use to pull this build Docker image.- Specified by:
getImagePullPrincipalTypein interfaceIBuildImage
-
getRepository
An optional ECR repository that the image is hosted in.- Specified by:
getRepositoryin interfaceIBuildImage
-
getSecretsManagerCredentials
The secretsManagerCredentials for access to a private registry.- Specified by:
getSecretsManagerCredentialsin interfaceIBuildImage
-
invalid reference