import * as core from "@terrascript/core"; export interface PoolCidrAllocationArgs extends core.ResourceArgs { /** * (Optional) The CIDR you want to assign to the pool. */ cidr?: string | core.StringOut; /** * (Optional) The description for the allocation. */ description?: string | core.StringOut; /** * (Optional) Exclude a particular CIDR range from being returned by the pool. */ disallowedCidrs?: core.Array | core.ArrayOut; /** * (Required) The ID of the pool to which you want to assign a CIDR. */ ipamPoolId: string | core.StringOut; /** * (Optional) The netmask length of the CIDR you would like to allocate to the IPAM pool. Valid Values: * 0-32`. */ netmaskLength?: number | core.NumberOut; } export class PoolCidrAllocation extends core.Resource { /** * (Optional) The CIDR you want to assign to the pool. */ @core.attr(String, { computed: true }) public cidr?: string | core.StringOut; /** * (Optional) The description for the allocation. */ @core.attr(String) public description?: string | core.StringOut; /** * (Optional) Exclude a particular CIDR range from being returned by the pool. */ @core.attr(String, { kind: "array" }) public disallowedCidrs?: core.Array | core.ArrayOut; /** * The ID of the allocation. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; @core.attr(String, { computed: true }) public ipamPoolAllocationId!: string | core.StringOut; /** * (Required) The ID of the pool to which you want to assign a CIDR. */ @core.attr(String) public ipamPoolId!: string | core.StringOut; /** * (Optional) The netmask length of the CIDR you would like to allocate to the IPAM pool. Valid Values: * 0-32`. */ @core.attr(Number) public netmaskLength?: number | core.NumberOut; /** * The ID of the resource. */ @core.attr(String, { computed: true }) public resourceId!: string | core.StringOut; /** * The owner of the resource. */ @core.attr(String, { computed: true }) public resourceOwner!: string | core.StringOut; /** * The type of the resource. */ @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"; } }