module Stratosphere.IoT.ResourceSpecificLogging (
ResourceSpecificLogging(..), mkResourceSpecificLogging
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ResourceSpecificLogging
=
ResourceSpecificLogging {ResourceSpecificLogging -> ()
haddock_workaround_ :: (),
ResourceSpecificLogging -> Value Text
logLevel :: (Value Prelude.Text),
ResourceSpecificLogging -> Value Text
targetName :: (Value Prelude.Text),
ResourceSpecificLogging -> Value Text
targetType :: (Value Prelude.Text)}
deriving stock (ResourceSpecificLogging -> ResourceSpecificLogging -> Bool
(ResourceSpecificLogging -> ResourceSpecificLogging -> Bool)
-> (ResourceSpecificLogging -> ResourceSpecificLogging -> Bool)
-> Eq ResourceSpecificLogging
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ResourceSpecificLogging -> ResourceSpecificLogging -> Bool
== :: ResourceSpecificLogging -> ResourceSpecificLogging -> Bool
$c/= :: ResourceSpecificLogging -> ResourceSpecificLogging -> Bool
/= :: ResourceSpecificLogging -> ResourceSpecificLogging -> Bool
Prelude.Eq, Int -> ResourceSpecificLogging -> ShowS
[ResourceSpecificLogging] -> ShowS
ResourceSpecificLogging -> String
(Int -> ResourceSpecificLogging -> ShowS)
-> (ResourceSpecificLogging -> String)
-> ([ResourceSpecificLogging] -> ShowS)
-> Show ResourceSpecificLogging
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ResourceSpecificLogging -> ShowS
showsPrec :: Int -> ResourceSpecificLogging -> ShowS
$cshow :: ResourceSpecificLogging -> String
show :: ResourceSpecificLogging -> String
$cshowList :: [ResourceSpecificLogging] -> ShowS
showList :: [ResourceSpecificLogging] -> ShowS
Prelude.Show)
mkResourceSpecificLogging ::
Value Prelude.Text
-> Value Prelude.Text
-> Value Prelude.Text -> ResourceSpecificLogging
mkResourceSpecificLogging :: Value Text -> Value Text -> Value Text -> ResourceSpecificLogging
mkResourceSpecificLogging Value Text
logLevel Value Text
targetName Value Text
targetType
= ResourceSpecificLogging
{haddock_workaround_ :: ()
haddock_workaround_ = (), logLevel :: Value Text
logLevel = Value Text
logLevel,
targetName :: Value Text
targetName = Value Text
targetName, targetType :: Value Text
targetType = Value Text
targetType}
instance ToResourceProperties ResourceSpecificLogging where
toResourceProperties :: ResourceSpecificLogging -> ResourceProperties
toResourceProperties ResourceSpecificLogging {()
Value Text
haddock_workaround_ :: ResourceSpecificLogging -> ()
logLevel :: ResourceSpecificLogging -> Value Text
targetName :: ResourceSpecificLogging -> Value Text
targetType :: ResourceSpecificLogging -> Value Text
haddock_workaround_ :: ()
logLevel :: Value Text
targetName :: Value Text
targetType :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::IoT::ResourceSpecificLogging",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"LogLevel" 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
logLevel,
Key
"TargetName" 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
targetName, Key
"TargetType" 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
targetType]}
instance JSON.ToJSON ResourceSpecificLogging where
toJSON :: ResourceSpecificLogging -> Value
toJSON ResourceSpecificLogging {()
Value Text
haddock_workaround_ :: ResourceSpecificLogging -> ()
logLevel :: ResourceSpecificLogging -> Value Text
targetName :: ResourceSpecificLogging -> Value Text
targetType :: ResourceSpecificLogging -> Value Text
haddock_workaround_ :: ()
logLevel :: Value Text
targetName :: Value Text
targetType :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"LogLevel" 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
logLevel, Key
"TargetName" 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
targetName,
Key
"TargetType" 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
targetType]
instance Property "LogLevel" ResourceSpecificLogging where
type PropertyType "LogLevel" ResourceSpecificLogging = Value Prelude.Text
set :: PropertyType "LogLevel" ResourceSpecificLogging
-> ResourceSpecificLogging -> ResourceSpecificLogging
set PropertyType "LogLevel" ResourceSpecificLogging
newValue ResourceSpecificLogging {()
Value Text
haddock_workaround_ :: ResourceSpecificLogging -> ()
logLevel :: ResourceSpecificLogging -> Value Text
targetName :: ResourceSpecificLogging -> Value Text
targetType :: ResourceSpecificLogging -> Value Text
haddock_workaround_ :: ()
logLevel :: Value Text
targetName :: Value Text
targetType :: Value Text
..}
= ResourceSpecificLogging {logLevel :: Value Text
logLevel = PropertyType "LogLevel" ResourceSpecificLogging
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
targetName :: Value Text
targetType :: Value Text
haddock_workaround_ :: ()
targetName :: Value Text
targetType :: Value Text
..}
instance Property "TargetName" ResourceSpecificLogging where
type PropertyType "TargetName" ResourceSpecificLogging = Value Prelude.Text
set :: PropertyType "TargetName" ResourceSpecificLogging
-> ResourceSpecificLogging -> ResourceSpecificLogging
set PropertyType "TargetName" ResourceSpecificLogging
newValue ResourceSpecificLogging {()
Value Text
haddock_workaround_ :: ResourceSpecificLogging -> ()
logLevel :: ResourceSpecificLogging -> Value Text
targetName :: ResourceSpecificLogging -> Value Text
targetType :: ResourceSpecificLogging -> Value Text
haddock_workaround_ :: ()
logLevel :: Value Text
targetName :: Value Text
targetType :: Value Text
..}
= ResourceSpecificLogging {targetName :: Value Text
targetName = PropertyType "TargetName" ResourceSpecificLogging
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
logLevel :: Value Text
targetType :: Value Text
haddock_workaround_ :: ()
logLevel :: Value Text
targetType :: Value Text
..}
instance Property "TargetType" ResourceSpecificLogging where
type PropertyType "TargetType" ResourceSpecificLogging = Value Prelude.Text
set :: PropertyType "TargetType" ResourceSpecificLogging
-> ResourceSpecificLogging -> ResourceSpecificLogging
set PropertyType "TargetType" ResourceSpecificLogging
newValue ResourceSpecificLogging {()
Value Text
haddock_workaround_ :: ResourceSpecificLogging -> ()
logLevel :: ResourceSpecificLogging -> Value Text
targetName :: ResourceSpecificLogging -> Value Text
targetType :: ResourceSpecificLogging -> Value Text
haddock_workaround_ :: ()
logLevel :: Value Text
targetName :: Value Text
targetType :: Value Text
..}
= ResourceSpecificLogging {targetType :: Value Text
targetType = PropertyType "TargetType" ResourceSpecificLogging
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
logLevel :: Value Text
targetName :: Value Text
haddock_workaround_ :: ()
logLevel :: Value Text
targetName :: Value Text
..}