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

export interface PoolCidrAllocationArgs extends core.ResourceArgs {
  cidr?: string | core.StringOut;

  description?: string | core.StringOut;

  disallowedCidrs?: core.Array<string> | core.ArrayOut<core.StringOut>;

  ipamPoolId: string | core.StringOut;

  netmaskLength?: number | core.NumberOut;
}

export class PoolCidrAllocation extends core.Resource<PoolCidrAllocationArgs> {
  @core.attr(String, { computed: true })
  public cidr?: string | core.StringOut;

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

  @core.attr(String, { kind: "array" })
  public disallowedCidrs?: core.Array<string> | core.ArrayOut<core.StringOut>;

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

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

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

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

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

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

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

  constructor(name: string, args?: PoolCidrAllocationArgs) {
    super(name, "aws_vpc_ipam_pool_cidr_allocation", args);
  }

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