# Packages
Package marketplacemeteringiface provides an interface to enable mocking the AWSMarketplace Metering service client for testing your code.
# Functions
New creates a new instance of the MarketplaceMetering client with a session.
UsageRecordResultStatus_Values returns all elements of the UsageRecordResultStatus enum.
# Constants
ID to lookup a service endpoint with.
ErrCodeCustomerNotEntitledException for service response error code "CustomerNotEntitledException".
ErrCodeDisabledApiException for service response error code "DisabledApiException".
ErrCodeDuplicateRequestException for service response error code "DuplicateRequestException".
ErrCodeExpiredTokenException for service response error code "ExpiredTokenException".
ErrCodeInternalServiceErrorException for service response error code "InternalServiceErrorException".
ErrCodeInvalidCustomerIdentifierException for service response error code "InvalidCustomerIdentifierException".
ErrCodeInvalidEndpointRegionException for service response error code "InvalidEndpointRegionException".
ErrCodeInvalidProductCodeException for service response error code "InvalidProductCodeException".
ErrCodeInvalidPublicKeyVersionException for service response error code "InvalidPublicKeyVersionException".
ErrCodeInvalidRegionException for service response error code "InvalidRegionException".
ErrCodeInvalidTagException for service response error code "InvalidTagException".
ErrCodeInvalidTokenException for service response error code "InvalidTokenException".
ErrCodeInvalidUsageAllocationsException for service response error code "InvalidUsageAllocationsException".
ErrCodeInvalidUsageDimensionException for service response error code "InvalidUsageDimensionException".
ErrCodePlatformNotSupportedException for service response error code "PlatformNotSupportedException".
ErrCodeThrottlingException for service response error code "ThrottlingException".
ErrCodeTimestampOutOfBoundsException for service response error code "TimestampOutOfBoundsException".
ServiceID is a unique identifier of a specific service.
Name of service.
UsageRecordResultStatusCustomerNotSubscribed is a UsageRecordResultStatus enum value.
UsageRecordResultStatusDuplicateRecord is a UsageRecordResultStatus enum value.
UsageRecordResultStatusSuccess is a UsageRecordResultStatus enum value.
# Structs
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.
An internal error has occurred.
You have metered usage for a CustomerIdentifier that does not exist.
The endpoint being called is in a AWS Region different from your EC2 instance, ECS task, or EKS pod.
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 AWS Region the ECS task was launched in.
The tag is invalid, or the number of tags is greater than 5.
Registration token is invalid.
The usage allocation objects are invalid, or the number of allocations is greater than 500 for a single usage record.
The usage dimension does not match one of the UsageDimensions associated with products.
MarketplaceMetering provides the API operation methods for making requests to AWSMarketplace Metering.
AWS Marketplace does not support metering usage from the underlying platform.
Contains input to the ResolveCustomer operation.
The result of the ResolveCustomer operation.
Metadata assigned to an allocation.
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.