Skip to main content

vpc_endpoint_connection_notifications

Creates, updates, deletes or gets a vpc_endpoint_connection_notification resource or lists vpc_endpoint_connection_notifications in a region

Overview

Namevpc_endpoint_connection_notifications
TypeResource
DescriptionResource Type definition for AWS::EC2::VPCEndpointConnectionNotification
Idaws.ec2.vpc_endpoint_connection_notifications

Fields

NameDatatypeDescription
vpc_endpoint_connection_notification_idstringVPC Endpoint Connection ID generated by service
connection_eventsarrayThe endpoint events for which to receive notifications.
connection_notification_arnstringThe ARN of the SNS topic for the notifications.
service_idstringThe ID of the endpoint service.
vpc_endpoint_idstringThe ID of the endpoint.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTConnectionEvents, ConnectionNotificationArn, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all vpc_endpoint_connection_notifications in a region.

SELECT
region,
vpc_endpoint_connection_notification_id,
connection_events,
connection_notification_arn,
service_id,
vpc_endpoint_id
FROM aws.ec2.vpc_endpoint_connection_notifications
WHERE region = 'us-east-1';

Gets all properties from an individual vpc_endpoint_connection_notification.

SELECT
region,
vpc_endpoint_connection_notification_id,
connection_events,
connection_notification_arn,
service_id,
vpc_endpoint_id
FROM aws.ec2.vpc_endpoint_connection_notifications
WHERE region = 'us-east-1' AND data__Identifier = '<VPCEndpointConnectionNotificationId>';

INSERT example

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

/*+ create */
INSERT INTO aws.ec2.vpc_endpoint_connection_notifications (
ConnectionEvents,
ConnectionNotificationArn,
region
)
SELECT
'{{ ConnectionEvents }}',
'{{ ConnectionNotificationArn }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.ec2.vpc_endpoint_connection_notifications
WHERE data__Identifier = '<VPCEndpointConnectionNotificationId>'
AND region = 'us-east-1';

Permissions

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

Create

ec2:CreateVpcEndpointConnectionNotification

Read

ec2:DescribeVpcEndpointConnectionNotifications

Update

ec2:ModifyVpcEndpointConnectionNotification,
ec2:DescribeVpcEndpointConnectionNotifications

Delete

ec2:DeleteVpcEndpointConnectionNotifications

List

ec2:DescribeVpcEndpointConnectionNotifications