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.
Idawscc.events.connections

Fields

NameDatatypeDescription
namestringName of the connection.
arnstringThe arn of the connection resource.
arn_for_policystringThe arn of the connection resource to be used in IAM policies.
secret_arnstringThe arn of the secrets manager secret created in the customer account.
descriptionstringDescription of the connection.
authorization_typestring
auth_parametersobject
invocation_connectivity_parametersobjectThe private resource the HTTP request will be sent to.
kms_key_identifierstring
regionstringAWS region.

For more information, see AWS::Events::Connection.

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 properties from an individual connection.

SELECT
region,
name,
arn,
arn_for_policy,
secret_arn,
description,
authorization_type,
auth_parameters,
invocation_connectivity_parameters,
kms_key_identifier
FROM awscc.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 awscc.events.connections (
Name,
Description,
AuthorizationType,
AuthParameters,
InvocationConnectivityParameters,
KmsKeyIdentifier,
region
)
SELECT
'{{ Name }}',
'{{ Description }}',
'{{ AuthorizationType }}',
'{{ AuthParameters }}',
'{{ InvocationConnectivityParameters }}',
'{{ KmsKeyIdentifier }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM awscc.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,
kms:DescribeKey,
kms:GenerateDataKey

Read

events:DescribeConnection,
kms:Decrypt

Update

events:UpdateConnection,
events:DescribeConnection,
secretsmanager:CreateSecret,
secretsmanager:UpdateSecret,
secretsmanager:GetSecretValue,
secretsmanager:PutSecretValue,
kms:Decrypt,
kms:DescribeKey,
kms:Encrypt,
kms:GenerateDataKey

Delete

events:DeleteConnection,
events:DescribeConnection

List

events:ListConnections