Interface JobDefinitionProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
EcsJobDefinitionProps,EksJobDefinitionProps,MultiNodeJobDefinitionProps
- All Known Implementing Classes:
EcsJobDefinitionProps.Jsii$Proxy,EksJobDefinitionProps.Jsii$Proxy,JobDefinitionProps.Jsii$Proxy,MultiNodeJobDefinitionProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-17T14:40:46.198Z")
@Stability(Stable)
public interface JobDefinitionProps
extends software.amazon.jsii.JsiiSerializable
Props common to all JobDefinitions.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.batch.*;
Object parameters;
RetryStrategy retryStrategy;
JobDefinitionProps jobDefinitionProps = JobDefinitionProps.builder()
.jobDefinitionName("jobDefinitionName")
.parameters(Map.of(
"parametersKey", parameters))
.retryAttempts(123)
.retryStrategies(List.of(retryStrategy))
.schedulingPriority(123)
.timeout(Duration.minutes(30))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forJobDefinitionPropsstatic final classAn implementation forJobDefinitionProps -
Method Summary
Modifier and TypeMethodDescriptionstatic JobDefinitionProps.Builderbuilder()default StringThe name of this job definition.The default parameters passed to the container These parameters can be referenced in thecommandthat you give to the container.default NumberThe number of times to retry a job.default List<RetryStrategy> Defines the retry behavior for this job.default NumberThe priority of this Job.default DurationThe timeout time for jobs that are submitted with this job definition.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getJobDefinitionName
The name of this job definition.Default: - generated by CloudFormation
-
getParameters
The default parameters passed to the container These parameters can be referenced in thecommandthat you give to the container.Default: none
- See Also:
-
getRetryAttempts
The number of times to retry a job.The job is retried on failure the same number of attempts as the value.
Default: 1
-
getRetryStrategies
Defines the retry behavior for this job.Default: - no `RetryStrategy`
-
getSchedulingPriority
The priority of this Job.Only used in Fairshare Scheduling to decide which job to run first when there are multiple jobs with the same share identifier.
Default: none
-
getTimeout
The timeout time for jobs that are submitted with this job definition.After the amount of time you specify passes, Batch terminates your jobs if they aren't finished.
Default: - no timeout
-
builder
- Returns:
- a
JobDefinitionProps.BuilderofJobDefinitionProps
-