Interface CfnJobDefinition.TaskContainerPropertiesProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnJobDefinition.TaskContainerPropertiesProperty.Jsii$Proxy
Enclosing class:
CfnJobDefinition

@Stability(Stable) public static interface CfnJobDefinition.TaskContainerPropertiesProperty extends software.amazon.jsii.JsiiSerializable
Container properties are used for Amazon ECS-based job definitions.

These properties to describe the container that's launched as part of a job.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.batch.*;
 Object options;
 TaskContainerPropertiesProperty taskContainerPropertiesProperty = TaskContainerPropertiesProperty.builder()
         .image("image")
         // the properties below are optional
         .command(List.of("command"))
         .dependsOn(List.of(TaskContainerDependencyProperty.builder()
                 .condition("condition")
                 .containerName("containerName")
                 .build()))
         .environment(List.of(EnvironmentProperty.builder()
                 .name("name")
                 .value("value")
                 .build()))
         .essential(false)
         .linuxParameters(LinuxParametersProperty.builder()
                 .devices(List.of(DeviceProperty.builder()
                         .containerPath("containerPath")
                         .hostPath("hostPath")
                         .permissions(List.of("permissions"))
                         .build()))
                 .initProcessEnabled(false)
                 .maxSwap(123)
                 .sharedMemorySize(123)
                 .swappiness(123)
                 .tmpfs(List.of(TmpfsProperty.builder()
                         .containerPath("containerPath")
                         .size(123)
                         // the properties below are optional
                         .mountOptions(List.of("mountOptions"))
                         .build()))
                 .build())
         .logConfiguration(LogConfigurationProperty.builder()
                 .logDriver("logDriver")
                 // the properties below are optional
                 .options(options)
                 .secretOptions(List.of(SecretProperty.builder()
                         .name("name")
                         .valueFrom("valueFrom")
                         .build()))
                 .build())
         .mountPoints(List.of(MountPointsProperty.builder()
                 .containerPath("containerPath")
                 .readOnly(false)
                 .sourceVolume("sourceVolume")
                 .build()))
         .name("name")
         .privileged(false)
         .readonlyRootFilesystem(false)
         .repositoryCredentials(RepositoryCredentialsProperty.builder()
                 .credentialsParameter("credentialsParameter")
                 .build())
         .resourceRequirements(List.of(ResourceRequirementProperty.builder()
                 .type("type")
                 .value("value")
                 .build()))
         .secrets(List.of(SecretProperty.builder()
                 .name("name")
                 .valueFrom("valueFrom")
                 .build()))
         .ulimits(List.of(UlimitProperty.builder()
                 .hardLimit(123)
                 .name("name")
                 .softLimit(123)
                 .build()))
         .user("user")
         .build();
 

See Also: