Package org.cdk8s.plus24
Interface JobProps
-
- All Superinterfaces:
AbstractPodProps,software.amazon.jsii.JsiiSerializable,ResourceProps,WorkloadProps
- All Known Implementing Classes:
JobProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.63.2 (build a8a8833)", date="2022-08-08T02:54:19.247Z") @Stability(Stable) public interface JobProps extends software.amazon.jsii.JsiiSerializable, WorkloadProps
Properties for `Job`.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classJobProps.BuilderA builder forJobPropsstatic classJobProps.Jsii$ProxyAn implementation forJobProps
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static JobProps.Builderbuilder()default org.cdk8s.DurationgetActiveDeadline()Specifies the duration the job may be active before the system tries to terminate it.default NumbergetBackoffLimit()Specifies the number of retries before marking this job failed.default org.cdk8s.DurationgetTtlAfterFinished()Limits the lifetime of a Job that has finished execution (either Complete or Failed).-
Methods inherited from interface org.cdk8s.plus24.AbstractPodProps
getAutomountServiceAccountToken, getContainers, getDns, getDockerRegistryAuth, getHostAliases, getInitContainers, getRestartPolicy, getSecurityContext, getServiceAccount, getVolumes
-
Methods inherited from interface org.cdk8s.plus24.ResourceProps
getMetadata
-
Methods inherited from interface org.cdk8s.plus24.WorkloadProps
getPodMetadata, getSelect
-
-
-
-
Method Detail
-
getActiveDeadline
@Stability(Stable) @Nullable default org.cdk8s.Duration getActiveDeadline()
Specifies the duration the job may be active before the system tries to terminate it.Default: - If unset, then there is no deadline.
-
getBackoffLimit
@Stability(Stable) @Nullable default Number getBackoffLimit()
Specifies the number of retries before marking this job failed.Default: - If not set, system defaults to 6.
-
getTtlAfterFinished
@Stability(Stable) @Nullable default org.cdk8s.Duration getTtlAfterFinished()
Limits the lifetime of a Job that has finished execution (either Complete or Failed).If this field is set, after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. This field is alpha-level and is only honored by servers that enable the
TTLAfterFinishedfeature.Default: - If this field is unset, the Job won't be automatically deleted.
-
builder
@Stability(Stable) static JobProps.Builder builder()
- Returns:
- a
JobProps.BuilderofJobProps
-
-