Class DefaultSecurityGroupEgress


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

      • cidrBlocks

        public java.util.List<java.lang.String> cidrBlocks()
        Returns:
        List of CIDR blocks.
      • description

        public java.util.Optional<java.lang.String> description()
        Returns:
        Description of this rule.
      • fromPort

        public java.lang.Integer fromPort()
        Returns:
        Start port (or ICMP type number if protocol is `icmp`)
      • ipv6CidrBlocks

        public java.util.List<java.lang.String> ipv6CidrBlocks()
        Returns:
        List of IPv6 CIDR blocks.
      • prefixListIds

        public java.util.List<java.lang.String> prefixListIds()
        Returns:
        List of prefix list IDs (for allowing access to VPC endpoints)
      • protocol

        public java.lang.String protocol()
        Returns:
        Protocol. If you select a protocol of "-1" (semantically equivalent to `all`, which is not a valid value here), you must specify a `from_port` and `to_port` equal to `0`. If not `icmp`, `tcp`, `udp`, or `-1` use the [protocol number](https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml).
      • securityGroups

        public java.util.List<java.lang.String> securityGroups()
        Returns:
        List of security groups. A group name can be used relative to the default VPC. Otherwise, group ID.
      • self

        public java.util.Optional<java.lang.Boolean> self()
        Returns:
        Whether the security group itself will be added as a source to this egress rule.
      • toPort

        public java.lang.Integer toPort()
        Returns:
        End range port (or ICMP code if protocol is `icmp`).