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

Class: Aws::AppMesh::Types::HttpRoute

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

Overview

Note:

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

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

An object representing the HTTP routing specification for a route.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#actionTypes::HttpRouteAction

An object representing the traffic distribution requirements for matched HTTP requests.

Returns:

  • (Types::HttpRouteAction)

    An object representing the traffic distribution requirements for matched HTTP requests.

    .

#matchTypes::HttpRouteMatch

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

Returns:

  • (Types::HttpRouteMatch)

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

    .