Package-level declarations
Types
A BatchMeterUsageRequest
contains UsageRecords
, which indicate quantities of usage within your application.
Contains the UsageRecords
processed by BatchMeterUsage
and any records that have failed due to transient error.
Exception thrown when the customer does not have a valid subscription for the product.
The API is disabled in the Region.
A metering record has already been emitted by the same EC2 instance, ECS task, or EKS pod for the given {usageDimension
, timestamp
} with a different usageQuantity
.
The submitted registration token has expired. This can happen if the buyer's browser takes too long to redirect to your page, the buyer has resubmitted the registration token, or your application has held on to the registration token for too long. Your SaaS registration website should redeem this token as soon as it is submitted by the buyer's browser.
An internal error has occurred. Retry your request. If the problem persists, post a message with details on the Amazon Web Services forums.
You have metered usage for a CustomerIdentifier
that does not exist.
The endpoint being called is in a Amazon Web Services Region different from your EC2 instance, ECS task, or EKS pod. The Region of the Metering Service endpoint and the Amazon Web Services Region of the resource must match.
The product code passed does not match the product code used for publishing the product.
Public Key version is invalid.
RegisterUsage
must be called in the same Amazon Web Services Region the ECS task was launched in. This prevents a container from hardcoding a Region (e.g. withRegion(“us-east-1”) when calling RegisterUsage
.
The tag is invalid, or the number of tags is greater than 5.
Registration token is invalid.
Sum of allocated usage quantities is not equal to the usage quantity.
The usage dimension does not match one of the UsageDimensions
associated with products.
Base class for all service related exceptions thrown by the MarketplaceMetering client
Amazon Web Services Marketplace does not support metering usage from the underlying platform. Currently, Amazon ECS, Amazon EKS, and Fargate are supported.
Contains input to the ResolveCustomer
operation.
The result of the ResolveCustomer
operation. Contains the CustomerIdentifier
along with the CustomerAWSAccountId
and ProductCode
.
The calls to the API are throttled.
The timestamp
value passed in the UsageRecord
is out of allowed range.
Usage allocations allow you to split usage into buckets by tags.
A UsageRecord
indicates a quantity of usage for a given product, customer, dimension and time.
A UsageRecordResult
indicates the status of a given UsageRecord
processed by BatchMeterUsage
.