archive_plan
async
¶
archive_plan(
app_id: AppId,
plan_id: PlanId,
*,
config_overrides: Optional[AsyncAppMonetizationClientConfig] = None,
) -> ArchivePlanResponse
Archives a plan, removing it from the app's draft configuration so that it can no longer be subscribed to. The removal takes effect on the next call to PublishDraft. Existing subscriptions to the plan are unaffected, and the plan's display name is freed for reuse. The plan's included quotas are removed with it.
Parameters:
-
app_id(AppId) –The ID of the app.
-
plan_id(PlanId) –The identifier of the plan. We generate this value when you create the plan. It is unique within the app and is never reused. Treat it as opaque.
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.