Interface IJob
(experimental) Interface representing a created or an imported Job
.
Inherited Members
Namespace: Amazon.CDK.AWS.Glue.Alpha
Assembly: Amazon.CDK.AWS.Glue.Alpha.dll
Syntax (csharp)
public interface IJob : IResource, IGrantable
Syntax (vb)
Public Interface IJob
Inherits IResource, IConstruct, IDependable, IGrantable
Remarks
Stability: Experimental
Synopsis
Properties
JobArn | (experimental) The ARN of the job. |
JobName | (experimental) The name of the job. |
Methods
Metric(String, MetricType, IMetricOptions) | (experimental) Create a CloudWatch metric. |
MetricFailure(IMetricOptions) | (experimental) Create a CloudWatch Metric indicating job failure. |
MetricSuccess(IMetricOptions) | (experimental) Create a CloudWatch Metric indicating job success. |
MetricTimeout(IMetricOptions) | (experimental) Create a CloudWatch Metric indicating job timeout. |
OnEvent(String, IOnEventOptions) | (experimental) Defines a CloudWatch event rule triggered when something happens with this job. |
OnFailure(String, IOnEventOptions) | (experimental) Defines a CloudWatch event rule triggered when this job moves to the FAILED state. |
OnStateChange(String, JobState, IOnEventOptions) | (experimental) Defines a CloudWatch event rule triggered when this job moves to the input jobState. |
OnSuccess(String, IOnEventOptions) | (experimental) Defines a CloudWatch event rule triggered when this job moves to the SUCCEEDED state. |
OnTimeout(String, IOnEventOptions) | (experimental) Defines a CloudWatch event rule triggered when this job moves to the TIMEOUT state. |
Properties
JobArn
(experimental) The ARN of the job.
string JobArn { get; }
Property Value
System.String
Remarks
Stability: Experimental
Attribute: true
JobName
(experimental) The name of the job.
string JobName { get; }
Property Value
System.String
Remarks
Stability: Experimental
Attribute: true
Methods
Metric(String, MetricType, IMetricOptions)
(experimental) Create a CloudWatch metric.
Metric Metric(string metricName, MetricType type, IMetricOptions props = null)
Parameters
- metricName System.String
name of the metric typically prefixed with
glue.driver.
,glue.<executorId>.
orglue.ALL.
.- type MetricType
the metric type.
- props IMetricOptions
metric options.
Returns
Remarks
Stability: Experimental
See: https://docs.aws.amazon.com/glue/latest/dg/monitoring-awsglue-with-cloudwatch-metrics.html
MetricFailure(IMetricOptions)
(experimental) Create a CloudWatch Metric indicating job failure.
Metric MetricFailure(IMetricOptions props = null)
Parameters
- props IMetricOptions
Returns
Remarks
Stability: Experimental
MetricSuccess(IMetricOptions)
(experimental) Create a CloudWatch Metric indicating job success.
Metric MetricSuccess(IMetricOptions props = null)
Parameters
- props IMetricOptions
Returns
Remarks
Stability: Experimental
MetricTimeout(IMetricOptions)
(experimental) Create a CloudWatch Metric indicating job timeout.
Metric MetricTimeout(IMetricOptions props = null)
Parameters
- props IMetricOptions
Returns
Remarks
Stability: Experimental
OnEvent(String, IOnEventOptions)
(experimental) Defines a CloudWatch event rule triggered when something happens with this job.
Rule OnEvent(string id, IOnEventOptions options = null)
Parameters
- id System.String
- options IOnEventOptions
Returns
Remarks
Stability: Experimental
See: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/EventTypes.html#glue-event-types
OnFailure(String, IOnEventOptions)
(experimental) Defines a CloudWatch event rule triggered when this job moves to the FAILED state.
Rule OnFailure(string id, IOnEventOptions options = null)
Parameters
- id System.String
- options IOnEventOptions
Returns
Remarks
Stability: Experimental
See: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/EventTypes.html#glue-event-types
OnStateChange(String, JobState, IOnEventOptions)
(experimental) Defines a CloudWatch event rule triggered when this job moves to the input jobState.
Rule OnStateChange(string id, JobState jobState, IOnEventOptions options = null)
Parameters
- id System.String
- jobState JobState
- options IOnEventOptions
Returns
Remarks
Stability: Experimental
See: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/EventTypes.html#glue-event-types
OnSuccess(String, IOnEventOptions)
(experimental) Defines a CloudWatch event rule triggered when this job moves to the SUCCEEDED state.
Rule OnSuccess(string id, IOnEventOptions options = null)
Parameters
- id System.String
- options IOnEventOptions
Returns
Remarks
Stability: Experimental
See: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/EventTypes.html#glue-event-types
OnTimeout(String, IOnEventOptions)
(experimental) Defines a CloudWatch event rule triggered when this job moves to the TIMEOUT state.
Rule OnTimeout(string id, IOnEventOptions options = null)
Parameters
- id System.String
- options IOnEventOptions
Returns
Remarks
Stability: Experimental
See: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/EventTypes.html#glue-event-types