Interface JobProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
JobProps.Jsii$Proxy
Job
.
Example:
Job.Builder.create(this, "EnableSparkUI") .jobName("EtlJobWithSparkUIPrefix") .sparkUI(SparkUIProps.builder() .enabled(true) .build()) .executable(JobExecutable.pythonEtl(PythonSparkJobExecutableProps.builder() .glueVersion(GlueVersion.V3_0) .pythonVersion(PythonVersion.THREE) .script(Code.fromAsset(join(__dirname, "job-script", "hello_world.py"))) .build())) .build();
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic JobProps.Builder
builder()
default List<IConnection>
(experimental) TheConnection
s used for this job.default ContinuousLoggingProps
(experimental) Enables continuous logging with the specified props.(experimental) The default arguments for this job, specified as name-value pairs.default String
(experimental) The description of the job.default Boolean
(experimental) Enables the collection of metrics for job profiling.(experimental) The job's executable properties.default ExecutionClass
(experimental) The ExecutionClass whether the job is run with a standard or flexible execution class.default String
(experimental) The name of the job.default Number
(experimental) The number of AWS Glue data processing units (DPUs) that can be allocated when this job runs.default Number
(experimental) The maximum number of concurrent runs allowed for the job.default Number
(experimental) The maximum number of times to retry this job after a job run fails.default Duration
(experimental) The number of minutes to wait after a job run starts, before sending a job run delay notification.default IRole
getRole()
(experimental) The IAM role assumed by Glue to run this job.default ISecurityConfiguration
(experimental) TheSecurityConfiguration
to use for this job.default SparkUIProps
(experimental) Enables the Spark UI debugging and monitoring with the specified props.getTags()
(experimental) The tags to add to the resources on which the job runs.default Duration
(experimental) The maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status.default Number
(experimental) The number of workers of a definedWorkerType
that are allocated when a job runs.default WorkerType
(experimental) The type of predefined worker that is allocated when a job runs.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getExecutable
(experimental) The job's executable properties. -
getConnections
(experimental) TheConnection
s 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
-
getContinuousLogging
(experimental) Enables continuous logging with the specified props.Default: - continuous logging is disabled.
- See Also:
-
getDefaultArguments
(experimental) The default arguments for this job, specified as name-value pairs.Default: - no arguments
- See Also:
-
getDescription
(experimental) The description of the job.Default: - no value
-
getEnableProfilingMetrics
(experimental) Enables the collection of metrics for job profiling.Equivalent to a job parameter
--enable-metrics
.Default: - no profiling metrics emitted.
- See Also:
-
getExecutionClass
(experimental) The ExecutionClass whether the job is run with a standard or flexible execution class.Default: - STANDARD
- See Also:
-
getJobName
(experimental) The name of the job.Default: - a name is automatically generated
-
getMaxCapacity
(experimental) The number of AWS Glue data processing units (DPUs) that can be allocated when this job runs.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
-
getMaxConcurrentRuns
(experimental) The maximum number of concurrent runs allowed for the job.An error is returned when this threshold is reached. The maximum value you can specify is controlled by a service limit.
Default: 1
-
getMaxRetries
(experimental) The maximum number of times to retry this job after a job run fails.Default: 0
-
getNotifyDelayAfter
(experimental) The number of minutes to wait after a job run starts, before sending a job run delay notification.Default: - no delay notifications
-
getRole
(experimental) The IAM role assumed by Glue to run this job.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
- See Also:
-
getSecurityConfiguration
(experimental) TheSecurityConfiguration
to use for this job.Default: - no security configuration.
-
getSparkUI
(experimental) Enables the Spark UI debugging and monitoring with the specified props.Default: - Spark UI debugging and monitoring is disabled.
- See Also:
-
getTags
(experimental) The tags to add to the resources on which the job runs.Default: {} - no tags
-
getTimeout
(experimental) The maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status.Default: cdk.Duration.hours(48)
-
getWorkerCount
(experimental) The number of workers of a definedWorkerType
that are allocated when a job runs.Default: - differs based on specific Glue version/worker type
-
getWorkerType
(experimental) The type of predefined worker that is allocated when a job runs.Default: - differs based on specific Glue version
-
builder
- Returns:
- a
JobProps.Builder
ofJobProps
-