SfnStateMachineParameters

class aws_cdk.aws_pipes_targets_alpha.SfnStateMachineParameters(*, input_transformation=None, invocation_type=None)

Bases: object

(experimental) Parameters for the SfnStateMachine target.

Parameters:
  • input_transformation (Optional[IInputTransformation]) – (experimental) The input transformation to apply to the message before sending it to the target. Default: - none

  • invocation_type (Optional[StateMachineInvocationType]) – (experimental) Specify whether to invoke the State Machine synchronously (REQUEST_RESPONSE) or asynchronously (FIRE_AND_FORGET). Default: StateMachineInvocationType.FIRE_AND_FORGET

Stability:

experimental

ExampleMetadata:

infused

Example:

# source_queue: sqs.Queue
# target_state_machine: sfn.IStateMachine


pipe_target = targets.SfnStateMachine(target_state_machine,
    invocation_type=targets.StateMachineInvocationType.FIRE_AND_FORGET
)

pipe = pipes.Pipe(self, "Pipe",
    source=SqsSource(source_queue),
    target=pipe_target
)

Attributes

input_transformation

(experimental) The input transformation to apply to the message before sending it to the target.

Default:
  • none

See:

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-pipetargetparameters.html#cfn-pipes-pipe-pipetargetparameters-inputtemplate

Stability:

experimental

invocation_type

(experimental) Specify whether to invoke the State Machine synchronously (REQUEST_RESPONSE) or asynchronously (FIRE_AND_FORGET).

Default:

StateMachineInvocationType.FIRE_AND_FORGET

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-pipetargetsqsqueueparameters.html#cfn-pipes-pipe-pipetargetsqsqueueparameters-messagededuplicationid

Stability:

experimental