Class: Aws::BedrockAgentCoreControl::Types::RouteToTargetAction

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/types.rb

Overview

Note:

RouteToTargetAction is a union - when making an API calls you must set exactly one of the members.

Note:

RouteToTargetAction is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of RouteToTargetAction corresponding to the set member.

An action that routes requests to a gateway target, either statically or with weighted traffic splitting.

Defined Under Namespace

Classes: StaticRoute, Unknown, WeightedRoute

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#static_route ⇒ Types::StaticRoute

A static route that sends all matching requests to a single target.

Returns:



18918
18919
18920
18921
18922
18923
18924
18925
18926
18927
18928
18929
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/types.rb', line 18918

class RouteToTargetAction < Struct.new(
  :static_route,
  :weighted_route,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class StaticRoute < RouteToTargetAction; end
  class WeightedRoute < RouteToTargetAction; end
  class Unknown < RouteToTargetAction; end
end

#unknown ⇒ Object

Returns the value of attribute unknown

Returns:

  • (Object) —

    the current value of unknown



18918
18919
18920
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/types.rb', line 18918

def unknown
  @unknown
end

#weighted_route ⇒ Types::WeightedRoute

A weighted route that splits traffic between multiple targets.



18918
18919
18920
18921
18922
18923
18924
18925
18926
18927
18928
18929
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/types.rb', line 18918

class RouteToTargetAction < Struct.new(
  :static_route,
  :weighted_route,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class StaticRoute < RouteToTargetAction; end
  class WeightedRoute < RouteToTargetAction; end
  class Unknown < RouteToTargetAction; end
end