Interface IJob
- All Superinterfaces:
software.constructs.IConstruct,software.constructs.IDependable,IEnvironmentAware,IGrantable,IJobRef,IResource,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
IJob.Jsii$Default
- All Known Implementing Classes:
IJob.Jsii$Proxy,Job,JobBase,PySparkEtlJob,PySparkFlexEtlJob,PySparkStreamingJob,PythonShellJob,ScalaSparkEtlJob,ScalaSparkFlexEtlJob,ScalaSparkStreamingJob,SparkJob
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-17T14:54:05.047Z")
@Stability(Stable)
public interface IJob
extends software.amazon.jsii.JsiiSerializable, IResource, IGrantable, IJobRef
Interface representing a new or an imported Glue Job.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInternal default implementation forIJob.static final classA proxy class which represents a concrete javascript instance of this type. -
Method Summary
Modifier and TypeMethodDescriptionThe ARN of the job.The name of the job.metric(String metricName, MetricType type) Create a CloudWatch metric.metric(String metricName, MetricType type, MetricOptions props) Create a CloudWatch metric.Create a CloudWatch Metric indicating job failure.metricFailure(MetricOptions props) Create a CloudWatch Metric indicating job failure.Create a CloudWatch Metric indicating job success.metricSuccess(MetricOptions props) Create a CloudWatch Metric indicating job success.Create a CloudWatch Metric indicating job timeout.metricTimeout(MetricOptions props) Create a CloudWatch Metric indicating job timeout.Defines a CloudWatch event rule triggered when something happens with this job.onEvent(String id, OnEventOptions options) Defines a CloudWatch event rule triggered when something happens with this job.Defines a CloudWatch event rule triggered when this job moves to the FAILED state.onFailure(String id, OnEventOptions options) Defines a CloudWatch event rule triggered when this job moves to the FAILED state.Defines a CloudWatch event rule triggered when this job moves to the SUCCEEDED state.onSuccess(String id, OnEventOptions options) Defines a CloudWatch event rule triggered when this job moves to the SUCCEEDED state.Defines a CloudWatch event rule triggered when this job moves to the TIMEOUT state.onTimeout(String id, OnEventOptions options) Defines a CloudWatch event rule triggered when this job moves to the TIMEOUT state.Methods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.awscdk.services.iam.IGrantable
getGrantPrincipalMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getJobArn
The ARN of the job. -
getJobName
The name of the job. -
metric
@Stability(Stable) @NotNull Metric metric(@NotNull String metricName, @NotNull MetricType type, @Nullable MetricOptions props) Create a CloudWatch metric.- Parameters:
metricName- name of the metric typically prefixed withglue.driver.,glue.<executorId>.orglue.ALL.. This parameter is required.type- the metric type. This parameter is required.props- metric options.- See Also:
-
metric
Create a CloudWatch metric.- Parameters:
metricName- name of the metric typically prefixed withglue.driver.,glue.<executorId>.orglue.ALL.. This parameter is required.type- the metric type. This parameter is required.- See Also:
-
metricFailure
Create a CloudWatch Metric indicating job failure.- Parameters:
props-
-
metricFailure
Create a CloudWatch Metric indicating job failure. -
metricSuccess
Create a CloudWatch Metric indicating job success.- Parameters:
props-
-
metricSuccess
Create a CloudWatch Metric indicating job success. -
metricTimeout
Create a CloudWatch Metric indicating job timeout.- Parameters:
props-
-
metricTimeout
Create a CloudWatch Metric indicating job timeout. -
onEvent
Defines a CloudWatch event rule triggered when something happens with this job.- Parameters:
id- This parameter is required.options-- See Also:
-
onEvent
Defines a CloudWatch event rule triggered when something happens with this job.- Parameters:
id- This parameter is required.- See Also:
-
onFailure
Defines a CloudWatch event rule triggered when this job moves to the FAILED state.- Parameters:
id- This parameter is required.options-- See Also:
-
onFailure
Defines a CloudWatch event rule triggered when this job moves to the FAILED state.- Parameters:
id- This parameter is required.- See Also:
-
onSuccess
Defines a CloudWatch event rule triggered when this job moves to the SUCCEEDED state.- Parameters:
id- This parameter is required.options-- See Also:
-
onSuccess
Defines a CloudWatch event rule triggered when this job moves to the SUCCEEDED state.- Parameters:
id- This parameter is required.- See Also:
-
onTimeout
Defines a CloudWatch event rule triggered when this job moves to the TIMEOUT state.- Parameters:
id- This parameter is required.options-- See Also:
-
onTimeout
Defines a CloudWatch event rule triggered when this job moves to the TIMEOUT state.- Parameters:
id- This parameter is required.- See Also:
-