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

Class: Aws::AppMesh::Types::HttpRouteMatch

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

Overview

Note:

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

{
  headers: [
    {
      invert: false,
      match: {
        exact: "HeaderMatch",
        prefix: "HeaderMatch",
        range: {
          end: 1, # required
          start: 1, # required
        },
        regex: "HeaderMatch",
        suffix: "HeaderMatch",
      },
      name: "HeaderName", # required
    },
  ],
  method: "GET", # accepts GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS, TRACE, PATCH
  prefix: "String", # required
  scheme: "http", # accepts http, https
}

An object that represents the requirements for a route to match HTTP requests for a virtual router.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#headersArray<Types::HttpRouteHeader>

An object that represents the client request headers to match on.

Returns:

#methodString

The client request method to match on. Specify only one.

Possible values:

  • GET
  • HEAD
  • POST
  • PUT
  • DELETE
  • CONNECT
  • OPTIONS
  • TRACE
  • PATCH

Returns:

  • (String)

    The client request method to match on.

#prefixString

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.

Returns:

  • (String)

    Specifies the path to match requests with.

#schemeString

The client request scheme to match on. Specify only one.

Possible values:

  • http
  • https

Returns:

  • (String)

    The client request scheme to match on.