@Stability(value=Experimental) @Internal public static final class JobDefinitionContainer.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements JobDefinitionContainer
JobDefinitionContainersoftware.amazon.jsii.JsiiObject.InitializationModeJobDefinitionContainer.Builder, JobDefinitionContainer.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(ContainerImage image,
List<String> command,
Map<String,String> environment,
Number gpuCount,
InstanceType instanceType,
IRole jobRole,
LinuxParameters linuxParams,
Number memoryLimitMiB,
List<? extends MountPoint> mountPoints,
Boolean privileged,
Boolean readOnly,
List<? extends Ulimit> ulimits,
String user,
Number vcpus,
List<? extends Volume> volumes)
Constructor that initializes the object based on literal property values passed by the
JobDefinitionContainer.Builder. |
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
List<String> |
getCommand()
(experimental) The command that is passed to the container.
|
Map<String,String> |
getEnvironment()
(experimental) The environment variables to pass to the container.
|
Number |
getGpuCount()
(experimental) The number of physical GPUs to reserve for the container.
|
ContainerImage |
getImage()
(experimental) The image used to start a container.
|
InstanceType |
getInstanceType()
(experimental) The instance type to use for a multi-node parallel job.
|
IRole |
getJobRole()
(experimental) The IAM role that the container can assume for AWS permissions.
|
LinuxParameters |
getLinuxParams()
(experimental) Linux-specific modifications that are applied to the container, such as details for device mappings.
|
Number |
getMemoryLimitMiB()
(experimental) The hard limit (in MiB) of memory to present to the container.
|
List<MountPoint> |
getMountPoints()
(experimental) The mount points for data volumes in your container.
|
Boolean |
getPrivileged()
(experimental) When this parameter is true, the container is given elevated privileges on the host container instance (similar to the root user).
|
Boolean |
getReadOnly()
(experimental) When this parameter is true, the container is given read-only access to its root file system.
|
List<Ulimit> |
getUlimits()
(experimental) A list of ulimits to set in the container.
|
String |
getUser()
(experimental) The user name to use inside the container.
|
Number |
getVcpus()
(experimental) The number of vCPUs reserved for the container.
|
List<Volume> |
getVolumes()
(experimental) A list of data volumes used in a job.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(ContainerImage image, List<String> command, Map<String,String> environment, Number gpuCount, InstanceType instanceType, IRole jobRole, LinuxParameters linuxParams, Number memoryLimitMiB, List<? extends MountPoint> mountPoints, Boolean privileged, Boolean readOnly, List<? extends Ulimit> ulimits, String user, Number vcpus, List<? extends Volume> volumes)
JobDefinitionContainer.Builder.public final ContainerImage getImage()
JobDefinitionContainergetImage in interface JobDefinitionContainerpublic final List<String> getCommand()
JobDefinitionContainerIf you provide a shell command as a single string, you have to quote command-line arguments.
Default: - CMD value built into container image.
getCommand in interface JobDefinitionContainerpublic final Map<String,String> getEnvironment()
JobDefinitionContainerDefault: none
getEnvironment in interface JobDefinitionContainerpublic final Number getGpuCount()
JobDefinitionContainerThe 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.
getGpuCount in interface JobDefinitionContainerpublic final InstanceType getInstanceType()
JobDefinitionContainerCurrently all node groups in a multi-node parallel job must use the same instance type. This parameter is not valid for single-node container jobs.
Default: - None
getInstanceType in interface JobDefinitionContainerpublic final IRole getJobRole()
JobDefinitionContainerDefault: - An IAM role will created.
getJobRole in interface JobDefinitionContainerpublic final LinuxParameters getLinuxParams()
JobDefinitionContainer
For now, only the devices property is supported.
Default: - None will be used.
getLinuxParams in interface JobDefinitionContainerpublic final Number getMemoryLimitMiB()
JobDefinitionContainerIf your container attempts to exceed the memory specified here, the container is killed. You must specify at least 4 MiB of memory for a job.
Default: 4
getMemoryLimitMiB in interface JobDefinitionContainerpublic final List<MountPoint> getMountPoints()
JobDefinitionContainerDefault: - No mount points will be used.
getMountPoints in interface JobDefinitionContainerpublic final Boolean getPrivileged()
JobDefinitionContainerDefault: false
getPrivileged in interface JobDefinitionContainerpublic final Boolean getReadOnly()
JobDefinitionContainerDefault: false
getReadOnly in interface JobDefinitionContainerpublic final List<Ulimit> getUlimits()
JobDefinitionContainerDefault: - No limits.
getUlimits in interface JobDefinitionContainerpublic final String getUser()
JobDefinitionContainerDefault: - None will be used.
getUser in interface JobDefinitionContainerpublic final Number getVcpus()
JobDefinitionContainerEach vCPU is equivalent to 1,024 CPU shares. You must specify at least one vCPU.
Default: 1
getVcpus in interface JobDefinitionContainerpublic final List<Volume> getVolumes()
JobDefinitionContainerDefault: - No data volumes will be used.
getVolumes in interface JobDefinitionContainer@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2020. All rights reserved.