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

export interface Ec2TransitGatewayConnectPeerArgs extends core.ResourceArgs {
  bgpAsn?: string | core.StringOut;

  insideCidrBlocks: core.Array<string> | core.ArrayOut<core.StringOut>;

  peerAddress: string | core.StringOut;

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

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

  transitGatewayAddress?: string | core.StringOut;

  transitGatewayAttachmentId: string | core.StringOut;
}

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

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

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

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

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

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

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

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

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

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

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