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

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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-appmesh/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
    },
    retry_policy: {
      http_retry_events: ["HttpRetryPolicyEvent"],
      max_retries: 1, # required
      per_retry_timeout: { # required
        unit: "ms", # accepts ms, s
        value: 1,
      },
      tcp_retry_events: ["connection-error"], # accepts connection-error
    },
  },
  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:



3049
3050
3051
3052
3053
3054
# File 'gems/aws-sdk-appmesh/lib/aws-sdk-appmesh/types.rb', line 3049

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)


3049
3050
3051
3052
3053
3054
# File 'gems/aws-sdk-appmesh/lib/aws-sdk-appmesh/types.rb', line 3049

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

#tcp_routeTypes::TcpRoute

The TCP routing information for the route.

Returns:



3049
3050
3051
3052
3053
3054
# File 'gems/aws-sdk-appmesh/lib/aws-sdk-appmesh/types.rb', line 3049

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