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

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-appmesh/types.rb

Overview

Note:

When making an API call, you may pass HttpRoute data as a 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.

Instance Attribute Summary collapse

Instance Attribute Details

#actionTypes::HttpRouteAction

The action to take if a match is determined.



2999
3000
3001
3002
3003
# File 'lib/aws-sdk-appmesh/types.rb', line 2999

class HttpRoute < Struct.new(
  :action,
  :match)
  include Aws::Structure
end

#matchTypes::HttpRouteMatch

The criteria for determining an HTTP request match.



2999
3000
3001
3002
3003
# File 'lib/aws-sdk-appmesh/types.rb', line 2999

class HttpRoute < Struct.new(
  :action,
  :match)
  include Aws::Structure
end