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.84.0 (build 5404dcf)",
date="2023-06-19T16:30:41.819Z")
@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])
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");
-
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 IBuildImageImage "aws/codebuild/amazonlinux2-aarch64-standard:1.0".static final IBuildImageImage "aws/codebuild/amazonlinux2-aarch64-standard:2.0". -
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 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 BuildEnvironment computeType as aarch64 images only support ComputeType.SMALL and ComputeType.LARGE.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
Image "aws/codebuild/amazonlinux2-aarch64-standard:1.0". -
AMAZON_LINUX_2_STANDARD_2_0
Image "aws/codebuild/amazonlinux2-aarch64-standard:2.0".
-
-
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:
-
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 BuildEnvironment computeType as aarch64 images only support ComputeType.SMALL and ComputeType.LARGE.- 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
-