MarketplaceMetering class

This reference provides descriptions of the low-level AWS Marketplace Metering Service API.

Constructors

MarketplaceMetering({required String region, AwsClientCredentials? credentials, AwsClientCredentialsProvider? credentialsProvider, Client? client, String? endpointUrl})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

batchMeterUsage({required String productCode, required List<UsageRecord> usageRecords}) Future<BatchMeterUsageResult>
BatchMeterUsage is called from a SaaS application listed on the AWS Marketplace to post metering records for a set of customers.
close() → void
Closes the internal HTTP client if none was provided at creation. If a client was passed as a constructor argument, this becomes a noop.
meterUsage({required String productCode, required DateTime timestamp, required String usageDimension, bool? dryRun, List<UsageAllocation>? usageAllocations, int? usageQuantity}) Future<MeterUsageResult>
API to emit metering records. For identical requests, the API is idempotent. It simply returns the metering record ID.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerUsage({required String productCode, required int publicKeyVersion, String? nonce}) Future<RegisterUsageResult>
Paid container software products sold through AWS Marketplace must integrate with the AWS Marketplace Metering Service and call the RegisterUsage operation for software entitlement and metering. Free and BYOL products for Amazon ECS or Amazon EKS aren't required to call RegisterUsage, but you may choose to do so if you would like to receive usage data in your seller reports. The sections below explain the behavior of RegisterUsage. RegisterUsage performs two primary functions: metering and entitlement.
resolveCustomer({required String registrationToken}) Future<ResolveCustomerResult>
ResolveCustomer is called by a SaaS application during the registration process. When a buyer visits your website during the registration process, the buyer submits a registration token through their browser. The registration token is resolved through this API to obtain a CustomerIdentifier and product code.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited