Interface EcsFargateContainerDefinitionProps
- All Superinterfaces:
EcsContainerDefinitionProps
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
EcsFargateContainerDefinitionProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:23:57.677Z")
@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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forEcsFargateContainerDefinitionProps
static final class
An implementation forEcsFargateContainerDefinitionProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Boolean
Indicates whether the job has a public IP address.default Size
The size for ephemeral storage.default CpuArchitecture
The vCPU architecture of Fargate Runtime.default OperatingSystemFamily
The operating system for the compute environment.default FargatePlatformVersion
Which version of Fargate to use when running this container.Methods inherited from interface software.amazon.awscdk.services.batch.EcsContainerDefinitionProps
getCommand, getCpu, getEnvironment, getExecutionRole, getImage, getJobRole, getLinuxParameters, getLogging, getMemory, getReadonlyRootFilesystem, getSecrets, getUser, getVolumes
Methods 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
-