Class CfnVPCCidrBlock
- All Implemented Interfaces:
IConstruct
,IDependable
,IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
AWS::EC2::VPCCidrBlock
.
Associates a CIDR block with your VPC. You can only associate a single IPv6 CIDR block with your VPC. The IPv6 CIDR block size is fixed at /56.
For more information about associating CIDR blocks with your VPC and applicable restrictions, see VPC and Subnet Sizing in the Amazon VPC User Guide .
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.ec2.*; CfnVPCCidrBlock cfnVPCCidrBlock = CfnVPCCidrBlock.Builder.create(this, "MyCfnVPCCidrBlock") .vpcId("vpcId") // the properties below are optional .amazonProvidedIpv6CidrBlock(false) .cidrBlock("cidrBlock") .ipv4IpamPoolId("ipv4IpamPoolId") .ipv4NetmaskLength(123) .ipv6CidrBlock("ipv6CidrBlock") .ipv6IpamPoolId("ipv6IpamPoolId") .ipv6NetmaskLength(123) .ipv6Pool("ipv6Pool") .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionCfnVPCCidrBlock
(Construct scope, String id, CfnVPCCidrBlockProps props) Create a newAWS::EC2::VPCCidrBlock
.protected
CfnVPCCidrBlock
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnVPCCidrBlock
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionRequests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC.An IPv4 CIDR block to associate with the VPC.Associate a CIDR allocated from an IPv4 IPAM pool to a VPC.The netmask length of the IPv4 CIDR you would like to associate from an Amazon VPC IP Address Manager (IPAM) pool.An IPv6 CIDR block from the IPv6 address pool.Associates a CIDR allocated from an IPv6 IPAM pool to a VPC.The netmask length of the IPv6 CIDR you would like to associate from an Amazon VPC IP Address Manager (IPAM) pool.The ID of an IPv6 address pool from which to allocate the IPv6 CIDR block.getVpcId()
The ID of the VPC.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC.void
Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC.void
setCidrBlock
(String value) An IPv4 CIDR block to associate with the VPC.void
setIpv4IpamPoolId
(String value) Associate a CIDR allocated from an IPv4 IPAM pool to a VPC.void
setIpv4NetmaskLength
(Number value) The netmask length of the IPv4 CIDR you would like to associate from an Amazon VPC IP Address Manager (IPAM) pool.void
setIpv6CidrBlock
(String value) An IPv6 CIDR block from the IPv6 address pool.void
setIpv6IpamPoolId
(String value) Associates a CIDR allocated from an IPv6 IPAM pool to a VPC.void
setIpv6NetmaskLength
(Number value) The netmask length of the IPv6 CIDR you would like to associate from an Amazon VPC IP Address Manager (IPAM) pool.void
setIpv6Pool
(String value) The ID of an IPv6 address pool from which to allocate the IPv6 CIDR block.void
The ID of the VPC.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnVPCCidrBlock
protected CfnVPCCidrBlock(software.amazon.jsii.JsiiObjectRef objRef) -
CfnVPCCidrBlock
protected CfnVPCCidrBlock(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnVPCCidrBlock
@Stability(Stable) public CfnVPCCidrBlock(@NotNull Construct scope, @NotNull String id, @NotNull CfnVPCCidrBlockProps props) Create a newAWS::EC2::VPCCidrBlock
.- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
props
-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getVpcId
The ID of the VPC. -
setVpcId
The ID of the VPC. -
getAmazonProvidedIpv6CidrBlock
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.
-
setAmazonProvidedIpv6CidrBlock
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.
-
setAmazonProvidedIpv6CidrBlock
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.
-
getCidrBlock
An IPv4 CIDR block to associate with the VPC. -
setCidrBlock
An IPv4 CIDR block to associate with the VPC. -
getIpv4IpamPoolId
Associate a CIDR allocated from an IPv4 IPAM pool to a VPC.For more information about Amazon VPC IP Address Manager (IPAM), see What is IPAM? in the Amazon VPC IPAM User Guide .
-
setIpv4IpamPoolId
Associate a CIDR allocated from an IPv4 IPAM pool to a VPC.For more information about Amazon VPC IP Address Manager (IPAM), see What is IPAM? in the Amazon VPC IPAM User Guide .
-
getIpv4NetmaskLength
The netmask length of the IPv4 CIDR you would like to associate from an Amazon VPC IP Address Manager (IPAM) pool.For more information about IPAM, see What is IPAM? in the Amazon VPC IPAM User Guide .
-
setIpv4NetmaskLength
The netmask length of the IPv4 CIDR you would like to associate from an Amazon VPC IP Address Manager (IPAM) pool.For more information about IPAM, see What is IPAM? in the Amazon VPC IPAM User Guide .
-
getIpv6CidrBlock
An IPv6 CIDR block from the IPv6 address pool. You must also specifyIpv6Pool
in the request.To let Amazon choose the IPv6 CIDR block for you, omit this parameter.
-
setIpv6CidrBlock
An IPv6 CIDR block from the IPv6 address pool. You must also specifyIpv6Pool
in the request.To let Amazon choose the IPv6 CIDR block for you, omit this parameter.
-
getIpv6IpamPoolId
Associates a CIDR allocated from an IPv6 IPAM pool to a VPC.For more information about Amazon VPC IP Address Manager (IPAM), see What is IPAM? in the Amazon VPC IPAM User Guide .
-
setIpv6IpamPoolId
Associates a CIDR allocated from an IPv6 IPAM pool to a VPC.For more information about Amazon VPC IP Address Manager (IPAM), see What is IPAM? in the Amazon VPC IPAM User Guide .
-
getIpv6NetmaskLength
The netmask length of the IPv6 CIDR you would like to associate from an Amazon VPC IP Address Manager (IPAM) pool.For more information about IPAM, see What is IPAM? in the Amazon VPC IPAM User Guide .
-
setIpv6NetmaskLength
The netmask length of the IPv6 CIDR you would like to associate from an Amazon VPC IP Address Manager (IPAM) pool.For more information about IPAM, see What is IPAM? in the Amazon VPC IPAM User Guide .
-
getIpv6Pool
The ID of an IPv6 address pool from which to allocate the IPv6 CIDR block. -
setIpv6Pool
The ID of an IPv6 address pool from which to allocate the IPv6 CIDR block.
-