create_marketplace_revenue_share_allocation
async
¶
create_marketplace_revenue_share_allocation(
catalog: CatalogName,
product_id: MarketplaceProductId,
effective_from: AllocationEffectiveDateString,
revenue_share_percent: RevenueSharePercent,
*,
config_overrides: Optional[
AsyncPartnerCentralRevenueMeasurementClientConfig
] = None,
client_token: Optional[ClientToken] = None,
effective_until: Optional[AllocationEffectiveDateString] = None,
) -> CreateMarketplaceRevenueShareAllocationOutput
Creates a new marketplace revenue share allocation for the specified product.
Parameters:
-
catalog(CatalogName) –The catalog in which to create the allocation.
-
product_id(MarketplaceProductId) –The AWS Marketplace product identifier for the parent revenue share.
-
client_token(Optional[ClientToken], default:None) –A unique token to ensure idempotency of the create request.
-
effective_from(AllocationEffectiveDateString) –The effective start date for the allocation. Must be the first day of a month.
-
effective_until(Optional[AllocationEffectiveDateString], default:None) –The effective end date for the allocation. Must be the last day of a month (YYYY-MM-DD). Omit for open-ended allocations.
-
revenue_share_percent(RevenueSharePercent) –The revenue share percentage for this allocation.
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.
-
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 CreateMarketplaceRevenueShareAllocation
>>> await client.create_marketplace_revenue_share_allocation(catalog='AWS', product_id='prod-abc123def4567', effective_from='2026-07-01', revenue_share_percent='15.50')
Source code in docs_src/capo_partnercentral_revenue_measurement/_services/async_partner_central_revenue_measurement.py
665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 | |