Class: Aws::AppMesh::Types::RouteSpec

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 RouteSpec data as a hash:

{
  http_route: {
    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
    },
  },
  priority: 1,
  tcp_route: {
    action: { # required
      weighted_targets: [ # required
        {
          virtual_node: "ResourceName", # required
          weight: 1, # required
        },
      ],
    },
  },
}

An object representing the specification of a route.

Instance Attribute Summary collapse

Instance Attribute Details

#http_routeTypes::HttpRoute

The HTTP routing information for the route.

Returns:



2945
2946
2947
2948
2949
2950
# File 'lib/aws-sdk-appmesh/types.rb', line 2945

class RouteSpec < Struct.new(
  :http_route,
  :priority,
  :tcp_route)
  include Aws::Structure
end

#priorityInteger

The priority for the route. Routes are matched based on the specified value, where 0 is the highest priority.

Returns:

  • (Integer)


2945
2946
2947
2948
2949
2950
# File 'lib/aws-sdk-appmesh/types.rb', line 2945

class RouteSpec < Struct.new(
  :http_route,
  :priority,
  :tcp_route)
  include Aws::Structure
end

#tcp_routeTypes::TcpRoute

The TCP routing information for the route.

Returns:



2945
2946
2947
2948
2949
2950
# File 'lib/aws-sdk-appmesh/types.rb', line 2945

class RouteSpec < Struct.new(
  :http_route,
  :priority,
  :tcp_route)
  include Aws::Structure
end