Class CfnJobDefinition.TimeoutProperty.Builder
java.lang.Object
software.amazon.awscdk.services.batch.CfnJobDefinition.TimeoutProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnJobDefinition.TimeoutProperty>
- Enclosing interface:
- CfnJobDefinition.TimeoutProperty
@Stability(Stable)
public static final class CfnJobDefinition.TimeoutProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnJobDefinition.TimeoutProperty>
A builder for
CfnJobDefinition.TimeoutProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionattemptDurationSeconds
(Number attemptDurationSeconds) Sets the value ofCfnJobDefinition.TimeoutProperty.getAttemptDurationSeconds()
build()
Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
attemptDurationSeconds
@Stability(Stable) public CfnJobDefinition.TimeoutProperty.Builder attemptDurationSeconds(Number attemptDurationSeconds) Sets the value ofCfnJobDefinition.TimeoutProperty.getAttemptDurationSeconds()
- Parameters:
attemptDurationSeconds
- The job timeout time (in seconds) that's measured from the job attempt'sstartedAt
timestamp. After this time passes, AWS Batch terminates your jobs if they aren't finished. The minimum value for the timeout is 60 seconds.For array jobs, the timeout applies to the child jobs, not to the parent array job.
For multi-node parallel (MNP) jobs, the timeout applies to the whole job, not to the individual nodes.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnJobDefinition.TimeoutProperty>
- Returns:
- a new instance of
CfnJobDefinition.TimeoutProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-