Skip to content
v2.274.0

Experimental

@aws-cdk/aws-pipes-targets-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

SfnStateMachineParameters Struct ​

Parameters for the SfnStateMachine target.

Example ​

ts
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
});

Properties ​

inputTransformationoptionalIInputTransformationinput_transformationoptionalIInputTransformationinputTransformationoptionalIInputTransformationInputTransformationoptionalIInputTransformationInputTransformationoptionalIInputTransformation= none#
The input transformation to apply to the message before sending it to the target.
invocationTypeoptionalStateMachineInvocationTypeinvocation_typeoptionalStateMachineInvocationTypeinvocationTypeoptionalStateMachineInvocationTypeInvocationTypeoptionalStateMachineInvocationTypeInvocationTypeoptionalStateMachineInvocationType#
Specify whether to invoke the State Machine synchronously (`REQUEST_RESPONSE`) or asynchronously (`FIRE_AND_FORGET`).

Default: StateMachineInvocationType.FIRE_AND_FORGET