Skip to content
v2.278.0

CfnVPCEndpointConnectionNotificationProps Struct ​

Properties for defining a CfnVPCEndpointConnectionNotification.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const cfnVPCEndpointConnectionNotificationProps: ec2.CfnVPCEndpointConnectionNotificationProps = {
  connectionEvents: ['connectionEvents'],
  connectionNotificationArn: 'connectionNotificationArn',

  // the properties below are optional
  serviceId: 'serviceId',
  vpcEndpointId: 'vpcEndpointId',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ec2 as ec2

cfn_vpc_endpoint_connection_notification_props = ec2.CfnVPCEndpointConnectionNotificationProps(
    connection_events=["connectionEvents"],
    connection_notification_arn="connectionNotificationArn",

    # the properties below are optional
    service_id="serviceId",
    vpc_endpoint_id="vpcEndpointId"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;

CfnVPCEndpointConnectionNotificationProps cfnVPCEndpointConnectionNotificationProps = CfnVPCEndpointConnectionNotificationProps.builder()
        .connectionEvents(List.of("connectionEvents"))
        .connectionNotificationArn("connectionNotificationArn")

        // the properties below are optional
        .serviceId("serviceId")
        .vpcEndpointId("vpcEndpointId")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;

var cfnVPCEndpointConnectionNotificationProps = new CfnVPCEndpointConnectionNotificationProps {
    ConnectionEvents = new [] { "connectionEvents" },
    ConnectionNotificationArn = "connectionNotificationArn",

    // the properties below are optional
    ServiceId = "serviceId",
    VpcEndpointId = "vpcEndpointId"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnVPCEndpointConnectionNotificationProps := &CfnVPCEndpointConnectionNotificationProps{
	ConnectionEvents: []*string{
		jsii.String("connectionEvents"),
	},
	ConnectionNotificationArn: jsii.String("connectionNotificationArn"),

	// the properties below are optional
	ServiceId: jsii.String("serviceId"),
	VpcEndpointId: jsii.String("vpcEndpointId"),
}

Properties ​

connectionEventsstring[]connection_eventstyping.List[str]connectionEventsList<String>ConnectionEventsstring[]ConnectionEvents*[]*string required #
The endpoint events for which to receive notifications.

Valid values are Accept , Connect , Delete , and Reject .

connectionNotificationArnstring | ITopicRefconnection_notification_arntyping.Union[str, ITopicRef]connectionNotificationArnStringConnectionNotificationArnstringConnectionNotificationArninterface{} required #
The ARN of the SNS topic for the notifications.
serviceIdoptionalstring | IVPCEndpointServiceRefservice_idoptionaltyping.Union[str, IVPCEndpointServiceRef]serviceIdoptionalStringServiceIdoptionalstringServiceIdoptionalinterface{} #
The ID of the endpoint service.
vpcEndpointIdoptionalstringvpc_endpoint_idoptionalstrvpcEndpointIdoptionalStringVpcEndpointIdoptionalstringVpcEndpointIdoptional*string #
The ID of the endpoint.