update_one_time_price
async
¶
update_one_time_price(
app_id: AppId,
one_time_price_id: OneTimePriceId,
definition: OneTimePriceDefinition,
*,
config_overrides: Optional[AsyncAppMonetizationClientConfig] = 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/async_app_monetization.py
3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 | |