import * as core from "@terrascript/core"; export interface EndpointConnectionNotificationArgs extends core.ResourceArgs { /** * (Required) One or more endpoint [events](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ * CreateVpcEndpointConnectionNotification.html#API_CreateVpcEndpointConnectionNotification_RequestPara * meters) for which to receive notifications. */ connectionEvents: core.Array | core.ArrayOut; /** * (Required) The ARN of the SNS topic for the notifications. */ connectionNotificationArn: string | core.StringOut; /** * (Optional) The ID of the VPC Endpoint to receive notifications for. */ vpcEndpointId?: string | core.StringOut; /** * (Optional) The ID of the VPC Endpoint Service to receive notifications for. */ vpcEndpointServiceId?: string | core.StringOut; } export class EndpointConnectionNotification extends core.Resource { /** * (Required) One or more endpoint [events](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ * CreateVpcEndpointConnectionNotification.html#API_CreateVpcEndpointConnectionNotification_RequestPara * meters) for which to receive notifications. */ @core.attr(String, { kind: "array" }) public connectionEvents!: core.Array | core.ArrayOut; /** * (Required) The ARN of the SNS topic for the notifications. */ @core.attr(String) public connectionNotificationArn!: string | core.StringOut; /** * The ID of the VPC connection notification. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * The type of notification. */ @core.attr(String, { computed: true }) public notificationType!: string | core.StringOut; /** * The state of the notification. */ @core.attr(String, { computed: true }) public state!: string | core.StringOut; /** * (Optional) The ID of the VPC Endpoint to receive notifications for. */ @core.attr(String) public vpcEndpointId?: string | core.StringOut; /** * (Optional) The ID of the VPC Endpoint Service to receive notifications for. */ @core.attr(String) public vpcEndpointServiceId?: string | core.StringOut; constructor(name: string, args?: EndpointConnectionNotificationArgs) { super(name, "aws_vpc_endpoint_connection_notification", args); } public override getNamespace(): string { return "aws_vpc"; } }