{ "smithy": "1.0", "metadata": { "suppressions": [ { "id": "HttpMethodSemantics", "namespace": "*" }, { "id": "HttpResponseCodeSemantics", "namespace": "*" }, { "id": "PaginatedTrait", "namespace": "*" }, { "id": "HttpHeaderTrait", "namespace": "*" }, { "id": "HttpUriConflict", "namespace": "*" }, { "id": "Service", "namespace": "*" } ] }, "shapes": { "com.amazonaws.marketplacemetering#AWSMPMeteringService": { "type": "service", "version": "2016-01-14", "operations": [ { "target": "com.amazonaws.marketplacemetering#BatchMeterUsage" }, { "target": "com.amazonaws.marketplacemetering#MeterUsage" }, { "target": "com.amazonaws.marketplacemetering#RegisterUsage" }, { "target": "com.amazonaws.marketplacemetering#ResolveCustomer" } ], "traits": { "aws.api#service": { "sdkId": "Marketplace Metering", "arnNamespace": "aws-marketplace", "cloudFormationName": "MarketplaceMetering", "cloudTrailEventSource": "marketplacemetering.amazonaws.com", "endpointPrefix": "metering.marketplace" }, "aws.auth#sigv4": { "name": "aws-marketplace" }, "aws.protocols#awsJson1_1": {}, "smithy.api#documentation": "AWS Marketplace Metering Service\n

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

\n

AWS Marketplace sellers can use this API to submit usage data for custom usage\n dimensions.

\n

For information on the permissions you need to use this API, see\n AWS Marketing metering and entitlement API permissions in the AWS Marketplace Seller Guide. \n

\n

\n Submitting Metering Records\n

\n \n

\n Accepting New Customers\n

\n \n

\n Entitlement and Metering for Paid Container Products\n

\n \n

BatchMeterUsage API calls are captured by AWS CloudTrail. You can use Cloudtrail to\n verify that the SaaS metering records that you sent are accurate by searching for\n records with the eventName of BatchMeterUsage. You can also use CloudTrail to audit\n records over time. For more information, see the \n AWS CloudTrail User Guide\n .

", "smithy.api#title": "AWSMarketplace Metering" } }, "com.amazonaws.marketplacemetering#AllocatedUsageQuantity": { "type": "integer", "traits": { "smithy.api#box": {}, "smithy.api#range": { "min": 0, "max": 2147483647 } } }, "com.amazonaws.marketplacemetering#BatchMeterUsage": { "type": "operation", "input": { "target": "com.amazonaws.marketplacemetering#BatchMeterUsageRequest" }, "output": { "target": "com.amazonaws.marketplacemetering#BatchMeterUsageResult" }, "errors": [ { "target": "com.amazonaws.marketplacemetering#DisabledApiException" }, { "target": "com.amazonaws.marketplacemetering#InternalServiceErrorException" }, { "target": "com.amazonaws.marketplacemetering#InvalidCustomerIdentifierException" }, { "target": "com.amazonaws.marketplacemetering#InvalidProductCodeException" }, { "target": "com.amazonaws.marketplacemetering#InvalidTagException" }, { "target": "com.amazonaws.marketplacemetering#InvalidUsageAllocationsException" }, { "target": "com.amazonaws.marketplacemetering#InvalidUsageDimensionException" }, { "target": "com.amazonaws.marketplacemetering#ThrottlingException" }, { "target": "com.amazonaws.marketplacemetering#TimestampOutOfBoundsException" } ], "traits": { "smithy.api#documentation": "

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

\n

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

\n

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

\n

BatchMeterUsage can process up to 25 UsageRecords at a time.

\n

A UsageRecord can optionally include multiple usage allocations, to provide customers\n with usagedata split into buckets by tags that you define (or allow the customer to \n define).

\n

BatchMeterUsage requests must be less than 1MB in size.

" } }, "com.amazonaws.marketplacemetering#BatchMeterUsageRequest": { "type": "structure", "members": { "UsageRecords": { "target": "com.amazonaws.marketplacemetering#UsageRecordList", "traits": { "smithy.api#documentation": "

The set of UsageRecords to submit. BatchMeterUsage accepts up to 25 UsageRecords at\n a time.

", "smithy.api#required": {} } }, "ProductCode": { "target": "com.amazonaws.marketplacemetering#ProductCode", "traits": { "smithy.api#documentation": "

Product code is used to uniquely identify a product in AWS Marketplace. The product\n code should be the same as the one used during the publishing of a new\n product.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

A BatchMeterUsageRequest contains UsageRecords, which indicate quantities of usage\n within your application.

" } }, "com.amazonaws.marketplacemetering#BatchMeterUsageResult": { "type": "structure", "members": { "Results": { "target": "com.amazonaws.marketplacemetering#UsageRecordResultList", "traits": { "smithy.api#documentation": "

Contains all UsageRecords processed by BatchMeterUsage. These records were either\n honored by AWS Marketplace Metering Service or were invalid.

" } }, "UnprocessedRecords": { "target": "com.amazonaws.marketplacemetering#UsageRecordList", "traits": { "smithy.api#documentation": "

Contains all UsageRecords that were not processed by BatchMeterUsage. This is a\n list of UsageRecords. You can retry the failed request by making another BatchMeterUsage\n call with this list as input in the BatchMeterUsageRequest.

" } } }, "traits": { "smithy.api#documentation": "

Contains the UsageRecords processed by BatchMeterUsage and any records that have\n failed due to transient error.

" } }, "com.amazonaws.marketplacemetering#Boolean": { "type": "boolean", "traits": { "smithy.api#box": {} } }, "com.amazonaws.marketplacemetering#CustomerIdentifier": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 255 }, "smithy.api#pattern": "[\\s\\S]+" } }, "com.amazonaws.marketplacemetering#CustomerNotEntitledException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.marketplacemetering#errorMessage" } }, "traits": { "smithy.api#documentation": "

Exception thrown when the customer does not have a valid subscription for the\n product.

", "smithy.api#error": "client" } }, "com.amazonaws.marketplacemetering#DisabledApiException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.marketplacemetering#errorMessage" } }, "traits": { "smithy.api#documentation": "

The API is disabled in the Region.

", "smithy.api#error": "client" } }, "com.amazonaws.marketplacemetering#DuplicateRequestException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.marketplacemetering#errorMessage" } }, "traits": { "smithy.api#documentation": "

A metering record has already been emitted by the same EC2 instance, ECS task, or\n EKS pod for the given {usageDimension, timestamp} with a different\n usageQuantity.

", "smithy.api#error": "client" } }, "com.amazonaws.marketplacemetering#ExpiredTokenException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.marketplacemetering#errorMessage" } }, "traits": { "smithy.api#documentation": "

The submitted registration token has expired. This can happen if the buyer's\n browser takes too long to redirect to your page, the buyer has resubmitted the\n registration token, or your application has held on to the registration token for too\n long. Your SaaS registration website should redeem this token as soon as it is submitted\n by the buyer's browser.

", "smithy.api#error": "client" } }, "com.amazonaws.marketplacemetering#InternalServiceErrorException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.marketplacemetering#errorMessage" } }, "traits": { "smithy.api#documentation": "

An internal error has occurred. Retry your request. If the problem persists, post a\n message with details on the AWS forums.

", "smithy.api#error": "server" } }, "com.amazonaws.marketplacemetering#InvalidCustomerIdentifierException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.marketplacemetering#errorMessage" } }, "traits": { "smithy.api#documentation": "

You have metered usage for a CustomerIdentifier that does not exist.

", "smithy.api#error": "client" } }, "com.amazonaws.marketplacemetering#InvalidEndpointRegionException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.marketplacemetering#errorMessage" } }, "traits": { "smithy.api#documentation": "

The endpoint being called is in a AWS Region different from your EC2 instance, ECS\n task, or EKS pod. The Region of the Metering Service endpoint and the AWS Region of the\n resource must match.

", "smithy.api#error": "client" } }, "com.amazonaws.marketplacemetering#InvalidProductCodeException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.marketplacemetering#errorMessage" } }, "traits": { "smithy.api#documentation": "

The product code passed does not match the product code used for publishing the\n product.

", "smithy.api#error": "client" } }, "com.amazonaws.marketplacemetering#InvalidPublicKeyVersionException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.marketplacemetering#errorMessage" } }, "traits": { "smithy.api#documentation": "

Public Key version is invalid.

", "smithy.api#error": "client" } }, "com.amazonaws.marketplacemetering#InvalidRegionException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.marketplacemetering#errorMessage" } }, "traits": { "smithy.api#documentation": "

RegisterUsage must be called in the same AWS Region the ECS task was launched in.\n This prevents a container from hardcoding a Region (e.g. withRegion(“us-east-1”) when\n calling RegisterUsage.

", "smithy.api#error": "client" } }, "com.amazonaws.marketplacemetering#InvalidTagException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.marketplacemetering#errorMessage" } }, "traits": { "smithy.api#documentation": "

The tag is invalid, or the number of tags is greater than 5.

", "smithy.api#error": "client" } }, "com.amazonaws.marketplacemetering#InvalidTokenException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.marketplacemetering#errorMessage" } }, "traits": { "smithy.api#documentation": "

Registration token is invalid.

", "smithy.api#error": "client" } }, "com.amazonaws.marketplacemetering#InvalidUsageAllocationsException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.marketplacemetering#errorMessage" } }, "traits": { "smithy.api#documentation": "

The usage allocation objects are invalid, or the number of allocations is greater\n than 500 for a single usage record.

", "smithy.api#error": "client" } }, "com.amazonaws.marketplacemetering#InvalidUsageDimensionException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.marketplacemetering#errorMessage" } }, "traits": { "smithy.api#documentation": "

The usage dimension does not match one of the UsageDimensions associated with\n products.

", "smithy.api#error": "client" } }, "com.amazonaws.marketplacemetering#MeterUsage": { "type": "operation", "input": { "target": "com.amazonaws.marketplacemetering#MeterUsageRequest" }, "output": { "target": "com.amazonaws.marketplacemetering#MeterUsageResult" }, "errors": [ { "target": "com.amazonaws.marketplacemetering#CustomerNotEntitledException" }, { "target": "com.amazonaws.marketplacemetering#DuplicateRequestException" }, { "target": "com.amazonaws.marketplacemetering#InternalServiceErrorException" }, { "target": "com.amazonaws.marketplacemetering#InvalidEndpointRegionException" }, { "target": "com.amazonaws.marketplacemetering#InvalidProductCodeException" }, { "target": "com.amazonaws.marketplacemetering#InvalidTagException" }, { "target": "com.amazonaws.marketplacemetering#InvalidUsageAllocationsException" }, { "target": "com.amazonaws.marketplacemetering#InvalidUsageDimensionException" }, { "target": "com.amazonaws.marketplacemetering#ThrottlingException" }, { "target": "com.amazonaws.marketplacemetering#TimestampOutOfBoundsException" } ], "traits": { "smithy.api#documentation": "

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

\n

MeterUsage is authenticated on the buyer's AWS account using credentials from the\n EC2 instance, ECS task, or EKS pod.

\n

MeterUsage can optionally include multiple usage allocations, to provide customers\n with usage data split into buckets by tags that you define (or allow the customer to\n define).

" } }, "com.amazonaws.marketplacemetering#MeterUsageRequest": { "type": "structure", "members": { "ProductCode": { "target": "com.amazonaws.marketplacemetering#ProductCode", "traits": { "smithy.api#documentation": "

Product code is used to uniquely identify a product in AWS Marketplace. The product\n code should be the same as the one used during the publishing of a new\n product.

", "smithy.api#required": {} } }, "Timestamp": { "target": "com.amazonaws.marketplacemetering#Timestamp", "traits": { "smithy.api#documentation": "

Timestamp, in UTC, for which the usage is being reported. Your application can\n meter usage for up to one hour in the past. Make sure the timestamp value is not before\n the start of the software usage.

", "smithy.api#required": {} } }, "UsageDimension": { "target": "com.amazonaws.marketplacemetering#UsageDimension", "traits": { "smithy.api#documentation": "

It will be one of the fcp dimension name provided during the publishing of the\n product.

", "smithy.api#required": {} } }, "UsageQuantity": { "target": "com.amazonaws.marketplacemetering#UsageQuantity", "traits": { "smithy.api#documentation": "

Consumption value for the hour. Defaults to 0 if not\n specified.

" } }, "DryRun": { "target": "com.amazonaws.marketplacemetering#Boolean", "traits": { "smithy.api#documentation": "

Checks whether you have the permissions required for the action, but does not make\n the request. If you have the permissions, the request returns DryRunOperation;\n otherwise, it returns UnauthorizedException. Defaults to false if not\n specified.

" } }, "UsageAllocations": { "target": "com.amazonaws.marketplacemetering#UsageAllocations", "traits": { "smithy.api#documentation": "

The set of UsageAllocations to submit.

\n

The sum of all UsageAllocation quantities must equal the\n UsageQuantity of the MeterUsage request, and each UsageAllocation must have a\n unique set of tags (include no tags).

" } } } }, "com.amazonaws.marketplacemetering#MeterUsageResult": { "type": "structure", "members": { "MeteringRecordId": { "target": "com.amazonaws.marketplacemetering#String", "traits": { "smithy.api#documentation": "

Metering record id.

" } } } }, "com.amazonaws.marketplacemetering#NonEmptyString": { "type": "string", "traits": { "smithy.api#pattern": "[\\s\\S]+" } }, "com.amazonaws.marketplacemetering#Nonce": { "type": "string", "traits": { "smithy.api#length": { "min": 0, "max": 255 }, "smithy.api#pattern": "[\\s\\S]*" } }, "com.amazonaws.marketplacemetering#PlatformNotSupportedException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.marketplacemetering#errorMessage" } }, "traits": { "smithy.api#documentation": "

AWS Marketplace does not support metering usage from the underlying platform.\n Currently, Amazon ECS, Amazon EKS, and AWS Fargate are supported.

", "smithy.api#error": "client" } }, "com.amazonaws.marketplacemetering#ProductCode": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 255 }, "smithy.api#pattern": "[\\s\\S]+" } }, "com.amazonaws.marketplacemetering#RegisterUsage": { "type": "operation", "input": { "target": "com.amazonaws.marketplacemetering#RegisterUsageRequest" }, "output": { "target": "com.amazonaws.marketplacemetering#RegisterUsageResult" }, "errors": [ { "target": "com.amazonaws.marketplacemetering#CustomerNotEntitledException" }, { "target": "com.amazonaws.marketplacemetering#DisabledApiException" }, { "target": "com.amazonaws.marketplacemetering#InternalServiceErrorException" }, { "target": "com.amazonaws.marketplacemetering#InvalidProductCodeException" }, { "target": "com.amazonaws.marketplacemetering#InvalidPublicKeyVersionException" }, { "target": "com.amazonaws.marketplacemetering#InvalidRegionException" }, { "target": "com.amazonaws.marketplacemetering#PlatformNotSupportedException" }, { "target": "com.amazonaws.marketplacemetering#ThrottlingException" } ], "traits": { "smithy.api#documentation": "

Paid container software products sold through AWS Marketplace must integrate with\n the AWS Marketplace Metering Service and call the RegisterUsage operation for software\n entitlement and metering. Free and BYOL products for Amazon ECS or Amazon EKS aren't\n required to call RegisterUsage, but you may choose to do so if you would like to receive\n usage data in your seller reports. The sections below explain the behavior of\n RegisterUsage. RegisterUsage performs two primary functions: metering and\n entitlement.

\n\n " } }, "com.amazonaws.marketplacemetering#RegisterUsageRequest": { "type": "structure", "members": { "ProductCode": { "target": "com.amazonaws.marketplacemetering#ProductCode", "traits": { "smithy.api#documentation": "

Product code is used to uniquely identify a product in AWS Marketplace. The product\n code should be the same as the one used during the publishing of a new\n product.

", "smithy.api#required": {} } }, "PublicKeyVersion": { "target": "com.amazonaws.marketplacemetering#VersionInteger", "traits": { "smithy.api#documentation": "

Public Key Version provided by AWS Marketplace

", "smithy.api#required": {} } }, "Nonce": { "target": "com.amazonaws.marketplacemetering#Nonce", "traits": { "smithy.api#documentation": "

(Optional) To scope down the registration to a specific running software instance\n and guard against replay attacks.

" } } } }, "com.amazonaws.marketplacemetering#RegisterUsageResult": { "type": "structure", "members": { "PublicKeyRotationTimestamp": { "target": "com.amazonaws.marketplacemetering#Timestamp", "traits": { "smithy.api#documentation": "

(Optional) Only included when public key version has expired

" } }, "Signature": { "target": "com.amazonaws.marketplacemetering#NonEmptyString", "traits": { "smithy.api#documentation": "

JWT Token

" } } } }, "com.amazonaws.marketplacemetering#ResolveCustomer": { "type": "operation", "input": { "target": "com.amazonaws.marketplacemetering#ResolveCustomerRequest" }, "output": { "target": "com.amazonaws.marketplacemetering#ResolveCustomerResult" }, "errors": [ { "target": "com.amazonaws.marketplacemetering#DisabledApiException" }, { "target": "com.amazonaws.marketplacemetering#ExpiredTokenException" }, { "target": "com.amazonaws.marketplacemetering#InternalServiceErrorException" }, { "target": "com.amazonaws.marketplacemetering#InvalidTokenException" }, { "target": "com.amazonaws.marketplacemetering#ThrottlingException" } ], "traits": { "smithy.api#documentation": "

ResolveCustomer is called by a SaaS application during the registration process.\n When a buyer visits your website during the registration process, the buyer submits a\n registration token through their browser. The registration token is resolved through\n this API to obtain a CustomerIdentifier and product code.

" } }, "com.amazonaws.marketplacemetering#ResolveCustomerRequest": { "type": "structure", "members": { "RegistrationToken": { "target": "com.amazonaws.marketplacemetering#NonEmptyString", "traits": { "smithy.api#documentation": "

When a buyer visits your website during the registration process, the buyer submits\n a registration token through the browser. The registration token is resolved to obtain a\n CustomerIdentifier and product code.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

Contains input to the ResolveCustomer operation.

" } }, "com.amazonaws.marketplacemetering#ResolveCustomerResult": { "type": "structure", "members": { "CustomerIdentifier": { "target": "com.amazonaws.marketplacemetering#CustomerIdentifier", "traits": { "smithy.api#documentation": "

The CustomerIdentifier is used to identify an individual customer in your\n application. Calls to BatchMeterUsage require CustomerIdentifiers for each\n UsageRecord.

" } }, "ProductCode": { "target": "com.amazonaws.marketplacemetering#ProductCode", "traits": { "smithy.api#documentation": "

The product code is returned to confirm that the buyer is registering for your\n product. Subsequent BatchMeterUsage calls should be made using this product\n code.

" } } }, "traits": { "smithy.api#documentation": "

The result of the ResolveCustomer operation. Contains the CustomerIdentifier and\n product code.

" } }, "com.amazonaws.marketplacemetering#String": { "type": "string" }, "com.amazonaws.marketplacemetering#Tag": { "type": "structure", "members": { "Key": { "target": "com.amazonaws.marketplacemetering#TagKey", "traits": { "smithy.api#documentation": "

One part of a key-value pair that makes up a tag. A key is a label that acts like a\n category for the specific tag values.

", "smithy.api#required": {} } }, "Value": { "target": "com.amazonaws.marketplacemetering#TagValue", "traits": { "smithy.api#documentation": "

One part of a key-value pair that makes up a tag. A value acts as a descriptor within\n a tag category (key). The value can be empty or null.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

Metadata assigned to an allocation. Each tag is made up of a key and a value.

" } }, "com.amazonaws.marketplacemetering#TagKey": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 100 }, "smithy.api#pattern": "^[a-zA-Z0-9+ -=._:\\/@]+$" } }, "com.amazonaws.marketplacemetering#TagList": { "type": "list", "member": { "target": "com.amazonaws.marketplacemetering#Tag" }, "traits": { "smithy.api#length": { "min": 1, "max": 5 } } }, "com.amazonaws.marketplacemetering#TagValue": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 256 }, "smithy.api#pattern": "^[a-zA-Z0-9+ -=._:\\/@]+$" } }, "com.amazonaws.marketplacemetering#ThrottlingException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.marketplacemetering#errorMessage" } }, "traits": { "smithy.api#documentation": "

The calls to the API are throttled.

", "smithy.api#error": "client" } }, "com.amazonaws.marketplacemetering#Timestamp": { "type": "timestamp" }, "com.amazonaws.marketplacemetering#TimestampOutOfBoundsException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.marketplacemetering#errorMessage" } }, "traits": { "smithy.api#documentation": "

The timestamp value passed in the meterUsage() is out of allowed range.

", "smithy.api#error": "client" } }, "com.amazonaws.marketplacemetering#UsageAllocation": { "type": "structure", "members": { "AllocatedUsageQuantity": { "target": "com.amazonaws.marketplacemetering#AllocatedUsageQuantity", "traits": { "smithy.api#documentation": "

The total quantity allocated to this bucket of usage.

", "smithy.api#required": {} } }, "Tags": { "target": "com.amazonaws.marketplacemetering#TagList", "traits": { "smithy.api#documentation": "

The set of tags that define the bucket of usage. For the bucket of items with no\n tags, this parameter can be left out.

" } } }, "traits": { "smithy.api#documentation": "

Usage allocations allow you to split usage into buckets by tags.

\n

Each UsageAllocation indicates the usage quantity for a specific set of tags.

" } }, "com.amazonaws.marketplacemetering#UsageAllocations": { "type": "list", "member": { "target": "com.amazonaws.marketplacemetering#UsageAllocation" }, "traits": { "smithy.api#length": { "min": 1, "max": 500 } } }, "com.amazonaws.marketplacemetering#UsageDimension": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 255 }, "smithy.api#pattern": "[\\s\\S]+" } }, "com.amazonaws.marketplacemetering#UsageQuantity": { "type": "integer", "traits": { "smithy.api#box": {}, "smithy.api#range": { "min": 0, "max": 2147483647 } } }, "com.amazonaws.marketplacemetering#UsageRecord": { "type": "structure", "members": { "Timestamp": { "target": "com.amazonaws.marketplacemetering#Timestamp", "traits": { "smithy.api#documentation": "

Timestamp, in UTC, for which the usage is being reported.

\n

Your application can meter usage for up to one hour in the past. Make sure the\n timestamp value is not before the start of the software usage.

", "smithy.api#required": {} } }, "CustomerIdentifier": { "target": "com.amazonaws.marketplacemetering#CustomerIdentifier", "traits": { "smithy.api#documentation": "

The CustomerIdentifier is obtained through the ResolveCustomer operation and\n represents an individual buyer in your application.

", "smithy.api#required": {} } }, "Dimension": { "target": "com.amazonaws.marketplacemetering#UsageDimension", "traits": { "smithy.api#documentation": "

During the process of registering a product on AWS Marketplace, up to eight\n dimensions are specified. These represent different units of value in your\n application.

", "smithy.api#required": {} } }, "Quantity": { "target": "com.amazonaws.marketplacemetering#UsageQuantity", "traits": { "smithy.api#documentation": "

The quantity of usage consumed by the customer for the given dimension and time.\n Defaults to 0 if not specified.

" } }, "UsageAllocations": { "target": "com.amazonaws.marketplacemetering#UsageAllocations", "traits": { "smithy.api#documentation": "

The set of UsageAllocations to submit. The sum of all UsageAllocation quantities \n must equal the Quantity of the UsageRecord.

" } } }, "traits": { "smithy.api#documentation": "

A UsageRecord indicates a quantity of usage for a given product, customer,\n dimension and time.

\n

Multiple requests with the same UsageRecords as input will be deduplicated to\n prevent double charges.

" } }, "com.amazonaws.marketplacemetering#UsageRecordList": { "type": "list", "member": { "target": "com.amazonaws.marketplacemetering#UsageRecord" }, "traits": { "smithy.api#length": { "min": 0, "max": 25 } } }, "com.amazonaws.marketplacemetering#UsageRecordResult": { "type": "structure", "members": { "UsageRecord": { "target": "com.amazonaws.marketplacemetering#UsageRecord", "traits": { "smithy.api#documentation": "

The UsageRecord that was part of the BatchMeterUsage request.

" } }, "MeteringRecordId": { "target": "com.amazonaws.marketplacemetering#String", "traits": { "smithy.api#documentation": "

The MeteringRecordId is a unique identifier for this metering event.

" } }, "Status": { "target": "com.amazonaws.marketplacemetering#UsageRecordResultStatus", "traits": { "smithy.api#documentation": "

The UsageRecordResult Status indicates the status of an individual UsageRecord\n processed by BatchMeterUsage.

\n " } } }, "traits": { "smithy.api#documentation": "

A UsageRecordResult indicates the status of a given UsageRecord processed by\n BatchMeterUsage.

" } }, "com.amazonaws.marketplacemetering#UsageRecordResultList": { "type": "list", "member": { "target": "com.amazonaws.marketplacemetering#UsageRecordResult" } }, "com.amazonaws.marketplacemetering#UsageRecordResultStatus": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "Success", "name": "SUCCESS" }, { "value": "CustomerNotSubscribed", "name": "CUSTOMER_NOT_SUBSCRIBED" }, { "value": "DuplicateRecord", "name": "DUPLICATE_RECORD" } ] } }, "com.amazonaws.marketplacemetering#VersionInteger": { "type": "integer", "traits": { "smithy.api#box": {}, "smithy.api#range": { "min": 1 } } }, "com.amazonaws.marketplacemetering#errorMessage": { "type": "string" } } }