@Internal public static interface IJob.Jsii$Default extends IJob, IResource.Jsii$Default, IGrantable.Jsii$Default
IJob.IJob.Jsii$Default, IJob.Jsii$Proxy| Modifier and Type | Method and Description |
|---|---|
default void |
applyRemovalPolicy(RemovalPolicy policy)
(experimental) Apply the given removal policy to this resource.
|
default ResourceEnvironment |
getEnv()
(experimental) The environment this resource belongs to.
|
default IPrincipal |
getGrantPrincipal()
(experimental) The principal to grant permissions to.
|
default String |
getJobArn()
(experimental) The ARN of the job.
|
default String |
getJobName()
(experimental) The name of the job.
|
default ConstructNode |
getNode()
(experimental) The construct tree node for this construct.
|
default Stack |
getStack()
(experimental) The stack in which this resource is defined.
|
default Metric |
metric(String metricName,
MetricType type,
MetricOptions props)
(experimental) Create a CloudWatch metric.
|
default Metric |
metricFailure(MetricOptions props)
(experimental) Create a CloudWatch Metric indicating job failure.
|
default Metric |
metricSuccess(MetricOptions props)
(experimental) Create a CloudWatch Metric indicating job success.
|
default Metric |
metricTimeout(MetricOptions props)
(experimental) Create a CloudWatch Metric indicating job timeout.
|
default Rule |
onEvent(String id,
OnEventOptions options)
(experimental) Defines a CloudWatch event rule triggered when something happens with this job.
|
default Rule |
onFailure(String id,
OnEventOptions options)
(experimental) Defines a CloudWatch event rule triggered when this job moves to the FAILED state.
|
default Rule |
onStateChange(String id,
JobState jobState,
OnEventOptions options)
(experimental) Defines a CloudWatch event rule triggered when this job moves to the input jobState.
|
default Rule |
onSuccess(String id,
OnEventOptions options)
(experimental) Defines a CloudWatch event rule triggered when this job moves to the SUCCEEDED state.
|
default Rule |
onTimeout(String id,
OnEventOptions options)
(experimental) Defines a CloudWatch event rule triggered when this job moves to the TIMEOUT state.
|
metric, metricFailure, metricSuccess, metricTimeout, onEvent, onFailure, onStateChange, onSuccess, onTimeout@Stability(value=Experimental) @NotNull default ConstructNode getNode()
getNode in interface IResource.Jsii$Default@Stability(value=Experimental) @NotNull default ResourceEnvironment getEnv()
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
getEnv in interface IResourcegetEnv in interface IResource.Jsii$Default@Stability(value=Experimental) @NotNull default Stack getStack()
getStack in interface IResourcegetStack in interface IResource.Jsii$Default@Stability(value=Experimental) @NotNull default IPrincipal getGrantPrincipal()
getGrantPrincipal in interface IGrantablegetGrantPrincipal in interface IGrantable.Jsii$Default@Stability(value=Experimental) @NotNull default String getJobArn()
@Stability(value=Experimental) @NotNull default String getJobName()
getJobName in interface IJob@Stability(value=Experimental)
default void applyRemovalPolicy(@NotNull
RemovalPolicy policy)
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS
account for data recovery and cleanup later (RemovalPolicy.RETAIN).
applyRemovalPolicy in interface IResourceapplyRemovalPolicy in interface IResource.Jsii$Defaultpolicy - This parameter is required.@Stability(value=Experimental) @NotNull default 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.@Stability(value=Experimental) @NotNull default Metric metricFailure(@Nullable MetricOptions props)
metricFailure in interface IJobprops - @Stability(value=Experimental) @NotNull default Metric metricSuccess(@Nullable MetricOptions props)
metricSuccess in interface IJobprops - @Stability(value=Experimental) @NotNull default Metric metricTimeout(@Nullable MetricOptions props)
metricTimeout in interface IJobprops - @Stability(value=Experimental) @NotNull default Rule onEvent(@NotNull String id, @Nullable OnEventOptions options)
onEvent in interface IJobid - This parameter is required.options - @Stability(value=Experimental) @NotNull default Rule onFailure(@NotNull String id, @Nullable OnEventOptions options)
onFailure in interface IJobid - This parameter is required.options - @Stability(value=Experimental) @NotNull default Rule onStateChange(@NotNull String id, @NotNull JobState jobState, @Nullable OnEventOptions options)
onStateChange in interface IJobid - This parameter is required.jobState - This parameter is required.options - @Stability(value=Experimental) @NotNull default Rule onSuccess(@NotNull String id, @Nullable OnEventOptions options)
onSuccess in interface IJobid - This parameter is required.options - @Stability(value=Experimental) @NotNull default Rule onTimeout(@NotNull String id, @Nullable OnEventOptions options)
onTimeout in interface IJobid - This parameter is required.options - Copyright © 2022. All rights reserved.