Class SecurityGroupEgress


  • public final class SecurityGroupEgress
    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 egress 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.
      • 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. The supported values are defined in the `IpProtocol` argument in the [IpPermission](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_IpPermission.html) API reference.
      • 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`). The following arguments are optional: > **Note** Although `cidr_blocks`, `ipv6_cidr_blocks`, `prefix_list_ids`, and `security_groups` are all marked as optional, you _must_ provide one of them in order to configure the destination of the traffic.