list_plans
¶
list_plans(
app_id: AppId,
scope: RequestScope,
*,
config_overrides: Optional[AppMonetizationClientConfig] = None,
stage: Optional[PlanStage] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
) -> ListPlansResponse
Returns the plans for an app. We recommend using pagination to ensure that the operation returns quickly and successfully.
Parameters:
-
app_id(AppId) –The ID of the app.
-
stage(Optional[PlanStage], default:None) –Which offering stage to list plans from: DRAFT (the latest authored draft) or PUBLISHED (the published offering customers see). Absent: PUBLISHED when scope=live, DRAFT when scope=sandbox. A stage with nothing published yet lists as empty.
-
max_results(Optional[MaxResults], default:None) –The maximum number of items to return in a single page. Valid range is 1 to 100.
-
next_token(Optional[NextToken], default:None) –An opaque pagination token. Pass the value returned in a response back on the next request to retrieve the following page; absent when there are no more results.
-
scope(RequestScope) –Required. The environment: live or sandbox. live reads the published offering by default; sandbox reads the app's draft (what the sandbox runs).
Raises:
-
AccessDeniedException–The caller does not have sufficient permission to perform this action.
-
InternalServerException–An unexpected error occurred while processing the request.
-
ResourceNotFoundException–The referenced resource does not exist.
-
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
2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 | |