Package org.cdk8s.plus24
Interface JobProps
-
- All Superinterfaces:
AbstractPodProps
,software.amazon.jsii.JsiiSerializable
,ResourceProps
,WorkloadProps
- All Known Subinterfaces:
CronJobProps
- All Known Implementing Classes:
CronJobProps.Jsii$Proxy
,JobProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-28T00:25:43.782Z") @Stability(Stable) public interface JobProps extends software.amazon.jsii.JsiiSerializable, WorkloadProps
Properties forJob
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
JobProps.Builder
A builder forJobProps
static class
JobProps.Jsii$Proxy
An implementation forJobProps
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static JobProps.Builder
builder()
default org.cdk8s.Duration
getActiveDeadline()
Specifies the duration the job may be active before the system tries to terminate it.default Number
getBackoffLimit()
Specifies the number of retries before marking this job failed.default org.cdk8s.Duration
getTtlAfterFinished()
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, getHostNetwork, getInitContainers, getIsolate, getRestartPolicy, getSecurityContext, getServiceAccount, getTerminationGracePeriod, getVolumes
-
Methods inherited from interface org.cdk8s.plus24.ResourceProps
getMetadata
-
Methods inherited from interface org.cdk8s.plus24.WorkloadProps
getPodMetadata, getSelect, getSpread
-
-
-
-
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
TTLAfterFinished
feature.Default: - If this field is unset, the Job won't be automatically deleted.
-
builder
@Stability(Stable) static JobProps.Builder builder()
- Returns:
- a
JobProps.Builder
ofJobProps
-
-