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

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

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

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

An object representing the traffic distribution requirements for matched TCP requests.

Instance Attribute Summary collapse

Instance Attribute Details

#weighted_targetsArray<Types::WeightedTarget>

The targets that traffic is routed to when a request matches the route. You can specify one or more targets and their relative weights to distribute traffic with.

Returns:



2135
2136
2137
2138
# File 'gems/aws-sdk-appmesh/lib/aws-sdk-appmesh/types.rb', line 2135

class TcpRouteAction < Struct.new(
  :weighted_targets)
  include Aws::Structure
end