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

export interface Ec2ClientVpnNetworkAssociationArgs extends core.ResourceArgs {
  clientVpnEndpointId: string | core.StringOut;

  securityGroups?: core.Array<string> | core.ArrayOut<core.StringOut>;

  subnetId: string | core.StringOut;
}

export class Ec2ClientVpnNetworkAssociation extends core.Resource<Ec2ClientVpnNetworkAssociationArgs> {
  @core.attr(String, { computed: true })
  public associationId!: string | core.StringOut;

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

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

  @core.attr(String, { computed: true, kind: "array" })
  public securityGroups?: core.Array<string> | core.ArrayOut<core.StringOut>;

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

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

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

  constructor(name: string, args?: Ec2ClientVpnNetworkAssociationArgs) {
    super(name, "aws_ec2_client_vpn_network_association", args);
  }

  public override getNamespace(): string {
    return "aws_vpn";
  }
}
