accept_agreement_cancellation_request
async
¶
accept_agreement_cancellation_request(
agreement_id: AgreementId,
agreement_cancellation_request_id: AgreementCancellationRequestId,
*,
config_overrides: Optional[AsyncMarketplaceAgreementClientConfig] = None,
) -> AcceptAgreementCancellationRequestOutput
Allows buyers (acceptors) to accept a cancellation request that is in PENDING_APPROVAL status. Once accepted, the cancellation request transitions to APPROVED status and the agreement cancellation will be processed.
Only cancellation requests in PENDING_APPROVAL status can be accepted. 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 accept.
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.
Source code in docs_src/capo_marketplace_agreement/_services/async_marketplace_agreement.py
376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 | |