start_revenue_attribution_allocations_task
¶
start_revenue_attribution_allocations_task(
catalog: CatalogName,
revenue_attribution_identifier: RevenueAttributionIdentifier,
revenue_attribution_revision: RevisionToken,
revenue_share_allocations: RevenueShareAllocationChangeList,
*,
config_overrides: Optional[PartnerCentralRevenueMeasurementClientConfig] = None,
client_token: Optional[ClientToken] = None,
description: Optional[str] = None,
) -> StartRevenueAttributionAllocationsTaskOutput
Submits a batch of up to 250 allocation changes (CREATE and/or UPDATE) for asynchronous processing. Returns a TaskId for tracking.
Parameters:
-
catalog(CatalogName) –The catalog context for this operation.
-
revenue_attribution_identifier(RevenueAttributionIdentifier) –The revenue attribution identifier.
-
revenue_attribution_revision(RevisionToken) –Current revision of the revenue attribution for optimistic locking.
-
revenue_share_allocations(RevenueShareAllocationChangeList) –The list of allocation changes to process in this batch.
-
client_token(Optional[ClientToken], default:None) –Idempotency token for deduplication and retry.
-
description(Optional[str], default:None) –Human-readable description of the batch.
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 StartRevenueAttributionAllocationsTask
>>> client.start_revenue_attribution_allocations_task(catalog='AWS', revenue_attribution_identifier='ra-0a1b2c3d4e5f6', revenue_attribution_revision='1', revenue_share_allocations=[{'Action': 'CREATE', 'EntityType': 'OFFER', 'EntityIdentifier': 'offer-abc123', 'CustomerAwsAccountId': '123456789012', 'RevenueSharePercent': '15.50', 'EffectiveFrom': '2026-07-01', 'EffectiveUntil': '2026-07-31'}], client_token='unique-token-123')
Source code in docs_src/capo_partnercentral_revenue_measurement/_services/partner_central_revenue_measurement.py
1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 | |