Module Values.AwsEc2SecurityGroupIpPermissionSource

An IP permission for an EC2 security group.

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

    The IP protocol name (tcp, udp, icmp, icmpv6) or number. [VPC only] 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;
    (*

    The start of the port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type number. A value of -1 indicates all ICMP/ICMPv6 types. If you specify all ICMP/ICMPv6 types, you must specify all codes.

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

    The end of the port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code. A value of -1 indicates all ICMP/ICMPv6 codes. If you specify all ICMP/ICMPv6 types, you must specify all codes.

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

    The security group and Amazon Web Services account ID pairs.

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

    The IPv4 ranges.

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

    The IPv6 ranges.

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

    [VPC only] The prefix list IDs for an Amazon Web Services service. With outbound rules, this is the Amazon Web Services service to access through a VPC endpoint from instances associated with the security group.

    *)
}
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 NonEmptyString.t ]) list ] list | `String of NonEmptyString.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