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

export interface Ec2TransitGatewayPeeringAttachmentAccepterArgs
  extends core.ResourceArgs {
  tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

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

  transitGatewayAttachmentId: string | core.StringOut;
}

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

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

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

  @core.attr(String, { computed: true })
  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 transitGatewayAttachmentId!: string | core.StringOut;

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

  constructor(
    name: string,
    args?: Ec2TransitGatewayPeeringAttachmentAccepterArgs
  ) {
    super(name, "aws_ec2_transit_gateway_peering_attachment_accepter", args);
  }

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