libZSservicesZSamazonka-budgetsZSamazonka-budgets
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.Budgets.Types.Spend

Description

 
Synopsis

Documentation

data Spend Source #

The amount of cost or usage that is measured for a budget.

For example, a Spend for 3 GB of S3 usage would have the following parameters:

  • An Amount of 3
  • A unit of GB

See: newSpend smart constructor.

Constructors

Spend' 

Fields

  • amount :: Text

    The cost or usage amount that is associated with a budget forecast, actual spend, or budget threshold.

  • unit :: Text

    The unit of measurement that is used for the budget forecast, actual spend, or budget threshold, such as dollars or GB.

Instances

Instances details
Eq Spend Source # 
Instance details

Defined in Amazonka.Budgets.Types.Spend

Methods

(==) :: Spend -> Spend -> Bool #

(/=) :: Spend -> Spend -> Bool #

Read Spend Source # 
Instance details

Defined in Amazonka.Budgets.Types.Spend

Show Spend Source # 
Instance details

Defined in Amazonka.Budgets.Types.Spend

Methods

showsPrec :: Int -> Spend -> ShowS #

show :: Spend -> String #

showList :: [Spend] -> ShowS #

Generic Spend Source # 
Instance details

Defined in Amazonka.Budgets.Types.Spend

Associated Types

type Rep Spend :: Type -> Type #

Methods

from :: Spend -> Rep Spend x #

to :: Rep Spend x -> Spend #

NFData Spend Source # 
Instance details

Defined in Amazonka.Budgets.Types.Spend

Methods

rnf :: Spend -> () #

Hashable Spend Source # 
Instance details

Defined in Amazonka.Budgets.Types.Spend

Methods

hashWithSalt :: Int -> Spend -> Int #

hash :: Spend -> Int #

ToJSON Spend Source # 
Instance details

Defined in Amazonka.Budgets.Types.Spend

FromJSON Spend Source # 
Instance details

Defined in Amazonka.Budgets.Types.Spend

type Rep Spend Source # 
Instance details

Defined in Amazonka.Budgets.Types.Spend

type Rep Spend = D1 ('MetaData "Spend" "Amazonka.Budgets.Types.Spend" "libZSservicesZSamazonka-budgetsZSamazonka-budgets" 'False) (C1 ('MetaCons "Spend'" 'PrefixI 'True) (S1 ('MetaSel ('Just "amount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "unit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newSpend Source #

Create a value of Spend 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:amount:Spend', spend_amount - The cost or usage amount that is associated with a budget forecast, actual spend, or budget threshold.

$sel:unit:Spend', spend_unit - The unit of measurement that is used for the budget forecast, actual spend, or budget threshold, such as dollars or GB.

spend_amount :: Lens' Spend Text Source #

The cost or usage amount that is associated with a budget forecast, actual spend, or budget threshold.

spend_unit :: Lens' Spend Text Source #

The unit of measurement that is used for the budget forecast, actual spend, or budget threshold, such as dollars or GB.