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.UsageAllocation

Description

 
Synopsis

Documentation

data UsageAllocation Source #

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

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

See: newUsageAllocation smart constructor.

Constructors

UsageAllocation' 

Fields

Instances

Instances details
Eq UsageAllocation Source # 
Instance details

Defined in Amazonka.MarketplaceMetering.Types.UsageAllocation

Read UsageAllocation Source # 
Instance details

Defined in Amazonka.MarketplaceMetering.Types.UsageAllocation

Show UsageAllocation Source # 
Instance details

Defined in Amazonka.MarketplaceMetering.Types.UsageAllocation

Generic UsageAllocation Source # 
Instance details

Defined in Amazonka.MarketplaceMetering.Types.UsageAllocation

Associated Types

type Rep UsageAllocation :: Type -> Type #

NFData UsageAllocation Source # 
Instance details

Defined in Amazonka.MarketplaceMetering.Types.UsageAllocation

Methods

rnf :: UsageAllocation -> () #

Hashable UsageAllocation Source # 
Instance details

Defined in Amazonka.MarketplaceMetering.Types.UsageAllocation

ToJSON UsageAllocation Source # 
Instance details

Defined in Amazonka.MarketplaceMetering.Types.UsageAllocation

FromJSON UsageAllocation Source # 
Instance details

Defined in Amazonka.MarketplaceMetering.Types.UsageAllocation

type Rep UsageAllocation Source # 
Instance details

Defined in Amazonka.MarketplaceMetering.Types.UsageAllocation

type Rep UsageAllocation = D1 ('MetaData "UsageAllocation" "Amazonka.MarketplaceMetering.Types.UsageAllocation" "libZSservicesZSamazonka-marketplace-meteringZSamazonka-marketplace-metering" 'False) (C1 ('MetaCons "UsageAllocation'" 'PrefixI 'True) (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Tag))) :*: S1 ('MetaSel ('Just "allocatedUsageQuantity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Natural)))

newUsageAllocation Source #

Create a value of UsageAllocation 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:tags:UsageAllocation', usageAllocation_tags - The set of tags that define the bucket of usage. For the bucket of items with no tags, this parameter can be left out.

$sel:allocatedUsageQuantity:UsageAllocation', usageAllocation_allocatedUsageQuantity - The total quantity allocated to this bucket of usage.

usageAllocation_tags :: Lens' UsageAllocation (Maybe (NonEmpty Tag)) Source #

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

usageAllocation_allocatedUsageQuantity :: Lens' UsageAllocation Natural Source #

The total quantity allocated to this bucket of usage.