Class CfnSubnetCidrBlock

All Implemented Interfaces:
IInspectable,, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-07-12T19:34:00.738Z") @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.


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 CfnSubnetCidrBlock cfnSubnetCidrBlock = CfnSubnetCidrBlock.Builder.create(this, "MyCfnSubnetCidrBlock")
         // the properties below are optional

See Also:
  • Field Details


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

    • CfnSubnetCidrBlock

      protected CfnSubnetCidrBlock( objRef)
    • CfnSubnetCidrBlock

      protected CfnSubnetCidrBlock( initializationMode)
    • CfnSubnetCidrBlock

      @Stability(Stable) public CfnSubnetCidrBlock(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnSubnetCidrBlockProps props)
      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
      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)
      renderProperties in class CfnResource
      props - This parameter is required.
    • getAttrId

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

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      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.