create_routing_rule
¶
create_routing_rule(
domain_name: __string,
*,
config_overrides: Optional[ApiGatewayV2ClientConfig] = None,
actions: Optional[__listOfRoutingRuleAction] = None,
conditions: Optional[__listOfRoutingRuleCondition] = None,
domain_name_id: Optional[__string] = None,
priority: Optional[RoutingRulePriority] = None,
) -> CreateRoutingRuleResponse
Creates a RoutingRule.
Parameters:
-
actions(Optional[__listOfRoutingRuleAction], default:None) –Represents a routing rule action. The only supported action is invokeApi.
-
conditions(Optional[__listOfRoutingRuleCondition], default:None) –Represents a condition. Conditions can contain up to two matchHeaders conditions and one matchBasePaths conditions. API Gateway evaluates header conditions and base path conditions together. You can only use AND between header and base path conditions.
-
domain_name(__string) –The domain name.
-
domain_name_id(Optional[__string], default:None) –The domain name ID.
-
priority(Optional[RoutingRulePriority], default:None) –Represents the priority of the routing rule.
Raises:
-
BadRequestException–The request is not valid, for example, the input is incomplete or incorrect. See the accompanying error message for details.
-
ConflictException–The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request. See the accompanying error message for details.
-
NotFoundException–The resource specified in the request was not found. See the message field for more information.
-
TooManyRequestsException–A limit has been exceeded. See the accompanying error message for details.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_apigatewayv2/_services/api_gateway_v2.py
1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 | |