module Stratosphere.DLM.LifecyclePolicy.ParametersProperty (
        ParametersProperty(..), mkParametersProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data ParametersProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-parameters.html>
    ParametersProperty {ParametersProperty -> ()
haddock_workaround_ :: (),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-parameters.html#cfn-dlm-lifecyclepolicy-parameters-excludebootvolume>
                        ParametersProperty -> Maybe (Value Bool)
excludeBootVolume :: (Prelude.Maybe (Value Prelude.Bool)),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-parameters.html#cfn-dlm-lifecyclepolicy-parameters-excludedatavolumetags>
                        ParametersProperty -> Maybe [Tag]
excludeDataVolumeTags :: (Prelude.Maybe [Tag]),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-parameters.html#cfn-dlm-lifecyclepolicy-parameters-noreboot>
                        ParametersProperty -> Maybe (Value Bool)
noReboot :: (Prelude.Maybe (Value Prelude.Bool))}
  deriving stock (ParametersProperty -> ParametersProperty -> Bool
(ParametersProperty -> ParametersProperty -> Bool)
-> (ParametersProperty -> ParametersProperty -> Bool)
-> Eq ParametersProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ParametersProperty -> ParametersProperty -> Bool
== :: ParametersProperty -> ParametersProperty -> Bool
$c/= :: ParametersProperty -> ParametersProperty -> Bool
/= :: ParametersProperty -> ParametersProperty -> Bool
Prelude.Eq, Int -> ParametersProperty -> ShowS
[ParametersProperty] -> ShowS
ParametersProperty -> String
(Int -> ParametersProperty -> ShowS)
-> (ParametersProperty -> String)
-> ([ParametersProperty] -> ShowS)
-> Show ParametersProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ParametersProperty -> ShowS
showsPrec :: Int -> ParametersProperty -> ShowS
$cshow :: ParametersProperty -> String
show :: ParametersProperty -> String
$cshowList :: [ParametersProperty] -> ShowS
showList :: [ParametersProperty] -> ShowS
Prelude.Show)
mkParametersProperty :: ParametersProperty
mkParametersProperty :: ParametersProperty
mkParametersProperty
  = ParametersProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), excludeBootVolume :: Maybe (Value Bool)
excludeBootVolume = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
       excludeDataVolumeTags :: Maybe [Tag]
excludeDataVolumeTags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
       noReboot :: Maybe (Value Bool)
noReboot = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ParametersProperty where
  toResourceProperties :: ParametersProperty -> ResourceProperties
toResourceProperties ParametersProperty {Maybe [Tag]
Maybe (Value Bool)
()
haddock_workaround_ :: ParametersProperty -> ()
excludeBootVolume :: ParametersProperty -> Maybe (Value Bool)
excludeDataVolumeTags :: ParametersProperty -> Maybe [Tag]
noReboot :: ParametersProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
excludeBootVolume :: Maybe (Value Bool)
excludeDataVolumeTags :: Maybe [Tag]
noReboot :: Maybe (Value Bool)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::DLM::LifecyclePolicy.Parameters",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                           [Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ExcludeBootVolume" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
excludeBootVolume,
                            Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ExcludeDataVolumeTags"
                              ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
excludeDataVolumeTags,
                            Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"NoReboot" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
noReboot])}
instance JSON.ToJSON ParametersProperty where
  toJSON :: ParametersProperty -> Value
toJSON ParametersProperty {Maybe [Tag]
Maybe (Value Bool)
()
haddock_workaround_ :: ParametersProperty -> ()
excludeBootVolume :: ParametersProperty -> Maybe (Value Bool)
excludeDataVolumeTags :: ParametersProperty -> Maybe [Tag]
noReboot :: ParametersProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
excludeBootVolume :: Maybe (Value Bool)
excludeDataVolumeTags :: Maybe [Tag]
noReboot :: Maybe (Value Bool)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
              [Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ExcludeBootVolume" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
excludeBootVolume,
               Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ExcludeDataVolumeTags"
                 ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
excludeDataVolumeTags,
               Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"NoReboot" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
noReboot]))
instance Property "ExcludeBootVolume" ParametersProperty where
  type PropertyType "ExcludeBootVolume" ParametersProperty = Value Prelude.Bool
  set :: PropertyType "ExcludeBootVolume" ParametersProperty
