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

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

  associatedGatewayId: string | core.StringOut;

  dxGatewayId: string | core.StringOut;

  dxGatewayOwnerAccountId: string | core.StringOut;
}

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

  @core.attr(String)
  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)
  public dxGatewayId!: string | core.StringOut;

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

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

  constructor(name: string, args?: DxGatewayAssociationProposalArgs) {
    super(name, "aws_dx_gateway_association_proposal", args);
  }

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