Class EcsEc2ContainerDefinitionProps.Jsii$Proxy
- All Implemented Interfaces:
EcsContainerDefinitionProps
,EcsEc2ContainerDefinitionProps
,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
EcsEc2ContainerDefinitionProps
EcsEc2ContainerDefinitionProps
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.batch.EcsEc2ContainerDefinitionProps
EcsEc2ContainerDefinitionProps.Builder, EcsEc2ContainerDefinitionProps.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionprotected
Constructor that initializes the object based on literal property values passed by theEcsEc2ContainerDefinitionProps.Builder
.protected
Jsii$Proxy
(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNode
final boolean
The command that's passed to the container.final Number
getCpu()
The number of vCPUs reserved for the container.The environment variables to pass to a container.final IRole
The role used by Amazon ECS container and AWS Fargate agents to make AWS API calls on your behalf.final Number
getGpu()
The number of physical GPUs to reserve for the container.final ContainerImage
getImage()
The image that this container will run.final IRole
The role that the container can assume.final LinuxParameters
Linux-specific modifications that are applied to the container, such as details for device mappings.final LogDriver
The loging configuration for this Job.final Size
The memory hard limit present to the container.final Boolean
When this parameter is true, the container is given elevated permissions on the host container instance (similar to the root user).final Boolean
Gives the container readonly access to its root filesystem.A map from environment variable names to the secrets for the container.Limits to set for the user this docker container will run as.final String
getUser()
The user name to use inside the container.The volumes to mount to this container.final int
hashCode()
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef
- Reference to the JSII managed object.
-
Jsii$Proxy
Constructor that initializes the object based on literal property values passed by theEcsEc2ContainerDefinitionProps.Builder
.
-
-
Method Details
-
getGpu
Description copied from interface:EcsEc2ContainerDefinitionProps
The number of physical GPUs to reserve for the container.Make sure that the number of GPUs reserved for all containers in a job doesn't exceed the number of available GPUs on the compute resource that the job is launched on.
Default: - no gpus
- Specified by:
getGpu
in interfaceEcsEc2ContainerDefinitionProps
-
getPrivileged
Description copied from interface:EcsEc2ContainerDefinitionProps
When this parameter is true, the container is given elevated permissions on the host container instance (similar to the root user).Default: false
- Specified by:
getPrivileged
in interfaceEcsEc2ContainerDefinitionProps
-
getUlimits
Description copied from interface:EcsEc2ContainerDefinitionProps
Limits to set for the user this docker container will run as.Default: - no ulimits
- Specified by:
getUlimits
in interfaceEcsEc2ContainerDefinitionProps
-
getCpu
Description copied from interface:EcsContainerDefinitionProps
The number of vCPUs reserved for the container.Each vCPU is equivalent to 1,024 CPU shares. For containers running on EC2 resources, you must specify at least one vCPU.
- Specified by:
getCpu
in interfaceEcsContainerDefinitionProps
-
getImage
Description copied from interface:EcsContainerDefinitionProps
The image that this container will run.- Specified by:
getImage
in interfaceEcsContainerDefinitionProps
-
getMemory
Description copied from interface:EcsContainerDefinitionProps
The memory hard limit present to the container.If your container attempts to exceed the memory specified, the container is terminated. You must specify at least 4 MiB of memory for a job.
- Specified by:
getMemory
in interfaceEcsContainerDefinitionProps
-
getCommand
Description copied from interface:EcsContainerDefinitionProps
The command that's passed to the container.Default: - no command
- Specified by:
getCommand
in interfaceEcsContainerDefinitionProps
- See Also:
-
getEnvironment
Description copied from interface:EcsContainerDefinitionProps
The environment variables to pass to a container.Cannot start with
AWS_BATCH
. We don't recommend using plaintext environment variables for sensitive information, such as credential data.Default: - no environment variables
- Specified by:
getEnvironment
in interfaceEcsContainerDefinitionProps
-
getExecutionRole
Description copied from interface:EcsContainerDefinitionProps
The role used by Amazon ECS container and AWS Fargate agents to make AWS API calls on your behalf.Default: - a Role will be created
- Specified by:
getExecutionRole
in interfaceEcsContainerDefinitionProps
- See Also:
-
getJobRole
Description copied from interface:EcsContainerDefinitionProps
The role that the container can assume.Default: - no job role
- Specified by:
getJobRole
in interfaceEcsContainerDefinitionProps
- See Also:
-
getLinuxParameters
Description copied from interface:EcsContainerDefinitionProps
Linux-specific modifications that are applied to the container, such as details for device mappings.Default: none
- Specified by:
getLinuxParameters
in interfaceEcsContainerDefinitionProps
-
getLogging
Description copied from interface:EcsContainerDefinitionProps
The loging configuration for this Job.Default: - the log configuration of the Docker daemon
- Specified by:
getLogging
in interfaceEcsContainerDefinitionProps
-
getReadonlyRootFilesystem
Description copied from interface:EcsContainerDefinitionProps
Gives the container readonly access to its root filesystem.Default: false
- Specified by:
getReadonlyRootFilesystem
in interfaceEcsContainerDefinitionProps
-
getSecrets
Description copied from interface:EcsContainerDefinitionProps
A map from environment variable names to the secrets for the container.Allows your job definitions to reference the secret by the environment variable name defined in this property.
Default: - no secrets
- Specified by:
getSecrets
in interfaceEcsContainerDefinitionProps
- See Also:
-
getUser
Description copied from interface:EcsContainerDefinitionProps
The user name to use inside the container.Default: - no user
- Specified by:
getUser
in interfaceEcsContainerDefinitionProps
-
getVolumes
Description copied from interface:EcsContainerDefinitionProps
The volumes to mount to this container.Automatically added to the job definition.
Default: - no volumes
- Specified by:
getVolumes
in interfaceEcsContainerDefinitionProps
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJson
in interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-