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
Name | vpc_endpoint_connection_notifications |
Type | Resource |
Description | Resource Type definition for AWS::EC2::VPCEndpointConnectionNotification |
Id | aws.ec2.vpc_endpoint_connection_notifications |
Fields
Name | Datatype | Description |
---|---|---|
vpc_endpoint_connection_notification_id | string | VPC Endpoint Connection ID generated by service |
connection_events | array | The endpoint events for which to receive notifications. |
connection_notification_arn | string | The ARN of the SNS topic for the notifications. |
service_id | string | The ID of the endpoint service. |
vpc_endpoint_id | string | The ID of the endpoint. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | ConnectionEvents, ConnectionNotificationArn, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.ec2.vpc_endpoint_connection_notifications (
ConnectionEvents,
ConnectionNotificationArn,
region
)
SELECT
'{{ ConnectionEvents }}',
'{{ ConnectionNotificationArn }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.ec2.vpc_endpoint_connection_notifications (
ConnectionEvents,
ConnectionNotificationArn,
ServiceId,
VPCEndpointId,
region
)
SELECT
'{{ ConnectionEvents }}',
'{{ ConnectionNotificationArn }}',
'{{ ServiceId }}',
'{{ VPCEndpointId }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: vpc_endpoint_connection_notification
props:
- name: ConnectionEvents
value:
- '{{ ConnectionEvents[0] }}'
- name: ConnectionNotificationArn
value: '{{ ConnectionNotificationArn }}'
- name: ServiceId
value: '{{ ServiceId }}'
- name: VPCEndpointId
value: '{{ VPCEndpointId }}'
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