Class: Aws::AppMesh::Types::HttpRouteAction

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

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

An object representing the traffic distribution requirements for matched HTTP 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:



653
654
655
656
# File 'lib/aws-sdk-appmesh/types.rb', line 653

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