AWS::Pipes::PipeSpecifies a pipe. Amazon EventBridge Pipes connect event sources to targets and reduces the need for specialized knowledge and integration code. > As an aid to help you jumpstart developing CloudFormation templates, the EventBridge console enables you to create templates from the existing pipes in your account. For more information, see [Generate an CloudFormation template from EventBridge Pipes](https://docs.aws.amazon.com/eventbridge/latest/userguide/pipes-generate-template.html) in the *Amazon EventBridge User Guide* .
import { CfnPipe } from 'aws-cdk-lib/aws-pipes';Or use the module namespace:
import * as pipes from 'aws-cdk-lib/aws-pipes';
// pipes.CfnPipeConfiguration passed to the constructor as CfnPipeProps.
roleArnRequiredstring | IRoleRefThe ARN of the role that allows the pipe to send data to the target.
sourceRequiredstring | IStreamRef | IQueueRefThe ARN of the source resource.
targetRequiredstring | IEventBusRef | IFunctionRef | ILogGroupRef | ITopicRef | IQueueRef | IStateMachineRefThe ARN of the target resource.
descriptionOptionalstringA description of the pipe.
desiredStateOptionalstringThe state the pipe should be in.
enrichmentOptionalstring | IFunctionRefThe ARN of the enrichment resource.
enrichmentParametersOptionalIResolvable | PipeEnrichmentParametersPropertyThe parameters required to set up enrichment on your pipe.
kmsKeyIdentifierOptionalstringThe identifier of the AWS customer managed key for EventBridge to use, if you choose to use a customer managed key to encrypt pipe data. The identifier can be the key Amazon Resource Name (ARN), KeyId, key alias, or key alias ARN. To update a pipe that is using the default AWS owned key to use a customer managed key instead, or update a pipe that is using a customer managed key to use a different customer managed key, specify a customer managed key identifier. To update a pipe that is using a customer managed key to use the default AWS owned key , specify an empty string. For more information, see [Managing keys](https://docs.aws.amazon.com/kms/latest/developerguide/getting-started.html) in the *AWS Key Management Service Developer Guide* .
logConfigurationOptionalIResolvable | PipeLogConfigurationPropertyThe logging configuration settings for the pipe.
nameOptionalstringThe name of the pipe.
sourceParametersOptionalIResolvable | PipeSourceParametersPropertyThe parameters required to set up a source for your pipe.
tagsOptional{ [key: string]: string }The list of key-value pairs to associate with the pipe.
targetParametersOptionalIResolvable | PipeTargetParametersPropertyThe parameters required to set up a target for your pipe. For more information about pipe target parameters, including how to use dynamic path parameters, see [Target parameters](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-pipes-event-target.html) in the *Amazon EventBridge User Guide* .
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-pipesAWS::Pipes::Pipe