class Aws::AppMesh::Types::HttpGatewayRouteMatch

An object that represents the criteria for determining a request match.

@note When making an API call, you may pass HttpGatewayRouteMatch

data as a hash:

    {
      headers: [
        {
          invert: false,
          match: {
            exact: "HeaderMatch",
            prefix: "HeaderMatch",
            range: {
              end: 1, # required
              start: 1, # required
            },
            regex: "HeaderMatch",
            suffix: "HeaderMatch",
          },
          name: "HeaderName", # required
        },
      ],
      hostname: {
        exact: "ExactHostName",
        suffix: "SuffixHostname",
      },
      method: "GET", # accepts GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS, TRACE, PATCH
      path: {
        exact: "HttpPathExact",
        regex: "HttpPathRegex",
      },
      prefix: "String",
      query_parameters: [
        {
          match: {
            exact: "String",
          },
          name: "QueryParameterName", # required
        },
      ],
    }

@!attribute [rw] headers

The client request headers to match on.
@return [Array<Types::HttpGatewayRouteHeader>]

@!attribute [rw] hostname

The host name to match on.
@return [Types::GatewayRouteHostnameMatch]

@!attribute [rw] method

The method to match on.
@return [String]

@!attribute [rw] path

The path to match on.
@return [Types::HttpPathMatch]

@!attribute [rw] prefix

Specifies the path to match requests with. This parameter must
always start with `/`, which by itself matches all requests to the
virtual service name. You can also match for path-based routing of
requests. For example, if your virtual service name is
`my-service.local` and you want the route to match requests to
`my-service.local/metrics`, your prefix should be `/metrics`.
@return [String]

@!attribute [rw] query_parameters

The query parameter to match on.
@return [Array<Types::HttpQueryParameter>]

@see docs.aws.amazon.com/goto/WebAPI/appmesh-2019-01-25/HttpGatewayRouteMatch AWS API Documentation

Constants

SENSITIVE