@Stability(value=Experimental) 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(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) |
List<Container> |
getContainers()
(experimental) List of containers belonging to the pod.
|
ApiObjectMetadata |
getMetadata()
(experimental) Metadata that all persisted resources must have, which includes all objects users must create.
|
ApiObjectMetadata |
getPodMetadata()
(experimental) The pod metadata.
|
RestartPolicy |
getRestartPolicy()
(experimental) Restart policy for all containers within the pod.
|
IServiceAccount |
getServiceAccount()
(experimental) A service account provides an identity for processes that run in a Pod.
|
Duration |
getTtlAfterFinished()
(experimental) Limits the lifetime of a Job that has finished execution (either Complete or Failed).
|
List<Volume> |
getVolumes()
(experimental) 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, jsiiStaticSetprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.public 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 ApiObjectMetadata getMetadata()
ResourcePropsgetMetadata in interface ResourcePropspublic ApiObjectMetadata getPodMetadata()
PodTemplatePropsgetPodMetadata in interface PodTemplatePropspublic List<Container> 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 RestartPolicy getRestartPolicy()
PodSpecPropsDefault: RestartPolicy.ALWAYS
getRestartPolicy in interface PodSpecPropshttps://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policypublic 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 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/volumespublic com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2020. All rights reserved.