cancel_agreement_cancellation_request
async
¶
cancel_agreement_cancellation_request(
agreement_id: AgreementId,
agreement_cancellation_request_id: AgreementCancellationRequestId,
cancellation_reason: AgreementCancellationRequestCancellationReason,
*,
config_overrides: Optional[AsyncMarketplaceAgreementClientConfig] = None,
) -> CancelAgreementCancellationRequestOutput
Allows sellers (proposers) to withdraw an existing agreement cancellation request that is in a pending state. Once cancelled, the cancellation request transitions to CANCELLED status and can no longer be approved or rejected by the buyer.
Only cancellation requests in PENDING_APPROVAL status can be cancelled. A ConflictException is thrown if the cancellation request is in any other status.
Parameters:
-
agreement_id(AgreementId) –The unique identifier of the agreement associated with the cancellation request.
-
agreement_cancellation_request_id(AgreementCancellationRequestId) –The unique identifier of the cancellation request to cancel.
-
cancellation_reason(AgreementCancellationRequestCancellationReason) –A required message explaining why the cancellation request is being withdrawn (1-2000 characters).
Raises:
-
AccessDeniedException–User does not have sufficient access to perform this action.
-
ConflictException–Request was denied due to a resource conflict.
-
InternalServerException–Unexpected error during processing of request.
-
ResourceNotFoundException–Request references a resource which does not exist.
-
ThrottlingException–Request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by the service.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Cancel a cancellation request
>>> await client.cancel_agreement_cancellation_request(agreement_cancellation_request_id='acr-752jqvg74yo7k4h56cakk6396', agreement_id='agmt-752jqvg74yo7k4h56cakk6396', cancellation_reason='Requested agreement cancellation by mistake')
Source code in docs_src/capo_marketplace_agreement/_services/async_marketplace_agreement.py
752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 | |