update_marketplace_revenue_share
¶
update_marketplace_revenue_share(
catalog: CatalogName,
identifier: MarketplaceRevenueShareIdentifier,
revision: RevisionToken,
products: MarketplaceRevenueShareProductEntryList,
*,
config_overrides: Optional[PartnerCentralRevenueMeasurementClientConfig] = None,
client_token: Optional[ClientToken] = None,
) -> UpdateMarketplaceRevenueShareOutput
Replaces the products of a marketplace revenue share. The request carries the complete desired set of products and their typed account lists; a product not listed is removed and its account lists cleared, and an empty Products list closes the marketplace revenue share. Closing is one-way.
Parameters:
-
catalog(CatalogName) –The catalog that the marketplace revenue share belongs to.
-
identifier(MarketplaceRevenueShareIdentifier) –The marketplace revenue share to update, by ID (mrs-...) or ARN.
-
client_token(Optional[ClientToken], default:None) –A unique token to ensure idempotency of the update request.
-
revision(RevisionToken) –The current revision of the marketplace revenue share, for optimistic concurrency control. A stale value returns ConflictException with Reason REVISION_MISMATCH.
-
products(MarketplaceRevenueShareProductEntryList) –The complete desired set of products in the marketplace revenue share, each with its typed account lists. 0 to 25 products; an empty list closes the marketplace revenue share.
Raises:
-
AccessDeniedException–The request was denied due to insufficient permissions.
-
ConflictException–The request could not be completed due to a conflict with the current state of the resource.
-
InternalServerException–An internal server error occurred. Retry your request.
-
ResourceNotFoundException–The specified resource was not found.
-
ServiceQuotaExceededException–The request would exceed a service quota limit.
-
ThrottlingException–The request was throttled due to too many requests. Retry your request.
-
ValidationException–The request failed validation due to invalid input parameters.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Example for UpdateMarketplaceRevenueShare
>>> client.update_marketplace_revenue_share(catalog='AWS', identifier='mrs-abc123def4567', revision='1', products=[{'ProductId': 'prod-abc123def4567', 'Accounts': [{'AccountType': 'DEPLOYMENT', 'AccountIds': ['111122223333']}]}])
Example for closing a marketplace revenue share
>>> client.update_marketplace_revenue_share(catalog='AWS', identifier='mrs-abc123def4567', revision='2', products=[])
Source code in docs_src/capo_partnercentral_revenue_measurement/_services/partner_central_revenue_measurement.py
547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 | |