update_plan
¶
update_plan(
app_id: AppId,
plan_id: PlanId,
definition: PlanDefinition,
*,
config_overrides: Optional[AppMonetizationClientConfig] = None,
) -> UpdatePlanResponse
Updates an existing plan. Only a draft plan, one that has never been published, can be modified. After a plan is published, all of its fields are frozen and any update is rejected with a ConflictException. To change the terms of a published plan, archive it and create a new plan.
Parameters:
-
app_id(AppId) –The ID of the app.
-
plan_id(PlanId) –The identifier of the plan. AWS App Monetization generates this value when you create the plan. It is unique within the app and is never reused. Treat it as opaque.
-
definition(PlanDefinition) –The plan's updated pricing and packaging definition.
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.
-
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.