Module Values_0.IpPermissionSource

Describes the permissions for a security group rule.

Sourcetype nonrec t = {
  1. ipProtocol : String_.t option;
    (*

    The IP protocol name (tcp, udp, icmp, icmpv6) or number (see Protocol Numbers). Use -1 to specify all protocols. When authorizing security group rules, specifying -1 or a protocol number other than tcp, udp, icmp, or icmpv6 allows traffic on all ports, regardless of any port range you specify. For tcp, udp, and icmp, you must specify a port range. For icmpv6, the port range is optional; if you omit the port range, traffic for all types and codes is allowed.

    *)
  2. fromPort : Integer.t option;
    (*

    If the protocol is TCP or UDP, this is the start of the port range. If the protocol is ICMP or ICMPv6, this is the ICMP type or -1 (all ICMP types).

    *)
  3. toPort : Integer.t option;
    (*

    If the protocol is TCP or UDP, this is the end of the port range. If the protocol is ICMP or ICMPv6, this is the ICMP code or -1 (all ICMP codes). If the start port is -1 (all ICMP types), then the end port must be -1 (all ICMP codes).

    *)
  4. userIdGroupPairs : UserIdGroupPairList.t option;
    (*

    The security group and Amazon Web Services account ID pairs.

    *)
  5. ipRanges : IpRangeList.t option;
    (*

    The IPv4 address ranges.

    *)
  6. ipv6Ranges : Ipv6RangeList.t option;
    (*

    The IPv6 address ranges.

    *)
  7. prefixListIds : PrefixListIdList.t option;
    (*

    The prefix list IDs.

    *)
}
Sourceval make : ?ipProtocol:??? -> ?fromPort:??? -> ?toPort:??? -> ?userIdGroupPairs:??? -> ?ipRanges:??? -> ?ipv6Ranges:??? -> ?prefixListIds:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Integer of Integer.t | `List of [> `Structure of (string * [> `String of String_.t ]) list ] list | `String of String_.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t