List<E> usageRecords
The set of UsageRecords to submit. BatchMeterUsage accepts up to 25 UsageRecords at a time.
String productCode
Product code is used to uniquely identify a product in AWS Marketplace. The product code should be the same as the one used during the publishing of a new product.
List<E> results
Contains all UsageRecords processed by BatchMeterUsage. These records were either honored by AWS Marketplace Metering Service or were invalid.
List<E> unprocessedRecords
Contains all UsageRecords that were not processed by BatchMeterUsage. This is a list of UsageRecords. You can retry the failed request by making another BatchMeterUsage call with this list as input in the BatchMeterUsageRequest.
String productCode
Product code is used to uniquely identify a product in AWS Marketplace. The product code should be the same as the one used during the publishing of a new product.
Date timestamp
Timestamp, in UTC, for which the usage is being reported. Your application can meter usage for up to one hour in the past. Make sure the timestamp value is not before the start of the software usage.
String usageDimension
It will be one of the fcp dimension name provided during the publishing of the product.
Integer usageQuantity
Consumption value for the hour. Defaults to 0 if not specified.
Boolean dryRun
Checks whether you have the permissions required for the action, but does not make the request. If you have the
permissions, the request returns DryRunOperation; otherwise, it returns UnauthorizedException. Defaults to
false if not specified.
List<E> usageAllocations
The set of UsageAllocations to submit.
The sum of all UsageAllocation quantities must equal the UsageQuantity of the MeterUsage request, and each UsageAllocation must have a unique set of tags (include no tags).
String meteringRecordId
Metering record id.
String productCode
Product code is used to uniquely identify a product in AWS Marketplace. The product code should be the same as the one used during the publishing of a new product.
Integer publicKeyVersion
Public Key Version provided by AWS Marketplace
String nonce
(Optional) To scope down the registration to a specific running software instance and guard against replay attacks.
String registrationToken
When a buyer visits your website during the registration process, the buyer submits a registration token through the browser. The registration token is resolved to obtain a CustomerIdentifier and product code.
String customerIdentifier
The CustomerIdentifier is used to identify an individual customer in your application. Calls to BatchMeterUsage require CustomerIdentifiers for each UsageRecord.
String productCode
The product code is returned to confirm that the buyer is registering for your product. Subsequent BatchMeterUsage calls should be made using this product code.
Date timestamp
Timestamp, in UTC, for which the usage is being reported.
Your application can meter usage for up to one hour in the past. Make sure the timestamp value is not before the start of the software usage.
String customerIdentifier
The CustomerIdentifier is obtained through the ResolveCustomer operation and represents an individual buyer in your application.
String 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.
Integer quantity
The quantity of usage consumed by the customer for the given dimension and time. Defaults to 0 if
not specified.
List<E> usageAllocations
The set of UsageAllocations to submit. The sum of all UsageAllocation quantities must equal the Quantity of the UsageRecord.
UsageRecord usageRecord
The UsageRecord that was part of the BatchMeterUsage request.
String meteringRecordId
The MeteringRecordId is a unique identifier for this metering event.
String status
The UsageRecordResult Status indicates the status of an individual UsageRecord processed by BatchMeterUsage.
Success- The UsageRecord was accepted and honored by BatchMeterUsage.
CustomerNotSubscribed- The CustomerIdentifier specified is not subscribed to your product. The UsageRecord was not honored. Future UsageRecords for this customer will fail until the customer subscribes to your product.
DuplicateRecord- Indicates that the UsageRecord was invalid and not honored. A previously metered UsageRecord had the same customer, dimension, and time, but a different quantity.
Copyright © 2021. All rights reserved.