Fugue.AWS.EC2.IcmpTypeCode

Module Members

new

(Function)

new IcmpTypeCode (Constructor)

See https://www.iana.org/assignments/icmp-parameters/icmp-parameters.xhtml for full documentation on valid ICMP types and codes.

Note that there are predefined IcmpTypeCode values in this module that cover most use cases. This constructor is available if you need to refer to a ICMP type code that’s not covered.

Example usage:

netUnreachable: EC2.IcmpTypeCode.new {
  typeNumber: 3,
  codeField: 0,
}

Type Signature

 fun { typeNumber: Int,
       codeField: Optional<Int> } -> IcmpTypeCode
Argument: typeNumber

The ICMP type number. Set to EC2.IcmpTypeCode.allTypes to match all types.

Type: Int

Argument: codeField

The ICMP code field. Set to EC2.IcmpTypeCode.allCodes to match all codes. Defaults to EC2.IcmpTypeCode.allCodes.

Type: Optional<Int>

Returns:

A new Fugue.Core.AWS.EC2.IcmpTypeCode value.

Type: IcmpTypeCode

all

(Value)

all:
  new(typeNumber: allTypes
      codeField: allCodes)

Match all ICMP types.

allCodes

(Value)

allCodes:
  negate(1)

allTypes

(Value)

allTypes:
  negate(1)

badLength

(Value)

badLength:
  new(typeNumber: 12
      codeField: 2)

communicationAdministrativelyProhibited

(Value)

communicationAdministrativelyProhibited:
  new(typeNumber: 3
      codeField: 13)

communicationWithDestinationHostAdministrativelyProhibited

(Value)

communicationWithDestinationHostAdministrativelyProhibited:
  new(typeNumber: 3
      codeField: 10)

communicationWithDestinationNetworkAdministrativelyProhibited

(Value)

communicationWithDestinationNetworkAdministrativelyProhibited:
  new(typeNumber: 3
      codeField: 9)

destinationHostUnknown

(Value)

destinationHostUnknown:
  new(typeNumber: 3
      codeField: 7)

destinationHostUnreachableForTypeOfService

(Value)

destinationHostUnreachableForTypeOfService:
  new(typeNumber: 3
      codeField: 12)

destinationNetworkUnknown

(Value)

destinationNetworkUnknown:
  new(typeNumber: 3
      codeField: 6)

destinationNetworkUnreachableForTypeOfService

(Value)

destinationNetworkUnreachableForTypeOfService:
  new(typeNumber: 3
      codeField: 11)

destinationUnreachable

(Value)

destinationUnreachable:
  new(typeNumber: 3)

doesNotRouteCommonTraffic

(Value)

doesNotRouteCommonTraffic:
  new(typeNumber: 9
      codeField: 16)

echo

(Value)

echo:
  new(typeNumber: 8
      codeField: 0)

echoReply

(Value)

echoReply:
  new(typeNumber: 0
      codeField: 0)

fragmentReassemblyTimeExceeded

(Value)

fragmentReassemblyTimeExceeded:
  new(typeNumber: 11
      codeField: 1)

fragmentationNeededAndDontFragmentWasSent

(Value)

fragmentationNeededAndDontFragmentWasSent:
  new(typeNumber: 3
      codeField: 4)

hostPrecedenceViolation

(Value)

hostPrecedenceViolation:
  new(typeNumber: 3
      codeField: 14)

hostUnreachable

(Value)

hostUnreachable:
  new(typeNumber: 3
      codeField: 1)

missingRequiredOption

(Value)

missingRequiredOption:
  new(typeNumber: 12
      codeField: 1)

netUnreachable

(Value)

netUnreachable:
  new(typeNumber: 3
      codeField: 0)

normalRouterAdvertisement

(Value)

normalRouterAdvertisement:
  new(typeNumber: 9
      codeField: 0)

parameterProblem

(Value)

parameterProblem:
  new(typeNumber: 12)

pointerIndicatesTheError

(Value)

pointerIndicatesTheError:
  new(typeNumber: 12
      codeField: 0)

portUnreachable

(Value)

portUnreachable:
  new(typeNumber: 3
      codeField: 3)

precedenceCutoffInEffect

(Value)

precedenceCutoffInEffect:
  new(typeNumber: 3
      codeField: 15)

protcolUnreachable

(Value)

protcolUnreachable:
  new(typeNumber: 3
      codeField: 2)

redirect

(Value)

redirect:
  new(typeNumber: 5)

redirectDatagramForTheHost

(Value)

redirectDatagramForTheHost:
  new(typeNumber: 5
      codeField: 1)

redirectDatagramForTheNetwork

(Value)

redirectDatagramForTheNetwork:
  new(typeNumber: 5
      codeField: 0)

redirectDatagramForTypeOfServiceAndHost

(Value)

redirectDatagramForTypeOfServiceAndHost:
  new(typeNumber: 5
      codeField: 3)

redirectDatagramForTypeOfServiceAndNetwork

(Value)

redirectDatagramForTypeOfServiceAndNetwork:
  new(typeNumber: 5
      codeField: 2)

routerAdvertisement

(Value)

routerAdvertisement:
  new(typeNumber: 9)

routerSelection

(Value)

routerSelection:
  new(typeNumber: 10)

sourceHostIsolated

(Value)

sourceHostIsolated:
  new(typeNumber: 3
      codeField: 8)

sourceRouteFailed

(Value)

sourceRouteFailed:
  new(typeNumber: 3
      codeField: 5)

timeExceeded

(Value)

timeExceeded:
  new(typeNumber: 11)

timestamp

(Value)

timestamp:
  new(typeNumber: 13)

timestampReply

(Value)

timestampReply:
  new(typeNumber: 14)

ttlExceededInTransit

(Value)

ttlExceededInTransit:
  new(typeNumber: 11
      codeField: 0)