Fugue.AWS.EC2.Protocol

Module Members

toProtocolNumber

(Function)

Convert a Protocol to an IANA Protocol Number String.

Example:

ex: EC2.Protocol.toProtocolNumber(EC2.TCP) # => "6"

Type Signature

 fun (Protocol) -> String
Argument: protocol
Type: Protocol
Returns:
Type: String

Protocol

(Type)

type Protocol:
  | TCP
  | UDP
  | ICMP
  | All

All

(Constructor)

All protocols (-1)

ICMP

(Constructor)

ICMP protocol (1)

TCP

(Constructor)

TCP protocol (6)

UDP

(Constructor)

UDP protocol (17)

Protocol

IP protocol and protocol numbers as specified by http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml