Interface EcsFargateContainerDefinitionProps
- All Superinterfaces:
EcsContainerDefinitionProps,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
EcsFargateContainerDefinitionProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-20T23:37:15.422Z")
@Stability(Stable)
public interface EcsFargateContainerDefinitionProps
extends software.amazon.jsii.JsiiSerializable, EcsContainerDefinitionProps
Props to configure an EcsFargateContainerDefinition.
Example:
EcsJobDefinition jobDefn = EcsJobDefinition.Builder.create(this, "JobDefn")
.container(EcsFargateContainerDefinition.Builder.create(this, "myFargateContainer")
.image(ContainerImage.fromRegistry("public.ecr.aws/amazonlinux/amazonlinux:latest"))
.memory(Size.mebibytes(2048))
.cpu(256)
.ephemeralStorageSize(Size.gibibytes(100))
.fargateCpuArchitecture(CpuArchitecture.ARM64)
.fargateOperatingSystemFamily(OperatingSystemFamily.LINUX)
.build())
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forEcsFargateContainerDefinitionPropsstatic final classAn implementation forEcsFargateContainerDefinitionProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default BooleanIndicates whether the job has a public IP address.default SizeThe size for ephemeral storage.default CpuArchitectureThe vCPU architecture of Fargate Runtime.default OperatingSystemFamilyThe operating system for the compute environment.default FargatePlatformVersionWhich version of Fargate to use when running this container.Methods inherited from interface software.amazon.awscdk.services.batch.EcsContainerDefinitionProps
getCommand, getCpu, getEnableExecuteCommand, getEnvironment, getExecutionRole, getImage, getJobRole, getLinuxParameters, getLogging, getMemory, getReadonlyRootFilesystem, getSecrets, getUser, getVolumesMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAssignPublicIp
Indicates whether the job has a public IP address.For a job that's running on Fargate resources in a private subnet to send outbound traffic to the internet (for example, to pull container images), the private subnet requires a NAT gateway be attached to route requests to the internet.
Default: false
- See Also:
-
getEphemeralStorageSize
The size for ephemeral storage.Default: - 20 GiB
-
getFargateCpuArchitecture
The vCPU architecture of Fargate Runtime.Default: - X86_64
-
getFargateOperatingSystemFamily
The operating system for the compute environment.Default: - LINUX
-
getFargatePlatformVersion
Which version of Fargate to use when running this container.Default: LATEST
-
builder
-