You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::ElasticLoadBalancingV2::Types::HttpHeaderConditionConfig

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing HttpHeaderConditionConfig as input to an Aws::Client method, you can use a vanilla Hash:

{
  http_header_name: "HttpHeaderConditionName",
  values: ["StringValue"],
}

Information about an HTTP header condition.

There is a set of standard HTTP header fields. You can also define custom HTTP header fields.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#http_header_nameString

The name of the HTTP header field. The maximum size is 40 characters. The header name is case insensitive. The allowed characters are specified by RFC 7230. Wildcards are not supported.

You can\'t use an HTTP header condition to specify the host header. Use HostHeaderConditionConfig to specify a host header condition.

Returns:

  • (String)

    The name of the HTTP header field.

#valuesArray<String>

One or more strings to compare against the value of the HTTP header. The maximum size of each string is 128 characters. The comparison strings are case insensitive. The following wildcard characters are supported: * (matches 0 or more characters) and ? (matches exactly 1 character).

If the same header appears multiple times in the request, we search them in order until a match is found.

If you specify multiple strings, the condition is satisfied if one of the strings matches the value of the HTTP header. To require that all of the strings are a match, create one condition per string.

Returns:

  • (Array<String>)

    One or more strings to compare against the value of the HTTP header.