

# WeightedRoute
<a name="API_WeightedRoute"></a>

A weighted route that splits traffic between multiple gateway targets.

## Contents
<a name="API_WeightedRoute_Contents"></a>

 ** trafficSplit **   <a name="bedrockagentcorecontrol-Type-WeightedRoute-trafficSplit"></a>
The traffic split entries defining how traffic is distributed between targets.  
Type: Array of [TargetTrafficSplitEntry](API_TargetTrafficSplitEntry.md) objects  
Array Members: Fixed number of 2 items.  
Required: Yes

## See Also
<a name="API_WeightedRoute_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/bedrock-agentcore-control-2023-06-05/WeightedRoute) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/bedrock-agentcore-control-2023-06-05/WeightedRoute) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/bedrock-agentcore-control-2023-06-05/WeightedRoute) 