enum StateMachineInvocationType
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Pipes.Targets.Alpha.StateMachineInvocationType |
Go | github.com/aws/aws-cdk-go/awscdkpipestargetsalpha/v2#StateMachineInvocationType |
Java | software.amazon.awscdk.services.pipes.targets.alpha.StateMachineInvocationType |
Python | aws_cdk.aws_pipes_targets_alpha.StateMachineInvocationType |
TypeScript (source) | @aws-cdk/aws-pipes-targets-alpha » StateMachineInvocationType |
InvocationType for invoking the State Machine.
Example
declare const sourceQueue: sqs.Queue;
declare const targetStateMachine: sfn.IStateMachine;
const pipeTarget = new targets.SfnStateMachine(targetStateMachine, {
invocationType: targets.StateMachineInvocationType.FIRE_AND_FORGET,
});
const pipe = new pipes.Pipe(this, 'Pipe', {
source: new SqsSource(sourceQueue),
target: pipeTarget
});
Members
Name | Description |
---|---|
FIRE_AND_FORGET | Invoke StepFunction asynchronously (StartExecution ). |
REQUEST_RESPONSE | Invoke StepFunction synchronously (StartSyncExecution ) and wait for the execution to complete. |
FIRE_AND_FORGET
Invoke StepFunction asynchronously (StartExecution
).
See https://docs.aws.amazon.com/step-functions/latest/apireference/API_StartExecution.html for more details.
REQUEST_RESPONSE
Invoke StepFunction synchronously (StartSyncExecution
) and wait for the execution to complete.
See https://docs.aws.amazon.com/step-functions/latest/apireference/API_StartSyncExecution.html for more details.