github.com/aws/aws-sdk-go-v2/service/marketplacemetering
Package marketplacemetering provides the API client, operations, and parameter
types for AWSMarketplace Metering.
This reference provides descriptions of the low-level AWS Marketplace Metering
Service API.
AWS Marketplace sellers can use this API to submit usage data for custom usage
dimensions.
For information on the permissions you need to use this API, see AWS Marketplace metering and entitlement API permissions in the AWS
Marketplace Seller Guide.
Submitting Metering Records
MeterUsage - Submits the metering record for an AWS Marketplace product.
MeterUsage is called from an EC2 instance or a container running on EKS or ECS.
BatchMeterUsage - Submits the metering record for a set of customers.
BatchMeterUsage is called from a software-as-a-service (SaaS) application.
Accepting New Customers
along with the CustomerAWSAccountId and ProductCode .
Entitlement and Metering for Paid Container Products
BatchMeterUsage API calls are captured by AWS CloudTrail. You can use
Cloudtrail to verify that the SaaS metering records that you sent are accurate
by searching for records with the eventName of BatchMeterUsage . You can also
use CloudTrail to audit records over time. For more information, see the AWS CloudTrail User Guide.