update_method_response
async
¶
update_method_response(
rest_api_id: String,
resource_id: String,
http_method: String,
status_code: StatusCode,
*,
config_overrides: Optional[AsyncAPIGatewayClientConfig] = None,
patch_operations: Optional[ListOfPatchOperation] = None,
) -> MethodResponse
Updates an existing MethodResponse resource.
Parameters:
-
rest_api_id(String) –The string identifier of the associated RestApi.
-
resource_id(String) –The Resource identifier for the MethodResponse resource.
-
http_method(String) –The HTTP verb of the Method resource.
-
status_code(StatusCode) –The status code for the MethodResponse resource.
-
patch_operations(Optional[ListOfPatchOperation], default:None) –For more information about supported patch operations, see Patch Operations.
Raises:
-
BadRequestException–The submitted request is not valid, for example, the input is incomplete or incorrect. See the accompanying error message for details.
-
ConflictException–The request configuration has conflicts. For details, see the accompanying error message.
-
LimitExceededException–The request exceeded the rate limit. Retry after the specified time period.
-
NotFoundException–The requested resource is not found. Make sure that the request URI is correct.
-
TooManyRequestsException–The request has reached its throttling limit. Retry after the specified time period.
-
UnauthorizedException–The request is denied because the caller has insufficient permissions.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_api_gateway/_services/async_api_gateway.py
7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 | |