Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data UsageRecordResult = UsageRecordResult' {}
- newUsageRecordResult :: UsageRecordResult
- usageRecordResult_status :: Lens' UsageRecordResult (Maybe UsageRecordResultStatus)
- usageRecordResult_usageRecord :: Lens' UsageRecordResult (Maybe UsageRecord)
- usageRecordResult_meteringRecordId :: Lens' UsageRecordResult (Maybe Text)
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:status:UsageRecordResult'
, usageRecordResult_status
- The UsageRecordResult Status indicates the status of an individual
UsageRecord processed by BatchMeterUsage.
- Success- The UsageRecord was accepted and honored by BatchMeterUsage.
- CustomerNotSubscribed- The CustomerIdentifier specified is not subscribed to your product. The UsageRecord was not honored. Future UsageRecords for this customer will fail until the customer subscribes to your product.
- DuplicateRecord- Indicates that the UsageRecord was invalid and not honored. A previously metered UsageRecord 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.
$sel:meteringRecordId:UsageRecordResult'
, usageRecordResult_meteringRecordId
- 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 by BatchMeterUsage.
- CustomerNotSubscribed- The CustomerIdentifier specified is not subscribed to your product. The UsageRecord was not honored. Future UsageRecords for this customer will fail until the customer subscribes to your product.
- DuplicateRecord- Indicates that the UsageRecord was invalid and not honored. A previously metered UsageRecord 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.
usageRecordResult_meteringRecordId :: Lens' UsageRecordResult (Maybe Text) Source #
The MeteringRecordId is a unique identifier for this metering event.