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

export interface CustomerGatewayAssociationArgs extends core.ResourceArgs {
  customerGatewayArn: string | core.StringOut;

  deviceId: string | core.StringOut;

  globalNetworkId: string | core.StringOut;

  linkId?: string | core.StringOut;
}

export class CustomerGatewayAssociation extends core.Resource<CustomerGatewayAssociationArgs> {
  @core.attr(String)
  public customerGatewayArn!: string | core.StringOut;

  @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;

  constructor(name: string, args?: CustomerGatewayAssociationArgs) {
    super(name, "aws_networkmanager_customer_gateway_association", args);
  }

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