AWS::Events::ConnectionCreates a connection. A connection defines the authorization type and credentials to use for authorization with an API destination HTTP endpoint. For more information, see [Connections for endpoint targets](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-target-connection.html) in the *Amazon EventBridge User Guide* .
import { CfnConnection } from 'aws-cdk-lib/aws-events';Or use the module namespace:
import * as events from 'aws-cdk-lib/aws-events';
// events.CfnConnectionConfiguration passed to the constructor as CfnConnectionProps.
authorizationTypeOptionalstringThe type of authorization to use for the connection. > OAUTH tokens are refreshed when a 401 or 407 response is returned.
authParametersOptionalIResolvable | AuthParametersPropertyThe authorization parameters to use to authorize with the endpoint. You must include only authorization parameters for the `AuthorizationType` you specify.
descriptionOptionalstringA description for the connection to create.
invocationConnectivityParametersOptionalIResolvable | InvocationConnectivityParametersPropertyFor connections to private APIs, the parameters to use for invoking the API. For more information, see [Connecting to private APIs](https://docs.aws.amazon.com/eventbridge/latest/userguide/connection-private.html) in the **Amazon EventBridge User Guide** .
kmsKeyIdentifierOptionalstringThe identifier of the AWS customer managed key for EventBridge to use, if you choose to use a customer managed key to encrypt this connection. The identifier can be the key Amazon Resource Name (ARN), KeyId, key alias, or key alias ARN. If you do not specify a customer managed key identifier, EventBridge uses an AWS owned key to encrypt the connection. For more information, see [Identify and view keys](https://docs.aws.amazon.com/kms/latest/developerguide/viewing-keys.html) in the *AWS Key Management Service Developer Guide* .
nameOptionalstringThe name for the connection to create.
This L1 construct maps directly to the following CloudFormation resource type.
Everything you need to know about Amazon EventBridge on one page. HD quality, print-friendly.
Download Free Infographicaws-eventsAWS::Events::Connection