AppMonetization / Client / put_third_party_cost
put_third_party_cost¶
- AppMonetization.Client.put_third_party_cost(**kwargs)¶
Adds or updates a seller-declared third-party (non-AWS) monthly cost for an app. Omit the cost identifier to create a new cost, or supply an existing cost identifier to update it in place. The amount is a flat monthly value, and currency defaults to USD when omitted.
See also: AWS API Documentation
Request Syntax
response = client.put_third_party_cost( appId='string', costId='string', label='string', amount='string', frequency='MONTHLY', currency='USD', description='string', effectiveFrom='string', effectiveTo='string', clientToken='string' )
- Parameters:
appId (string) –
[REQUIRED]
The ID of the app the cost belongs to.
costId (string) – The ID of the cost. Omit it to create a new cost, or supply an existing cost ID to update that cost in place.
label (string) –
[REQUIRED]
A human-readable label for the cost (for example, “Anthropic API”).
amount (string) –
[REQUIRED]
A flat monthly amount as a decimal string (for example, “12.50”).
frequency (string) – How often the cost recurs. MONTHLY is the only value today.
currency (string) – The currency of the amount. Defaults to USD when omitted (USD is the only supported currency).
description (string) – A free-form description of the cost.
effectiveFrom (string) – First month (YYYY-MM) the cost applies in. Absent means the cost has no start month.
effectiveTo (string) – Last month (YYYY-MM) the cost applies in. Absent means the cost has no end month. When both are present, effectiveFrom must not be after effectiveTo.
clientToken (string) –
AWS App Monetization does not use this value for this operation. To retry without creating a duplicate cost, pass the
costIdreturned by the first call.This field is autopopulated if not provided.
- Return type:
dict
- Returns:
Response Syntax
{ 'item': { 'appId': 'string', 'costId': 'string', 'label': 'string', 'amount': 'string', 'frequency': 'MONTHLY', 'currency': 'USD', 'description': 'string', 'effectiveFrom': 'string', 'effectiveTo': 'string', 'createdAt': datetime(2015, 1, 1), 'updatedAt': datetime(2015, 1, 1) } }
Response Structure
(dict) –
Output for PutThirdPartyCost.
item (dict) –
The third-party cost that was created or updated.
appId (string) –
The ID of the app the cost belongs to.
costId (string) –
The ID of the cost.
label (string) –
A human-readable label for the cost (for example, “Anthropic API”).
amount (string) –
The flat monthly amount as a decimal string (for example, “12.50”).
frequency (string) –
How often the cost recurs. MONTHLY is the only value today.
currency (string) –
The currency of the amount. USD is the only supported currency.
description (string) –
A free-form description of the cost.
effectiveFrom (string) –
First month (YYYY-MM) the cost applies in. Absent means the cost has no start month.
effectiveTo (string) –
Last month (YYYY-MM) the cost applies in. Absent means the cost has no end month.
createdAt (datetime) –
The time the cost was created.
updatedAt (datetime) –
The time the cost was last updated.
Exceptions