// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS VPC */ export interface VpcIpamPoolCidrAllocationConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/vpc_ipam_pool_cidr_allocation.html#cidr VpcIpamPoolCidrAllocation#cidr} */ readonly cidr?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/vpc_ipam_pool_cidr_allocation.html#description VpcIpamPoolCidrAllocation#description} */ readonly description?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/vpc_ipam_pool_cidr_allocation.html#ipam_pool_id VpcIpamPoolCidrAllocation#ipam_pool_id} */ readonly ipamPoolId: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/vpc_ipam_pool_cidr_allocation.html#netmask_length VpcIpamPoolCidrAllocation#netmask_length} */ readonly netmaskLength?: number; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/vpc_ipam_pool_cidr_allocation.html aws_vpc_ipam_pool_cidr_allocation} */ export class VpcIpamPoolCidrAllocation extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_vpc_ipam_pool_cidr_allocation"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/vpc_ipam_pool_cidr_allocation.html aws_vpc_ipam_pool_cidr_allocation} Resource * * @param scope The scope in which to define this construct * @param id The scoped construct ID. Must be unique amongst siblings in the same scope * @param options VpcIpamPoolCidrAllocationConfig */ public constructor(scope: Construct, id: string, config: VpcIpamPoolCidrAllocationConfig) { super(scope, id, { terraformResourceType: 'aws_vpc_ipam_pool_cidr_allocation', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._cidr = config.cidr; this._description = config.description; this._ipamPoolId = config.ipamPoolId; this._netmaskLength = config.netmaskLength; } // ========== // ATTRIBUTES // ========== // cidr - computed: true, optional: true, required: false private _cidr?: string; public get cidr() { return this.getStringAttribute('cidr'); } public set cidr(value: string) { this._cidr = value; } public resetCidr() { this._cidr = undefined; } // Temporarily expose input value. Use with caution. public get cidrInput() { return this._cidr; } // description - computed: false, optional: true, required: false private _description?: string; public get description() { return this.getStringAttribute('description'); } public set description(value: string) { this._description = value; } public resetDescription() { this._description = undefined; } // Temporarily expose input value. Use with caution. public get descriptionInput() { return this._description; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // ipam_pool_allocation_id - computed: true, optional: false, required: false public get ipamPoolAllocationId() { return this.getStringAttribute('ipam_pool_allocation_id'); } // ipam_pool_id - computed: false, optional: false, required: true private _ipamPoolId?: string; public get ipamPoolId() { return this.getStringAttribute('ipam_pool_id'); } public set ipamPoolId(value: string) { this._ipamPoolId = value; } // Temporarily expose input value. Use with caution. public get ipamPoolIdInput() { return this._ipamPoolId; } // netmask_length - computed: false, optional: true, required: false private _netmaskLength?: number; public get netmaskLength() { return this.getNumberAttribute('netmask_length'); } public set netmaskLength(value: number) { this._netmaskLength = value; } public resetNetmaskLength() { this._netmaskLength = undefined; } // Temporarily expose input value. Use with caution. public get netmaskLengthInput() { return this._netmaskLength; } // resource_id - computed: true, optional: false, required: false public get resourceId() { return this.getStringAttribute('resource_id'); } // resource_owner - computed: true, optional: false, required: false public get resourceOwner() { return this.getStringAttribute('resource_owner'); } // resource_type - computed: true, optional: false, required: false public get resourceType() { return this.getStringAttribute('resource_type'); } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { cidr: cdktf.stringToTerraform(this._cidr), description: cdktf.stringToTerraform(this._description), ipam_pool_id: cdktf.stringToTerraform(this._ipamPoolId), netmask_length: cdktf.numberToTerraform(this._netmaskLength), }; } }