Module Values_2.SecurityGroupRuleSource

Describes a security group rule.

Sourcetype nonrec t = {
  1. securityGroupRuleId : Values_1.SecurityGroupRuleId.t option;
    (*

    The ID of the security group rule.

    *)
  2. groupId : Values_0.SecurityGroupId.t option;
    (*

    The ID of the security group.

    *)
  3. groupOwnerId : Values_0.String_.t option;
    (*

    The ID of the Amazon Web Services account that owns the security group.

    *)
  4. isEgress : Values_0.Boolean.t option;
    (*

    Indicates whether the security group rule is an outbound rule.

    *)
  5. ipProtocol : Values_0.String_.t option;
    (*

    The IP protocol name (tcp, udp, icmp, icmpv6) or number (see Protocol Numbers). Use -1 to specify all protocols.

    *)
  6. fromPort : Values_0.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).

    *)
  7. toPort : Values_0.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).

    *)
  8. cidrIpv4 : Values_0.String_.t option;
    (*

    The IPv4 CIDR range.

    *)
  9. cidrIpv6 : Values_0.String_.t option;
    (*

    The IPv6 CIDR range.

    *)
  10. prefixListId : Values_0.PrefixListResourceId.t option;
    (*

    The ID of the prefix list.

    *)
  11. referencedGroupInfo : Values_1.ReferencedSecurityGroup.t option;
    (*

    Describes the security group that is referenced in the rule.

    *)
  12. description : Values_0.String_.t option;
    (*

    The security group rule description.

    *)
  13. tags : Values_0.TagList.t option;
    (*

    The tags applied to the security group rule.

    *)
  14. securityGroupRuleArn : Values_0.String_.t option;
    (*

    The ARN of the security group rule.

    *)
}
Sourceval make : ?securityGroupRuleId:??? -> ?groupId:??? -> ?groupOwnerId:??? -> ?isEgress:??? -> ?ipProtocol:??? -> ?fromPort:??? -> ?toPort:??? -> ?cidrIpv4:??? -> ?cidrIpv6:??? -> ?prefixListId:??? -> ?referencedGroupInfo:??? -> ?description:??? -> ?tags:??? -> ?securityGroupRuleArn:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Boolean of Values_0.Boolean.t | `Integer of Values_0.Integer.t | `List of [> `Structure of (string * [> `String of string ]) list ] list | `String of Values_1.SecurityGroupRuleId.t | `Structure of (string * [> `String of Values_0.String_.t ]) list ]) 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