# CfnVPCEndpointConnectionNotificationProps

Properties for defining a `CfnVPCEndpointConnectionNotification`.

Used as props by: [CfnVPCEndpointConnectionNotification](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.CfnVPCEndpointConnectionNotification.html)

- Source: Generated at build time
- Type last changed: v2.227.0 · 21 Nov 2025

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `connectionEvents`: string[] (required) — The endpoint events for which to receive notifications.

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

- `connectionNotificationArn`: string | [ITopicRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_sns.ITopicRef.html) (required) — The ARN of the SNS topic for the notifications.

- `serviceId`: string | [IVPCEndpointServiceRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_ec2.IVPCEndpointServiceRef.html) — The ID of the endpoint service.

- `vpcEndpointId`: string — The ID of the endpoint.
