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

Dynamic variables that can be used in the input transformation.

Extends: DynamicInput
Implements: IResolvable

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

## Example

```ts
declare const sourceQueue: sqs.Queue;
declare const targetQueue: sqs.Queue;

const targetInputTransformation = pipes.InputTransformation.fromObject({
  staticField: 'static value',
  dynamicField: pipes.DynamicInput.fromEventPath('$.body.payload'),
  pipeVariable: pipes.DynamicInput.pipeName,
});

const pipe = new pipes.Pipe(this, 'Pipe', {
  pipeName: 'MyPipe',
  source: new SqsSource(sourceQueue),
  target: new SqsTarget(targetQueue, {
    inputTransformation: targetInputTransformation,
  }),
});
```

## Properties

- `creationStack`: string[] — The creation stack of this resolvable which will be appended to errors thrown during resolution.

  This may return an array with a single informational element indicating how
  to get this property populated, if it was skipped for performance reasons.

- `displayHint`: string — Human readable display hint about the event pattern.

- `enrichmentArn`: [DynamicInput](/cdk/api/v2/docs/@aws-cdk_aws-pipes-alpha.DynamicInput.html) (static) — The ARN of the enrichment of the pipe.

- `event`: [DynamicInput](/cdk/api/v2/docs/@aws-cdk_aws-pipes-alpha.DynamicInput.html) (static) — The event as received by the input transformer.

- `eventIngestionTime`: [DynamicInput](/cdk/api/v2/docs/@aws-cdk_aws-pipes-alpha.DynamicInput.html) (static) — The time at which the event was received by the input transformer.

  This is an ISO 8601 timestamp. This time is different for the enrichment input transformer and the target input transformer, depending on when the enrichment completed processing the event.

- `eventJson`: [DynamicInput](/cdk/api/v2/docs/@aws-cdk_aws-pipes-alpha.DynamicInput.html) (static) — The same as aws.pipes.event, but the variable only has a value if the original payload, either from the source or returned by the enrichment, is JSON. If the pipe has an encoded field, such as the Amazon SQS body field or the Kinesis data, those fields are decoded and turned into valid JSON. Because it isn't escaped, the variable can only be used as a value for a JSON field. For more information, see Implicit body data parsing.

- `pipeArn`: [DynamicInput](/cdk/api/v2/docs/@aws-cdk_aws-pipes-alpha.DynamicInput.html) (static) — The Amazon Resource Name (ARN) of the pipe.

- `pipeName`: [DynamicInput](/cdk/api/v2/docs/@aws-cdk_aws-pipes-alpha.DynamicInput.html) (static) — The name of the pipe.

- `sourceArn`: [DynamicInput](/cdk/api/v2/docs/@aws-cdk_aws-pipes-alpha.DynamicInput.html) (static) — The ARN of the event source of the pipe.

- `targetArn`: [DynamicInput](/cdk/api/v2/docs/@aws-cdk_aws-pipes-alpha.DynamicInput.html) (static) — The ARN of the target of the pipe.

## Methods

- `fromEventPath(path: string): DynamicInput // chainable` (static) — Value from the event payload at jsonPath.

- `resolve(_context: IResolveContext): any` — Produce the Token's value at resolution time.

- `toJSON(): string` — Return a JSON representation of a dynamic input.

- `toString(): string` — Return a string representation of a dynamic input.
