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

export interface ZoneAssociationArgs extends core.ResourceArgs {
  vpcId: string | core.StringOut;

  vpcRegion?: string | core.StringOut;

  zoneId: string | core.StringOut;
}

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

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

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

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

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

  constructor(name: string, args?: ZoneAssociationArgs) {
    super(name, "aws_route53_zone_association", args);
  }

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