Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data UsageRecordResult = UsageRecordResult' {}
- newUsageRecordResult :: UsageRecordResult
- usageRecordResult_meteringRecordId :: Lens' UsageRecordResult (Maybe Text)
- usageRecordResult_status :: Lens' UsageRecordResult (Maybe UsageRecordResultStatus)
- usageRecordResult_usageRecord :: Lens' UsageRecordResult (Maybe UsageRecord)
Documentation
data UsageRecordResult Source #
A UsageRecordResult
indicates the status of a given UsageRecord
processed by BatchMeterUsage
.
See: newUsageRecordResult
smart constructor.
UsageRecordResult' | |
|
Instances
newUsageRecordResult :: UsageRecordResult Source #
Create a value of UsageRecordResult
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:meteringRecordId:UsageRecordResult'
, usageRecordResult_meteringRecordId
- The MeteringRecordId
is a unique identifier for this metering event.
$sel:status:UsageRecordResult'
, usageRecordResult_status
- The UsageRecordResult
Status
indicates the status of an individual
UsageRecord
processed by BatchMeterUsage
.
- Success- The
UsageRecord
was accepted and honored byBatchMeterUsage
. CustomerNotSubscribed- The
CustomerIdentifier
specified is not able to use your product. TheUsageRecord
was not honored. There are three causes for this result:- The customer identifier is invalid.
- The customer identifier provided in the metering record does not
have an active agreement or subscription with this product.
Future
UsageRecords
for this customer will fail until the customer subscribes to your product. - The customer's AWS account was suspended.
- DuplicateRecord- Indicates that the
UsageRecord
was invalid and not honored. A previously meteredUsageRecord
had the same customer, dimension, and time, but a different quantity.
$sel:usageRecord:UsageRecordResult'
, usageRecordResult_usageRecord
- The UsageRecord
that was part of the BatchMeterUsage
request.
usageRecordResult_meteringRecordId :: Lens' UsageRecordResult (Maybe Text) Source #
The MeteringRecordId
is a unique identifier for this metering event.
usageRecordResult_status :: Lens' UsageRecordResult (Maybe UsageRecordResultStatus) Source #
The UsageRecordResult
Status
indicates the status of an individual
UsageRecord
processed by BatchMeterUsage
.
- Success- The
UsageRecord
was accepted and honored byBatchMeterUsage
. CustomerNotSubscribed- The
CustomerIdentifier
specified is not able to use your product. TheUsageRecord
was not honored. There are three causes for this result:- The customer identifier is invalid.
- The customer identifier provided in the metering record does not
have an active agreement or subscription with this product.
Future
UsageRecords
for this customer will fail until the customer subscribes to your product. - The customer's AWS account was suspended.
- DuplicateRecord- Indicates that the
UsageRecord
was invalid and not honored. A previously meteredUsageRecord
had the same customer, dimension, and time, but a different quantity.
usageRecordResult_usageRecord :: Lens' UsageRecordResult (Maybe UsageRecord) Source #
The UsageRecord
that was part of the BatchMeterUsage
request.