CfnVPCCidrBlockPropsMixin
- class aws_cdk.cfn_property_mixins.aws_ec2.CfnVPCCidrBlockPropsMixin(props, *, strategy=None)
Bases:
MixinAssociates a CIDR block with your VPC.
A VPC must have an associated IPv4 CIDR block. You can optionally associate additional IPv4 CIDR blocks with a VPC. You can optionally associate an IPv6 CIDR block with a VPC. You can request an Amazon-provided IPv6 CIDR block from Amazon’s pool of IPv6 addresses, or an IPv6 CIDR block from an IPv6 address pool that you provisioned through bring your own IP addresses (BYOIP).
For more information, see VPC CIDR blocks in the Amazon VPC User Guide .
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpccidrblock.html
- CloudformationResource:
AWS::EC2::VPCCidrBlock
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_ec2 as ec2 import aws_cdk as cdk # merge_strategy: cdk.IMergeStrategy cfn_vPCCidr_block_props_mixin = ec2.CfnVPCCidrBlockPropsMixin(ec2.CfnVPCCidrBlockMixinProps( amazon_provided_ipv6_cidr_block=False, cidr_block="cidrBlock", ipv4_ipam_pool_id="ipv4IpamPoolId", ipv4_netmask_length=123, ipv6_cidr_block="ipv6CidrBlock", ipv6_cidr_block_network_border_group="ipv6CidrBlockNetworkBorderGroup", ipv6_ipam_pool_id="ipv6IpamPoolId", ipv6_netmask_length=123, ipv6_pool="ipv6Pool", vpc_id="vpcId" ), strategy=merge_strategy )
Create a mixin to apply properties to
AWS::EC2::VPCCidrBlock.- Parameters:
props (
Union[CfnVPCCidrBlockMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[IMergeStrategy]) – Strategy for merging nested properties. Default: - PropertyMergeStrategy.combine()
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
None
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['amazonProvidedIpv6CidrBlock', 'cidrBlock', 'ipv4IpamPoolId', 'ipv4NetmaskLength', 'ipv6CidrBlock', 'ipv6CidrBlockNetworkBorderGroup', 'ipv6IpamPoolId', 'ipv6NetmaskLength', 'ipv6Pool', 'vpcId']
Static Methods
- classmethod is_mixin(x)
Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.