SfnStateMachine

class aws_cdk.aws_events_targets.SfnStateMachine(machine, *, input=None)

Bases: object

Use a StepFunctions state machine as a target for AWS CloudWatch event rules.

__init__(machine, *, input=None)
Parameters
  • machine (IStateMachine) –

  • props

  • input (Optional[RuleTargetInput]) – The input to the state machine execution. Default: the entire CloudWatch event

Return type

None

Methods

bind(_rule, _id=None)

Returns a properties that are used in an Rule to trigger this State Machine.

Parameters
  • _rule (IRule) –

  • _id (Optional[str]) –

see :see: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/resource-based-policies-cwe.html#sns-permissions

Return type

RuleTargetConfig

Attributes

machine
Return type

IStateMachine