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

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

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

Overview

Note:

When passing RouteSpec as input to an Aws::Client method, you can use a vanilla 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.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#http_routeTypes::HttpRoute

An object representing the HTTP routing specification for a route.

Returns:

  • (Types::HttpRoute)

    An object representing the HTTP routing specification for a route.

    .

#priorityInteger

Returns:

  • (Integer)

#tcp_routeTypes::TcpRoute

An object representing the TCP routing specification for a route.

Returns:

  • (Types::TcpRoute)

    An object representing the TCP routing specification for a route.

    .