@aws-cdk_aws-iot-actions-alpha.StepFunctionsStateMachineAction

class StepFunctionsStateMachineAction 🔹

LanguageType name
.NETAmazon.CDK.AWS.IoT.Actions.Alpha.StepFunctionsStateMachineAction
Gogithub.com/aws/aws-cdk-go/awscdkiotactionsalpha/v2#StepFunctionsStateMachineAction
Javasoftware.amazon.awscdk.services.iot.actions.alpha.StepFunctionsStateMachineAction
Pythonaws_cdk.aws_iot_actions_alpha.StepFunctionsStateMachineAction
TypeScript (source)@aws-cdk/aws-iot-actions-alpha » StepFunctionsStateMachineAction

Implements IAction

The action to put the record from an MQTT message to the Step Functions State Machine.

Example

const stateMachine = new stepfunctions.StateMachine(this, 'SM', {
  definitionBody: stepfunctions.DefinitionBody.fromChainable(new stepfunctions.Wait(this, 'Hello', { time: stepfunctions.WaitTime.duration(Duration.seconds(10)) })),
});

new iot.TopicRule(this, 'TopicRule', {
  sql: iot.IotSql.fromStringAsVer20160323("SELECT * FROM 'device/+/data'"),
  actions: [
    new actions.StepFunctionsStateMachineAction(stateMachine),
  ],
});

Initializer

new StepFunctionsStateMachineAction(stateMachine: IStateMachine, props?: StepFunctionsStateMachineActionProps)

Parameters

  • stateMachine IStateMachine — The Step Functions Start Machine which shoud be executed.
  • props StepFunctionsStateMachineActionProps — Optional properties to not use default.