> **Experimental**
>
> `@aws-cdk/aws-iot-actions-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# StepFunctionsStateMachineAction

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

Extends: StepFunctionsStateMachineAction
Implements: IAction

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/step-functions-state-machine-action.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0-alpha.0/packages/@aws-cdk/aws-iot-actions-alpha/lib/step-functions-state-machine-action.ts#L27)

## Example

```ts
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

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