@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(JobDefinitionContainer.Builder builder)
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) |
Boolean |
getAssignPublicIp()
(experimental) Whether or not to assign a public IP to the job.
|
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.
|
IRole |
getExecutionRole()
(experimental) The IAM role that AWS Batch can assume.
|
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.
|
LogConfiguration |
getLogConfiguration()
(experimental) The log configuration specification for the container.
|
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.
|
FargatePlatformVersion |
getPlatformVersion()
(experimental) Fargate platform version.
|
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(JobDefinitionContainer.Builder builder)
JobDefinitionContainer.Builder.public final ContainerImage getImage()
JobDefinitionContainergetImage in interface JobDefinitionContainerpublic final Boolean getAssignPublicIp()
JobDefinitionContainerDefault: - false
getAssignPublicIp 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 IRole getExecutionRole()
JobDefinitionContainerRequired when using Fargate.
Default: - None
getExecutionRole 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 LogConfiguration getLogConfiguration()
JobDefinitionContainerDefault: - containers use the same logging driver that the Docker daemon uses
getLogConfiguration 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 EC2 and 512 MiB for Fargate.
Default: - 4 for EC2, 512 for Fargate
getMemoryLimitMiB in interface JobDefinitionContainerpublic final List<MountPoint> getMountPoints()
JobDefinitionContainerDefault: - No mount points will be used.
getMountPoints in interface JobDefinitionContainerpublic final FargatePlatformVersion getPlatformVersion()
JobDefinitionContainerDefault: - LATEST platform version will be used
getPlatformVersion 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 for EC2 and 0.25 for Fargate.
Default: - 1 for EC2, 0.25 for Fargate
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 © 2022. All rights reserved.