Package-level declarations

Types

Link copied to clipboard

A BatchMeterUsageRequest contains UsageRecords, which indicate quantities of usage within your application.

Link copied to clipboard

Contains the UsageRecords processed by BatchMeterUsage and any records that have failed due to transient error.

Link copied to clipboard

Exception thrown when the customer does not have a valid subscription for the product.

Link copied to clipboard

The API is disabled in the Region.

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

An internal error has occurred. Retry your request. If the problem persists, post a message with details on the AWS forums.

Link copied to clipboard

You have metered usage for a CustomerIdentifier that does not exist.

Link copied to clipboard

The endpoint being called is in a AWS Region different from your EC2 instance, ECS task, or EKS pod. The Region of the Metering Service endpoint and the AWS Region of the resource must match.

Link copied to clipboard

The product code passed does not match the product code used for publishing the product.

Link copied to clipboard
Link copied to clipboard

RegisterUsage must be called in the same AWS Region the ECS task was launched in. This prevents a container from hardcoding a Region (e.g. withRegion(“us-east-1”) when calling RegisterUsage.

Link copied to clipboard

The tag is invalid, or the number of tags is greater than 5.

Link copied to clipboard

Registration token is invalid.

Link copied to clipboard

The usage allocation objects are invalid, or the number of allocations is greater than 500 for a single usage record.

Link copied to clipboard

The usage dimension does not match one of the UsageDimensions associated with products.

Link copied to clipboard

Base class for all service related exceptions thrown by the MarketplaceMetering client

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

AWS Marketplace does not support metering usage from the underlying platform. Currently, Amazon ECS, Amazon EKS, and AWS Fargate are supported.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Contains input to the ResolveCustomer operation.

Link copied to clipboard

The result of the ResolveCustomer operation. Contains the CustomerIdentifier along with the CustomerAWSAccountId and ProductCode.

Link copied to clipboard
class Tag

Metadata assigned to an allocation. Each tag is made up of a key and a value.

Link copied to clipboard

The calls to the API are throttled.

Link copied to clipboard

The timestamp value passed in the UsageRecord is out of allowed range.

Link copied to clipboard

Usage allocations allow you to split usage into buckets by tags.

Link copied to clipboard

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

Link copied to clipboard

A UsageRecordResult indicates the status of a given UsageRecord processed by BatchMeterUsage.

Link copied to clipboard