module Stratosphere.IoT.Logging (
Logging(..), mkLogging
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data Logging
=
Logging {Logging -> ()
haddock_workaround_ :: (),
Logging -> Value Text
accountId :: (Value Prelude.Text),
Logging -> Value Text
defaultLogLevel :: (Value Prelude.Text),
Logging -> Value Text
roleArn :: (Value Prelude.Text)}
deriving stock (Logging -> Logging -> Bool
(Logging -> Logging -> Bool)
-> (Logging -> Logging -> Bool) -> Eq Logging
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Logging -> Logging -> Bool
== :: Logging -> Logging -> Bool
$c/= :: Logging -> Logging -> Bool
/= :: Logging -> Logging -> Bool
Prelude.Eq, Int -> Logging -> ShowS
[Logging] -> ShowS
Logging -> String
(Int -> Logging -> ShowS)
-> (Logging -> String) -> ([Logging] -> ShowS) -> Show Logging
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Logging -> ShowS
showsPrec :: Int -> Logging -> ShowS
$cshow :: Logging -> String
show :: Logging -> String
$cshowList :: [Logging] -> ShowS
showList :: [Logging] -> ShowS
Prelude.Show)
mkLogging ::
Value Prelude.Text
-> Value Prelude.Text -> Value Prelude.Text -> Logging
mkLogging :: Value Text -> Value Text -> Value Text -> Logging
mkLogging Value Text
accountId Value Text
defaultLogLevel Value Text
roleArn
= Logging
{haddock_workaround_ :: ()
haddock_workaround_ = (), accountId :: Value Text
accountId = Value Text
accountId,
defaultLogLevel :: Value Text
defaultLogLevel = Value Text
defaultLogLevel, roleArn :: Value Text
roleArn = Value Text
roleArn}
instance ToResourceProperties Logging where
toResourceProperties :: Logging -> ResourceProperties
toResourceProperties Logging {()
Value Text
haddock_workaround_ :: Logging -> ()
accountId :: Logging -> Value Text
defaultLogLevel :: Logging -> Value Text
roleArn :: Logging -> Value Text
haddock_workaround_ :: ()
accountId :: Value Text
defaultLogLevel :: Value Text
roleArn :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::IoT::Logging", supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"AccountId" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
accountId,
Key
"DefaultLogLevel" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
defaultLogLevel,
Key
"RoleArn" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
roleArn]}
instance JSON.ToJSON Logging where
toJSON :: Logging -> Value
toJSON Logging {()
Value Text
haddock_workaround_ :: Logging -> ()
accountId :: Logging -> Value Text
defaultLogLevel :: Logging -> Value Text
roleArn :: Logging -> Value Text
haddock_workaround_ :: ()
accountId :: Value Text
defaultLogLevel :: Value Text
roleArn :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"AccountId" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
accountId,
Key
"DefaultLogLevel" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
defaultLogLevel,
Key
"RoleArn" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
roleArn]
instance Property "AccountId" Logging where
type PropertyType "AccountId" Logging = Value Prelude.Text
set :: PropertyType "AccountId" Logging -> Logging -> Logging
set PropertyType "AccountId" Logging
newValue Logging {()
Value Text
haddock_workaround_ :: Logging -> ()
accountId :: Logging -> Value Text
defaultLogLevel :: Logging -> Value Text
roleArn :: Logging -> Value Text
haddock_workaround_ :: ()
accountId :: Value Text
defaultLogLevel :: Value Text
roleArn :: Value Text
..} = Logging {accountId :: Value Text
accountId = PropertyType "AccountId" Logging
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
defaultLogLevel :: Value Text
roleArn :: Value Text
haddock_workaround_ :: ()
defaultLogLevel :: Value Text
roleArn :: Value Text
..}
instance Property "DefaultLogLevel" Logging where
type PropertyType "DefaultLogLevel" Logging = Value Prelude.Text
set :: PropertyType "DefaultLogLevel" Logging -> Logging -> Logging
set PropertyType "DefaultLogLevel" Logging
newValue Logging {()
Value Text
haddock_workaround_ :: Logging -> ()
accountId :: Logging -> Value Text
defaultLogLevel :: Logging -> Value Text
roleArn :: Logging -> Value Text
haddock_workaround_ :: ()
accountId :: Value Text
defaultLogLevel :: Value Text
roleArn :: Value Text
..}
= Logging {defaultLogLevel :: Value Text
defaultLogLevel = PropertyType "DefaultLogLevel" Logging
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
accountId :: Value Text
roleArn :: Value Text
haddock_workaround_ :: ()
accountId :: Value Text
roleArn :: Value Text
..}
instance Property "RoleArn" Logging where
type PropertyType "RoleArn" Logging = Value Prelude.Text
set :: PropertyType "RoleArn" Logging -> Logging -> Logging
set PropertyType "RoleArn" Logging
newValue Logging {()
Value Text
haddock_workaround_ :: Logging -> ()
accountId :: Logging -> Value Text
defaultLogLevel :: Logging -> Value Text
roleArn :: Logging -> Value Text
haddock_workaround_ :: ()
accountId :: Value Text
defaultLogLevel :: Value Text
roleArn :: Value Text
..} = Logging {roleArn :: Value Text
roleArn = PropertyType "RoleArn" Logging
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
accountId :: Value Text
defaultLogLevel :: Value Text
haddock_workaround_ :: ()
accountId :: Value Text
defaultLogLevel :: Value Text
..}