EksJobDefinitionProps Struct
Props for EksJobDefinition.
Example
const jobDefn = new batch.EksJobDefinition(this, 'eksf2', {
container: new batch.EksContainerDefinition(this, 'container', {
image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'),
volumes: [batch.EksVolume.emptyDir({
name: 'myEmptyDirVolume',
mountPath: '/mount/path',
medium: batch.EmptyDirMediumType.MEMORY,
readonly: true,
sizeLimit: cdk.Size.mebibytes(2048),
})],
}),
});
Properties
containerEksContainerDefinitioncontainerEksContainerDefinitioncontainerEksContainerDefinitionContainerEksContainerDefinitionContainerEksContainerDefinitionrequired#dnsPolicyDnsPolicydns_policyDnsPolicydnsPolicyDnsPolicyDnsPolicyDnsPolicyDnsPolicyDnsPolicy= `DnsPolicy.CLUSTER_FIRST`#jobDefinitionNamestringjob_definition_namestrjobDefinitionNameStringJobDefinitionNamestringJobDefinitionName*string= generated by CloudFormation#parameters{ [key: string]: any }parameterstyping.Mapping[str, Any]parametersMap<String, Object>ParametersIDictionary<string, object>Parameters*map[string]interface{}= none#retryAttemptsnumberretry_attemptsint | floatretryAttemptsNumberRetryAttemptsdoubleRetryAttempts*float64= 1#The job is retried on failure the same number of attempts as the value.
retryStrategiesRetryStrategy[]retry_strategiestyping.List[RetryStrategy]retryStrategiesList<RetryStrategy>RetryStrategiesRetryStrategy[]RetryStrategies*[]RetryStrategy= no `RetryStrategy`#schedulingPrioritynumberscheduling_priorityint | floatschedulingPriorityNumberSchedulingPrioritydoubleSchedulingPriority*float64= none#Only used in Fairshare Scheduling to decide which job to run first when there are multiple jobs with the same share identifier.
serviceAccountstringservice_accountstrserviceAccountStringServiceAccountstringServiceAccount*string= the default service account of t…#service accounts are Kubernetes method of identification and authentication, roughly analogous to IAM users.
default
Default: the default service account of the container
skipDeregisterOnUpdatebooleanskip_deregister_on_updateboolskipDeregisterOnUpdateBooleanSkipDeregisterOnUpdateboolSkipDeregisterOnUpdate*bool= undefined - AWS Batch default is…#When the property is set to false, the previous revision of the job definition is de-registered after a new revision is created. When the property is set to true, the previous revision of the job definition is not de-registered.
default
Default: undefined - AWS Batch default is false
After the amount of time you specify passes, Batch terminates your jobs if they aren't finished.
useHostNetworkbooleanuse_host_networkbooluseHostNetworkBooleanUseHostNetworkboolUseHostNetwork*bool= true#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.