Class LinuxGpuBuildImage
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.codebuild.LinuxGpuBuildImage
- All Implemented Interfaces:
IBindableBuildImage,IBuildImage,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-04T09:27:36.685Z")
@Stability(Stable)
public class LinuxGpuBuildImage
extends software.amazon.jsii.JsiiObject
implements IBindableBuildImage
A CodeBuild GPU image running Linux.
This class has public constants that represent the most popular GPU images from AWS Deep Learning Containers.
Example:
Project.Builder.create(this, "Project")
.environment(BuildEnvironment.builder()
.buildImage(LinuxGpuBuildImage.DLC_TENSORFLOW_2_1_0_INFERENCE)
.build())
.build();
- 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.IBindableBuildImage
IBindableBuildImage.Jsii$Default, IBindableBuildImage.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IBuildImageMXNet 1.4.1 GPU image from AWS Deep Learning Containers.static final IBuildImageMXNet 1.6.0 GPU image from AWS Deep Learning Containers.static final IBuildImagePyTorch 1.2.0 GPU image from AWS Deep Learning Containers.static final IBuildImagePyTorch 1.3.1 GPU image from AWS Deep Learning Containers.static final IBuildImagePyTorch 1.4.0 GPU inference image from AWS Deep Learning Containers.static final IBuildImagePyTorch 1.4.0 GPU training image from AWS Deep Learning Containers.static final IBuildImagePyTorch 1.5.0 GPU inference image from AWS Deep Learning Containers.static final IBuildImagePyTorch 1.5.0 GPU training image from AWS Deep Learning Containers.static final IBuildImageTensorflow 1.14.0 GPU image from AWS Deep Learning Containers.static final IBuildImageTensorflow 1.15.0 GPU image from AWS Deep Learning Containers.static final IBuildImageTensorflow 1.15.2 GPU inference image from AWS Deep Learning Containers.static final IBuildImageTensorflow 1.15.2 GPU training image from AWS Deep Learning Containers.static final IBuildImageTensorflow 2.0.0 GPU image from AWS Deep Learning Containers.static final IBuildImageTensorflow 2.0.1 GPU image from AWS Deep Learning Containers.static final IBuildImageTensorflow 2.1.0 GPU inference image from AWS Deep Learning Containers.static final IBuildImageTensorflow 2.1.0 GPU training image from AWS Deep Learning Containers.static final IBuildImageTensorflow 2.2.0 GPU training image from AWS Deep Learning Containers. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLinuxGpuBuildImage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedLinuxGpuBuildImage(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic IBuildImageawsDeepLearningContainersImage(String repositoryName, String tag) Returns a Linux GPU build image from AWS Deep Learning Containers.static IBuildImageawsDeepLearningContainersImage(String repositoryName, String tag, String account) Returns a Linux GPU build image from AWS Deep Learning Containers.bind(software.constructs.Construct scope, IProject project, BuildImageBindOptions _options) Function that allows the build image access to the construct tree.static IBuildImagefromEcrRepository(IRepository repository) Returns a GPU image running Linux from an ECR repository.static IBuildImagefromEcrRepository(IRepository repository, String tag) Returns a GPU 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.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 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.awscdk.services.codebuild.IBuildImage
getRepository, getSecretsManagerCredentialsMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
DLC_MXNET_1_4_1
MXNet 1.4.1 GPU image from AWS Deep Learning Containers. -
DLC_MXNET_1_6_0
MXNet 1.6.0 GPU image from AWS Deep Learning Containers. -
DLC_PYTORCH_1_2_0
PyTorch 1.2.0 GPU image from AWS Deep Learning Containers. -
DLC_PYTORCH_1_3_1
PyTorch 1.3.1 GPU image from AWS Deep Learning Containers. -
DLC_PYTORCH_1_4_0_INFERENCE
PyTorch 1.4.0 GPU inference image from AWS Deep Learning Containers. -
DLC_PYTORCH_1_4_0_TRAINING
PyTorch 1.4.0 GPU training image from AWS Deep Learning Containers. -
DLC_PYTORCH_1_5_0_INFERENCE
PyTorch 1.5.0 GPU inference image from AWS Deep Learning Containers. -
DLC_PYTORCH_1_5_0_TRAINING
PyTorch 1.5.0 GPU training image from AWS Deep Learning Containers. -
DLC_TENSORFLOW_1_14_0
Tensorflow 1.14.0 GPU image from AWS Deep Learning Containers. -
DLC_TENSORFLOW_1_15_0
Tensorflow 1.15.0 GPU image from AWS Deep Learning Containers. -
DLC_TENSORFLOW_1_15_2_INFERENCE
Tensorflow 1.15.2 GPU inference image from AWS Deep Learning Containers. -
DLC_TENSORFLOW_1_15_2_TRAINING
Tensorflow 1.15.2 GPU training image from AWS Deep Learning Containers. -
DLC_TENSORFLOW_2_0_0
Tensorflow 2.0.0 GPU image from AWS Deep Learning Containers. -
DLC_TENSORFLOW_2_0_1
Tensorflow 2.0.1 GPU image from AWS Deep Learning Containers. -
DLC_TENSORFLOW_2_1_0_INFERENCE
Tensorflow 2.1.0 GPU inference image from AWS Deep Learning Containers. -
DLC_TENSORFLOW_2_1_0_TRAINING
Tensorflow 2.1.0 GPU training image from AWS Deep Learning Containers. -
DLC_TENSORFLOW_2_2_0_TRAINING
Tensorflow 2.2.0 GPU training image from AWS Deep Learning Containers.
-
-
Constructor Details
-
LinuxGpuBuildImage
protected LinuxGpuBuildImage(software.amazon.jsii.JsiiObjectRef objRef) -
LinuxGpuBuildImage
protected LinuxGpuBuildImage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
-
Method Details
-
awsDeepLearningContainersImage
@Stability(Stable) @NotNull public static IBuildImage awsDeepLearningContainersImage(@NotNull String repositoryName, @NotNull String tag, @Nullable String account) Returns a Linux GPU build image from AWS Deep Learning Containers.- Parameters:
repositoryName- the name of the repository, for example "pytorch-inference". This parameter is required.tag- the tag of the image, for example "1.5.0-gpu-py36-cu101-ubuntu16.04". This parameter is required.account- the AWS account ID where the DLC repository for this region is hosted in.- See Also:
-
awsDeepLearningContainersImage
@Stability(Stable) @NotNull public static IBuildImage awsDeepLearningContainersImage(@NotNull String repositoryName, @NotNull String tag) Returns a Linux GPU build image from AWS Deep Learning Containers.- Parameters:
repositoryName- the name of the repository, for example "pytorch-inference". This parameter is required.tag- the tag of the image, for example "1.5.0-gpu-py36-cu101-ubuntu16.04". This parameter is required.- See Also:
-
fromEcrRepository
@Stability(Stable) @NotNull public static IBuildImage fromEcrRepository(@NotNull IRepository repository, @Nullable String tag) Returns a GPU 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.tag- Image tag (default "latest").- See Also:
-
fromEcrRepository
@Stability(Stable) @NotNull public static IBuildImage fromEcrRepository(@NotNull IRepository repository) Returns a GPU 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.- See Also:
-
bind
@Stability(Stable) @NotNull public BuildImageConfig bind(@NotNull software.constructs.Construct scope, @NotNull IProject project, @NotNull BuildImageBindOptions _options) Function that allows the build image access to the construct tree.- Specified by:
bindin interfaceIBindableBuildImage- Parameters:
scope- This parameter is required.project- This parameter is required._options- This parameter is required.
-
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) Allows the image a chance to validate whether the passed configuration is correct.- Specified by:
validatein interfaceIBuildImage- Parameters:
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
-