@Stability(value=Stable) public static final class CfnJobDefinitionProps.Builder extends Object implements software.amazon.jsii.Builder<CfnJobDefinitionProps>
CfnJobDefinitionProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnJobDefinitionProps.Builder type(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
multinodeisn't supported.
this@Stability(value=Stable) public CfnJobDefinitionProps.Builder containerProperties(CfnJobDefinition.ContainerPropertiesProperty containerProperties)
CfnJobDefinitionProps.getContainerProperties()containerProperties - An object with various properties specific to container-based jobs.this@Stability(value=Stable) public CfnJobDefinitionProps.Builder containerProperties(IResolvable containerProperties)
CfnJobDefinitionProps.getContainerProperties()containerProperties - An object with various properties specific to container-based jobs.this@Stability(value=Stable) public CfnJobDefinitionProps.Builder jobDefinitionName(String jobDefinitionName)
CfnJobDefinitionProps.getJobDefinitionName()jobDefinitionName - The name of the job definition.this@Stability(value=Stable) 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; usecontainerPropertiesinstead.
this@Stability(value=Stable) 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; usecontainerPropertiesinstead.
this@Stability(value=Stable) public CfnJobDefinitionProps.Builder parameters(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@Stability(value=Stable) public CfnJobDefinitionProps.Builder platformCapabilities(List<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@Stability(value=Stable) public CfnJobDefinitionProps.Builder propagateTags(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@Stability(value=Stable) 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@Stability(value=Stable) 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@Stability(value=Stable) 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@Stability(value=Stable) public CfnJobDefinitionProps.Builder schedulingPriority(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@Stability(value=Stable) public CfnJobDefinitionProps.Builder tags(Object tags)
CfnJobDefinitionProps.getTags()tags - The tags applied to the job definition.this@Stability(value=Stable) 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@Stability(value=Stable) 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@Stability(value=Stable) public CfnJobDefinitionProps build()
build in interface software.amazon.jsii.Builder<CfnJobDefinitionProps>CfnJobDefinitionPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.