Skip to main content

vpc_endpoint_connection_notifications

Creates, updates, deletes, gets or lists a vpc_endpoint_connection_notifications resource.

Overview

Namevpc_endpoint_connection_notifications
TypeResource
Idaws.ec2.vpc_endpoint_connection_notifications

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
connection_eventsstringThe events for the notification. Valid values are Accept, Connect, Delete, and Reject.
connection_notification_arnstringThe ARN of the SNS topic for the notification.
connection_notification_idstringThe ID of the notification.
connection_notification_statestringThe state of the notification.
connection_notification_typestringThe type of notification.
service_idstringThe ID of the endpoint service.
service_regionstringThe Region for the endpoint service.
vpc_endpoint_idstringThe ID of the VPC endpoint.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_vpc_endpoint_connection_notificationsselectregionDryRun, ConnectionNotificationId, Filter, MaxResults, NextTokenDescribes the connection notifications for VPC endpoints and VPC endpoint services.
create_vpc_endpoint_connection_notificationinsertConnectionNotificationArn, ConnectionEvents, regionDryRun, ServiceId, VpcEndpointId, ClientTokenCreates a connection notification for a specified VPC endpoint or VPC endpoint service. A connection notification notifies you of specific endpoint events. You must create an SNS topic to receive notifications. For more information, see Creating an Amazon SNS topic in the Amazon SNS Developer Guide. You can create a connection notification for interface endpoints only.
modify_vpc_endpoint_connection_notificationupdateConnectionNotificationId, regionDryRun, ConnectionNotificationArn, ConnectionEventsModifies a connection notification for VPC endpoint or VPC endpoint service. You can change the SNS topic for the notification, or the events for which to be notified.
delete_vpc_endpoint_connection_notificationsdeleteConnectionNotificationId, regionDryRunDeletes the specified VPC endpoint connection notifications.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
ConnectionEventsarrayThe endpoint events for which to receive notifications. Valid values are Accept, Connect, Delete, and Reject.
ConnectionNotificationArnstringThe ARN of the SNS topic for the notifications.
ConnectionNotificationIdarrayThe IDs of the notifications.
regionstringAWS region (default: us-east-1)
ClientTokenstringUnique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.
ConnectionEventsarrayThe events for the endpoint. Valid values are Accept, Connect, Delete, and Reject.
ConnectionNotificationArnstringThe ARN for the SNS topic for the notification.
ConnectionNotificationIdstringThe ID of the notification.
DryRunbooleanChecks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
FilterarrayThe filters. connection-notification-arn - The ARN of the SNS topic for the notification. connection-notification-id - The ID of the notification. connection-notification-state - The state of the notification (Enabled | Disabled). connection-notification-type - The type of notification (Topic). service-id - The ID of the endpoint service. vpc-endpoint-id - The ID of the VPC endpoint.
MaxResultsintegerThe maximum number of results to return in a single call. To retrieve the remaining results, make another request with the returned NextToken value.
NextTokenstringThe token to request the next page of results.
ServiceIdstringThe ID of the endpoint service.
VpcEndpointIdstringThe ID of the endpoint.

SELECT examples

Describes the connection notifications for VPC endpoints and VPC endpoint services.

SELECT
connection_events,
connection_notification_arn,
connection_notification_id,
connection_notification_state,
connection_notification_type,
service_id,
service_region,
vpc_endpoint_id
FROM aws.ec2.vpc_endpoint_connection_notifications
WHERE region = '{{ region }}' -- required
AND DryRun = '{{ DryRun }}'
AND ConnectionNotificationId = '{{ ConnectionNotificationId }}'
AND Filter = '{{ Filter }}'
AND MaxResults = '{{ MaxResults }}'
AND NextToken = '{{ NextToken }}'
;

INSERT examples

Creates a connection notification for a specified VPC endpoint or VPC endpoint service. A connection notification notifies you of specific endpoint events. You must create an SNS topic to receive notifications. For more information, see Creating an Amazon SNS topic in the Amazon SNS Developer Guide. You can create a connection notification for interface endpoints only.

INSERT INTO aws.ec2.vpc_endpoint_connection_notifications (
ConnectionNotificationArn,
ConnectionEvents,
region,
DryRun,
ServiceId,
VpcEndpointId,
ClientToken
)
SELECT
'{{ ConnectionNotificationArn }}',
'{{ ConnectionEvents }}',
'{{ region }}',
'{{ DryRun }}',
'{{ ServiceId }}',
'{{ VpcEndpointId }}',
'{{ ClientToken }}'
RETURNING
client_token,
connection_notification
;

UPDATE examples

Modifies a connection notification for VPC endpoint or VPC endpoint service. You can change the SNS topic for the notification, or the events for which to be notified.

UPDATE aws.ec2.vpc_endpoint_connection_notifications
SET
-- No updatable properties
WHERE
ConnectionNotificationId = '{{ ConnectionNotificationId }}' --required
AND region = '{{ region }}' --required
AND DryRun = {{ DryRun}}
AND ConnectionNotificationArn = '{{ ConnectionNotificationArn}}'
AND ConnectionEvents = '{{ ConnectionEvents}}'
RETURNING
return_value;

DELETE examples

Deletes the specified VPC endpoint connection notifications.

DELETE FROM aws.ec2.vpc_endpoint_connection_notifications
WHERE ConnectionNotificationId = '{{ ConnectionNotificationId }}' --required
AND region = '{{ region }}' --required
AND DryRun = '{{ DryRun }}'
;