amazonka-marketplace-metering-1.4.0: Amazon Marketplace Metering SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.MarketplaceMetering.MeterUsage

Contents

Description

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

Synopsis

Creating a Request

meterUsage Source

Creates a value of MeterUsage with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

muProductCode :: Lens' MeterUsage Text Source

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.

muTimestamp :: Lens' MeterUsage UTCTime Source

Timestamp of the hour, recorded in UTC. The seconds and milliseconds portions of the timestamp will be ignored.

muUsageDimension :: Lens' MeterUsage Text Source

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

muUsageQuantity :: Lens' MeterUsage Natural Source

Consumption value for the hour.

muDryRun :: Lens' MeterUsage Bool Source

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.

Destructuring the Response

meterUsageResponse Source

Creates a value of MeterUsageResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Response Lenses