Interface JobProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
JobProps.Jsii$Proxy
Job.
Example:
Bucket bucket;
Job.Builder.create(this, "PythonShellJob")
.executable(JobExecutable.pythonShell(PythonShellExecutableProps.builder()
.glueVersion(GlueVersion.V1_0)
.pythonVersion(PythonVersion.THREE)
.script(Code.fromBucket(bucket, "script.py"))
.build()))
.description("an example Python Shell job")
.build();
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic JobProps.Builderbuilder()default List<IConnection>(experimental) TheConnections 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 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 IRolegetRole()(experimental) The IAM role assumed by Glue to run this job.default ISecurityConfiguration(experimental) TheSecurityConfigurationto 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 definedWorkerTypethat 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) TheConnections 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.
-
getDefaultArguments
(experimental) The default arguments for this job, specified as name-value pairs.Default: - no arguments
-
getDescription
(experimental) The description of the job.Default: - no value
-
getEnableProfilingMetrics
(experimental) Enables the collection of metrics for job profiling.Default: - no profiling metrics emitted.
-
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
-
getSecurityConfiguration
(experimental) TheSecurityConfigurationto 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.
-
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 definedWorkerTypethat 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.BuilderofJobProps
-