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

export interface Ec2TransitGatewayPeeringAttachmentArgs
  extends core.ResourceArgs {
  peerAccountId?: string | core.StringOut;

  peerRegion: string | core.StringOut;

  peerTransitGatewayId: string | core.StringOut;

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

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

  transitGatewayId: string | core.StringOut;
}

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

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

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

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

  constructor(name: string, args?: Ec2TransitGatewayPeeringAttachmentArgs) {
    super(name, "aws_ec2_transit_gateway_peering_attachment", args);
  }

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