Class JobBase
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.glue.alpha.JobBase
- All Implemented Interfaces:
IJobRef,IEnvironmentAware,IResource,IJob,IGrantable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
- Direct Known Subclasses:
Job
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-17T14:54:30.081Z")
@Stability(Deprecated)
@Deprecated
public abstract class JobBase
extends Resource
implements IJob
Deprecated.
(deprecated) A base class is needed to be able to import existing Jobs into a CDK app to reference as part of a larger stack or construct.
JobBase has the subset of attributes required to identify and reference an existing Glue Job, as well as some CloudWatch metric convenience functions to configure an event-driven flow using the job.
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.glue.alpha.IJob
IJob.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJobBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) Deprecated.protectedJobBase(software.amazon.jsii.JsiiObjectRef objRef) Deprecated.protectedDeprecated.protectedJobBase(software.constructs.Construct scope, String id, ResourceProps props) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringbuildJobArn(software.constructs.Construct scope, String jobName) Deprecated.abstract IPrincipalDeprecated.abstract StringDeprecated.abstract StringDeprecated.Deprecated.metric(String metricName, MetricType type) Deprecated.metric(String metricName, MetricType type, MetricOptions props) Deprecated.Deprecated.metricFailure(MetricOptions props) Deprecated.Deprecated.metricSuccess(MetricOptions props) Deprecated.Deprecated.metricTimeout(MetricOptions props) Deprecated.Deprecated.onEvent(String id, OnEventOptions options) Deprecated.Deprecated.onFailure(String id, OnEventOptions options) Deprecated.protected RuleonStateChange(String id, JobState jobState) Deprecated.protected RuleonStateChange(String id, JobState jobState, OnEventOptions options) Deprecated.Deprecated.onSuccess(String id, OnEventOptions options) Deprecated.Deprecated.onTimeout(String id, OnEventOptions options) Deprecated.Methods inherited from class software.amazon.awscdk.Resource
applyCrossStackReferenceStrength, applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResource, withMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
JobBase
protected JobBase(software.amazon.jsii.JsiiObjectRef objRef) Deprecated. -
JobBase
protected JobBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) Deprecated. -
JobBase
@Stability(Stable) protected JobBase(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable ResourceProps props) Deprecated.- Parameters:
scope- This parameter is required.id- This parameter is required.props-
-
JobBase
@Stability(Stable) protected JobBase(@NotNull software.constructs.Construct scope, @NotNull String id) Deprecated.- Parameters:
scope- This parameter is required.id- This parameter is required.
-
-
Method Details
-
buildJobArn
@Stability(Deprecated) @Deprecated @NotNull protected String buildJobArn(@NotNull software.constructs.Construct scope, @NotNull String jobName) Deprecated.(deprecated) Returns the job arn.- Parameters:
scope- This parameter is required.jobName- This parameter is required.
-
metric
@Stability(Deprecated) @Deprecated @NotNull public Metric metric(@NotNull String metricName, @NotNull MetricType type, @Nullable MetricOptions props) Deprecated.(deprecated) Create a CloudWatch metric. -
metric
@Stability(Deprecated) @Deprecated @NotNull public Metric metric(@NotNull String metricName, @NotNull MetricType type) Deprecated.(deprecated) Create a CloudWatch metric. -
metricFailure
@Stability(Deprecated) @Deprecated @NotNull public Metric metricFailure(@Nullable MetricOptions props) Deprecated.(deprecated) Return a CloudWatch Metric indicating job failure.This metric is based on the Rule returned by no-args onFailure() call.
- Specified by:
metricFailurein interfaceIJob- Parameters:
props-
-
metricFailure
Deprecated.(deprecated) Return a CloudWatch Metric indicating job failure.This metric is based on the Rule returned by no-args onFailure() call.
- Specified by:
metricFailurein interfaceIJob
-
metricSuccess
@Stability(Deprecated) @Deprecated @NotNull public Metric metricSuccess(@Nullable MetricOptions props) Deprecated.(deprecated) Return a CloudWatch Metric indicating job success.This metric is based on the Rule returned by no-args onSuccess() call.
- Specified by:
metricSuccessin interfaceIJob- Parameters:
props-
-
metricSuccess
Deprecated.(deprecated) Return a CloudWatch Metric indicating job success.This metric is based on the Rule returned by no-args onSuccess() call.
- Specified by:
metricSuccessin interfaceIJob
-
metricTimeout
@Stability(Deprecated) @Deprecated @NotNull public Metric metricTimeout(@Nullable MetricOptions props) Deprecated.(deprecated) Return a CloudWatch Metric indicating job timeout.This metric is based on the Rule returned by no-args onTimeout() call.
- Specified by:
metricTimeoutin interfaceIJob- Parameters:
props-
-
metricTimeout
Deprecated.(deprecated) Return a CloudWatch Metric indicating job timeout.This metric is based on the Rule returned by no-args onTimeout() call.
- Specified by:
metricTimeoutin interfaceIJob
-
onEvent
@Stability(Deprecated) @Deprecated @NotNull public Rule onEvent(@NotNull String id, @Nullable OnEventOptions options) Deprecated.(deprecated) Create a CloudWatch Event Rule for this Glue Job when it's in a given state. -
onEvent
Deprecated.(deprecated) Create a CloudWatch Event Rule for this Glue Job when it's in a given state. -
onFailure
@Stability(Deprecated) @Deprecated @NotNull public Rule onFailure(@NotNull String id, @Nullable OnEventOptions options) Deprecated.(deprecated) Return a CloudWatch Event Rule matching FAILED state. -
onFailure
Deprecated.(deprecated) Return a CloudWatch Event Rule matching FAILED state. -
onStateChange
@Stability(Deprecated) @Deprecated @NotNull protected Rule onStateChange(@NotNull String id, @NotNull JobState jobState, @Nullable OnEventOptions options) Deprecated.(deprecated) Create a CloudWatch Event Rule for the transition into the input jobState.- Parameters:
id- construct id. This parameter is required.jobState- the job state. This parameter is required.options- optional event options.
-
onStateChange
@Stability(Deprecated) @Deprecated @NotNull protected Rule onStateChange(@NotNull String id, @NotNull JobState jobState) Deprecated.(deprecated) Create a CloudWatch Event Rule for the transition into the input jobState.- Parameters:
id- construct id. This parameter is required.jobState- the job state. This parameter is required.
-
onSuccess
@Stability(Deprecated) @Deprecated @NotNull public Rule onSuccess(@NotNull String id, @Nullable OnEventOptions options) Deprecated.(deprecated) Create a CloudWatch Event Rule matching JobState.SUCCEEDED. -
onSuccess
Deprecated.(deprecated) Create a CloudWatch Event Rule matching JobState.SUCCEEDED. -
onTimeout
@Stability(Deprecated) @Deprecated @NotNull public Rule onTimeout(@NotNull String id, @Nullable OnEventOptions options) Deprecated.(deprecated) Return a CloudWatch Event Rule matching TIMEOUT state. -
onTimeout
Deprecated.(deprecated) Return a CloudWatch Event Rule matching TIMEOUT state. -
getGrantPrincipal
Deprecated.(deprecated) The principal to grant permissions to.- Specified by:
getGrantPrincipalin interfaceIGrantable
-
getJobArn
Deprecated.(deprecated) The ARN of the job. -
getJobName
Deprecated.(deprecated) The name of the job.- Specified by:
getJobNamein interfaceIJob
-
getJobRef
Deprecated.(deprecated) A reference to this Job resource, for use with the generated L1 ref interface.
-