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

export interface TransitGatewayConnectPeerAssociationArgs
  extends core.ResourceArgs {
  deviceId: string | core.StringOut;

  globalNetworkId: string | core.StringOut;

  linkId?: string | core.StringOut;

  transitGatewayConnectPeerArn: string | core.StringOut;
}

export class TransitGatewayConnectPeerAssociation extends core.Resource<TransitGatewayConnectPeerAssociationArgs> {
  @core.attr(String)
  public deviceId!: string | core.StringOut;

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

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

  @core.attr(String)
  public linkId?: string | core.StringOut;

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

  constructor(name: string, args?: TransitGatewayConnectPeerAssociationArgs) {
    super(
      name,
      "aws_networkmanager_transit_gateway_connect_peer_association",
      args
    );
  }

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