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

Class: Aws::AppMesh::Types::TcpRouteAction

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

Overview

Note:

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

{
  weighted_targets: [ # required
    {
      virtual_node: "ResourceName", # required
      weight: 1, # required
    },
  ],
}

An object that represents the action to take if a match is determined.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#weighted_targetsArray<Types::WeightedTarget>

An object that represents the targets that traffic is routed to when a request matches the route.

Returns:

  • (Array<Types::WeightedTarget>)

    An object that represents the targets that traffic is routed to when a request matches the route.