import * as core from "@terrascript/core";

export interface EndpointConnectionNotificationArgs extends core.ResourceArgs {
  connectionEvents: core.Array<string> | core.ArrayOut<core.StringOut>;

  connectionNotificationArn: string | core.StringOut;

  vpcEndpointId?: string | core.StringOut;

  vpcEndpointServiceId?: string | core.StringOut;
}

export class EndpointConnectionNotification extends core.Resource<EndpointConnectionNotificationArgs> {
  @core.attr(String, { kind: "array" })
  public connectionEvents!: core.Array<string> | core.ArrayOut<core.StringOut>;

  @core.attr(String)
  public connectionNotificationArn!: string | core.StringOut;

  @core.attr(String, { computed: true })
  public id!: string | core.StringOut;

  @core.attr(String, { computed: true })
  public notificationType!: string | core.StringOut;

  @core.attr(String, { computed: true })
  public state!: string | core.StringOut;

  @core.attr(String)
  public vpcEndpointId?: string | core.StringOut;

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