Skip to main content

connections

Creates, updates, deletes or gets a connection resource or lists connections in a region

Overview

Nameconnections
TypeResource
DescriptionResource Type definition for AWS::Events::Connection.
Idaws.events.connections

Fields

NameDatatypeDescription
namestringName of the connection.
arnstringThe arn of the connection resource.
secret_arnstringThe arn of the secrets manager secret created in the customer account.
descriptionstringDescription of the connection.
authorization_typestring
auth_parametersobject
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTregion
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all connections in a region.

SELECT
region,
name,
arn,
secret_arn,
description,
authorization_type,
auth_parameters
FROM aws.events.connections
WHERE region = 'us-east-1';

Gets all properties from an individual connection.

SELECT
region,
name,
arn,
secret_arn,
description,
authorization_type,
auth_parameters
FROM aws.events.connections
WHERE region = 'us-east-1' AND data__Identifier = '<Name>';

INSERT example

Use the following StackQL query and manifest file to create a new connection resource, using stack-deploy.

/*+ create */
INSERT INTO aws.events.connections (
Name,
Description,
AuthorizationType,
AuthParameters,
region
)
SELECT
'{{ Name }}',
'{{ Description }}',
'{{ AuthorizationType }}',
'{{ AuthParameters }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.events.connections
WHERE data__Identifier = '<Name>'
AND region = 'us-east-1';

Permissions

To operate on the connections resource, the following permissions are required:

Create

events:CreateConnection,
events:DescribeConnection,
secretsmanager:CreateSecret,
secretsmanager:GetSecretValue,
secretsmanager:PutSecretValue,
iam:CreateServiceLinkedRole

Read

events:DescribeConnection

Update

events:UpdateConnection,
events:DescribeConnection,
secretsmanager:CreateSecret,
secretsmanager:UpdateSecret,
secretsmanager:GetSecretValue,
secretsmanager:PutSecretValue

Delete

events:DeleteConnection,
events:DescribeConnection

List

events:ListConnections