We recommend new projects start with resources from the AWS provider.
aws-native.ec2.VpcCidrBlock
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Resource Type definition for AWS::EC2::VPCCidrBlock
Create VpcCidrBlock Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VpcCidrBlock(name: string, args: VpcCidrBlockArgs, opts?: CustomResourceOptions);@overload
def VpcCidrBlock(resource_name: str,
                 args: VpcCidrBlockArgs,
                 opts: Optional[ResourceOptions] = None)
@overload
def VpcCidrBlock(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 vpc_id: Optional[str] = None,
                 amazon_provided_ipv6_cidr_block: Optional[bool] = None,
                 cidr_block: Optional[str] = None,
                 ipv4_ipam_pool_id: Optional[str] = None,
                 ipv4_netmask_length: Optional[int] = None,
                 ipv6_cidr_block: Optional[str] = None,
                 ipv6_cidr_block_network_border_group: Optional[str] = None,
                 ipv6_ipam_pool_id: Optional[str] = None,
                 ipv6_netmask_length: Optional[int] = None,
                 ipv6_pool: Optional[str] = None)func NewVpcCidrBlock(ctx *Context, name string, args VpcCidrBlockArgs, opts ...ResourceOption) (*VpcCidrBlock, error)public VpcCidrBlock(string name, VpcCidrBlockArgs args, CustomResourceOptions? opts = null)
