SfnStateMachine
- class aws_cdk.aws_pipes_targets_alpha.SfnStateMachine(state_machine, *, input_transformation=None, invocation_type=None)
Bases:
object
(experimental) An EventBridge Pipes target that sends messages to an AWS Step Functions State Machine.
- 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 )
- Parameters:
state_machine (
IStateMachine
) –input_transformation (
Optional
[IInputTransformation
]) – (experimental) The input transformation to apply to the message before sending it to the target. Default: - noneinvocation_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
Methods
- bind(pipe)
(experimental) Bind this target to a pipe.
- Parameters:
pipe (
IPipe
) –- Stability:
experimental
- Return type:
- grant_push(grantee)
(experimental) Grant the pipe role to push to the target.
- Parameters:
grantee (
IRole
) –- Stability:
experimental
- Return type:
None
Attributes
- target_arn
(experimental) The ARN of the target resource.
- Stability:
experimental