update_marketplace_revenue_share_allocation
async
¶
update_marketplace_revenue_share_allocation(
catalog: CatalogName,
marketplace_revenue_share_allocation_id: MarketplaceRevenueShareAllocationId,
marketplace_revenue_share_revision: RevisionToken,
*,
config_overrides: Optional[
AsyncPartnerCentralRevenueMeasurementClientConfig
] = None,
marketplace_revenue_share_identifier: Optional[
MarketplaceRevenueShareIdentifier
] = None,
client_token: Optional[ClientToken] = None,
revenue_share_percent: Optional[RevenueSharePercent] = None,
status: Optional[AllocationStatus] = None,
) -> UpdateMarketplaceRevenueShareAllocationOutput
Updates an existing marketplace revenue share allocation. Supports modifying the revenue share percentage and status only, with time-based mutability rules.
Parameters:
-
catalog(CatalogName) –The catalog containing the allocation.
-
marketplace_revenue_share_identifier(Optional[MarketplaceRevenueShareIdentifier], default:None) –The parent marketplace revenue share, by ID (mrs-...) or ARN.
-
marketplace_revenue_share_allocation_id(MarketplaceRevenueShareAllocationId) –The identifier of the allocation to update.
-
marketplace_revenue_share_revision(RevisionToken) –The current revision of the parent share. Must match for optimistic concurrency control.
-
client_token(Optional[ClientToken], default:None) –A unique token to ensure idempotency of the update request.
-
revenue_share_percent(Optional[RevenueSharePercent], default:None) –The new revenue share percentage. Only modifiable on future-dated allocations.
-
status(Optional[AllocationStatus], default:None) –The new status. Set to INACTIVE for soft-delete. Only modifiable on future-dated allocations.
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 UpdateMarketplaceRevenueShareAllocation
>>> await client.update_marketplace_revenue_share_allocation(catalog='AWS', marketplace_revenue_share_identifier='mrs-abc123def4567', marketplace_revenue_share_allocation_id='mrsa-abc123def4567', marketplace_revenue_share_revision='2', revenue_share_percent='20.00')