start_revenue_attribution_allocations_task
async
¶
start_revenue_attribution_allocations_task(
catalog: CatalogName,
revenue_attribution_identifier: RevenueAttributionIdentifier,
revenue_attribution_revision: RevisionToken,
revenue_share_allocations: RevenueShareAllocationChangeList,
*,
config_overrides: Optional[
AsyncPartnerCentralRevenueMeasurementClientConfig
] = 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
>>> await 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/async_partner_central_revenue_measurement.py
1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 | |