import * as core from "@terrascript/core"; export interface Ipv4CidrBlockAssociationArgs extends core.ResourceArgs { /** * (Optional) The IPv4 CIDR block for the VPC. CIDR can be explicitly set or it can be derived from IPA * M using `ipv4_netmask_length`. */ cidrBlock?: string | core.StringOut; /** * (Optional) The ID of an IPv4 IPAM pool you want to use for allocating this VPC's CIDR. IPAM is a VPC * feature that you can use to automate your IP address management workflows including assigning, trac * king, troubleshooting, and auditing IP addresses across AWS Regions and accounts. Using IPAM you can * monitor IP address usage throughout your AWS Organization. */ ipv4IpamPoolId?: string | core.StringOut; /** * (Optional) The netmask length of the IPv4 CIDR you want to allocate to this VPC. Requires specifying * a `ipv4_ipam_pool_id`. */ ipv4NetmaskLength?: number | core.NumberOut; /** * (Required) The ID of the VPC to make the association with. */ vpcId: string | core.StringOut; } export class Ipv4CidrBlockAssociation extends core.Resource { /** * (Optional) The IPv4 CIDR block for the VPC. CIDR can be explicitly set or it can be derived from IPA * M using `ipv4_netmask_length`. */ @core.attr(String, { computed: true }) public cidrBlock?: string | core.StringOut; /** * The ID of the VPC CIDR association */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) The ID of an IPv4 IPAM pool you want to use for allocating this VPC's CIDR. IPAM is a VPC * feature that you can use to automate your IP address management workflows including assigning, trac * king, troubleshooting, and auditing IP addresses across AWS Regions and accounts. Using IPAM you can * monitor IP address usage throughout your AWS Organization. */ @core.attr(String) public ipv4IpamPoolId?: string | core.StringOut; /** * (Optional) The netmask length of the IPv4 CIDR you want to allocate to this VPC. Requires specifying * a `ipv4_ipam_pool_id`. */ @core.attr(Number) public ipv4NetmaskLength?: number | core.NumberOut; /** * (Required) The ID of the VPC to make the association with. */ @core.attr(String) public vpcId!: string | core.StringOut; constructor(name: string, args?: Ipv4CidrBlockAssociationArgs) { super(name, "aws_vpc_ipv4_cidr_block_association", args); } public override getNamespace(): string { return "aws_vpc"; } }