AgentcoreGatewayRuleActionRouteToTarget constructor

const AgentcoreGatewayRuleActionRouteToTarget({
  1. Input<AgentcoreGatewayRuleActionRouteToTargetStaticRoute?>? staticRoute,
  2. Input<AgentcoreGatewayRuleActionRouteToTargetWeightedRoute?>? weightedRoute,
})

Creates a new AgentcoreGatewayRuleActionRouteToTarget. staticRoute Route all matching requests to a single named gateway target. weightedRoute Distribute requests across two named targets by weight.

Implementation

const AgentcoreGatewayRuleActionRouteToTarget({
  this.staticRoute,
  this.weightedRoute,
});