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

An EventBridge Pipes target that sends messages to an AWS Step Functions State Machine.

Extends: SfnStateMachine
Implements: ITarget

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/stepfunctions.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0-alpha.0/packages/@aws-cdk/aws-pipes-targets-alpha/lib/stepfunctions.ts#L46)

## Example

```ts
declare const sourceQueue: sqs.Queue;
declare const targetStateMachine: sfn.IStateMachine;

const pipeTarget = new targets.SfnStateMachine(targetStateMachine, {
    invocationType: targets.StateMachineInvocationType.FIRE_AND_FORGET,
});

const pipe = new pipes.Pipe(this, 'Pipe', {
    source: new SqsSource(sourceQueue),
    target: pipeTarget
});
```

## Initializer

```ts
new SfnStateMachine(stateMachine: IStateMachine, parameters: SfnStateMachineParameters)
```

## Properties

- `targetArn`: string — The ARN of the target resource.

## Methods

- `bind(pipe: IPipe): TargetConfig` — Bind this target to a pipe.

- `grantPush(grantee: IRole): void` — Grant the pipe role to push to the target.
