amazonka-budgets-2.0: Amazon Budgets SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Budgets.Types.Spend

Description

 
Synopsis

Documentation

data Spend Source #

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

For example, a Spend for 3 GB of S3 usage has 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's associated with a budget forecast, actual spend, or budget threshold.

  • unit :: Text

    The unit of measurement that's used for the budget forecast, actual spend, or budget threshold, such as USD or GBP.

Instances

Instances details
FromJSON Spend Source # 
Instance details

Defined in Amazonka.Budgets.Types.Spend

ToJSON Spend Source # 
Instance details

Defined in Amazonka.Budgets.Types.Spend

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 #

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 #

NFData Spend Source # 
Instance details

Defined in Amazonka.Budgets.Types.Spend

Methods

rnf :: Spend -> () #

Eq Spend Source # 
Instance details

Defined in Amazonka.Budgets.Types.Spend

Methods

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

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

Hashable Spend Source # 
Instance details

Defined in Amazonka.Budgets.Types.Spend

Methods

hashWithSalt :: Int -> Spend -> Int #

hash :: Spend -> Int #

type Rep Spend Source # 
Instance details

Defined in Amazonka.Budgets.Types.Spend

type Rep Spend = D1 ('MetaData "Spend" "Amazonka.Budgets.Types.Spend" "amazonka-budgets-2.0-7U1RWOWP6pxJESvTUhAD5Y" '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's associated with a budget forecast, actual spend, or budget threshold.

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

spend_amount :: Lens' Spend Text Source #

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

spend_unit :: Lens' Spend Text Source #

The unit of measurement that's used for the budget forecast, actual spend, or budget threshold, such as USD or GBP.