Class CfnIPSet.IPSetDescriptorProperty.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.waf.CfnIPSet.IPSetDescriptorProperty.Jsii$Proxy
All Implemented Interfaces:
CfnIPSet.IPSetDescriptorProperty, software.amazon.jsii.JsiiSerializable
Enclosing interface:
CfnIPSet.IPSetDescriptorProperty

@Stability(Stable) @Internal public static final class CfnIPSet.IPSetDescriptorProperty.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnIPSet.IPSetDescriptorProperty
An implementation for CfnIPSet.IPSetDescriptorProperty
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
      Parameters:
      objRef - Reference to the JSII managed object.
    • Jsii$Proxy

      protected Jsii$Proxy(CfnIPSet.IPSetDescriptorProperty.Builder builder)
      Constructor that initializes the object based on literal property values passed by the CfnIPSet.IPSetDescriptorProperty.Builder.
  • Method Details

    • getType

      public final String getType()
      Description copied from interface: CfnIPSet.IPSetDescriptorProperty
      Specify IPV4 or IPV6 .
      Specified by:
      getType in interface CfnIPSet.IPSetDescriptorProperty
    • getValue

      public final String getValue()
      Description copied from interface: CfnIPSet.IPSetDescriptorProperty
      Specify an IPv4 address by using CIDR notation. For example:.

      • To configure AWS WAF to allow, block, or count requests that originated from the IP address 192.0.2.44, specify 192.0.2.44/32 .
      • To configure AWS WAF to allow, block, or count requests that originated from IP addresses from 192.0.2.0 to 192.0.2.255, specify 192.0.2.0/24 .

      For more information about CIDR notation, see the Wikipedia entry Classless Inter-Domain Routing .

      Specify an IPv6 address by using CIDR notation. For example:

      • To configure AWS WAF to allow, block, or count requests that originated from the IP address 1111:0000:0000:0000:0000:0000:0000:0111, specify 1111:0000:0000:0000:0000:0000:0000:0111/128 .
      • To configure AWS WAF to allow, block, or count requests that originated from IP addresses 1111:0000:0000:0000:0000:0000:0000:0000 to 1111:0000:0000:0000:ffff:ffff:ffff:ffff, specify 1111:0000:0000:0000:0000:0000:0000:0000/64 .
      Specified by:
      getValue in interface CfnIPSet.IPSetDescriptorProperty
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object