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

export interface TransitGatewayRouteTableAttachmentArgs
  extends core.ResourceArgs {
  peeringId: string | core.StringOut;

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

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

  transitGatewayRouteTableArn: string | core.StringOut;
}

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

  @core.attr(Number, { computed: true })
  public attachmentPolicyRuleNumber!: number | core.NumberOut;

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

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

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

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

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

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

  constructor(name: string, args?: TransitGatewayRouteTableAttachmentArgs) {
    super(
      name,
      "aws_networkmanager_transit_gateway_route_table_attachment",
      args
    );
  }

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