AppMonetization / Client / archive_plan
archive_plan¶
- AppMonetization.Client.archive_plan(**kwargs)¶
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.
See also: AWS API Documentation
Request Syntax
response = client.archive_plan( appId='string', planId='string' )
- Parameters:
appId (string) –
[REQUIRED]
The ID of the app.
planId (string) –
[REQUIRED]
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.
- Return type:
dict
- Returns:
Response Syntax
{ 'appId': 'string', 'planId': 'string' }
Response Structure
(dict) –
Output for ArchivePlan. Echoes the archived plan’s identifiers.
appId (string) –
The ID of the app the archived plan belonged to.
planId (string) –
The server-generated identifier of the archived plan.
Exceptions
AppMonetization.Client.exceptions.AccessDeniedExceptionAppMonetization.Client.exceptions.ValidationExceptionAppMonetization.Client.exceptions.ConflictExceptionAppMonetization.Client.exceptions.InvalidConfigurationExceptionAppMonetization.Client.exceptions.InternalServerExceptionAppMonetization.Client.exceptions.ServiceQuotaExceededExceptionAppMonetization.Client.exceptions.ResourceNotFoundExceptionAppMonetization.Client.exceptions.RevisionConflictExceptionAppMonetization.Client.exceptions.ThrottlingException