module Stratosphere.DAX.Cluster.SSESpecificationProperty (
        SSESpecificationProperty(..), mkSSESpecificationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SSESpecificationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dax-cluster-ssespecification.html>
    SSESpecificationProperty {SSESpecificationProperty -> ()
haddock_workaround_ :: (),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dax-cluster-ssespecification.html#cfn-dax-cluster-ssespecification-sseenabled>
                              SSESpecificationProperty -> Maybe (Value Bool)
sSEEnabled :: (Prelude.Maybe (Value Prelude.Bool))}
  deriving stock (SSESpecificationProperty -> SSESpecificationProperty -> Bool
(SSESpecificationProperty -> SSESpecificationProperty -> Bool)
-> (SSESpecificationProperty -> SSESpecificationProperty -> Bool)
-> Eq SSESpecificationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SSESpecificationProperty -> SSESpecificationProperty -> Bool
== :: SSESpecificationProperty -> SSESpecificationProperty -> Bool
$c/= :: SSESpecificationProperty -> SSESpecificationProperty -> Bool
/= :: SSESpecificationProperty -> SSESpecificationProperty -> Bool
Prelude.Eq, Int -> SSESpecificationProperty -> ShowS
[SSESpecificationProperty] -> ShowS
SSESpecificationProperty -> String
(Int -> SSESpecificationProperty -> ShowS)
-> (SSESpecificationProperty -> String)
-> ([SSESpecificationProperty] -> ShowS)
-> Show SSESpecificationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SSESpecificationProperty -> ShowS
showsPrec :: Int -> SSESpecificationProperty -> ShowS
$cshow :: SSESpecificationProperty -> String
show :: SSESpecificationProperty -> String
$cshowList :: [SSESpecificationProperty] -> ShowS
showList :: [SSESpecificationProperty] -> ShowS
Prelude.Show)
mkSSESpecificationProperty :: SSESpecificationProperty
mkSSESpecificationProperty :: SSESpecificationProperty
mkSSESpecificationProperty
  = SSESpecificationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), sSEEnabled :: Maybe (Value Bool)
sSEEnabled = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SSESpecificationProperty where
  toResourceProperties :: SSESpecificationProperty -> ResourceProperties
toResourceProperties SSESpecificationProperty {Maybe (Value Bool)
()
haddock_workaround_ :: SSESpecificationProperty -> ()
sSEEnabled :: SSESpecificationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
sSEEnabled :: Maybe (Value Bool)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::DAX::Cluster.SSESpecification",
         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
"SSEEnabled" (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)
sSEEnabled])}
instance JSON.ToJSON SSESpecificationProperty where
  toJSON :: SSESpecificationProperty -> Value
toJSON SSESpecificationProperty {Maybe (Value Bool)
()
haddock_workaround_ :: SSESpecificationProperty -> ()
sSEEnabled :: SSESpecificationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
sSEEnabled :: 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
"SSEEnabled" (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)
sSEEnabled]))
instance Property "SSEEnabled" SSESpecificationProperty where
  type PropertyType "SSEEnabled" SSESpecificationProperty = Value Prelude.Bool
  set :: PropertyType "SSEEnabled" SSESpecificationProperty
-> SSESpecificationProperty -> SSESpecificationProperty
set PropertyType "SSEEnabled" SSESpecificationProperty
newValue SSESpecificationProperty {Maybe (Value Bool)
()
haddock_workaround_ :: SSESpecificationProperty -> ()
sSEEnabled :: SSESpecificationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
sSEEnabled :: Maybe (Value Bool)
..}
    = SSESpecificationProperty {sSEEnabled :: Maybe (Value Bool)
sSEEnabled = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SSEEnabled" SSESpecificationProperty
Value Bool
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}