@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-11-01T13:16:49.658Z") @Stability(value=Experimental) public interface JobProps extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
JobProps.Builder
A builder for
JobProps |
static class |
JobProps.Jsii$Proxy
An implementation for
JobProps |
| Modifier and Type | Method and Description |
|---|---|
static JobProps.Builder |
builder() |
default List<IConnection> |
getConnections()
(experimental) The
Connections used for this job. |
default ContinuousLoggingProps |
getContinuousLogging()
(experimental) Enables continuous logging with the specified props.
|
default Map<String,String> |
getDefaultArguments()
(experimental) The default arguments for this job, specified as name-value pairs.
|
default String |
getDescription()
(experimental) The description of the job.
|
default Boolean |
getEnableProfilingMetrics()
(experimental) Enables the collection of metrics for job profiling.
|
JobExecutable |
getExecutable()
(experimental) The job's executable properties.
|
default String |
getJobName()
(experimental) The name of the job.
|
default Number |
getMaxCapacity()
(experimental) The number of AWS Glue data processing units (DPUs) that can be allocated when this job runs.
|
default Number |
getMaxConcurrentRuns()
(experimental) The maximum number of concurrent runs allowed for the job.
|
default Number |
getMaxRetries()
(experimental) The maximum number of times to retry this job after a job run fails.
|
default Duration |
getNotifyDelayAfter()
(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 |
getSecurityConfiguration()
(experimental) The
SecurityConfiguration to use for this job. |
default SparkUIProps |
getSparkUI()
(experimental) Enables the Spark UI debugging and monitoring with the specified props.
|
default Map<String,String> |
getTags()
(experimental) The tags to add to the resources on which the job runs.
|
default Duration |
getTimeout()
(experimental) The maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status.
|
default Number |
getWorkerCount()
(experimental) The number of workers of a defined
WorkerType that are allocated when a job runs. |
default WorkerType |
getWorkerType()
(experimental) The type of predefined worker that is allocated when a job runs.
|
@Stability(value=Experimental) @NotNull JobExecutable getExecutable()
@Stability(value=Experimental) @Nullable default List<IConnection> getConnections()
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
@Stability(value=Experimental) @Nullable default ContinuousLoggingProps getContinuousLogging()
Default: - continuous logging is disabled.
@Stability(value=Experimental) @Nullable default Map<String,String> getDefaultArguments()
Default: - no arguments
@Stability(value=Experimental) @Nullable default String getDescription()
Default: - no value
@Stability(value=Experimental) @Nullable default Boolean getEnableProfilingMetrics()
Default: - no profiling metrics emitted.
@Stability(value=Experimental) @Nullable default String getJobName()
Default: - a name is automatically generated
@Stability(value=Experimental) @Nullable default Number getMaxCapacity()
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
@Stability(value=Experimental) @Nullable default Number getMaxConcurrentRuns()
An error is returned when this threshold is reached. The maximum value you can specify is controlled by a service limit.
Default: 1
@Stability(value=Experimental) @Nullable default Number getMaxRetries()
Default: 0
@Stability(value=Experimental) @Nullable default Duration getNotifyDelayAfter()
Default: - no delay notifications
@Stability(value=Experimental) @Nullable default IRole getRole()
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
@Stability(value=Experimental) @Nullable default ISecurityConfiguration getSecurityConfiguration()
SecurityConfiguration to use for this job.
Default: - no security configuration.
@Stability(value=Experimental) @Nullable default SparkUIProps getSparkUI()
Default: - Spark UI debugging and monitoring is disabled.
@Stability(value=Experimental) @Nullable default Map<String,String> getTags()
Default: {} - no tags
@Stability(value=Experimental) @Nullable default Duration getTimeout()
Default: cdk.Duration.hours(48)
@Stability(value=Experimental) @Nullable default Number getWorkerCount()
WorkerType that are allocated when a job runs.
Default: - differs based on specific Glue version/worker type
@Stability(value=Experimental) @Nullable default WorkerType getWorkerType()
Default: - differs based on specific Glue version
@Stability(value=Experimental) static JobProps.Builder builder()
JobProps.Builder of JobPropsCopyright © 2022. All rights reserved.