Class CfnSubnetCidrBlock

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)", date="2024-09-18T22:16:55.246Z") @Stability(Stable) public class CfnSubnetCidrBlock extends CfnResource implements IInspectable
Associates a CIDR block with your subnet.

You can associate a single IPv6 CIDR block with your subnet.

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.*;
 CfnSubnetCidrBlock cfnSubnetCidrBlock = CfnSubnetCidrBlock.Builder.create(this, "MyCfnSubnetCidrBlock")
         .subnetId("subnetId")
         // the properties below are optional
         .ipv6CidrBlock("ipv6CidrBlock")
         .ipv6IpamPoolId("ipv6IpamPoolId")
         .ipv6NetmaskLength(123)
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnSubnetCidrBlock

      protected CfnSubnetCidrBlock(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnSubnetCidrBlock

      protected CfnSubnetCidrBlock(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnSubnetCidrBlock

      @Stability(Stable) public CfnSubnetCidrBlock(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnSubnetCidrBlockProps props)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties. This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrId

      @Stability(Stable) @NotNull public String getAttrId()
      The ID of the association.
    • getAttrIpSource

      @Stability(Stable) @NotNull public String getAttrIpSource()
      The source that allocated the IP address space.

      byoip or amazon indicates public IP address space allocated by Amazon or space that you have allocated with Bring your own IP (BYOIP). none indicates private space.

    • getAttrIpv6AddressAttribute

      @Stability(Stable) @NotNull public String getAttrIpv6AddressAttribute()
      Public IPv6 addresses are those advertised on the internet from AWS .

      Private IP addresses are not and cannot be advertised on the internet from AWS .

    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getSubnetId

      @Stability(Stable) @NotNull public String getSubnetId()
      The ID of the subnet.
    • setSubnetId

      @Stability(Stable) public void setSubnetId(@NotNull String value)
      The ID of the subnet.
    • getIpv6CidrBlock

      @Stability(Stable) @Nullable public String getIpv6CidrBlock()
      The IPv6 network range for the subnet, in CIDR notation.
    • setIpv6CidrBlock

      @Stability(Stable) public void setIpv6CidrBlock(@Nullable String value)
      The IPv6 network range for the subnet, in CIDR notation.
    • getIpv6IpamPoolId

      @Stability(Stable) @Nullable public String getIpv6IpamPoolId()
      An IPv6 IPAM pool ID for the subnet.
    • setIpv6IpamPoolId

      @Stability(Stable) public void setIpv6IpamPoolId(@Nullable String value)
      An IPv6 IPAM pool ID for the subnet.
    • getIpv6NetmaskLength

      @Stability(Stable) @Nullable public Number getIpv6NetmaskLength()
      An IPv6 netmask length for the subnet.
    • setIpv6NetmaskLength

      @Stability(Stable) public void setIpv6NetmaskLength(@Nullable Number value)
      An IPv6 netmask length for the subnet.