HttpHeaderMatch

class aws_cdk.aws_appmesh.HttpHeaderMatch

Bases: object

(experimental) Used to generate header matching methods.

Stability

experimental

Stability

experimental

Methods

abstract bind(scope)

(experimental) Returns the header match configuration.

Parameters

scope (Construct) –

Stability

experimental

Return type

HttpHeaderMatchConfig

Static Methods

classmethod value_does_not_end_with(header_name, suffix)

(experimental) The value of the header with the given name in the request must not end with the specified characters.

Parameters
  • header_name (str) – the name of the HTTP header to match against.

  • suffix (str) – The suffix to test against.

Stability

experimental

Return type

HttpHeaderMatch

classmethod value_does_not_match_regex(header_name, regex)

(experimental) The value of the header with the given name in the request must not include the specified characters.

Parameters
  • header_name (str) – the name of the HTTP header to match against.

  • regex (str) – The regex to test against.

Stability

experimental

Return type

HttpHeaderMatch

classmethod value_does_not_start_with(header_name, prefix)

(experimental) The value of the header with the given name in the request must not start with the specified characters.

Parameters
  • header_name (str) – the name of the HTTP header to match against.

  • prefix (str) – The prefix to test against.

Stability

experimental

Return type

HttpHeaderMatch

classmethod value_ends_with(header_name, suffix)

(experimental) The value of the header with the given name in the request must end with the specified characters.

Parameters
  • header_name (str) – the name of the HTTP header to match against.

  • suffix (str) – The suffix to test against.

Stability

experimental

Return type

HttpHeaderMatch

classmethod value_is(header_name, header_value)

(experimental) The value of the header with the given name in the request must match the specified value exactly.

Parameters
  • header_name (str) – the name of the HTTP header to match against.

  • header_value (str) – The exact value to test against.

Stability

experimental

Return type

HttpHeaderMatch

classmethod value_is_not(header_name, header_value)

(experimental) The value of the header with the given name in the request must not match the specified value exactly.

Parameters
  • header_name (str) – the name of the HTTP header to match against.

  • header_value (str) – The exact value to test against.

Stability

experimental

Return type

HttpHeaderMatch

classmethod value_matches_regex(header_name, regex)

(experimental) The value of the header with the given name in the request must include the specified characters.

Parameters
  • header_name (str) – the name of the HTTP header to match against.

  • regex (str) – The regex to test against.

Stability

experimental

Return type

HttpHeaderMatch

classmethod value_starts_with(header_name, prefix)

(experimental) The value of the header with the given name in the request must start with the specified characters.

Parameters
  • header_name (str) – the name of the HTTP header to match against.

  • prefix (str) – The prefix to test against.

Stability

experimental

Return type

HttpHeaderMatch

classmethod values_is_in_range(header_name, start, end)

(experimental) The value of the header with the given name in the request must be in a range of values.

Parameters
  • header_name (str) – the name of the HTTP header to match against.

  • start (Union[int, float]) – Match on values starting at and including this value.

  • end (Union[int, float]) – Match on values up to but not including this value.

Stability

experimental

Return type

HttpHeaderMatch

classmethod values_is_not_in_range(header_name, start, end)

(experimental) The value of the header with the given name in the request must not be in a range of values.

Parameters
  • header_name (str) – the name of the HTTP header to match against.

  • start (Union[int, float]) – Match on values starting at and including this value.

  • end (Union[int, float]) – Match on values up to but not including this value.

Stability

experimental

Return type

HttpHeaderMatch