Class SecGroupRule


  • public final class SecGroupRule
    extends java.lang.Object
    • Method Detail

      • cidr

        public java.util.Optional<java.lang.String> cidr()
        Returns:
        Required if `from_group_id` or `self` is empty. The IP range that will be the source of network traffic to the security group. Use 0.0.0.0/0 to allow all IP addresses. Changing this creates a new security group rule. Cannot be combined with `from_group_id` or `self`.
      • fromGroupId

        public java.util.Optional<java.lang.String> fromGroupId()
        Returns:
        Required if `cidr` or `self` is empty. The ID of a group from which to forward traffic to the parent group. Changing this creates a new security group rule. Cannot be combined with `cidr` or `self`.
      • fromPort

        public java.lang.Integer fromPort()
        Returns:
        An integer representing the lower bound of the port range to open. Changing this creates a new security group rule.
      • id

        public java.util.Optional<java.lang.String> id()
      • ipProtocol

        public java.lang.String ipProtocol()
        Returns:
        The protocol type that will be allowed. Changing this creates a new security group rule.
      • self

        public java.util.Optional<java.lang.Boolean> self()
        Returns:
        Required if `cidr` and `from_group_id` is empty. If true, the security group itself will be added as a source to this ingress rule. Cannot be combined with `cidr` or `from_group_id`.
      • toPort

        public java.lang.Integer toPort()
        Returns:
        An integer representing the upper bound of the port range to open. Changing this creates a new security group rule.