update_link_routing_rule
¶
update_link_routing_rule(
gateway_id: GatewayId,
link_id: LinkId,
rule_id: RuleId,
priority: RulePriority,
conditions: RuleCondition,
*,
config_overrides: Optional[RTBFabricClientConfig] = None,
) -> UpdateLinkRoutingRuleResponse
Updates a routing rule for a link.
Parameters:
-
gateway_id(GatewayId) –The unique identifier of the gateway.
-
link_id(LinkId) –The unique identifier of the link.
-
rule_id(RuleId) –The unique identifier of the routing rule.
-
priority(RulePriority) –The updated priority of the routing rule. Lower numbers are evaluated first. Valid values are 1 to 1000. Priority must be unique among non-deleted rules within a link.
-
conditions(RuleCondition) –The updated conditions for the routing rule. All specified fields must match for the rule to apply. At least one condition field must be set.
Raises:
-
AccessDeniedException–The request could not be completed because you do not have sufficient access to perform this action.
-
ConflictException–The request could not be completed because of a conflict in the current state of the resource.
-
InternalServerException–The request could not be completed because of an internal server error. Try your call again.
-
ResourceNotFoundException–The request could not be completed because the resource does not exist.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The request could not be completed because it fails satisfy the constraints specified by the service.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Update a link routing rule Update the conditions of a routing rule
>>> client.update_link_routing_rule(gateway_id='rtb-gw-12345678', link_id='link-87654321', rule_id='rule-abc123def456', priority=20, conditions={'hostHeader': 'api.customer.com', 'pathPrefix': '/openrtb/'})
Source code in docs_src/capo_rtbfabric/_services/rtb_fabric.py
1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 | |