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

export interface OperatingRegionsArgs extends core.SchemaArgs {
  regionName: string | core.StringOut;
}

export class OperatingRegions extends core.Schema<OperatingRegionsArgs> {
  @core.attr(String)
  public regionName!: string | core.StringOut;
}

export interface MainArgs extends core.ResourceArgs {
  cascade?: boolean | core.BooleanOut;

  description?: string | core.StringOut;

  operatingRegions:
    | core.Array<OperatingRegions>
    | core.ArrayOut<OperatingRegions>;

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

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

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

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

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

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

  @core.attr(OperatingRegions, { kind: "array" })
  public operatingRegions!:
    | core.Array<OperatingRegions>
    | core.ArrayOut<OperatingRegions>;

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

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

  @core.attr(Number, { computed: true })
  public scopeCount!: number | core.NumberOut;

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

  constructor(name: string, args?: MainArgs) {
    super(name, "aws_vpc_ipam", args);
  }

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