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

Transform or replace the input event payload.

Extends: InputTransformation
Implements: IInputTransformation

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

## Example

```ts
declare const sourceQueue: sqs.Queue;
declare const targetTopic: sns.Topic;

const pipeTarget = new targets.SnsTarget(targetTopic,
    {
      inputTransformation: pipes.InputTransformation.fromObject(
        {
            "SomeKey": pipes.DynamicInput.fromEventPath('$.body')
        })
    }
);

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

## Methods

- `bind(pipe: IPipe): InputTransformationConfig` — Bind the input transformation to the pipe and returns the inputTemplate string.

- `fromEventPath(jsonPathExpression: string): InputTransformation // chainable` (static) — Creates an InputTransformation from a jsonPath expression of the input event.

- `fromObject(inputTemplate: { [key: string]: any }): InputTransformation // chainable` (static) — Creates an InputTransformation from a pipe variable.

- `fromText(inputTemplate: string): InputTransformation // chainable` (static) — Creates an InputTransformation from a string.
