Menu
AWS Marketplace Metering Service
API Reference (API Version 2016-01-14)

UsageRecord

A UsageRecord indicates a quantity of usage for a given product, customer, dimension and time.

Multiple requests with the same UsageRecords as input will be deduplicated to prevent double charges.

Contents

Note

In the following list, the required parameters are described first.

CustomerIdentifier

The CustomerIdentifier is obtained through the ResolveCustomer operation and represents an individual buyer in your application.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 255.

Required: Yes

Dimension

During the process of registering a product on AWS Marketplace, up to eight dimensions are specified. These represent different units of value in your application.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 255.

Required: Yes

Quantity

The quantity of usage consumed by the customer for the given dimension and time.

Type: Integer

Valid Range: Minimum value of 0. Maximum value of 1000000.

Required: Yes

Timestamp

Timestamp of the hour, recorded in UTC. The seconds and milliseconds portions of the timestamp will be ignored.

Your application can meter usage for up to one hour in the past.

Type: Timestamp

Required: Yes

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

On this page: