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

export interface DxGatewayAssociationArgs extends core.ResourceArgs {
  allowedPrefixes?: core.Array<string> | core.ArrayOut<core.StringOut>;

  associatedGatewayId?: string | core.StringOut;

  associatedGatewayOwnerAccountId?: string | core.StringOut;

  dxGatewayId: string | core.StringOut;

  proposalId?: string | core.StringOut;

  vpnGatewayId?: string | core.StringOut;
}

export class DxGatewayAssociation extends core.Resource<DxGatewayAssociationArgs> {
  @core.attr(String, { computed: true, kind: "array" })
  public allowedPrefixes?: core.Array<string> | core.ArrayOut<core.StringOut>;

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

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

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

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

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

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

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

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

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

  constructor(name: string, args?: DxGatewayAssociationArgs) {
    super(name, "aws_dx_gateway_association", args);
  }

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