| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.ResilienceHub.Types.Cost
Description
Synopsis
- data Cost = Cost' {}
- newCost :: Double -> Text -> CostFrequency -> Cost
- cost_amount :: Lens' Cost Double
- cost_currency :: Lens' Cost Text
- cost_frequency :: Lens' Cost CostFrequency
Documentation
Defines a cost object.
See: newCost smart constructor.
Constructors
| Cost' | |
Instances
| FromJSON Cost Source # | |
| Generic Cost Source # | |
| Read Cost Source # | |
| Show Cost Source # | |
| NFData Cost Source # | |
Defined in Amazonka.ResilienceHub.Types.Cost | |
| Eq Cost Source # | |
| Hashable Cost Source # | |
Defined in Amazonka.ResilienceHub.Types.Cost | |
| type Rep Cost Source # | |
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)))) | |
Arguments
| :: Double | |
| -> Text | |
| -> CostFrequency | |
| -> Cost |
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_frequency :: Lens' Cost CostFrequency Source #
The cost frequency.