amazonka-resiliencehub-2.0: Amazon Resilience Hub 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.ResilienceHub.Types.Cost

Description

 
Synopsis

Documentation

data Cost Source #

Defines a cost object.

See: newCost smart constructor.

Constructors

Cost' 

Fields

Instances

Instances details
FromJSON Cost Source # 
Instance details

Defined in Amazonka.ResilienceHub.Types.Cost

Generic Cost Source # 
Instance details

Defined in Amazonka.ResilienceHub.Types.Cost

Associated Types

type Rep Cost :: Type -> Type #

Methods

from :: Cost -> Rep Cost x #

to :: Rep Cost x -> Cost #

Read Cost Source # 
Instance details

Defined in Amazonka.ResilienceHub.Types.Cost

Show Cost Source # 
Instance details

Defined in Amazonka.ResilienceHub.Types.Cost

Methods

showsPrec :: Int -> Cost -> ShowS #

show :: Cost -> String #

showList :: [Cost] -> ShowS #

NFData Cost Source # 
Instance details

Defined in Amazonka.ResilienceHub.Types.Cost

Methods

rnf :: Cost -> () #

Eq Cost Source # 
Instance details

Defined in Amazonka.ResilienceHub.Types.Cost

Methods

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

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

Hashable Cost Source # 
Instance details

Defined in Amazonka.ResilienceHub.Types.Cost

Methods

hashWithSalt :: Int -> Cost -> Int #

hash :: Cost -> Int #

type Rep Cost Source # 
Instance details

Defined in Amazonka.ResilienceHub.Types.Cost

type Rep Cost = D1 ('MetaData "Cost" "Amazonka.ResilienceHub.Types.Cost" "amazonka-resiliencehub-2.0-EsKgNhAb0B96cCxrYtrBzG" 'False) (C1 ('MetaCons "Cost'" 'PrefixI 'True) (S1 ('MetaSel ('Just "amount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Double) :*: (S1 ('MetaSel ('Just "currency") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "frequency") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CostFrequency))))

newCost Source #

Create a value of Cost 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:Cost', cost_amount - The cost amount.

$sel:currency:Cost', cost_currency - The cost currency, for example USD.

$sel:frequency:Cost', cost_frequency - The cost frequency.

cost_amount :: Lens' Cost Double Source #

The cost amount.

cost_currency :: Lens' Cost Text Source #

The cost currency, for example USD.