Interface CfnJobDefinition.EksPropertiesProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnJobDefinition.EksPropertiesProperty.Jsii$Proxy
Enclosing class:
CfnJobDefinition

@Stability(Stable) public static interface CfnJobDefinition.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.services.batch.*;
 Object labels;
 Object limits;
 Object requests;
 EksPropertiesProperty eksPropertiesProperty = EksPropertiesProperty.builder()
         .podProperties(PodPropertiesProperty.builder()
                 .containers(List.of(EksContainerProperty.builder()
                         .image("image")
                         // the properties below are optional
                         .args(List.of("args"))
                         .command(List.of("command"))
                         .env(List.of(EksContainerEnvironmentVariableProperty.builder()
                                 .name("name")
                                 // the properties below are optional
                                 .value("value")
                                 .build()))
                         .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)
                                 .build()))
                         .build()))
                 .dnsPolicy("dnsPolicy")
                 .hostNetwork(false)
                 .imagePullSecrets(List.of(ImagePullSecretProperty.builder()
                         .name("name")
                         .build()))
                 .initContainers(List.of(EksContainerProperty.builder()
                         .image("image")
                         // the properties below are optional
                         .args(List.of("args"))
                         .command(List.of("command"))
                         .env(List.of(EksContainerEnvironmentVariableProperty.builder()
                                 .name("name")
                                 // the properties below are optional
                                 .value("value")
                                 .build()))
                         .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)
                                 .build()))
                         .build()))
                 .metadata(MetadataProperty.builder()
                         .labels(labels)
                         .build())
                 .serviceAccountName("serviceAccountName")
                 .shareProcessNamespace(false)
                 .volumes(List.of(EksVolumeProperty.builder()
                         .name("name")
                         // the properties below are optional
                         .emptyDir(EmptyDirProperty.builder()
                                 .medium("medium")
                                 .sizeLimit("sizeLimit")
                                 .build())
                         .hostPath(HostPathProperty.builder()
                                 .path("path")
                                 .build())
                         .secret(EksSecretProperty.builder()
                                 .secretName("secretName")
                                 // the properties below are optional
                                 .optional(false)
                                 .build())
                         .build()))
                 .build())
         .build();
 

See Also: