CfnVPCCidrBlockPropsMixin

class aws_cdk.mixins_preview.aws_ec2.mixins.CfnVPCCidrBlockPropsMixin(props, *, strategy=None)

Bases: Mixin

Associates 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.mixins_preview import mixins
from aws_cdk.mixins_preview.aws_ec2 import mixins as ec2_mixins

cfn_vPCCidr_block_props_mixin = ec2_mixins.CfnVPCCidrBlockPropsMixin(ec2_mixins.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=mixins.PropertyMergeStrategy.OVERRIDE
)

Create a mixin to apply properties to AWS::EC2::VPCCidrBlock.

Parameters:

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

IConstruct

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)

(experimental) Checks if x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

Stability:

experimental