-> ParametersProperty -> ParametersProperty
set PropertyType "ExcludeBootVolume" ParametersProperty
newValue ParametersProperty {Maybe [Tag]
Maybe (Value Bool)
()
haddock_workaround_ :: ParametersProperty -> ()
excludeBootVolume :: ParametersProperty -> Maybe (Value Bool)
excludeDataVolumeTags :: ParametersProperty -> Maybe [Tag]
noReboot :: ParametersProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
excludeBootVolume :: Maybe (Value Bool)
excludeDataVolumeTags :: Maybe [Tag]
noReboot :: Maybe (Value Bool)
..}
    = ParametersProperty
        {excludeBootVolume :: Maybe (Value Bool)
excludeBootVolume = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ExcludeBootVolume" ParametersProperty
Value Bool
newValue, Maybe [Tag]
Maybe (Value Bool)
()
haddock_workaround_ :: ()
excludeDataVolumeTags :: Maybe [Tag]
noReboot :: Maybe (Value Bool)
haddock_workaround_ :: ()
excludeDataVolumeTags :: Maybe [Tag]
noReboot :: Maybe (Value Bool)
..}
instance Property "ExcludeDataVolumeTags" ParametersProperty where
  type PropertyType "ExcludeDataVolumeTags" ParametersProperty = [Tag]
  set :: PropertyType "ExcludeDataVolumeTags" ParametersProperty
-> ParametersProperty -> ParametersProperty
set PropertyType "ExcludeDataVolumeTags" ParametersProperty
newValue ParametersProperty {Maybe [Tag]
Maybe (Value Bool)
()
haddock_workaround_ :: ParametersProperty -> ()
excludeBootVolume :: ParametersProperty -> Maybe (Value Bool)
excludeDataVolumeTags :: ParametersProperty -> Maybe [Tag]
noReboot :: ParametersProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
excludeBootVolume :: Maybe (Value Bool)
excludeDataVolumeTags :: Maybe [Tag]
noReboot :: Maybe (Value Bool)
..}
    = ParametersProperty
        {excludeDataVolumeTags :: Maybe [Tag]
excludeDataVolumeTags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "ExcludeDataVolumeTags" ParametersProperty
newValue, Maybe (Value Bool)
()
haddock_workaround_ :: ()
excludeBootVolume :: Maybe (Value Bool)
noReboot :: Maybe (Value Bool)
haddock_workaround_ :: ()
excludeBootVolume :: Maybe (Value Bool)
noReboot :: Maybe (Value Bool)
..}
instance Property "NoReboot" ParametersProperty where
  type PropertyType "NoReboot" ParametersProperty = Value Prelude.Bool
  set :: PropertyType "NoReboot" ParametersProperty
-> ParametersProperty -> ParametersProperty
set PropertyType "NoReboot" ParametersProperty
newValue ParametersProperty {Maybe [Tag]
Maybe (Value Bool)
()
haddock_workaround_ :: ParametersProperty -> ()
excludeBootVolume :: ParametersProperty -> Maybe (Value Bool)
excludeDataVolumeTags :: ParametersProperty -> Maybe [Tag]
noReboot :: ParametersProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
excludeBootVolume :: Maybe (Value Bool)
excludeDataVolumeTags :: Maybe [Tag]
noReboot :: Maybe (Value Bool)
..}
    = ParametersProperty {noReboot :: Maybe (Value Bool)
noReboot = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "NoReboot" ParametersProperty
Value Bool
newValue, Maybe [Tag]
Maybe (Value Bool)
()
haddock_workaround_ :: ()
excludeBootVolume :: Maybe (Value Bool)
excludeDataVolumeTags :: Maybe [Tag]
haddock_workaround_ :: ()
excludeBootVolume :: Maybe (Value Bool)
excludeDataVolumeTags :: Maybe [Tag]
..}