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
2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 | |