create_marketplace_revenue_share_allocation
¶
create_marketplace_revenue_share_allocation(
catalog: CatalogName,
effective_from: AllocationEffectiveDateString,
effective_until: AllocationEffectiveDateString,
revenue_share_percent: RevenueSharePercent,
*,
config_overrides: Optional[PartnerCentralRevenueMeasurementClientConfig] = None,
marketplace_revenue_share_identifier: Optional[
MarketplaceRevenueShareIdentifier
] = None,
client_token: Optional[ClientToken] = None,
marketplace_revenue_share_revision: Optional[RevisionToken] = None,
) -> CreateMarketplaceRevenueShareAllocationOutput
Creates a new allocation under the specified marketplace revenue share.
Parameters:
-
catalog(CatalogName) –The catalog in which to create the allocation.
-
marketplace_revenue_share_identifier(Optional[MarketplaceRevenueShareIdentifier], default:None) –The parent marketplace revenue share, by ID (mrs-...) or ARN.
-
client_token(Optional[ClientToken], default:None) –A unique token to ensure idempotency of the create request.
-
marketplace_revenue_share_revision(Optional[RevisionToken], default:None) –The revision of the parent marketplace revenue share that the caller last read, for optimistic concurrency control. A stale value returns ConflictException with Reason REVISION_MISMATCH.
-
effective_from(AllocationEffectiveDateString) –The effective start date for the allocation. Must be the first day of a month.
-
effective_until(AllocationEffectiveDateString) –The effective end date for the allocation. Must be the last day of a month (YYYY-MM-DD).
-
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.
-
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 CreateMarketplaceRevenueShareAllocation
>>> client.create_marketplace_revenue_share_allocation(catalog='AWS', marketplace_revenue_share_identifier='mrs-abc123def4567', marketplace_revenue_share_revision='1', effective_from='2026-07-01', effective_until='2026-12-31', revenue_share_percent='15.50')
Source code in docs_src/capo_partnercentral_revenue_measurement/_services/partner_central_revenue_measurement.py
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 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 | |