content: module Stratosphere.EC2.LaunchTemplate.MaintenanceOptionsProperty (
          MaintenanceOptionsProperty(..), mkMaintenanceOptionsProperty
      ) where
  import qualified Data.Aeson as JSON
  import qualified Stratosphere.Prelude as Prelude
  import Stratosphere.Property
  import Stratosphere.ResourceProperties
  import Stratosphere.Value
  data MaintenanceOptionsProperty
    = MaintenanceOptionsProperty {autoRecovery :: (Prelude.Maybe (Value Prelude.Text))}
    deriving stock (Prelude.Eq, Prelude.Show)
  mkMaintenanceOptionsProperty :: MaintenanceOptionsProperty
  mkMaintenanceOptionsProperty
    = MaintenanceOptionsProperty {autoRecovery = Prelude.Nothing}
  instance ToResourceProperties MaintenanceOptionsProperty where
    toResourceProperties MaintenanceOptionsProperty {..}
      = ResourceProperties
          {awsType = "AWS::EC2::LaunchTemplate.MaintenanceOptions",
           supportsTags = Prelude.False,
           properties = Prelude.fromList
                          (Prelude.catMaybes
                             [(JSON..=) "AutoRecovery" Prelude.<$> autoRecovery])}
  instance JSON.ToJSON MaintenanceOptionsProperty where
    toJSON MaintenanceOptionsProperty {..}
      = JSON.object
          (Prelude.fromList
             (Prelude.catMaybes
                [(JSON..=) "AutoRecovery" Prelude.<$> autoRecovery]))
  instance Property "AutoRecovery" MaintenanceOptionsProperty where
    type PropertyType "AutoRecovery" MaintenanceOptionsProperty = Value Prelude.Text
    set newValue MaintenanceOptionsProperty {}
      = MaintenanceOptionsProperty
          {autoRecovery = Prelude.pure newValue, ..}