| Modifier and Type | Method and Description |
|---|---|
Job |
build() |
Job.Builder |
connections(List<? extends IConnection> connections)
(experimental) The
Connections used for this job. |
Job.Builder |
continuousLogging(ContinuousLoggingProps continuousLogging)
(experimental) Enables continuous logging with the specified props.
|
static Job.Builder |
create(software.constructs.Construct scope,
String id) |
Job.Builder |
defaultArguments(Map<String,String> defaultArguments)
(experimental) The default arguments for this job, specified as name-value pairs.
|
Job.Builder |
description(String description)
(experimental) The description of the job.
|
Job.Builder |
enableProfilingMetrics(Boolean enableProfilingMetrics)
(experimental) Enables the collection of metrics for job profiling.
|
Job.Builder |
executable(JobExecutable executable)
(experimental) The job's executable properties.
|
Job.Builder |
jobName(String jobName)
(experimental) The name of the job.
|
Job.Builder |
maxCapacity(Number maxCapacity)
(experimental) The number of AWS Glue data processing units (DPUs) that can be allocated when this job runs.
|
Job.Builder |
maxConcurrentRuns(Number maxConcurrentRuns)
(experimental) The maximum number of concurrent runs allowed for the job.
|
Job.Builder |
maxRetries(Number maxRetries)
(experimental) The maximum number of times to retry this job after a job run fails.
|
Job.Builder |
notifyDelayAfter(Duration notifyDelayAfter)
(experimental) The number of minutes to wait after a job run starts, before sending a job run delay notification.
|
Job.Builder |
role(IRole role)
(experimental) The IAM role assumed by Glue to run this job.
|
Job.Builder |
securityConfiguration(ISecurityConfiguration securityConfiguration)
(experimental) The
SecurityConfiguration to use for this job. |
Job.Builder |
sparkUi(SparkUIProps sparkUi)
(experimental) Enables the Spark UI debugging and monitoring with the specified props.
|
Job.Builder |
tags(Map<String,String> tags)
(experimental) The tags to add to the resources on which the job runs.
|
Job.Builder |
timeout(Duration timeout)
(experimental) The maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status.
|
Job.Builder |
workerCount(Number workerCount)
(experimental) The number of workers of a defined
WorkerType that are allocated when a job runs. |
Job.Builder |
workerType(WorkerType workerType)
(experimental) The type of predefined worker that is allocated when a job runs.
|
@Stability(value=Experimental) public static Job.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.Job.Builder.@Stability(value=Experimental) public Job.Builder executable(JobExecutable executable)
executable - The job's executable properties. This parameter is required.this@Stability(value=Experimental) public Job.Builder connections(List<? extends IConnection> connections)
Connections used for this job.
Connections are used to connect to other AWS Service or resources within a VPC.
Default: [] - no connections are added to the job
connections - The Connections used for this job. This parameter is required.this@Stability(value=Experimental) public Job.Builder continuousLogging(ContinuousLoggingProps continuousLogging)
Default: - continuous logging is disabled.
continuousLogging - Enables continuous logging with the specified props. This parameter is required.this@Stability(value=Experimental) public Job.Builder defaultArguments(Map<String,String> defaultArguments)
Default: - no arguments
defaultArguments - The default arguments for this job, specified as name-value pairs. This parameter is required.this@Stability(value=Experimental) public Job.Builder description(String description)
Default: - no value
description - The description of the job. This parameter is required.this@Stability(value=Experimental) public Job.Builder enableProfilingMetrics(Boolean enableProfilingMetrics)
Default: - no profiling metrics emitted.
enableProfilingMetrics - Enables the collection of metrics for job profiling. This parameter is required.this@Stability(value=Experimental) public Job.Builder jobName(String jobName)
Default: - a name is automatically generated
jobName - The name of the job. This parameter is required.this@Stability(value=Experimental) public Job.Builder maxCapacity(Number maxCapacity)
Cannot be used for Glue version 2.0 and later - workerType and workerCount should be used instead.
Default: - 10 when job type is Apache Spark ETL or streaming, 0.0625 when job type is Python shell
maxCapacity - The number of AWS Glue data processing units (DPUs) that can be allocated when this job runs. This parameter is required.this@Stability(value=Experimental) public Job.Builder maxConcurrentRuns(Number maxConcurrentRuns)
An error is returned when this threshold is reached. The maximum value you can specify is controlled by a service limit.
Default: 1
maxConcurrentRuns - The maximum number of concurrent runs allowed for the job. This parameter is required.this@Stability(value=Experimental) public Job.Builder maxRetries(Number maxRetries)
Default: 0
maxRetries - The maximum number of times to retry this job after a job run fails. This parameter is required.this@Stability(value=Experimental) public Job.Builder notifyDelayAfter(Duration notifyDelayAfter)
Default: - no delay notifications
notifyDelayAfter - The number of minutes to wait after a job run starts, before sending a job run delay notification. This parameter is required.this@Stability(value=Experimental) public Job.Builder role(IRole role)
If providing a custom role, it needs to trust the Glue service principal (glue.amazonaws.com) and be granted sufficient permissions.
Default: - a role is automatically generated
role - The IAM role assumed by Glue to run this job. This parameter is required.this@Stability(value=Experimental) public Job.Builder securityConfiguration(ISecurityConfiguration securityConfiguration)
SecurityConfiguration to use for this job.
Default: - no security configuration.
securityConfiguration - The SecurityConfiguration to use for this job. This parameter is required.this@Stability(value=Experimental) public Job.Builder sparkUi(SparkUIProps sparkUi)
Default: - Spark UI debugging and monitoring is disabled.
sparkUi - Enables the Spark UI debugging and monitoring with the specified props. This parameter is required.this@Stability(value=Experimental) public Job.Builder tags(Map<String,String> tags)
Default: {} - no tags
tags - The tags to add to the resources on which the job runs. This parameter is required.this@Stability(value=Experimental) public Job.Builder timeout(Duration timeout)
Default: cdk.Duration.hours(48)
timeout - The maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status. This parameter is required.this@Stability(value=Experimental) public Job.Builder workerCount(Number workerCount)
WorkerType that are allocated when a job runs.
Default: - differs based on specific Glue version/worker type
workerCount - The number of workers of a defined WorkerType that are allocated when a job runs. This parameter is required.this@Stability(value=Experimental) public Job.Builder workerType(WorkerType workerType)
Default: - differs based on specific Glue version
workerType - The type of predefined worker that is allocated when a job runs. This parameter is required.thisCopyright © 2022. All rights reserved.