packages feed

stratosphere-budgets-1.0.0: gen/Stratosphere/Budgets/Budget/HistoricalOptionsProperty.hs

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
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-historicaloptions.html>
    HistoricalOptionsProperty {haddock_workaround_ :: (),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budget-historicaloptions.html#cfn-budgets-budget-historicaloptions-budgetadjustmentperiod>
                               budgetAdjustmentPeriod :: (Value Prelude.Integer)}
  deriving stock (Prelude.Eq, Prelude.Show)
mkHistoricalOptionsProperty ::
  Value Prelude.Integer -> HistoricalOptionsProperty
mkHistoricalOptionsProperty budgetAdjustmentPeriod
  = HistoricalOptionsProperty
      {haddock_workaround_ = (),
       budgetAdjustmentPeriod = budgetAdjustmentPeriod}
instance ToResourceProperties HistoricalOptionsProperty where
  toResourceProperties HistoricalOptionsProperty {..}
    = ResourceProperties
        {awsType = "AWS::Budgets::Budget.HistoricalOptions",
         supportsTags = Prelude.False,
         properties = ["BudgetAdjustmentPeriod"
                         JSON..= budgetAdjustmentPeriod]}
instance JSON.ToJSON HistoricalOptionsProperty where
  toJSON HistoricalOptionsProperty {..}
    = JSON.object
        ["BudgetAdjustmentPeriod" JSON..= budgetAdjustmentPeriod]
instance Property "BudgetAdjustmentPeriod" HistoricalOptionsProperty where
  type PropertyType "BudgetAdjustmentPeriod" HistoricalOptionsProperty = Value Prelude.Integer
  set newValue HistoricalOptionsProperty {..}
    = HistoricalOptionsProperty {budgetAdjustmentPeriod = newValue, ..}