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

export interface TransitGatewayRegistrationArgs extends core.ResourceArgs {
  globalNetworkId: string | core.StringOut;

  transitGatewayArn: string | core.StringOut;
}

export class TransitGatewayRegistration extends core.Resource<TransitGatewayRegistrationArgs> {
  @core.attr(String)
  public globalNetworkId!: string | core.StringOut;

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

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

  constructor(name: string, args?: TransitGatewayRegistrationArgs) {
    super(name, "aws_networkmanager_transit_gateway_registration", args);
  }

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