@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-11T19:24:25.377Z") @Stability(value=Stable) public interface CfnJobDefinitionProps extends software.amazon.jsii.JsiiSerializable
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;
Object parameters;
Object tags;
CfnJobDefinitionProps cfnJobDefinitionProps = CfnJobDefinitionProps.builder()
.type("type")
// the properties below are optional
.containerProperties(ContainerPropertiesProperty.builder()
.image("image")
// the properties below are optional
.command(List.of("command"))
.environment(List.of(EnvironmentProperty.builder()
.name("name")
.value("value")
.build()))
.executionRoleArn("executionRoleArn")
.fargatePlatformConfiguration(FargatePlatformConfigurationProperty.builder()
.platformVersion("platformVersion")
.build())
.instanceType("instanceType")
.jobRoleArn("jobRoleArn")
.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())
.memory(123)
.mountPoints(List.of(MountPointsProperty.builder()
.containerPath("containerPath")
.readOnly(false)
.sourceVolume("sourceVolume")
.build()))
.networkConfiguration(NetworkConfigurationProperty.builder()
.assignPublicIp("assignPublicIp")
.build())
.privileged(false)
.readonlyRootFilesystem(false)
.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")
.vcpus(123)
.volumes(List.of(VolumesProperty.builder()
.efsVolumeConfiguration(EfsVolumeConfigurationProperty.builder()
.fileSystemId("fileSystemId")
// the properties below are optional
.authorizationConfig(AuthorizationConfigProperty.builder()
.accessPointId("accessPointId")
.iam("iam")
.build())
.rootDirectory("rootDirectory")
.transitEncryption("transitEncryption")
.transitEncryptionPort(123)
.build())
.host(VolumesHostProperty.builder()
.sourcePath("sourcePath")
.build())
.name("name")
.build()))
.build())
.jobDefinitionName("jobDefinitionName")
.nodeProperties(NodePropertiesProperty.builder()
.mainNode(123)
.nodeRangeProperties(List.of(NodeRangePropertyProperty.builder()
.targetNodes("targetNodes")
// the properties below are optional
.container(ContainerPropertiesProperty.builder()
.image("image")
// the properties below are optional
.command(List.of("command"))
.environment(List.of(EnvironmentProperty.builder()
.name("name")
.value("value")
.build()))
.executionRoleArn("executionRoleArn")
.fargatePlatformConfiguration(FargatePlatformConfigurationProperty.builder()
.platformVersion("platformVersion")
.build())
.instanceType("instanceType")
.jobRoleArn("jobRoleArn")
.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())
.memory(123)
.mountPoints(List.of(MountPointsProperty.builder()
.containerPath("containerPath")
.readOnly(false)
.sourceVolume("sourceVolume")
.build()))
.networkConfiguration(NetworkConfigurationProperty.builder()
.assignPublicIp("assignPublicIp")
.build())
.privileged(false)
.readonlyRootFilesystem(false)
.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")
.vcpus(123)
.volumes(List.of(VolumesProperty.builder()
.efsVolumeConfiguration(EfsVolumeConfigurationProperty.builder()
.fileSystemId("fileSystemId")
// the properties below are optional
.authorizationConfig(AuthorizationConfigProperty.builder()
.accessPointId("accessPointId")
.iam("iam")
.build())
.rootDirectory("rootDirectory")
.transitEncryption("transitEncryption")
.transitEncryptionPort(123)
.build())
.host(VolumesHostProperty.builder()
.sourcePath("sourcePath")
.build())
.name("name")
.build()))
.build())
.build()))
.numNodes(123)
.build())
.parameters(parameters)
.platformCapabilities(List.of("platformCapabilities"))
.propagateTags(false)
.retryStrategy(RetryStrategyProperty.builder()
.attempts(123)
.evaluateOnExit(List.of(EvaluateOnExitProperty.builder()
.action("action")
// the properties below are optional
.onExitCode("onExitCode")
.onReason("onReason")
.onStatusReason("onStatusReason")
.build()))
.build())
.schedulingPriority(123)
.tags(tags)
.timeout(TimeoutProperty.builder()
.attemptDurationSeconds(123)
.build())
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnJobDefinitionProps.Builder
A builder for
CfnJobDefinitionProps |
static class |
CfnJobDefinitionProps.Jsii$Proxy
An implementation for
CfnJobDefinitionProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnJobDefinitionProps.Builder |
builder() |
default Object |
getContainerProperties()
`AWS::Batch::JobDefinition.ContainerProperties`.
|
default String |
getJobDefinitionName()
`AWS::Batch::JobDefinition.JobDefinitionName`.
|
default Object |
getNodeProperties()
`AWS::Batch::JobDefinition.NodeProperties`.
|
default Object |
getParameters()
`AWS::Batch::JobDefinition.Parameters`.
|
default List<String> |
getPlatformCapabilities()
`AWS::Batch::JobDefinition.PlatformCapabilities`.
|
default Object |
getPropagateTags()
`AWS::Batch::JobDefinition.PropagateTags`.
|
default Object |
getRetryStrategy()
`AWS::Batch::JobDefinition.RetryStrategy`.
|
default Number |
getSchedulingPriority()
`AWS::Batch::JobDefinition.SchedulingPriority`.
|
default Object |
getTags()
`AWS::Batch::JobDefinition.Tags`.
|
default Object |
getTimeout()
`AWS::Batch::JobDefinition.Timeout`.
|
String |
getType()
`AWS::Batch::JobDefinition.Type`.
|
@Stability(value=Stable) @NotNull String getType()
@Stability(value=Stable) @Nullable default Object getContainerProperties()
@Stability(value=Stable) @Nullable default String getJobDefinitionName()
@Stability(value=Stable) @Nullable default Object getNodeProperties()
@Stability(value=Stable) @Nullable default Object getParameters()
@Stability(value=Stable) @Nullable default List<String> getPlatformCapabilities()
@Stability(value=Stable) @Nullable default Object getPropagateTags()
@Stability(value=Stable) @Nullable default Object getRetryStrategy()
@Stability(value=Stable) @Nullable default Number getSchedulingPriority()
@Stability(value=Stable) @Nullable default Object getTags()
@Stability(value=Stable) @Nullable default Object getTimeout()
@Stability(value=Stable) static CfnJobDefinitionProps.Builder builder()
CfnJobDefinitionProps.Builder of CfnJobDefinitionPropsCopyright © 2022. All rights reserved.