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

export interface TransitGatewayPeeringArgs extends core.ResourceArgs {
  coreNetworkId: string | core.StringOut;

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

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

  transitGatewayArn: string | core.StringOut;
}

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

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

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

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

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

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

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

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

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

  constructor(name: string, args?: TransitGatewayPeeringArgs) {
    super(name, "aws_networkmanager_transit_gateway_peering", args);
  }

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