Class CfnNetworkAclEntryProps.Jsii$Proxy

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

@Stability(Stable) @Internal public static final class CfnNetworkAclEntryProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnNetworkAclEntryProps
An implementation for CfnNetworkAclEntryProps
  • 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(CfnNetworkAclEntryProps.Builder builder)
      Constructor that initializes the object based on literal property values passed by the CfnNetworkAclEntryProps.Builder.
  • Method Details

    • getNetworkAclId

      public final String getNetworkAclId()
      Description copied from interface: CfnNetworkAclEntryProps
      The ID of the ACL for the entry.
      Specified by:
      getNetworkAclId in interface CfnNetworkAclEntryProps
    • getProtocol

      public final Number getProtocol()
      Description copied from interface: CfnNetworkAclEntryProps
      The IP protocol that the rule applies to.

      You must specify -1 or a protocol number. You can specify -1 for all protocols.

      If you specify -1, all ports are opened and the PortRange property is ignored.

      Specified by:
      getProtocol in interface CfnNetworkAclEntryProps
    • getRuleAction

      public final String getRuleAction()
      Description copied from interface: CfnNetworkAclEntryProps
      Whether to allow or deny traffic that matches the rule;

      valid values are "allow" or "deny".

      Specified by:
      getRuleAction in interface CfnNetworkAclEntryProps
    • getRuleNumber

      public final Number getRuleNumber()
      Description copied from interface: CfnNetworkAclEntryProps
      Rule number to assign to the entry, such as 100.

      ACL entries are processed in ascending order by rule number. Entries can't use the same rule number unless one is an egress rule and the other is an ingress rule.

      Specified by:
      getRuleNumber in interface CfnNetworkAclEntryProps
    • getCidrBlock

      public final String getCidrBlock()
      Description copied from interface: CfnNetworkAclEntryProps
      The IPv4 CIDR range to allow or deny, in CIDR notation (for example, 172.16.0.0/24). Requirement is conditional: You must specify the CidrBlock or Ipv6CidrBlock property.
      Specified by:
      getCidrBlock in interface CfnNetworkAclEntryProps
    • getEgress

      public final Object getEgress()
      Description copied from interface: CfnNetworkAclEntryProps
      Whether this rule applies to egress traffic from the subnet ( true ) or ingress traffic to the subnet ( false ).

      By default, AWS CloudFormation specifies false .

      Specified by:
      getEgress in interface CfnNetworkAclEntryProps
    • getIcmp

      public final Object getIcmp()
      Description copied from interface: CfnNetworkAclEntryProps
      The Internet Control Message Protocol (ICMP) code and type.

      Requirement is conditional: Required if specifying 1 (ICMP) for the protocol parameter.

      Specified by:
      getIcmp in interface CfnNetworkAclEntryProps
    • getIpv6CidrBlock

      public final String getIpv6CidrBlock()
      Description copied from interface: CfnNetworkAclEntryProps
      The IPv6 network range to allow or deny, in CIDR notation.

      Requirement is conditional: You must specify the CidrBlock or Ipv6CidrBlock property.

      Specified by:
      getIpv6CidrBlock in interface CfnNetworkAclEntryProps
    • getPortRange

      public final Object getPortRange()
      Description copied from interface: CfnNetworkAclEntryProps
      The range of port numbers for the UDP/TCP protocol.

      Conditional required if specifying 6 (TCP) or 17 (UDP) for the protocol parameter.

      Specified by:
      getPortRange in interface CfnNetworkAclEntryProps
    • $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