@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:45.659Z") public interface IJob extends IResource, IGrantable
Job
.Modifier and Type | Interface and Description |
---|---|
static interface |
IJob.Jsii$Default
Internal default implementation for
IJob . |
static class |
IJob.Jsii$Proxy
A proxy class which represents a concrete javascript instance of this type.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getJobArn()
(experimental) The ARN of the job.
|
java.lang.String |
getJobName()
(experimental) The name of the job.
|
Metric |
metric(java.lang.String metricName,
MetricType type)
(experimental) Create a CloudWatch metric.
|
Metric |
metric(java.lang.String metricName,
MetricType type,
MetricOptions props)
(experimental) Create a CloudWatch metric.
|
Metric |
metricFailure()
(experimental) Create a CloudWatch Metric indicating job failure.
|
Metric |
metricFailure(MetricOptions props)
(experimental) Create a CloudWatch Metric indicating job failure.
|
Metric |
metricSuccess()
(experimental) Create a CloudWatch Metric indicating job success.
|
Metric |
metricSuccess(MetricOptions props)
(experimental) Create a CloudWatch Metric indicating job success.
|
Metric |
metricTimeout()
(experimental) Create a CloudWatch Metric indicating job timeout.
|
Metric |
metricTimeout(MetricOptions props)
(experimental) Create a CloudWatch Metric indicating job timeout.
|
Rule |
onEvent(java.lang.String id)
(experimental) Defines a CloudWatch event rule triggered when something happens with this job.
|
Rule |
onEvent(java.lang.String id,
OnEventOptions options)
(experimental) Defines a CloudWatch event rule triggered when something happens with this job.
|
Rule |
onFailure(java.lang.String id)
(experimental) Defines a CloudWatch event rule triggered when this job moves to the FAILED state.
|
Rule |
onFailure(java.lang.String id,
OnEventOptions options)
(experimental) Defines a CloudWatch event rule triggered when this job moves to the FAILED state.
|
Rule |
onStateChange(java.lang.String id,
JobState jobState)
(experimental) Defines a CloudWatch event rule triggered when this job moves to the input jobState.
|
Rule |
onStateChange(java.lang.String id,
JobState jobState,
OnEventOptions options)
(experimental) Defines a CloudWatch event rule triggered when this job moves to the input jobState.
|
Rule |
onSuccess(java.lang.String id)
(experimental) Defines a CloudWatch event rule triggered when this job moves to the SUCCEEDED state.
|
Rule |
onSuccess(java.lang.String id,
OnEventOptions options)
(experimental) Defines a CloudWatch event rule triggered when this job moves to the SUCCEEDED state.
|
Rule |
onTimeout(java.lang.String id)
(experimental) Defines a CloudWatch event rule triggered when this job moves to the TIMEOUT state.
|
Rule |
onTimeout(java.lang.String id,
OnEventOptions options)
(experimental) Defines a CloudWatch event rule triggered when this job moves to the TIMEOUT state.
|
applyRemovalPolicy, getEnv, getStack
getNode
getGrantPrincipal
java.lang.String getJobArn()
java.lang.String getJobName()
Metric metric(java.lang.String metricName, MetricType type, MetricOptions props)
metricName
- name of the metric typically prefixed with `glue.driver.`, `glue.type
- the metric type. This parameter is required.props
- metric options.Metric metric(java.lang.String metricName, MetricType type)
metricName
- name of the metric typically prefixed with `glue.driver.`, `glue.type
- the metric type. This parameter is required.Metric metricFailure(MetricOptions props)
props
- Metric metricFailure()
Metric metricSuccess(MetricOptions props)
props
- Metric metricSuccess()
Metric metricTimeout(MetricOptions props)
props
- Metric metricTimeout()
Rule onEvent(java.lang.String id, OnEventOptions options)
id
- This parameter is required.options
- Rule onEvent(java.lang.String id)
id
- This parameter is required.Rule onFailure(java.lang.String id, OnEventOptions options)
id
- This parameter is required.options
- Rule onFailure(java.lang.String id)
id
- This parameter is required.Rule onStateChange(java.lang.String id, JobState jobState, OnEventOptions options)
id
- This parameter is required.jobState
- This parameter is required.options
- Rule onStateChange(java.lang.String id, JobState jobState)
id
- This parameter is required.jobState
- This parameter is required.Rule onSuccess(java.lang.String id, OnEventOptions options)
id
- This parameter is required.options
- Rule onSuccess(java.lang.String id)
id
- This parameter is required.Rule onTimeout(java.lang.String id, OnEventOptions options)
id
- This parameter is required.options
- Rule onTimeout(java.lang.String id)
id
- This parameter is required.