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

export interface PoolArgs extends core.ResourceArgs {
  addressFamily: string | core.StringOut;

  allocationDefaultNetmaskLength?: number | core.NumberOut;

  allocationMaxNetmaskLength?: number | core.NumberOut;

  allocationMinNetmaskLength?: number | core.NumberOut;

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

  autoImport?: boolean | core.BooleanOut;

  awsService?: string | core.StringOut;

  description?: string | core.StringOut;

  ipamScopeId: string | core.StringOut;

  locale?: string | core.StringOut;

  publiclyAdvertisable?: boolean | core.BooleanOut;

  sourceIpamPoolId?: string | core.StringOut;

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

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

export class Pool extends core.Resource<PoolArgs> {
  @core.attr(String)
  public addressFamily!: string | core.StringOut;

  @core.attr(Number)
  public allocationDefaultNetmaskLength?: number | core.NumberOut;

  @core.attr(Number)
  public allocationMaxNetmaskLength?: number | core.NumberOut;

  @core.attr(Number)
  public allocationMinNetmaskLength?: number | core.NumberOut;

  @core.attr(String, { kind: "map" })
  public allocationResourceTags?:
    | core.Map<string, string>
    | core.MapOut<core.StringOut>;

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

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

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

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

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

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

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

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

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

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

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

  @core.attr(String, { computed: true })
  public state!: string | 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>;

  constructor(name: string, args?: PoolArgs) {
    super(name, "aws_vpc_ipam_pool", args);
  }

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