Interface EcsJobDefinitionProps
- All Superinterfaces:
JobDefinitionProps,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
EcsJobDefinitionProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-04-02T09:31:36.084Z")
@Stability(Stable)
public interface EcsJobDefinitionProps
extends software.amazon.jsii.JsiiSerializable, JobDefinitionProps
Props for EcsJobDefinition.
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 forEcsJobDefinitionPropsstatic final classAn implementation forEcsJobDefinitionProps -
Method Summary
Methods inherited from interface software.amazon.awscdk.services.batch.JobDefinitionProps
getJobDefinitionName, getParameters, getRetryAttempts, getRetryStrategies, getSchedulingPriority, getSkipDeregisterOnUpdate, getTimeoutMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getContainer
The container that this job will run. -
getPropagateTags
Whether to propagate tags from the JobDefinition to the ECS task that Batch spawns.Default: false
-
builder
- Returns:
- a
EcsJobDefinitionProps.BuilderofEcsJobDefinitionProps
-