Interface EcsJobDefinitionProps
- All Superinterfaces:
JobDefinitionProps
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
EcsJobDefinitionProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)",
date="2025-09-15T14:51:52.638Z")
@Stability(Stable)
public interface EcsJobDefinitionProps
extends software.amazon.jsii.JsiiSerializable, JobDefinitionProps
Props for EcsJobDefinition.
Example:
IFileSystem myFileSystem; Role myJobRole; myFileSystem.grantRead(myJobRole); EcsJobDefinition jobDefn = EcsJobDefinition.Builder.create(this, "JobDefn") .container(EcsEc2ContainerDefinition.Builder.create(this, "containerDefn") .image(ContainerImage.fromRegistry("public.ecr.aws/amazonlinux/amazonlinux:latest")) .memory(Size.mebibytes(2048)) .cpu(256) .volumes(List.of(EcsVolume.efs(EfsVolumeOptions.builder() .name("myVolume") .fileSystem(myFileSystem) .containerPath("/Volumes/myVolume") .useJobRole(true) .build()))) .jobRole(myJobRole) .build()) .build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forEcsJobDefinitionProps
static final class
An implementation forEcsJobDefinitionProps
-
Method Summary
Methods inherited from interface software.amazon.awscdk.services.batch.JobDefinitionProps
getJobDefinitionName, getParameters, getRetryAttempts, getRetryStrategies, getSchedulingPriority, getTimeout
Methods 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.Builder
ofEcsJobDefinitionProps
-