module Stratosphere.AmazonMQ.Broker.LogListProperty (
        LogListProperty(..), mkLogListProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data LogListProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amazonmq-broker-loglist.html>
    LogListProperty {LogListProperty -> ()
haddock_workaround_ :: (),
                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amazonmq-broker-loglist.html#cfn-amazonmq-broker-loglist-audit>
                     LogListProperty -> Maybe (Value Bool)
audit :: (Prelude.Maybe (Value Prelude.Bool)),
                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amazonmq-broker-loglist.html#cfn-amazonmq-broker-loglist-general>
                     LogListProperty -> Maybe (Value Bool)
general :: (Prelude.Maybe (Value Prelude.Bool))}
  deriving stock (LogListProperty -> LogListProperty -> Bool
(LogListProperty -> LogListProperty -> Bool)
-> (LogListProperty -> LogListProperty -> Bool)
-> Eq LogListProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: LogListProperty -> LogListProperty -> Bool
== :: LogListProperty -> LogListProperty -> Bool
$c/= :: LogListProperty -> LogListProperty -> Bool
/= :: LogListProperty -> LogListProperty -> Bool
Prelude.Eq, Int -> LogListProperty -> ShowS
[LogListProperty] -> ShowS
LogListProperty -> String
(Int -> LogListProperty -> ShowS)
-> (LogListProperty -> String)
-> ([LogListProperty] -> ShowS)
-> Show LogListProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> LogListProperty -> ShowS
showsPrec :: Int -> LogListProperty -> ShowS
$cshow :: LogListProperty -> String
show :: LogListProperty -> String
$cshowList :: [LogListProperty] -> ShowS
showList :: [LogListProperty] -> ShowS
Prelude.Show)
mkLogListProperty :: LogListProperty
mkLogListProperty :: LogListProperty
mkLogListProperty
  = LogListProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), audit :: Maybe (Value Bool)
audit = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
       general :: Maybe (Value Bool)
general = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties LogListProperty where
  toResourceProperties :: LogListProperty -> ResourceProperties
toResourceProperties LogListProperty {Maybe (Value Bool)
()
haddock_workaround_ :: LogListProperty -> ()
audit :: LogListProperty -> Maybe (Value Bool)
general :: LogListProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
audit :: Maybe (Value Bool)
general :: Maybe (Value Bool)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::AmazonMQ::Broker.LogList",
         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
"Audit" (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)
audit,
                            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
"General" (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)
general])}
instance JSON.ToJSON LogListProperty where
  toJSON :: LogListProperty -> Value
toJSON LogListProperty {Maybe (Value Bool)
()
haddock_workaround_ :: LogListProperty -> ()
audit :: LogListProperty -> Maybe (Value Bool)
general :: LogListProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
audit :: Maybe (Value Bool)
general :: 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
"Audit" (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)
audit,
               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
"General" (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)
general]))
instance Property "Audit" LogListProperty where
  type PropertyType "Audit" LogListProperty = Value Prelude.Bool
  set :: PropertyType "Audit" LogListProperty
-> LogListProperty -> LogListProperty
set PropertyType "Audit" LogListProperty
newValue LogListProperty {Maybe (Value Bool)
()
haddock_workaround_ :: LogListProperty -> ()
audit :: LogListProperty -> Maybe (Value Bool)
general :: LogListProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
audit :: Maybe (Value Bool)
general :: Maybe (Value Bool)
..}
    = LogListProperty {audit :: Maybe (Value Bool)
audit = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Audit" LogListProperty
Value Bool
newValue, Maybe (Value Bool)
()
haddock_workaround_ :: ()
general :: Maybe (Value Bool)
haddock_workaround_ :: ()
general :: Maybe (Value Bool)
..}
instance Property "General" LogListProperty where
  type PropertyType "General" LogListProperty = Value Prelude.Bool
  set :: PropertyType "General" LogListProperty
-> LogListProperty -> LogListProperty
set PropertyType "General" LogListProperty
newValue LogListProperty {Maybe (Value Bool)
()
haddock_workaround_ :: LogListProperty -> ()
audit :: LogListProperty -> Maybe (Value Bool)
general :: LogListProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
audit :: Maybe (Value Bool)
general :: Maybe (Value Bool)
..}
    = LogListProperty {general :: Maybe (Value Bool)
general = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "General" LogListProperty
Value Bool
newValue, Maybe (Value Bool)
()
haddock_workaround_ :: ()
audit :: Maybe (Value Bool)
haddock_workaround_ :: ()
audit :: Maybe (Value Bool)
..}