public VpcCidrBlock(String name, VpcCidrBlockArgs args)
public VpcCidrBlock(String name, VpcCidrBlockArgs args, CustomResourceOptions options)
type: aws-native:ec2:VpcCidrBlock
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args VpcCidrBlockArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args VpcCidrBlockArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args VpcCidrBlockArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpcCidrBlockArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VpcCidrBlockArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
VpcCidrBlock Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The VpcCidrBlock resource accepts the following input properties:
- VpcId string
- The ID of the VPC.
- AmazonProvided boolIpv6Cidr Block 
- Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. You cannot specify the range of IPv6 addresses, or the size of the CIDR block.
- CidrBlock string
- An IPv4 CIDR block to associate with the VPC.
- Ipv4IpamPool stringId 
- The ID of the IPv4 IPAM pool to Associate a CIDR from to a VPC.
- Ipv4NetmaskLength int
- The netmask length of the IPv4 CIDR you would like to associate from an Amazon VPC IP Address Manager (IPAM) pool.
- Ipv6CidrBlock string
- An IPv6 CIDR block from the IPv6 address pool.
- Ipv6CidrBlock stringNetwork Border Group 
- The name of the location from which we advertise the IPV6 CIDR block.
- Ipv6IpamPool stringId 
- The ID of the IPv6 IPAM pool to Associate a CIDR from to a VPC.
- Ipv6NetmaskLength int
- The netmask length of the IPv6 CIDR you would like to associate from an Amazon VPC IP Address Manager (IPAM) pool.
- Ipv6Pool string
- The ID of an IPv6 address pool from which to allocate the IPv6 CIDR block.
- VpcId string
- The ID of the VPC.
- AmazonProvided boolIpv6Cidr Block 
- Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. You cannot specify the range of IPv6 addresses, or the size of the CIDR block.
- CidrBlock string
- An IPv4 CIDR block to associate with the VPC.
- Ipv4IpamPool stringId 
- The ID of the IPv4 IPAM pool to Associate a CIDR from to a VPC.
- Ipv4NetmaskLength int
- The netmask length of the IPv4 CIDR you would like to associate from an Amazon VPC IP Address Manager (IPAM) pool.
- Ipv6CidrBlock string
- An IPv6 CIDR block from the IPv6 address pool.
- Ipv6CidrBlock stringNetwork Border Group 
- The name of the location from which we advertise the IPV6 CIDR block.
- Ipv6IpamPool stringId 
- The ID of the IPv6 IPAM pool to Associate a CIDR from to a VPC.
- Ipv6NetmaskLength int
- The netmask length of the IPv6 CIDR you would like to associate from an Amazon VPC IP Address Manager (IPAM) pool.
- Ipv6Pool string
- The ID of an IPv6 address pool from which to allocate the IPv6 CIDR block.
- vpcId String
- The ID of the VPC.
- amazonProvided BooleanIpv6Cidr Block 
- Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. You cannot specify the range of IPv6 addresses, or the size of the CIDR block.
- cidrBlock String
- An IPv4 CIDR block to associate with the VPC.
- ipv4IpamPool StringId 
- The ID of the IPv4 IPAM pool to Associate a CIDR from to a VPC.
- ipv4NetmaskLength Integer
- The netmask length of the IPv4 CIDR you would like to associate from an Amazon VPC IP Address Manager (IPAM) pool.
- ipv6CidrBlock String
- An IPv6 CIDR block from the IPv6 address pool.
- ipv6CidrBlock StringNetwork Border Group 
- The name of the location from which we advertise the IPV6 CIDR block.
- ipv6IpamPool StringId 
- The ID of the IPv6 IPAM pool to Associate a CIDR from to a VPC.
- ipv6NetmaskLength Integer
- The netmask length of the IPv6 CIDR you would like to associate from an Amazon VPC IP Address Manager (IPAM) pool.
- ipv6Pool String
- The ID of an IPv6 address pool from which to allocate the IPv6 CIDR block.
- vpcId string
- The ID of the VPC.
- amazonProvided booleanIpv6Cidr Block 
- Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. You cannot specify the range of IPv6 addresses, or the size of the CIDR block.
- cidrBlock string
- An IPv4 CIDR block to associate with the VPC.
- ipv4IpamPool stringId 
- The ID of the IPv4 IPAM pool to Associate a CIDR from to a VPC.
- ipv4NetmaskLength number
- The netmask length of the IPv4 CIDR you would like to associate from an Amazon VPC IP Address Manager (IPAM) pool.
- ipv6CidrBlock string
- An IPv6 CIDR block from the IPv6 address pool.
- ipv6CidrBlock stringNetwork Border Group 
- The name of the location from which we advertise the IPV6 CIDR block.
- ipv6IpamPool stringId 
- The ID of the IPv6 IPAM pool to Associate a CIDR from to a VPC.
- ipv6NetmaskLength number
- The netmask length of the IPv6 CIDR you would like to associate from an Amazon VPC IP Address Manager (IPAM) pool.
- ipv6Pool string
- The ID of an IPv6 address pool from which to allocate the IPv6 CIDR block.
- vpc_id str
- The ID of the VPC.
- amazon_provided_ boolipv6_ cidr_ block 
- Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. You cannot specify the range of IPv6 addresses, or the size of the CIDR block.
- cidr_block str
- An IPv4 CIDR block to associate with the VPC.
- ipv4_ipam_ strpool_ id 
- The ID of the IPv4 IPAM pool to Associate a CIDR from to a VPC.
- ipv4_netmask_ intlength 
- The netmask length of the IPv4 CIDR you would like to associate from an Amazon VPC IP Address Manager (IPAM) pool.
- ipv6_cidr_ strblock 
- An IPv6 CIDR block from the IPv6 address pool.
- ipv6_cidr_ strblock_ network_ border_ group 
- The name of the location from which we advertise the IPV6 CIDR block.
- ipv6_ipam_ strpool_ id 
- The ID of the IPv6 IPAM pool to Associate a CIDR from to a VPC.
- ipv6_netmask_ intlength 
- The netmask length of the IPv6 CIDR you would like to associate from an Amazon VPC IP Address Manager (IPAM) pool.
- ipv6_pool str
- The ID of an IPv6 address pool from which to allocate the IPv6 CIDR block.
- vpcId String
- The ID of the VPC.
- amazonProvided BooleanIpv6Cidr Block 
- Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. You cannot specify the range of IPv6 addresses, or the size of the CIDR block.
- cidrBlock String
- An IPv4 CIDR block to associate with the VPC.
- ipv4IpamPool StringId 
- The ID of the IPv4 IPAM pool to Associate a CIDR from to a VPC.
- ipv4NetmaskLength Number
- The netmask length of the IPv4 CIDR you would like to associate from an Amazon VPC IP Address Manager (IPAM) pool.
- ipv6CidrBlock String
- An IPv6 CIDR block from the IPv6 address pool.
- ipv6CidrBlock StringNetwork Border Group 
- The name of the location from which we advertise the IPV6 CIDR block.
- ipv6IpamPool StringId 
- The ID of the IPv6 IPAM pool to Associate a CIDR from to a VPC.
- ipv6NetmaskLength Number
- The netmask length of the IPv6 CIDR you would like to associate from an Amazon VPC IP Address Manager (IPAM) pool.
- ipv6Pool String
- The ID of an IPv6 address pool from which to allocate the IPv6 CIDR block.
Outputs
All input properties are implicitly available as output properties. Additionally, the VpcCidrBlock resource produces the following output properties:
- AwsId string
- The Id of the VPC associated CIDR Block.
- Id string
- The provider-assigned unique ID for this managed resource.
- IpSource string
- The IP Source of an IPv6 VPC CIDR Block.
- Ipv6AddressAttribute string
- The value denoting whether an IPv6 VPC CIDR Block is public or private.
- AwsId string
- The Id of the VPC associated CIDR Block.
- Id string
- The provider-assigned unique ID for this managed resource.
- IpSource string
- The IP Source of an IPv6 VPC CIDR Block.
- Ipv6AddressAttribute string
- The value denoting whether an IPv6 VPC CIDR Block is public or private.
- awsId String
- The Id of the VPC associated CIDR Block.
- id String
- The provider-assigned unique ID for this managed resource.
- ipSource String
- The IP Source of an IPv6 VPC CIDR Block.
- ipv6AddressAttribute String
- The value denoting whether an IPv6 VPC CIDR Block is public or private.
- awsId string
- The Id of the VPC associated CIDR Block.
- id string
- The provider-assigned unique ID for this managed resource.
- ipSource string
- The IP Source of an IPv6 VPC CIDR Block.
- ipv6AddressAttribute string
- The value denoting whether an IPv6 VPC CIDR Block is public or private.
- aws_id str
- The Id of the VPC associated CIDR Block.
- id str
- The provider-assigned unique ID for this managed resource.
- ip_source str
- The IP Source of an IPv6 VPC CIDR Block.
- ipv6_address_ strattribute 
- The value denoting whether an IPv6 VPC CIDR Block is public or private.
- awsId String
- The Id of the VPC associated CIDR Block.
- id String
- The provider-assigned unique ID for this managed resource.
- ipSource String
- The IP Source of an IPv6 VPC CIDR Block.
- ipv6AddressAttribute String
- The value denoting whether an IPv6 VPC CIDR Block is public or private.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.