Interface IJobDefinition
- All Superinterfaces:
software.constructs.IConstruct,software.constructs.IDependable,IEnvironmentAware,IResource,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
IEksJobDefinition,IEksJobDefinition.Jsii$Default,IJobDefinition.Jsii$Default
- All Known Implementing Classes:
EcsJobDefinition,EksJobDefinition,IEksJobDefinition.Jsii$Proxy,IJobDefinition.Jsii$Proxy,MultiNodeJobDefinition
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-20T23:37:15.466Z")
@Stability(Stable)
public interface IJobDefinition
extends software.amazon.jsii.JsiiSerializable, IResource
Represents a JobDefinition.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInternal default implementation forIJobDefinition.static final classA proxy class which represents a concrete javascript instance of this type. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRetryStrategy(RetryStrategy strategy) Add a RetryStrategy to this JobDefinition.The ARN of this job definition.The 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.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.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getJobDefinitionArn
The ARN of this job definition. -
getJobDefinitionName
The name of this job definition. -
getRetryStrategies
Defines the retry behavior for this job.Default: - no `RetryStrategy`
-
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
-
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
-
addRetryStrategy
Add a RetryStrategy to this JobDefinition.- Parameters:
strategy- This parameter is required.
-