diff --git a/packages/@aws-cdk/aws-pipes-targets-alpha/README.md b/packages/@aws-cdk/aws-pipes-targets-alpha/README.md index 7480130c25dff..a96a3cde25657 100644 --- a/packages/@aws-cdk/aws-pipes-targets-alpha/README.md +++ b/packages/@aws-cdk/aws-pipes-targets-alpha/README.md @@ -182,6 +182,20 @@ The API destination will receive the (enriched/filtered) source payload. declare const sourceQueue: sqs.Queue; declare const dest: events.ApiDestination; +const apiTarget = new targets.ApiDestinationTarget(dest); + +const pipe = new pipes.Pipe(this, 'Pipe', { + source: new SomeSource(sourceQueue), + target: apiTarget, +}); +``` + +The input to the target API destination can be transformed: + +```ts +declare const sourceQueue: sqs.Queue; +declare const dest: events.ApiDestination; + const apiTarget = new targets.ApiDestinationTarget(dest, { inputTransformation: pipes.InputTransformation.fromObject({ body: "👀" }), });