Class EcsFargateContainerDefinition

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.services.batch.EcsFargateContainerDefinition
All Implemented Interfaces:
IEcsContainerDefinition, IEcsFargateContainerDefinition, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-22T02:23:57.676Z") @Stability(Stable) public class EcsFargateContainerDefinition extends software.constructs.Construct implements IEcsFargateContainerDefinition, IEcsContainerDefinition
A container orchestrated by ECS that uses Fargate resources.

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();