Interface IEcsEc2ContainerDefinition.Jsii$Default
- All Superinterfaces:
software.constructs.IConstruct
,software.constructs.IConstruct.Jsii$Default
,software.constructs.IDependable
,software.constructs.IDependable.Jsii$Default
,IEcsContainerDefinition
,IEcsContainerDefinition.Jsii$Default
,IEcsEc2ContainerDefinition
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
IEcsEc2ContainerDefinition.Jsii$Proxy
- Enclosing interface:
IEcsEc2ContainerDefinition
IEcsEc2ContainerDefinition
.-
Nested Class Summary
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$Proxy
Nested classes/interfaces inherited from interface software.constructs.IDependable
software.constructs.IDependable.Jsii$Default, software.constructs.IDependable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.batch.IEcsContainerDefinition
IEcsContainerDefinition.Jsii$Default, IEcsContainerDefinition.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.batch.IEcsEc2ContainerDefinition
IEcsEc2ContainerDefinition.Jsii$Default, IEcsEc2ContainerDefinition.Jsii$Proxy
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
Add a ulimit to this container.default void
Add a Volume to this container.The command that's passed to the container.default Number
getCpu()
The number of vCPUs reserved for the container.The environment variables to pass to a container.default IRole
The role used by Amazon ECS container and AWS Fargate agents to make AWS API calls on your behalf.default Number
getGpu()
The number of physical GPUs to reserve for the container.default ContainerImage
getImage()
The image that this container will run.default IRole
The role that the container can assume.default LinuxParameters
Linux-specific modifications that are applied to the container, such as details for device mappings.default LogDriverConfig
The configuration of the log driver.default Size
The memory hard limit present to the container.default software.constructs.Node
getNode()
The tree node.default Boolean
When this parameter is true, the container is given elevated permissions on the host container instance (similar to the root user).default 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.default String
getUser()
The user name to use inside the container.The volumes to mount to this container.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getNode
@Stability(Stable) @NotNull default software.constructs.Node getNode()The tree node.- Specified by:
getNode
in interfacesoftware.constructs.IConstruct
- Specified by:
getNode
in interfacesoftware.constructs.IConstruct.Jsii$Default
- Specified by:
getNode
in interfaceIEcsContainerDefinition.Jsii$Default
-
getCpu
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 interfaceIEcsContainerDefinition
- Specified by:
getCpu
in interfaceIEcsContainerDefinition.Jsii$Default
-
getExecutionRole
The role used by Amazon ECS container and AWS Fargate agents to make AWS API calls on your behalf.- Specified by:
getExecutionRole
in interfaceIEcsContainerDefinition
- Specified by:
getExecutionRole
in interfaceIEcsContainerDefinition.Jsii$Default
- See Also:
-
getImage
The image that this container will run.- Specified by:
getImage
in interfaceIEcsContainerDefinition
- Specified by:
getImage
in interfaceIEcsContainerDefinition.Jsii$Default
-
getMemory
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 interfaceIEcsContainerDefinition
- Specified by:
getMemory
in interfaceIEcsContainerDefinition.Jsii$Default
-
getVolumes
The volumes to mount to this container.Automatically added to the job definition.
Default: - no volumes
- Specified by:
getVolumes
in interfaceIEcsContainerDefinition
- Specified by:
getVolumes
in interfaceIEcsContainerDefinition.Jsii$Default
-
getCommand
The command that's passed to the container.- Specified by:
getCommand
in interfaceIEcsContainerDefinition
- Specified by:
getCommand
in interfaceIEcsContainerDefinition.Jsii$Default
- See Also:
-
getEnvironment
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 interfaceIEcsContainerDefinition
- Specified by:
getEnvironment
in interfaceIEcsContainerDefinition.Jsii$Default
-
getJobRole
The role that the container can assume.Default: - no jobRole
- Specified by:
getJobRole
in interfaceIEcsContainerDefinition
- Specified by:
getJobRole
in interfaceIEcsContainerDefinition.Jsii$Default
- See Also:
-
getLinuxParameters
Linux-specific modifications that are applied to the container, such as details for device mappings.Default: none
- Specified by:
getLinuxParameters
in interfaceIEcsContainerDefinition
- Specified by:
getLinuxParameters
in interfaceIEcsContainerDefinition.Jsii$Default
-
getLogDriverConfig
The configuration of the log driver.- Specified by:
getLogDriverConfig
in interfaceIEcsContainerDefinition
- Specified by:
getLogDriverConfig
in interfaceIEcsContainerDefinition.Jsii$Default
-
getReadonlyRootFilesystem
Gives the container readonly access to its root filesystem.Default: false
- Specified by:
getReadonlyRootFilesystem
in interfaceIEcsContainerDefinition
- Specified by:
getReadonlyRootFilesystem
in interfaceIEcsContainerDefinition.Jsii$Default
-
getSecrets
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 interfaceIEcsContainerDefinition
- Specified by:
getSecrets
in interfaceIEcsContainerDefinition.Jsii$Default
- See Also:
-
getUser
The user name to use inside the container.Default: - no user
- Specified by:
getUser
in interfaceIEcsContainerDefinition
- Specified by:
getUser
in interfaceIEcsContainerDefinition.Jsii$Default
-
getUlimits
Limits to set for the user this docker container will run as.- Specified by:
getUlimits
in interfaceIEcsEc2ContainerDefinition
-
getGpu
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 interfaceIEcsEc2ContainerDefinition
-
getPrivileged
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 interfaceIEcsEc2ContainerDefinition
-
addVolume
Add a Volume to this container.- Specified by:
addVolume
in interfaceIEcsContainerDefinition
- Specified by:
addVolume
in interfaceIEcsContainerDefinition.Jsii$Default
- Parameters:
volume
- This parameter is required.
-
addUlimit
Add a ulimit to this container.- Specified by:
addUlimit
in interfaceIEcsEc2ContainerDefinition
- Parameters:
ulimit
- This parameter is required.
-