create_route_response
async
¶
create_route_response(
api_id: __string,
route_id: __string,
*,
config_overrides: Optional[AsyncApiGatewayV2ClientConfig] = None,
model_selection_expression: Optional[SelectionExpression] = None,
response_models: Optional[RouteModels] = None,
response_parameters: Optional[RouteParameters] = None,
route_response_key: Optional[SelectionKey] = None,
) -> CreateRouteResponseResponse
Creates a RouteResponse for a Route.
Parameters:
-
api_id(__string) –The API identifier.
-
model_selection_expression(Optional[SelectionExpression], default:None) –The model selection expression for the route response. Supported only for WebSocket APIs.
-
response_models(Optional[RouteModels], default:None) –The response models for the route response.
-
response_parameters(Optional[RouteParameters], default:None) –The route response parameters.
-
route_id(__string) –The route ID.
-
route_response_key(Optional[SelectionKey], default:None) –The route response key.
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/async_api_gateway_v2.py
1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 | |