Class SecurityGroupRule

    • Method Detail

      • getDirection

        public String getDirection()
        Gets the direction. The direction of traffic to enforce.
        Returns:
        the direction
      • getHref

        public String getHref()
        Gets the href. The URL for this security group rule.
        Returns:
        the href
      • getId

        public String getId()
        Gets the id. The unique identifier for this security group rule.
        Returns:
        the id
      • getIpVersion

        public String getIpVersion()
        Gets the ipVersion. The IP version to enforce. The format of `remote.address` or `remote.cidr_block` must match this property, if they are used. Alternatively, if `remote` references a security group, then this rule only applies to IP addresses (network interfaces) in that group matching this IP version.
        Returns:
        the ipVersion
      • getProtocol

        public String getProtocol()
        Gets the protocol. The protocol to enforce.
        Returns:
        the protocol
      • getRemote

        public SecurityGroupRuleRemote getRemote()
        Gets the remote. The remote IP addresses or security groups from which this rule allows traffic (or to which, for outbound rules). A CIDR block of `0.0.0.0/0` allows traffic from any source (or to any destination, for outbound rules).
        Returns:
        the remote
      • getCode

        public Long getCode()
        Gets the code. The ICMP traffic code to allow. If absent, all codes are allowed.
        Returns:
        the code
      • getType

        public Long getType()
        Gets the type. The ICMP traffic type to allow. If absent, all types are allowed.
        Returns:
        the type
      • getPortMax

        public Long getPortMax()
        Gets the portMax. The inclusive upper bound of TCP/UDP destination port range.
        Returns:
        the portMax
      • getPortMin

        public Long getPortMin()
        Gets the portMin. The inclusive lower bound of TCP/UDP destination port range.
        Returns:
        the portMin