Interface IEcsContainerDefinition
- All Superinterfaces:
software.constructs.IConstruct
,software.constructs.IDependable
,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
IEcsContainerDefinition.Jsii$Default
,IEcsEc2ContainerDefinition
,IEcsEc2ContainerDefinition.Jsii$Default
,IEcsFargateContainerDefinition
,IEcsFargateContainerDefinition.Jsii$Default
- All Known Implementing Classes:
EcsEc2ContainerDefinition
,EcsFargateContainerDefinition
,IEcsContainerDefinition.Jsii$Proxy
,IEcsEc2ContainerDefinition.Jsii$Proxy
,IEcsFargateContainerDefinition.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:23:57.709Z")
@Stability(Stable)
public interface IEcsContainerDefinition
extends software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct
A container that can be run with ECS orchestration.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Internal default implementation forIEcsContainerDefinition
.static final class
A proxy class which represents a concrete javascript instance of this type. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a Volume to this container.The command that's passed to the container.getCpu()
The number of vCPUs reserved for the container.The environment variables to pass to a container.The role used by Amazon ECS container and AWS Fargate agents to make AWS API calls on your behalf.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.The memory hard limit present to the container.default Boolean
Gives the container readonly access to its root filesystem.A map from environment variable names to the secrets for the container.default String
getUser()
The user name to use inside the container.The volumes to mount to this container.Methods inherited from interface software.constructs.IConstruct
getNode
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
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.
-
getExecutionRole
The role used by Amazon ECS container and AWS Fargate agents to make AWS API calls on your behalf.- See Also:
-
getImage
The image that this container will run. -
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.
-
getVolumes
The volumes to mount to this container.Automatically added to the job definition.
Default: - no volumes
-
getCommand
The command that's passed to the container.- 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
-
getJobRole
The role that the container can assume.Default: - no jobRole
- See Also:
-
getLinuxParameters
Linux-specific modifications that are applied to the container, such as details for device mappings.Default: none
-
getLogDriverConfig
The configuration of the log driver. -
getReadonlyRootFilesystem
Gives the container readonly access to its root filesystem.Default: false
-
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
- See Also:
-
getUser
The user name to use inside the container.Default: - no user
-
addVolume
Add a Volume to this container.- Parameters:
volume
- This parameter is required.
-