update_route
¶
update_route(
api_id: __string,
route_id: __string,
*,
config_overrides: Optional[ApiGatewayV2ClientConfig] = None,
api_key_required: Optional[__boolean] = None,
authorization_scopes: Optional[AuthorizationScopes] = None,
authorization_type: Optional[AuthorizationType] = None,
authorizer_id: Optional[Id] = None,
model_selection_expression: Optional[SelectionExpression] = None,
operation_name: Optional[StringWithLengthBetween1And64] = None,
request_models: Optional[RouteModels] = None,
request_parameters: Optional[RouteParameters] = None,
route_key: Optional[SelectionKey] = None,
route_response_selection_expression: Optional[SelectionExpression] = None,
target: Optional[StringWithLengthBetween1And128] = None,
) -> UpdateRouteResult
Updates a Route.
Parameters:
-
api_id(__string) –The API identifier.
-
api_key_required(Optional[__boolean], default:None) –Specifies whether an API key is required for the route. Supported only for WebSocket APIs.
-
authorization_scopes(Optional[AuthorizationScopes], default:None) –The authorization scopes supported by this route.
-
authorization_type(Optional[AuthorizationType], default:None) –The authorization type for the route. For WebSocket APIs, valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer For HTTP APIs, valid values are NONE for open access, JWT for using JSON Web Tokens, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer.
-
authorizer_id(Optional[Id], default:None) –The identifier of the Authorizer resource to be associated with this route. The authorizer identifier is generated by API Gateway when you created the authorizer.
-
model_selection_expression(Optional[SelectionExpression], default:None) –The model selection expression for the route. Supported only for WebSocket APIs.
-
operation_name(Optional[StringWithLengthBetween1And64], default:None) –The operation name for the route.
-
request_models(Optional[RouteModels], default:None) –The request models for the route. Supported only for WebSocket APIs.
-
request_parameters(Optional[RouteParameters], default:None) –The request parameters for the route. Supported only for WebSocket APIs.
-
route_id(__string) –The route ID.
-
route_key(Optional[SelectionKey], default:None) –The route key for the route.
-
route_response_selection_expression(Optional[SelectionExpression], default:None) –The route response selection expression for the route. Supported only for WebSocket APIs.
-
target(Optional[StringWithLengthBetween1And128], default:None) –The target for the route.
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
6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 | |