Fugue.AWS.ELBv2.Matcher

Module Members

httpCodeRange

(Function)

httpCodeRange Matcher

Matches a range of HTTP response codes.

Example usage:

# Match all 2XX responses.
200s: ELBv2.Matcher.httpCodeRange {
  start: 200,
  end: 299,
}

Type Signature

 fun { start: Int,
       end: Int} -> Matcher
Argument: start

The lower bound of the range. Must be between 200 and 499.

Type: Int

Argument: end

The upper bound of the range. Must be between 200 and 499.

Type: Int

Returns:

A new `Fugue.Core.AWS.ELBv2.Matcher that matches HTTP responses codes in the supplied range.

Type: Matcher

httpCodes

(Function)

httpCodes Matcher

Matches a list of HTTP response codes.

Example usage:

# Match the specified list of responses.
redirects: ELBv2.Matcher.httpCodes {
  codes: [301, 302],
}

Type Signature

 fun { codes: List<Int> } -> Matcher
Argument: codes

The list of HTTP codes to match. Each code must be between 200 and 499.

Type: List<Int>

Returns:

A new `Fugue.Core.AWS.ELBv2.Matcher that matches the specified HTTP response codes.

Type: Matcher