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

Properties for a pipe.

Used as props by: [Pipe](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-pipes-alpha.Pipe.html)

- Stability: [Experimental](https://docs.aws.amazon.com/cdk/api/stability.html)
- Source: [`lib/pipe.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/@aws-cdk/aws-pipes-alpha/lib/pipe.ts#L67)

## Example

TypeScript:

```ts
declare const sourceQueue: sqs.Queue;
declare const dest: events.ApiDestination;

const apiTarget = new targets.ApiDestinationTarget(dest, {
  inputTransformation: pipes.InputTransformation.fromObject({ body: "👀" }),
});

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

Python:

```python
# source_queue: sqs.Queue
# dest: events.ApiDestination

api_target = targets.ApiDestinationTarget(dest,
    input_transformation=pipes.InputTransformation.from_object({"body": "👀"})
)

pipe = pipes.Pipe(self, "Pipe",
    source=SqsSource(source_queue),
    target=api_target
)
```

Java:

```java
Queue sourceQueue;
ApiDestination dest;

ApiDestinationTarget apiTarget = ApiDestinationTarget.Builder.create(dest)
        .inputTransformation(InputTransformation.fromObject(Map.of("body", "👀")))
        .build();

Pipe pipe = Pipe.Builder.create(this, "Pipe")
        .source(new SqsSource(sourceQueue))
        .target(apiTarget)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.AWS.Pipes.Alpha
Queue sourceQueue;
ApiDestination dest;

var apiTarget = new ApiDestinationTarget(dest, new ApiDestinationTargetParameters {
    InputTransformation = InputTransformation.FromObject(new Dictionary<string, object> { { "body", "👀" } })
});

var pipe = new Pipe(this, "Pipe", new PipeProps {
    Source = new SqsSource(sourceQueue),
    Target = apiTarget
});
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdkpipesalpha/v2
var sourceQueue Queue
var dest ApiDestination

apiTarget := targets.NewApiDestinationTarget(dest, &ApiDestinationTargetParameters{
	InputTransformation: pipes.InputTransformation_FromObject(map[string]interface{}{
		"body": jsii.String("👀"),
	}),
})

pipe := pipes.NewPipe(this, jsii.String("Pipe"), &PipeProps{
	Source: awscdkpipessourcesalpha.NewSqsSource(sourceQueue),
	Target: apiTarget,
})
```

## Properties

- `description`: string — A description of the pipe displayed in the AWS console.

  **Default:** no description

- `desiredState`: [DesiredState](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-pipes-alpha.DesiredState.html) = DesiredState.RUNNING — The desired state of the pipe.

  If the state is set to STOPPED, the pipe will not process events.

- `enrichment`: [IEnrichment](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-pipes-alpha.IEnrichment.html) — Enrichment step to enhance the data from the source before sending it to the target.

  **Default:** no enrichment

- `filter`: [IFilter](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-pipes-alpha.IFilter.html) — The filter pattern for the pipe source.

  **Default:** no filter

- `kmsKey`: [IKey](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_kms.IKey.html) — The AWS KMS customer managed key to encrypt pipe data.

  **Default:** undefined - AWS managed key is used

- `logDestinations`: [ILogDestination](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-pipes-alpha.ILogDestination.html)[] — Destinations for the logs.

  **Default:** no logs

- `logIncludeExecutionData`: [IncludeExecutionData](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-pipes-alpha.IncludeExecutionData.html)[] = none — Whether the execution data (specifically, the `payload` , `awsRequest` , and `awsResponse` fields) is included in the log messages for this pipe.

  This applies to all log destinations for the pipe.

  For more information, see [Including execution data in logs](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-pipes-logs.html#eb-pipes-logs-execution-data) and the [message schema](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-pipes-logs-schema.html) in the *Amazon EventBridge User Guide* .

- `logLevel`: [LogLevel](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-pipes-alpha.LogLevel.html) = LogLevel.ERROR — The level of logging detail to include.

  This applies to all log destinations for the pipe.

- `pipeName`: string — Name of the pipe in the AWS console.

  **Default:** automatically generated name

- `role`: [IRole](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iam.IRole.html) — The role used by the pipe which has permissions to read from the source and write to the target.

  **Default:** a new role will be created.

  If an enriched target is used, the role also have permissions to call the enriched target.
  If no role is provided, a role will be created.

- `source`: [ISource](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-pipes-alpha.ISource.html) (required) — The source of the pipe.

- `tags`: { [key: string]: string } — The list of key-value pairs to associate with the pipe.

  **Default:** no tags

- `target`: [ITarget](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-pipes-alpha.ITarget.html) (required) — The target of the pipe.
