class WorkflowBase
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Glue.Alpha.WorkflowBase |
Go | github.com/aws/aws-cdk-go/awscdkgluealpha/v2#WorkflowBase |
Java | software.amazon.awscdk.services.glue.alpha.WorkflowBase |
Python | aws_cdk.aws_glue_alpha.WorkflowBase |
TypeScript (source) | @aws-cdk/aws-glue-alpha 禄 WorkflowBase |
Implements
IConstruct
, IDependable
, IResource
, IWorkflow
Extends
Resource
Implemented by
Workflow
Base abstract class for Workflow.
See also: https://docs.aws.amazon.com/glue/latest/dg/about-triggers.html
Initializer
new WorkflowBase(scope: Construct, id: string, props?: ResourceProps)
Parameters
- scope
Construct
- id
string
- props
Resource
Props
Properties
Name | Type | Description |
---|---|---|
env | Resource | The environment this resource belongs to. |
node | Node | The tree node. |
stack | Stack | The stack in which this resource is defined. |
workflow | string | The ARN of the workflow. |
workflow | string | The name of the workflow. |
env
Type:
Resource
The environment this resource belongs to.
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.
node
Type:
Node
The tree node.
stack
Type:
Stack
The stack in which this resource is defined.
workflowArn
Type:
string
The ARN of the workflow.
workflowName
Type:
string
The name of the workflow.
Methods
Name | Description |
---|---|
add | Add a custom-scheduled trigger to the workflow. |
add | Add a daily-scheduled trigger to the workflow. |
add | Add an Event Bridge based trigger to the workflow. |
add | Add an on-demand trigger to the workflow. |
add | Add a weekly-scheduled trigger to the workflow. |
addconditional | Add a Condition (Predicate) based trigger to the workflow. |
apply | Apply the given removal policy to this resource. |
to | Returns a string representation of this construct. |
protected build | |
protected static extract | Extract workflowName from arn. |
addCustomScheduledTrigger(id, options)
public addCustomScheduledTrigger(id: string, options: CustomScheduledTriggerOptions): CfnTrigger
Parameters
- id
string
鈥� The id of the trigger. - options
Custom
鈥� Additional options for the trigger.Scheduled Trigger Options
Returns
Add a custom-scheduled trigger to the workflow.
addDailyScheduledTrigger(id, options)
public addDailyScheduledTrigger(id: string, options: DailyScheduleTriggerOptions): CfnTrigger
Parameters
- id
string
鈥� The id of the trigger. - options
Daily
鈥� Additional options for the trigger.Schedule Trigger Options
Returns
Add a daily-scheduled trigger to the workflow.
addNotifyEventTrigger(id, options)
public addNotifyEventTrigger(id: string, options: NotifyEventTriggerOptions): CfnTrigger
Parameters
- id
string
鈥� The id of the trigger. - options
Notify
鈥� Additional options for the trigger.Event Trigger Options
Returns
Add an Event Bridge based trigger to the workflow.
addOnDemandTrigger(id, options)
public addOnDemandTrigger(id: string, options: OnDemandTriggerOptions): CfnTrigger
Parameters
- id
string
鈥� The id of the trigger. - options
On
鈥� Additional options for the trigger.Demand Trigger Options
Returns
Add an on-demand trigger to the workflow.
addWeeklyScheduledTrigger(id, options)
public addWeeklyScheduledTrigger(id: string, options: WeeklyScheduleTriggerOptions): CfnTrigger
Parameters
- id
string
鈥� The id of the trigger. - options
Weekly
鈥� Additional options for the trigger.Schedule Trigger Options
Returns
Add a weekly-scheduled trigger to the workflow.
addconditionalTrigger(id, options)
public addconditionalTrigger(id: string, options: ConditionalTriggerOptions): CfnTrigger
Parameters
- id
string
鈥� The id of the trigger. - options
Conditional
鈥� Additional options for the trigger.Trigger Options
Returns
Add a Condition (Predicate) based trigger to the workflow.
applyRemovalPolicy(policy)
public applyRemovalPolicy(policy: RemovalPolicy): void
Parameters
- policy
Removal
Policy
Apply the given removal policy to this resource.
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
).
toString()
public toString(): string
Returns
string
Returns a string representation of this construct.
protected buildWorkflowArn(scope, workflowName)
protected buildWorkflowArn(scope: Construct, workflowName: string): string
Parameters
- scope
Construct
- workflowName
string
Returns
string
protected static extractNameFromArn(scope, workflowArn)
protected static extractNameFromArn(scope: Construct, workflowArn: string): string
Parameters
- scope
Construct
- workflowArn
string
Returns
string
Extract workflowName from arn.