@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.346Z") @Stability(value=Stable) public class LinuxGpuBuildImage extends software.amazon.jsii.JsiiObject implements IBindableBuildImage
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();
software.amazon.jsii.JsiiObject.InitializationModeIBindableBuildImage.Jsii$Default, IBindableBuildImage.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static IBuildImage |
DLC_MXNET_1_4_1
MXNet 1.4.1 GPU image from AWS Deep Learning Containers.
|
static IBuildImage |
DLC_MXNET_1_6_0
MXNet 1.6.0 GPU image from AWS Deep Learning Containers.
|
static IBuildImage |
DLC_PYTORCH_1_2_0
PyTorch 1.2.0 GPU image from AWS Deep Learning Containers.
|
static IBuildImage |
DLC_PYTORCH_1_3_1
PyTorch 1.3.1 GPU image from AWS Deep Learning Containers.
|
static IBuildImage |
DLC_PYTORCH_1_4_0_INFERENCE
PyTorch 1.4.0 GPU inference image from AWS Deep Learning Containers.
|
static IBuildImage |
DLC_PYTORCH_1_4_0_TRAINING
PyTorch 1.4.0 GPU training image from AWS Deep Learning Containers.
|
static IBuildImage |
DLC_PYTORCH_1_5_0_INFERENCE
PyTorch 1.5.0 GPU inference image from AWS Deep Learning Containers.
|
static IBuildImage |
DLC_PYTORCH_1_5_0_TRAINING
PyTorch 1.5.0 GPU training image from AWS Deep Learning Containers.
|
static IBuildImage |
DLC_TENSORFLOW_1_14_0
Tensorflow 1.14.0 GPU image from AWS Deep Learning Containers.
|
static IBuildImage |
DLC_TENSORFLOW_1_15_0
Tensorflow 1.15.0 GPU image from AWS Deep Learning Containers.
|
static IBuildImage |
DLC_TENSORFLOW_1_15_2_INFERENCE
Tensorflow 1.15.2 GPU inference image from AWS Deep Learning Containers.
|
static IBuildImage |
DLC_TENSORFLOW_1_15_2_TRAINING
Tensorflow 1.15.2 GPU training image from AWS Deep Learning Containers.
|
static IBuildImage |
DLC_TENSORFLOW_2_0_0
Tensorflow 2.0.0 GPU image from AWS Deep Learning Containers.
|
static IBuildImage |
DLC_TENSORFLOW_2_0_1
Tensorflow 2.0.1 GPU image from AWS Deep Learning Containers.
|
static IBuildImage |
DLC_TENSORFLOW_2_1_0_INFERENCE
Tensorflow 2.1.0 GPU inference image from AWS Deep Learning Containers.
|
static IBuildImage |
DLC_TENSORFLOW_2_1_0_TRAINING
Tensorflow 2.1.0 GPU training image from AWS Deep Learning Containers.
|
static IBuildImage |
DLC_TENSORFLOW_2_2_0_TRAINING
Tensorflow 2.2.0 GPU training image from AWS Deep Learning Containers.
|
| Modifier | Constructor and Description |
|---|---|
protected |
LinuxGpuBuildImage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
LinuxGpuBuildImage(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static IBuildImage |
awsDeepLearningContainersImage(String repositoryName,
String tag)
Returns a Linux GPU build image from AWS Deep Learning Containers.
|
static IBuildImage |
awsDeepLearningContainersImage(String repositoryName,
String tag,
String account)
Returns a Linux GPU build image from AWS Deep Learning Containers.
|
BuildImageConfig |
bind(software.constructs.Construct scope,
IProject project,
BuildImageBindOptions _options)
Function that allows the build image access to the construct tree.
|
static IBuildImage |
fromEcrRepository(IRepository repository)
Returns a GPU image running Linux from an ECR repository.
|
static IBuildImage |
fromEcrRepository(IRepository repository,
String tag)
Returns a GPU 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.
|
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.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRepository, getSecretsManagerCredentials@Stability(value=Stable) public static final IBuildImage DLC_MXNET_1_4_1
@Stability(value=Stable) public static final IBuildImage DLC_MXNET_1_6_0
@Stability(value=Stable) public static final IBuildImage DLC_PYTORCH_1_2_0
@Stability(value=Stable) public static final IBuildImage DLC_PYTORCH_1_3_1
@Stability(value=Stable) public static final IBuildImage DLC_PYTORCH_1_4_0_INFERENCE
@Stability(value=Stable) public static final IBuildImage DLC_PYTORCH_1_4_0_TRAINING
@Stability(value=Stable) public static final IBuildImage DLC_PYTORCH_1_5_0_INFERENCE
@Stability(value=Stable) public static final IBuildImage DLC_PYTORCH_1_5_0_TRAINING
@Stability(value=Stable) public static final IBuildImage DLC_TENSORFLOW_1_14_0
@Stability(value=Stable) public static final IBuildImage DLC_TENSORFLOW_1_15_0
@Stability(value=Stable) public static final IBuildImage DLC_TENSORFLOW_1_15_2_INFERENCE
@Stability(value=Stable) public static final IBuildImage DLC_TENSORFLOW_1_15_2_TRAINING
@Stability(value=Stable) public static final IBuildImage DLC_TENSORFLOW_2_0_0
@Stability(value=Stable) public static final IBuildImage DLC_TENSORFLOW_2_0_1
@Stability(value=Stable) public static final IBuildImage DLC_TENSORFLOW_2_1_0_INFERENCE
@Stability(value=Stable) public static final IBuildImage DLC_TENSORFLOW_2_1_0_TRAINING
@Stability(value=Stable) public static final IBuildImage DLC_TENSORFLOW_2_2_0_TRAINING
protected LinuxGpuBuildImage(software.amazon.jsii.JsiiObjectRef objRef)
protected LinuxGpuBuildImage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) @NotNull public static IBuildImage awsDeepLearningContainersImage(@NotNull String repositoryName, @NotNull String tag, @Nullable String account)
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.@Stability(value=Stable) @NotNull public static IBuildImage awsDeepLearningContainersImage(@NotNull String repositoryName, @NotNull String tag)
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.@Stability(value=Stable) @NotNull public static IBuildImage fromEcrRepository(@NotNull IRepository repository, @Nullable String tag)
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.tag - Image tag (default "latest").@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 BuildImageConfig bind(@NotNull software.constructs.Construct scope, @NotNull IProject project, @NotNull BuildImageBindOptions _options)
bind in interface IBindableBuildImagescope - This parameter is required.project - This parameter is required._options - 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 - 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 IBuildImageCopyright © 2022. All rights reserved.