Interface ContainerOverrides
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ContainerOverrides.Jsii$Proxy
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.ec2.*; import software.amazon.awscdk.services.stepfunctions.tasks.*; InstanceType instanceType; ContainerOverrides containerOverrides = ContainerOverrides.builder() .command(List.of("command")) .environment(Map.of( "environmentKey", "environment")) .gpuCount(123) .instanceType(instanceType) .memory(123) .vcpus(123) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forContainerOverrides
static final class
An implementation forContainerOverrides
-
Method Summary
Modifier and TypeMethodDescriptionstatic ContainerOverrides.Builder
builder()
The command to send to the container that overrides the default command from the Docker image or the job definition.The environment variables to send to the container.default Number
The number of physical GPUs to reserve for the container.default InstanceType
The instance type to use for a multi-node parallel job.default Number
The number of MiB of memory reserved for the job.default Number
getVcpus()
The number of vCPUs to reserve for the container.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCommand
The command to send to the container that overrides the default command from the Docker image or the job definition.Default: - No command overrides
-
getEnvironment
The environment variables to send to the container.You can add new environment variables, which are added to the container at launch, or you can override the existing environment variables from the Docker image or the job definition.
Default: - No environment overrides
-
getGpuCount
The number of physical GPUs to reserve for the container.The number of GPUs reserved for all containers in a job should not exceed the number of available GPUs on the compute resource that the job is launched on.
Default: - No GPU reservation
-
getInstanceType
The instance type to use for a multi-node parallel job.This parameter is not valid for single-node container jobs.
Default: - No instance type overrides
-
getMemory
The number of MiB of memory reserved for the job.This value overrides the value set in the job definition.
Default: - No memory overrides
-
getVcpus
The number of vCPUs to reserve for the container.This value overrides the value set in the job definition.
Default: - No vCPUs overrides
-
builder
- Returns:
- a
ContainerOverrides.Builder
ofContainerOverrides
-