Trait rusoto_meteringmarketplace::MarketplaceMetering [] [src]

pub trait MarketplaceMetering {
    fn batch_meter_usage(
        &self,
        input: &BatchMeterUsageRequest
    ) -> Result<BatchMeterUsageResult, BatchMeterUsageError>; fn meter_usage(
        &self,
        input: &MeterUsageRequest
    ) -> Result<MeterUsageResult, MeterUsageError>; fn resolve_customer(
        &self,
        input: &ResolveCustomerRequest
    ) -> Result<ResolveCustomerResult, ResolveCustomerError>; }

Trait representing the capabilities of the AWSMarketplace Metering API. AWSMarketplace Metering clients implement this trait.

Required Methods

BatchMeterUsage is called from a SaaS application listed on the AWS Marketplace to post metering records for a set of customers.

For identical requests, the API is idempotent; requests can be retried with the same records or a subset of the input records.

Every request to BatchMeterUsage is for one product. If you need to meter usage for multiple products, you must make multiple calls to BatchMeterUsage.

BatchMeterUsage can process up to 25 UsageRecords at a time.

API to emit metering records. For identical requests, the API is idempotent. It simply returns the metering record ID.

MeterUsage is authenticated on the buyer's AWS account, generally when running from an EC2 instance on the AWS Marketplace.

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.

Implementors