update_one_time_price
¶
update_one_time_price(
app_id: AppId,
one_time_price_id: OneTimePriceId,
definition: OneTimePriceDefinition,
*,
config_overrides: Optional[AppMonetizationClientConfig] = None,
client_token: Optional[ClientToken] = None,
) -> UpdateOneTimePriceResponse
Updates the definition of a one-time price. This operation is idempotent.
Parameters:
-
app_id(AppId) –The ID of the app the one-time price belongs to.
-
one_time_price_id(OneTimePriceId) –The ID of the one-time price to update.
-
definition(OneTimePriceDefinition) –The new definition to apply to the one-time price, including its display name, price, metric, and credited capacity.
-
client_token(Optional[ClientToken], default:None) –A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, the service ignores the request but does not return an error.
Raises:
-
AccessDeniedException–The caller does not have sufficient permission to perform this action.
-
ConflictException–The request conflicts with the current state of the resource, such as a duplicate identifier or a version mismatch. Retrieve the current state of the resource and retry the request.
-
IdempotencyConflictException–The clientToken was reused with a request that differs from the original request. Retry the operation with a new clientToken.
-
InternalServerException–An unexpected error occurred while processing the request.
-
InvalidConfigurationException–The requested configuration is not valid.
-
ResourceNotFoundException–The referenced resource does not exist.
-
RevisionConflictException–The request's revision does not match the resource's current revision. Retry with the current revision.
-
ServiceQuotaExceededException–The request would cause a service quota to be exceeded.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The request failed input validation.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_appmonetization/_services/app_monetization.py
3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 | |