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

export interface PreviewNextCidrArgs extends core.ResourceArgs {
  disallowedCidrs?: core.Array<string> | core.ArrayOut<core.StringOut>;

  ipamPoolId: string | core.StringOut;

  netmaskLength?: number | core.NumberOut;
}

export class PreviewNextCidr extends core.Resource<PreviewNextCidrArgs> {
  @core.attr(String, { computed: true })
  public cidr!: 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)
  public ipamPoolId!: string | core.StringOut;

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

  constructor(name: string, args?: PreviewNextCidrArgs) {
    super(name, "aws_vpc_ipam_preview_next_cidr", args);
  }

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