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

export interface VpcArgs extends core.SchemaArgs {
  vpcId: string | core.StringOut;

  vpcRegion?: string | core.StringOut;
}

export class Vpc extends core.Schema<VpcArgs> {
  @core.attr(String)
  public vpcId!: string | core.StringOut;

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

export interface ZoneArgs extends core.ResourceArgs {
  comment?: string | core.StringOut;

  delegationSetId?: string | core.StringOut;

  forceDestroy?: boolean | core.BooleanOut;

  name: string | core.StringOut;

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

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

  vpc?: core.Array<Vpc> | core.ArrayOut<Vpc>;
}

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

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

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

  @core.attr(Boolean)
  public forceDestroy?: boolean | core.BooleanOut;

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

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

  @core.attr(String, { computed: true, kind: "array" })
  public nameServers!: core.Array<string> | core.ArrayOut<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(Vpc, { kind: "array" })
  public vpc?: core.Array<Vpc> | core.ArrayOut<Vpc>;

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

  constructor(name: string, args?: ZoneArgs) {
    super(name, "aws_route53_zone", args);
  }

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