Interface IEcsContainerDefinition.Jsii$Default
- All Superinterfaces:
software.constructs.IConstruct,software.constructs.IConstruct.Jsii$Default,software.constructs.IDependable,software.constructs.IDependable.Jsii$Default,IEcsContainerDefinition,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
IEcsEc2ContainerDefinition.Jsii$Default,IEcsFargateContainerDefinition.Jsii$Default
- All Known Implementing Classes:
IEcsContainerDefinition.Jsii$Proxy,IEcsEc2ContainerDefinition.Jsii$Proxy,IEcsFargateContainerDefinition.Jsii$Proxy
- Enclosing interface:
IEcsContainerDefinition
IEcsContainerDefinition.-
Nested Class Summary
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IDependable
software.constructs.IDependable.Jsii$Default, software.constructs.IDependable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.batch.IEcsContainerDefinition
IEcsContainerDefinition.Jsii$Default, IEcsContainerDefinition.Jsii$Proxy -
Method Summary
Modifier and TypeMethodDescriptiondefault voidAdd a Volume to this container.The command that's passed to the container.default NumbergetCpu()The number of vCPUs reserved for the container.default BooleanWhether to enable ecs exec for this container.The environment variables to pass to a container.default IRoleThe role used by Amazon ECS container and AWS Fargate agents to make AWS API calls on your behalf.default ContainerImagegetImage()The image that this container will run.default IRoleThe role that the container can assume.default LinuxParametersLinux-specific modifications that are applied to the container, such as details for device mappings.default LogDriverConfigThe configuration of the log driver.default SizeThe memory hard limit present to the container.default software.constructs.NodegetNode()The tree node.default BooleanGives the container readonly access to its root filesystem.A map from environment variable names to the secrets for the container.default StringgetUser()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:
getNodein interfacesoftware.constructs.IConstruct- Specified by:
getNodein interfacesoftware.constructs.IConstruct.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:
getCpuin interfaceIEcsContainerDefinition
-
getExecutionRole
The role used by Amazon ECS container and AWS Fargate agents to make AWS API calls on your behalf.- Specified by:
getExecutionRolein interfaceIEcsContainerDefinition- See Also:
-
getImage
The image that this container will run.- Specified by:
getImagein interfaceIEcsContainerDefinition
-
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:
getMemoryin interfaceIEcsContainerDefinition
-
getVolumes
The volumes to mount to this container.Automatically added to the job definition.
Default: - no volumes
- Specified by:
getVolumesin interfaceIEcsContainerDefinition
-
getCommand
The command that's passed to the container.- Specified by:
getCommandin interfaceIEcsContainerDefinition- See Also:
-
getEnableExecuteCommand
Whether to enable ecs exec for this container.Default: undefined - AWS Batch default is false
- Specified by:
getEnableExecuteCommandin interfaceIEcsContainerDefinition
-
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:
getEnvironmentin interfaceIEcsContainerDefinition
-
getJobRole
The role that the container can assume.Default: - no jobRole
- Specified by:
getJobRolein interfaceIEcsContainerDefinition- See Also:
-
getLinuxParameters
Linux-specific modifications that are applied to the container, such as details for device mappings.Default: none
- Specified by:
getLinuxParametersin interfaceIEcsContainerDefinition
-
getLogDriverConfig
The configuration of the log driver.- Specified by:
getLogDriverConfigin interfaceIEcsContainerDefinition
-
getReadonlyRootFilesystem
Gives the container readonly access to its root filesystem.Default: false
- Specified by:
getReadonlyRootFilesystemin interfaceIEcsContainerDefinition
-
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:
getSecretsin interfaceIEcsContainerDefinition- See Also:
-
getUser
The user name to use inside the container.Default: - no user
- Specified by:
getUserin interfaceIEcsContainerDefinition
-
addVolume
Add a Volume to this container.- Specified by:
addVolumein interfaceIEcsContainerDefinition- Parameters:
volume- This parameter is required.
-