Skip to content

Creates a connection notification for a specified VPC endpoint or VPC endpoint service

Description

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.

Usage

ec2_create_vpc_endpoint_connection_notification(DryRun, ServiceId,
  VpcEndpointId, ConnectionNotificationArn, ConnectionEvents, ClientToken)

Arguments

  • DryRun

    Checks 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.

  • ServiceId

    The ID of the endpoint service.

  • VpcEndpointId

    The ID of the endpoint.

  • ConnectionNotificationArn

    [required] The ARN of the SNS topic for the notifications.

  • ConnectionEvents

    [required] The endpoint events for which to receive notifications. Valid values are Accept, Connect, Delete, and Reject.

  • ClientToken

    Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.

Value

A list with the following syntax:

list(
  ConnectionNotification = list(
    ConnectionNotificationId = "string",
    ServiceId = "string",
    VpcEndpointId = "string",
    ConnectionNotificationType = "Topic",
    ConnectionNotificationArn = "string",
    ConnectionEvents = list(
      "string"
    ),
    ConnectionNotificationState = "Enabled"|"Disabled",
    ServiceRegion = "string"
  ),
  ClientToken = "string"
)

Request syntax

svc$create_vpc_endpoint_connection_notification(
  DryRun = TRUE|FALSE,
  ServiceId = "string",
  VpcEndpointId = "string",
  ConnectionNotificationArn = "string",
  ConnectionEvents = list(
    "string"
  ),
  ClientToken = "string"
)