AppMonetization / Paginator / ListOneTimePrices
ListOneTimePrices¶
- class AppMonetization.Paginator.ListOneTimePrices¶
paginator = client.get_paginator('list_one_time_prices')
- paginate(**kwargs)¶
Creates an iterator that will paginate through responses from
AppMonetization.Client.list_one_time_prices().See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate( appId='string', stage='DRAFT'|'PUBLISHED', scope='sandbox'|'live', PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } )
- Parameters:
appId (string) –
[REQUIRED]
The ID of the app whose one-time prices are listed.
stage (string) – The offering stage to list one-time prices from: DRAFT (the latest authored draft) or PUBLISHED (the published offering customers see). Absent: PUBLISHED when scope=live, DRAFT when scope=sandbox.
scope (string) –
[REQUIRED]
Required. The environment: live or sandbox. live reads the published offering by default; sandbox reads the app’s draft (what the sandbox runs).
PaginationConfig (dict) –
A dictionary that provides parameters to control pagination.
MaxItems (integer) –
The total number of items to return. If the total number of items available is more than the value specified in max-items then a
NextTokenwill be provided in the output that you can use to resume pagination.PageSize (integer) –
The size of each page.
StartingToken (string) –
A token to specify where to start paginating. This is the
NextTokenfrom a previous response.
- Return type:
dict
- Returns:
Response Syntax
{ 'oneTimePrices': [ { 'arn': 'string', 'appId': 'string', 'oneTimePriceId': 'string', 'definition': { 'name': 'string', 'price': { 'currencyCode': 'string', 'amount': 'string' }, 'metricId': 'string', 'capacity': 123 }, 'stage': 'DRAFT'|'PUBLISHED' }, ], 'NextToken': 'string' }
Response Structure
(dict) –
Output for ListOneTimePrices.
oneTimePrices (list) –
The one-time prices for the app.
(dict) –
A one-time price for an app: a usage pack a buyer can purchase once to credit a metric.
arn (string) –
The Amazon Resource Name (ARN) of the one-time price.
appId (string) –
The ID of the app the one-time price belongs to.
oneTimePriceId (string) –
The service-assigned ID of the one-time price.
definition (dict) –
The definition of the one-time price, including its display name, price, metric, and credited capacity.
name (string) –
A human-readable display name for the one-time price.
price (dict) –
The amount and currency charged for one purchase of the one-time price.
currencyCode (string) –
The ISO 4217 currency code (three uppercase letters, for example, “USD”).
amount (string) –
An arbitrary-precision decimal represented as a string (for example, “9.99”).
metricId (string) –
The metric one purchase credits.
capacity (integer) –
The units of metricId one purchase credits.
stage (string) –
The offering stage the one-time price was read from.
NextToken (string) –
A token to resume pagination.