@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:09.619Z") @Stability(value=Experimental) public class Job extends Resource implements IJob
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 | Class and Description |
|---|---|
static class |
Job.Builder
(experimental) A fluent builder for
Job. |
software.amazon.jsii.JsiiObject.InitializationModeIJob.Jsii$Default, IJob.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
Job(software.constructs.Construct scope,
String id,
JobProps props) |
protected |
Job(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Job(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static IJob |
fromJobAttributes(software.constructs.Construct scope,
String id,
JobAttributes attrs)
(experimental) Creates a Glue Job.
|
IPrincipal |
getGrantPrincipal()
(experimental) The principal this Glue Job is running as.
|
String |
getJobArn()
(experimental) The ARN of the job.
|
String |
getJobName()
(experimental) The name of the job.
|
IRole |
getRole()
(experimental) The IAM role Glue assumes to run this job.
|
SparkUILoggingLocation |
getSparkUILoggingLocation()
(experimental) The Spark UI logs location if Spark UI monitoring and debugging is enabled.
|
Metric |
metric(String metricName,
MetricType type)
(experimental) Create a CloudWatch metric.
|
Metric |
metric(String metricName,
MetricType type,
MetricOptions props)
(experimental) Create a CloudWatch metric.
|
Metric |
metricFailure()
(experimental) Return a CloudWatch Metric indicating job failure.
|
Metric |
metricFailure(MetricOptions props)
(experimental) Return a CloudWatch Metric indicating job failure.
|
Metric |
metricSuccess()
(experimental) Return a CloudWatch Metric indicating job success.
|
Metric |
metricSuccess(MetricOptions props)
(experimental) Return a CloudWatch Metric indicating job success.
|
Metric |
metricTimeout()
(experimental) Return a CloudWatch Metric indicating job timeout.
|
Metric |
metricTimeout(MetricOptions props)
(experimental) Return a CloudWatch Metric indicating job timeout.
|
Rule |
onEvent(String id)
(experimental) Create a CloudWatch Event Rule for this Glue Job when it's in a given state.
|
Rule |
onEvent(String id,
OnEventOptions options)
(experimental) Create a CloudWatch Event Rule for this Glue Job when it's in a given state.
|
Rule |
onFailure(String id)
(experimental) Return a CloudWatch Event Rule matching FAILED state.
|
Rule |
onFailure(String id,
OnEventOptions options)
(experimental) Return a CloudWatch Event Rule matching FAILED state.
|
Rule |
onStateChange(String id,
JobState jobState)
(experimental) Create a CloudWatch Event Rule for the transition into the input jobState.
|
Rule |
onStateChange(String id,
JobState jobState,
OnEventOptions options)
(experimental) Create a CloudWatch Event Rule for the transition into the input jobState.
|
Rule |
onSuccess(String id)
(experimental) Create a CloudWatch Event Rule matching JobState.SUCCEEDED.
|
Rule |
onSuccess(String id,
OnEventOptions options)
(experimental) Create a CloudWatch Event Rule matching JobState.SUCCEEDED.
|
Rule |
onTimeout(String id)
(experimental) Return a CloudWatch Event Rule matching TIMEOUT state.
|
Rule |
onTimeout(String id,
OnEventOptions options)
(experimental) Return a CloudWatch Event Rule matching TIMEOUT state.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcegetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackgetNodeprotected Job(software.amazon.jsii.JsiiObjectRef objRef)
protected Job(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) @NotNull public static IJob fromJobAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull JobAttributes attrs)
scope - The scope creating construct (usually `this`). This parameter is required.id - The construct's id. This parameter is required.attrs - Import attributes. This parameter is required.@Stability(value=Experimental) @NotNull public Metric metric(@NotNull String metricName, @NotNull MetricType type, @Nullable MetricOptions props)
metric in interface IJobmetricName - name of the metric typically prefixed with `glue.driver.`, `glue.type - the metric type. This parameter is required.props - metric options.https://docs.aws.amazon.com/glue/latest/dg/monitoring-awsglue-with-cloudwatch-metrics.html@Stability(value=Experimental) @NotNull public Metric metric(@NotNull String metricName, @NotNull MetricType type)
metric in interface IJobmetricName - name of the metric typically prefixed with `glue.driver.`, `glue.type - the metric type. This parameter is required.https://docs.aws.amazon.com/glue/latest/dg/monitoring-awsglue-with-cloudwatch-metrics.html@Stability(value=Experimental) @NotNull public Metric metricFailure(@Nullable MetricOptions props)
This metric is based on the Rule returned by no-args onFailure() call.
metricFailure in interface IJobprops - @Stability(value=Experimental) @NotNull public Metric metricFailure()
This metric is based on the Rule returned by no-args onFailure() call.
metricFailure in interface IJob@Stability(value=Experimental) @NotNull public Metric metricSuccess(@Nullable MetricOptions props)
This metric is based on the Rule returned by no-args onSuccess() call.
metricSuccess in interface IJobprops - @Stability(value=Experimental) @NotNull public Metric metricSuccess()
This metric is based on the Rule returned by no-args onSuccess() call.
metricSuccess in interface IJob@Stability(value=Experimental) @NotNull public Metric metricTimeout(@Nullable MetricOptions props)
This metric is based on the Rule returned by no-args onTimeout() call.
metricTimeout in interface IJobprops - @Stability(value=Experimental) @NotNull public Metric metricTimeout()
This metric is based on the Rule returned by no-args onTimeout() call.
metricTimeout in interface IJob@Stability(value=Experimental) @NotNull public Rule onEvent(@NotNull String id, @Nullable OnEventOptions options)
@Stability(value=Experimental) @NotNull public Rule onEvent(@NotNull String id)
@Stability(value=Experimental) @NotNull public Rule onFailure(@NotNull String id, @Nullable OnEventOptions options)
@Stability(value=Experimental) @NotNull public Rule onFailure(@NotNull String id)
@Stability(value=Experimental) @NotNull public Rule onStateChange(@NotNull String id, @NotNull JobState jobState, @Nullable OnEventOptions options)
onStateChange in interface IJobid - construct id. This parameter is required.jobState - the job state. This parameter is required.options - optional event options.https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/EventTypes.html#glue-event-types@Stability(value=Experimental) @NotNull public Rule onStateChange(@NotNull String id, @NotNull JobState jobState)
onStateChange in interface IJobid - construct id. This parameter is required.jobState - the job state. This parameter is required.https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/EventTypes.html#glue-event-types@Stability(value=Experimental) @NotNull public Rule onSuccess(@NotNull String id, @Nullable OnEventOptions options)
@Stability(value=Experimental) @NotNull public Rule onSuccess(@NotNull String id)
@Stability(value=Experimental) @NotNull public Rule onTimeout(@NotNull String id, @Nullable OnEventOptions options)
@Stability(value=Experimental) @NotNull public Rule onTimeout(@NotNull String id)
@Stability(value=Experimental) @NotNull public IPrincipal getGrantPrincipal()
getGrantPrincipal in interface IGrantable@Stability(value=Experimental) @NotNull public String getJobArn()
@Stability(value=Experimental) @NotNull public String getJobName()
getJobName in interface IJob@Stability(value=Experimental) @NotNull public IRole getRole()
@Stability(value=Experimental) @Nullable public SparkUILoggingLocation getSparkUILoggingLocation()
https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.htmlCopyright © 2022. All rights reserved.