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

export interface FilterArgs extends core.SchemaArgs {
  name: string | core.StringOut;

  values: core.Array<string> | core.ArrayOut<core.StringOut>;
}

export class Filter extends core.Schema<FilterArgs> {
  @core.attr(String)
  public name!: string | core.StringOut;

  @core.attr(String, { kind: "array" })
  public values!: core.Array<string> | core.ArrayOut<core.StringOut>;
}

export interface DsEc2TransitGatewayConnectPeerArgs {
  filter?: core.Array<Filter> | core.ArrayOut<Filter>;

  tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  transitGatewayConnectPeerId?: string | core.StringOut;
}

export class DsEc2TransitGatewayConnectPeer extends core.Data<DsEc2TransitGatewayConnectPeerArgs> {
  @core.attr(String, { computed: true })
  public arn!: string | core.StringOut;

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

  @core.attr(Filter, { kind: "array" })
  public filter?: core.Array<Filter> | core.ArrayOut<Filter>;

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

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

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

  @core.attr(String, { computed: true, kind: "map" })
  public tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

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

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

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

  constructor(name: string, args?: DsEc2TransitGatewayConnectPeerArgs) {
    super(name, "aws_ec2_transit_gateway_connect_peer", args);
  }

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