module Stratosphere.Budgets.Budget.HistoricalOptionsProperty (
HistoricalOptionsProperty(..), mkHistoricalOptionsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data HistoricalOptionsProperty
=
HistoricalOptionsProperty {HistoricalOptionsProperty -> ()
haddock_workaround_ :: (),
HistoricalOptionsProperty -> Value Integer
budgetAdjustmentPeriod :: (Value Prelude.Integer)}
deriving stock (HistoricalOptionsProperty -> HistoricalOptionsProperty -> Bool
(HistoricalOptionsProperty -> HistoricalOptionsProperty -> Bool)
-> (HistoricalOptionsProperty -> HistoricalOptionsProperty -> Bool)
-> Eq HistoricalOptionsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: HistoricalOptionsProperty -> HistoricalOptionsProperty -> Bool
== :: HistoricalOptionsProperty -> HistoricalOptionsProperty -> Bool
$c/= :: HistoricalOptionsProperty -> HistoricalOptionsProperty -> Bool
/= :: HistoricalOptionsProperty -> HistoricalOptionsProperty -> Bool
Prelude.Eq, Int -> HistoricalOptionsProperty -> ShowS
[HistoricalOptionsProperty] -> ShowS
HistoricalOptionsProperty -> String
(Int -> HistoricalOptionsProperty -> ShowS)
-> (HistoricalOptionsProperty -> String)
-> ([HistoricalOptionsProperty] -> ShowS)
-> Show HistoricalOptionsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> HistoricalOptionsProperty -> ShowS
showsPrec :: Int -> HistoricalOptionsProperty -> ShowS
$cshow :: HistoricalOptionsProperty -> String
show :: HistoricalOptionsProperty -> String
$cshowList :: [HistoricalOptionsProperty] -> ShowS
showList :: [HistoricalOptionsProperty] -> ShowS
Prelude.Show)
mkHistoricalOptionsProperty ::
Value Prelude.Integer -> HistoricalOptionsProperty
mkHistoricalOptionsProperty :: Value Integer -> HistoricalOptionsProperty
mkHistoricalOptionsProperty Value Integer
budgetAdjustmentPeriod
= HistoricalOptionsProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
budgetAdjustmentPeriod :: Value Integer
budgetAdjustmentPeriod = Value Integer
budgetAdjustmentPeriod}
instance ToResourceProperties HistoricalOptionsProperty where
toResourceProperties :: HistoricalOptionsProperty -> ResourceProperties
toResourceProperties HistoricalOptionsProperty {()
Value Integer
haddock_workaround_ :: HistoricalOptionsProperty -> ()
budgetAdjustmentPeriod :: HistoricalOptionsProperty -> Value Integer
haddock_workaround_ :: ()
budgetAdjustmentPeriod :: Value Integer
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Budgets::Budget.HistoricalOptions",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"BudgetAdjustmentPeriod"
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
budgetAdjustmentPeriod]}
instance JSON.ToJSON HistoricalOptionsProperty where
toJSON :: HistoricalOptionsProperty -> Value
toJSON HistoricalOptionsProperty {()
Value Integer
haddock_workaround_ :: HistoricalOptionsProperty -> ()
budgetAdjustmentPeriod :: HistoricalOptionsProperty -> Value Integer
haddock_workaround_ :: ()
budgetAdjustmentPeriod :: Value Integer
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"BudgetAdjustmentPeriod" Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
budgetAdjustmentPeriod]
instance Property "BudgetAdjustmentPeriod" HistoricalOptionsProperty where
type PropertyType "BudgetAdjustmentPeriod" HistoricalOptionsProperty = Value Prelude.Integer
set :: PropertyType "BudgetAdjustmentPeriod" HistoricalOptionsProperty
-> HistoricalOptionsProperty -> HistoricalOptionsProperty
set PropertyType "BudgetAdjustmentPeriod" HistoricalOptionsProperty
newValue HistoricalOptionsProperty {()
Value Integer
haddock_workaround_ :: HistoricalOptionsProperty -> ()
budgetAdjustmentPeriod :: HistoricalOptionsProperty -> Value Integer
haddock_workaround_ :: ()
budgetAdjustmentPeriod :: Value Integer
..}
= HistoricalOptionsProperty {budgetAdjustmentPeriod :: Value Integer
budgetAdjustmentPeriod = PropertyType "BudgetAdjustmentPeriod" HistoricalOptionsProperty
Value Integer
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}