Skip to main content

agreement_charges

Creates, updates, deletes, gets or lists an agreement_charges resource.

Overview

Nameagreement_charges
TypeResource
Idaws.marketplace_agreement.agreement_charges

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe unique identifier of the charge. (pattern: <code>[A-Za-z0-9_/-]+</code>)
agreement_idstringThe unique identifier of the agreement that resulted in this charge. (pattern: <code>[A-Za-z0-9_/-]+</code>)
agreement_typestringThe type of agreement that resulted in this charge (for example, PurchaseAgreement). (pattern: <code>[A-Za-z]+</code>)
amountstringThe amount of the charge. (pattern: <code>(.)+</code>)
currency_codestringThe currency code for the charge amount. (pattern: <code>[A-Z]+</code>)
purchase_order_referencestringThe purchase order reference associated with the charge, if any.
revisioninteger (int64)The revision number of the charge.
timestring (date-time)The date and time when the charge will be incurred. This is available only when the charge date is known.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_agreement_chargesselectregionAllows acceptors to view charges and purchase orders that are associated with an agreement. The response includes details about all charges regardless of whether a purchase order is linked to each charge.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Allows acceptors to view charges and purchase orders that are associated with an agreement. The response includes details about all charges regardless of whether a purchase order is linked to each charge.

SELECT
id,
agreement_id,
agreement_type,
amount,
currency_code,
purchase_order_reference,
revision,
time
FROM aws.marketplace_agreement.agreement_charges
WHERE region = '{{ region }}' -- required
;