Interface CfnJobDefinitionPropsMixin.EksPropertiesProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnJobDefinitionPropsMixin.EksPropertiesProperty.Jsii$Proxy
- Enclosing class:
CfnJobDefinitionPropsMixin
@Stability(Stable)
public static interface CfnJobDefinitionPropsMixin.EksPropertiesProperty
extends software.amazon.jsii.JsiiSerializable
An object that contains the properties for the Kubernetes resources of a job.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.batch.*;
Object labels;
Object limits;
Object requests;
EksPropertiesProperty eksPropertiesProperty = EksPropertiesProperty.builder()
.podProperties(PodPropertiesProperty.builder()
.containers(List.of(EksContainerProperty.builder()
.args(List.of("args"))
.command(List.of("command"))
.env(List.of(EksContainerEnvironmentVariableProperty.builder()
.name("name")
.value("value")
.build()))
.image("image")
.imagePullPolicy("imagePullPolicy")
.name("name")
.resources(ResourcesProperty.builder()
.limits(limits)
.requests(requests)
.build())
.securityContext(SecurityContextProperty.builder()
.allowPrivilegeEscalation(false)
.privileged(false)
.readOnlyRootFilesystem(false)
.runAsGroup(123)
.runAsNonRoot(false)
.runAsUser(123)
.build())
.volumeMounts(List.of(EksContainerVolumeMountProperty.builder()
.mountPath("mountPath")
.name("name")
.readOnly(false)
.subPath("subPath")
.build()))
.build()))
.dnsPolicy("dnsPolicy")
.hostNetwork(false)
.imagePullSecrets(List.of(ImagePullSecretProperty.builder()
.name("name")
.build()))
.initContainers(List.of(EksContainerProperty.builder()
.args(List.of("args"))
.command(List.of("command"))
.env(List.of(EksContainerEnvironmentVariableProperty.builder()
.name("name")
.value("value")
.build()))
.image("image")
.imagePullPolicy("imagePullPolicy")
.name("name")
.resources(ResourcesProperty.builder()
.limits(limits)
.requests(requests)
.build())
.securityContext(SecurityContextProperty.builder()
.allowPrivilegeEscalation(false)
.privileged(false)
.readOnlyRootFilesystem(false)
.runAsGroup(123)
.runAsNonRoot(false)
.runAsUser(123)
.build())
.volumeMounts(List.of(EksContainerVolumeMountProperty.builder()
.mountPath("mountPath")
.name("name")
.readOnly(false)
.subPath("subPath")
.build()))
.build()))
.metadata(MetadataProperty.builder()
.labels(labels)
.build())
.serviceAccountName("serviceAccountName")
.shareProcessNamespace(false)
.volumes(List.of(EksVolumeProperty.builder()
.emptyDir(EmptyDirProperty.builder()
.medium("medium")
.sizeLimit("sizeLimit")
.build())
.hostPath(HostPathProperty.builder()
.path("path")
.build())
.name("name")
.persistentVolumeClaim(EksPersistentVolumeClaimProperty.builder()
.claimName("claimName")
.readOnly(false)
.build())
.secret(EksSecretProperty.builder()
.optional(false)
.secretName("secretName")
.build())
.build()))
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnJobDefinitionPropsMixin.EksPropertiesPropertystatic final classAn implementation forCfnJobDefinitionPropsMixin.EksPropertiesProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getPodProperties
The properties for the Kubernetes pod resources of a job.Returns union: either
IResolvableorCfnJobDefinitionPropsMixin.PodPropertiesProperty- See Also:
-
builder
-