public static final class CfnJobDefinitionProps.Builder
extends java.lang.Object
CfnJobDefinitionProps
Constructor and Description |
---|
Builder() |
public CfnJobDefinitionProps.Builder type(java.lang.String type)
CfnJobDefinitionProps.getType()
type
- The type of job definition. This parameter is required.
For more information about multi-node parallel jobs, see Creating a multi-node parallel job definition in the AWS Batch User Guide .
If the job is run on Fargate resources, then
multinode
isn't supported.
this
public CfnJobDefinitionProps.Builder containerProperties(IResolvable containerProperties)
CfnJobDefinitionProps.getContainerProperties()
containerProperties
- An object with various properties specific to container-based jobs.this
public CfnJobDefinitionProps.Builder containerProperties(CfnJobDefinition.ContainerPropertiesProperty containerProperties)
CfnJobDefinitionProps.getContainerProperties()
containerProperties
- An object with various properties specific to container-based jobs.this
public CfnJobDefinitionProps.Builder jobDefinitionName(java.lang.String jobDefinitionName)
CfnJobDefinitionProps.getJobDefinitionName()
jobDefinitionName
- The name of the job definition.this
public CfnJobDefinitionProps.Builder nodeProperties(IResolvable nodeProperties)
CfnJobDefinitionProps.getNodeProperties()
nodeProperties
- An object with various properties specific to multi-node parallel jobs.
If the job runs on Fargate resources, then you must not specify
nodeProperties
; usecontainerProperties
instead.
this
public CfnJobDefinitionProps.Builder nodeProperties(CfnJobDefinition.NodePropertiesProperty nodeProperties)
CfnJobDefinitionProps.getNodeProperties()
nodeProperties
- An object with various properties specific to multi-node parallel jobs.
If the job runs on Fargate resources, then you must not specify
nodeProperties
; usecontainerProperties
instead.
this
public CfnJobDefinitionProps.Builder parameters(java.lang.Object parameters)
CfnJobDefinitionProps.getParameters()
parameters
- Default parameters or parameter substitution placeholders that are set in the job definition.
Parameters are specified as a key-value pair mapping. Parameters in a SubmitJob
request override any corresponding parameter defaults from the job definition. For more information about specifying parameters, see Job definition parameters in the AWS Batch User Guide .this
public CfnJobDefinitionProps.Builder platformCapabilities(java.util.List<java.lang.String> platformCapabilities)
CfnJobDefinitionProps.getPlatformCapabilities()
platformCapabilities
- The platform capabilities required by the job definition.
If no value is specified, it defaults to EC2
. Jobs run on Fargate resources specify FARGATE
.this
public CfnJobDefinitionProps.Builder propagateTags(java.lang.Boolean propagateTags)
CfnJobDefinitionProps.getPropagateTags()
propagateTags
- Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task.
If no value is specified, the tags aren't propagated. Tags can only be propagated to the tasks during task creation. For tags with the same name, job tags are given priority over job definitions tags. If the total number of combined tags from the job and job definition is over 50, the job is moved to the FAILED
state.this
public CfnJobDefinitionProps.Builder propagateTags(IResolvable propagateTags)
CfnJobDefinitionProps.getPropagateTags()
propagateTags
- Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task.
If no value is specified, the tags aren't propagated. Tags can only be propagated to the tasks during task creation. For tags with the same name, job tags are given priority over job definitions tags. If the total number of combined tags from the job and job definition is over 50, the job is moved to the FAILED
state.this
public CfnJobDefinitionProps.Builder retryStrategy(IResolvable retryStrategy)
CfnJobDefinitionProps.getRetryStrategy()
retryStrategy
- The retry strategy to use for failed jobs that are submitted with this job definition.this
public CfnJobDefinitionProps.Builder retryStrategy(CfnJobDefinition.RetryStrategyProperty retryStrategy)
CfnJobDefinitionProps.getRetryStrategy()
retryStrategy
- The retry strategy to use for failed jobs that are submitted with this job definition.this
public CfnJobDefinitionProps.Builder schedulingPriority(java.lang.Number schedulingPriority)
CfnJobDefinitionProps.getSchedulingPriority()
schedulingPriority
- The scheduling priority of the job definition.
This only affects jobs in job queues with a fair share policy. Jobs with a higher scheduling priority are scheduled before jobs with a lower scheduling priority.this
public CfnJobDefinitionProps.Builder tags(java.lang.Object tags)
CfnJobDefinitionProps.getTags()
tags
- The tags applied to the job definition.this
public CfnJobDefinitionProps.Builder timeout(IResolvable timeout)
CfnJobDefinitionProps.getTimeout()
timeout
- The timeout configuration for jobs that are submitted with this job definition.
You can specify a timeout duration after which AWS Batch terminates your jobs if they haven't finished.this
public CfnJobDefinitionProps.Builder timeout(CfnJobDefinition.TimeoutProperty timeout)
CfnJobDefinitionProps.getTimeout()
timeout
- The timeout configuration for jobs that are submitted with this job definition.
You can specify a timeout duration after which AWS Batch terminates your jobs if they haven't finished.this
public CfnJobDefinitionProps build()
CfnJobDefinitionProps
java.lang.NullPointerException
- if any required attribute was not provided