update_marketplace_revenue_share_allocation
¶
update_marketplace_revenue_share_allocation(
catalog: CatalogName,
product_id: MarketplaceProductId,
marketplace_revenue_share_allocation_id: MarketplaceRevenueShareAllocationId,
marketplace_revenue_share_revision: RevisionToken,
*,
config_overrides: Optional[PartnerCentralRevenueMeasurementClientConfig] = None,
client_token: Optional[ClientToken] = None,
effective_from: Optional[AllocationEffectiveDateString] = None,
effective_until: Optional[AllocationEffectiveDateString] = None,
revenue_share_percent: Optional[RevenueSharePercent] = None,
status: Optional[AllocationStatus] = None,
) -> UpdateMarketplaceRevenueShareAllocationOutput
Updates an existing marketplace revenue share allocation. Supports modifying effective dates, revenue share percentage, and status with time-based mutability rules.
Parameters:
-
catalog(CatalogName) –The catalog containing the allocation.
-
product_id(MarketplaceProductId) –The AWS Marketplace product identifier for the parent revenue share.
-
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.
-
effective_from(Optional[AllocationEffectiveDateString], default:None) –The new effective start date. Must be the first day of a month. Only modifiable on future-dated allocations.
-
effective_until(Optional[AllocationEffectiveDateString], default:None) –The new effective end date. Must be the last day of a month and on or after today.
-
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
>>> client.update_marketplace_revenue_share_allocation(catalog='AWS', product_id='prod-abc123def4567', marketplace_revenue_share_allocation_id='mrsa-abc123def4567', marketplace_revenue_share_revision='1', revenue_share_percent='20.00')
Source code in docs_src/capo_partnercentral_revenue_measurement/_services/partner_central_revenue_measurement.py
943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 | |