@Stability(value=Stable) @Internal public static final class JobProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements JobProps
JobPropssoftware.amazon.jsii.JsiiObject.InitializationModeJobProps.Builder, JobProps.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(org.cdk8s.Duration activeDeadline,
Number backoffLimit,
org.cdk8s.Duration ttlAfterFinished,
org.cdk8s.ApiObjectMetadata metadata,
org.cdk8s.ApiObjectMetadata podMetadata,
List<? extends ContainerProps> containers,
RestartPolicy restartPolicy,
IServiceAccount serviceAccount,
List<? extends Volume> volumes)
Constructor that initializes the object based on literal property values passed by the
JobProps.Builder. |
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
org.cdk8s.Duration |
getActiveDeadline()
Specifies the duration the job may be active before the system tries to terminate it.
|
Number |
getBackoffLimit()
Specifies the number of retries before marking this job failed.
|
List<ContainerProps> |
getContainers()
List of containers belonging to the pod.
|
org.cdk8s.ApiObjectMetadata |
getMetadata()
Metadata that all persisted resources must have, which includes all objects users must create.
|
org.cdk8s.ApiObjectMetadata |
getPodMetadata()
The pod metadata.
|
RestartPolicy |
getRestartPolicy()
Restart policy for all containers within the pod.
|
IServiceAccount |
getServiceAccount()
A service account provides an identity for processes that run in a Pod.
|
org.cdk8s.Duration |
getTtlAfterFinished()
Limits the lifetime of a Job that has finished execution (either Complete or Failed).
|
List<Volume> |
getVolumes()
List of volumes that can be mounted by containers belonging to the pod.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(org.cdk8s.Duration activeDeadline,
Number backoffLimit,
org.cdk8s.Duration ttlAfterFinished,
org.cdk8s.ApiObjectMetadata metadata,
org.cdk8s.ApiObjectMetadata podMetadata,
List<? extends ContainerProps> containers,
RestartPolicy restartPolicy,
IServiceAccount serviceAccount,
List<? extends Volume> volumes)
JobProps.Builder.public final org.cdk8s.Duration getActiveDeadline()
JobPropsDefault: - If unset, then there is no deadline.
getActiveDeadline in interface JobPropspublic final Number getBackoffLimit()
JobPropsDefault: - If not set, system defaults to 6.
getBackoffLimit in interface JobPropspublic final org.cdk8s.Duration getTtlAfterFinished()
JobProps
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.
getTtlAfterFinished in interface JobPropspublic final org.cdk8s.ApiObjectMetadata getMetadata()
ResourcePropsgetMetadata in interface ResourcePropspublic final org.cdk8s.ApiObjectMetadata getPodMetadata()
PodTemplatePropsgetPodMetadata in interface PodTemplatePropspublic final List<ContainerProps> getContainers()
PodSpecPropsContainers cannot currently be added or removed. There must be at least one container in a Pod.
You can add additionnal containers using podSpec.addContainer()
Default: - No containers. Note that a pod spec must include at least one container.
getContainers in interface PodSpecPropspublic final RestartPolicy getRestartPolicy()
PodSpecPropsDefault: RestartPolicy.ALWAYS
getRestartPolicy in interface PodSpecPropshttps://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policypublic final IServiceAccount getServiceAccount()
PodSpecPropsWhen you (a human) access the cluster (for example, using kubectl), you are authenticated by the apiserver as a particular User Account (currently this is usually admin, unless your cluster administrator has customized your cluster). Processes in containers inside pods can also contact the apiserver. When they do, they are authenticated as a particular Service Account (for example, default).
Default: - No service account.
getServiceAccount in interface PodSpecPropshttps://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/public final List<Volume> getVolumes()
PodSpecProps
You can also add volumes later using podSpec.addVolume()
Default: - No volumes.
getVolumes in interface PodSpecPropshttps://kubernetes.io/docs/concepts/storage/volumes@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2021. All rights reserved.