Interface EksJobDefinitionProps
- All Superinterfaces:
JobDefinitionProps
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
EksJobDefinitionProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-25T14:21:10.944Z")
@Stability(Stable)
public interface EksJobDefinitionProps
extends software.amazon.jsii.JsiiSerializable, JobDefinitionProps
Props for EksJobDefinition.
Example:
EksJobDefinition jobDefn = EksJobDefinition.Builder.create(this, "eksf2") .container(EksContainerDefinition.Builder.create(this, "container") .image(ContainerImage.fromRegistry("amazon/amazon-ecs-sample")) .volumes(List.of(EksVolume.emptyDir(EmptyDirVolumeOptions.builder() .name("myEmptyDirVolume") .mountPath("/mount/path") .medium(EmptyDirMediumType.MEMORY) .readonly(true) .sizeLimit(Size.mebibytes(2048)) .build()))) .build()) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forEksJobDefinitionProps
static final class
An implementation forEksJobDefinitionProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
The container this Job Definition will run.default DnsPolicy
The DNS Policy of the pod used by this Job Definition.default String
The name of the service account that's used to run the container.default Boolean
If specified, the Pod used by this Job Definition will use the host's network IP address.Methods inherited from interface software.amazon.awscdk.services.batch.JobDefinitionProps
getJobDefinitionName, getParameters, getRetryAttempts, getRetryStrategies, getSchedulingPriority, getTimeout
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getContainer
The container this Job Definition will run. -
getDnsPolicy
The DNS Policy of the pod used by this Job Definition.Default: `DnsPolicy.CLUSTER_FIRST`
- See Also:
-
getServiceAccount
The name of the service account that's used to run the container.service accounts are Kubernetes method of identification and authentication, roughly analogous to IAM users.
Default: - the default service account of the container
- See Also:
-
getUseHostNetwork
If specified, the Pod used by this Job Definition will use the host's network IP address.Otherwise, the Kubernetes pod networking model is enabled. Most AWS Batch workloads are egress-only and don't require the overhead of IP allocation for each pod for incoming connections.
Default: true
- See Also:
-
builder
- Returns:
- a
EksJobDefinitionProps.Builder
ofEksJobDefinitionProps
-