Connection
Manages an Event Bridge Connection.
Sample code
exports.createResources = () => [
{
type: "Connection",
group: "CloudWatchEvents",
properties: ({}) => ({
AuthParameters: {
ApiKeyAuthParameters: {
ApiKeyName: "MyWebhook",
ApiKeyValue: process.env.MY_CONNECTION_DV_MV_GG2ST_EXZ_API_KEY_VALUE,
},
},
AuthorizationType: "API_KEY",
Description: "My connection with an API key",
Name: "MyConnection-dvMVGg2stExz",
}),
},
];
Properties
Dependencies
Used By
Full Examples
List
The connections can be filtered with the CloudWatchEvents::Connection type:
gc l -t CloudWatchEvents::Connection
Listing resources on 1 provider: aws
✓ aws us-east-1
✓ Initialising
✓ Listing 1/1
┌──────────────────────────────────────────────────────────────────────────────────────────┐
│ 1 CloudWatchEvents::Connection from aws │
├──────────────────────────────────────────────────────────────────────────────────────────┤
│ name: MyConnection-dvMVGg2stExz │
│ managedByUs: Yes │
│ live: │
│ AuthParameters: │
│ ApiKeyAuthParameters: │
│ ApiKeyName: MyWebhook │
│ AuthorizationType: API_KEY │
│ ConnectionArn: arn:aws:events:us-east-1:840541460064:connection/MyConnection-dvMVGg2s… │
│ ConnectionState: AUTHORIZED │
│ CreationTime: 2022-08-05T11:37:09.000Z │
│ Description: My connection with an API key │
│ LastAuthorizedTime: 2022-08-05T11:37:09.000Z │
│ LastModifiedTime: 2022-08-05T11:37:09.000Z │
│ Name: MyConnection-dvMVGg2stExz │
│ SecretArn: arn:aws:secretsmanager:us-east-1:840541460064:secret:events!connection/MyC… │
│ │
└──────────────────────────────────────────────────────────────────────────────────────────┘
List Summary:
Provider: aws
┌─────────────────────────────────────────────────────────────────────────────────────────┐
│ aws │
├──────────────────────────────┬──────────────────────────────────────────────────────────┤
│ CloudWatchEvents::Connection │ MyConnection-dvMVGg2stExz │
└──────────────────────────────┴──────────────────────────────────────────────────────────┘
1 resource, 1 type, 1 provider
Command "gc l -t CloudWatchEvents::Connection" executed in 4s, 100 MB