libZSservicesZSamazonka-marketplace-meteringZSamazonka-marketplace-metering
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.MarketplaceMetering.Types.UsageRecordResult

Description

 
Synopsis

Documentation

data UsageRecordResult Source #

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

See: newUsageRecordResult smart constructor.

Constructors

UsageRecordResult' 

Fields

  • status :: Maybe UsageRecordResultStatus

    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.
  • usageRecord :: Maybe UsageRecord

    The UsageRecord that was part of the BatchMeterUsage request.

  • meteringRecordId :: Maybe Text

    The MeteringRecordId is a unique identifier for this metering event.

Instances

Instances details
Eq UsageRecordResult Source # 
Instance details

Defined in Amazonka.MarketplaceMetering.Types.UsageRecordResult

Read UsageRecordResult Source # 
Instance details

Defined in Amazonka.MarketplaceMetering.Types.UsageRecordResult

Show UsageRecordResult Source # 
Instance details

Defined in Amazonka.MarketplaceMetering.Types.UsageRecordResult

Generic UsageRecordResult Source # 
Instance details

Defined in Amazonka.MarketplaceMetering.Types.UsageRecordResult

Associated Types

type Rep UsageRecordResult :: Type -> Type #

NFData UsageRecordResult Source # 
Instance details

Defined in Amazonka.MarketplaceMetering.Types.UsageRecordResult

Methods

rnf :: UsageRecordResult -> () #

Hashable UsageRecordResult Source # 
Instance details

Defined in Amazonka.MarketplaceMetering.Types.UsageRecordResult

FromJSON UsageRecordResult Source # 
Instance details

Defined in Amazonka.MarketplaceMetering.Types.UsageRecordResult

type Rep UsageRecordResult Source # 
Instance details

Defined in Amazonka.MarketplaceMetering.Types.UsageRecordResult

type Rep UsageRecordResult = D1 ('MetaData "UsageRecordResult" "Amazonka.MarketplaceMetering.Types.UsageRecordResult" "libZSservicesZSamazonka-marketplace-meteringZSamazonka-marketplace-metering" 'False) (C1 ('MetaCons "UsageRecordResult'" 'PrefixI 'True) (S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe UsageRecordResultStatus)) :*: (S1 ('MetaSel ('Just "usageRecord") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe UsageRecord)) :*: S1 ('MetaSel ('Just "meteringRecordId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

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.