module Stratosphere.StepFunctions.StateMachine.TracingConfigurationProperty (
TracingConfigurationProperty(..), mkTracingConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TracingConfigurationProperty
=
TracingConfigurationProperty {TracingConfigurationProperty -> ()
haddock_workaround_ :: (),
TracingConfigurationProperty -> Maybe (Value Bool)
enabled :: (Prelude.Maybe (Value Prelude.Bool))}
deriving stock (TracingConfigurationProperty
-> TracingConfigurationProperty -> Bool
(TracingConfigurationProperty
-> TracingConfigurationProperty -> Bool)
-> (TracingConfigurationProperty
-> TracingConfigurationProperty -> Bool)
-> Eq TracingConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TracingConfigurationProperty
-> TracingConfigurationProperty -> Bool
== :: TracingConfigurationProperty
-> TracingConfigurationProperty -> Bool
$c/= :: TracingConfigurationProperty
-> TracingConfigurationProperty -> Bool
/= :: TracingConfigurationProperty
-> TracingConfigurationProperty -> Bool
Prelude.Eq, Int -> TracingConfigurationProperty -> ShowS
[TracingConfigurationProperty] -> ShowS
TracingConfigurationProperty -> String
(Int -> TracingConfigurationProperty -> ShowS)
-> (TracingConfigurationProperty -> String)
-> ([TracingConfigurationProperty] -> ShowS)
-> Show TracingConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TracingConfigurationProperty -> ShowS
showsPrec :: Int -> TracingConfigurationProperty -> ShowS
$cshow :: TracingConfigurationProperty -> String
show :: TracingConfigurationProperty -> String
$cshowList :: [TracingConfigurationProperty] -> ShowS
showList :: [TracingConfigurationProperty] -> ShowS
Prelude.Show)
mkTracingConfigurationProperty :: TracingConfigurationProperty
mkTracingConfigurationProperty :: TracingConfigurationProperty
mkTracingConfigurationProperty
= TracingConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), enabled :: Maybe (Value Bool)
enabled = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties TracingConfigurationProperty where
toResourceProperties :: TracingConfigurationProperty -> ResourceProperties
toResourceProperties TracingConfigurationProperty {Maybe (Value Bool)
()
haddock_workaround_ :: TracingConfigurationProperty -> ()
enabled :: TracingConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::StepFunctions::StateMachine.TracingConfiguration",
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
"Enabled" (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)
enabled])}
instance JSON.ToJSON TracingConfigurationProperty where
toJSON :: TracingConfigurationProperty -> Value
toJSON TracingConfigurationProperty {Maybe (Value Bool)
()
haddock_workaround_ :: TracingConfigurationProperty -> ()
enabled :: TracingConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
enabled :: 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
"Enabled" (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)
enabled]))
instance Property "Enabled" TracingConfigurationProperty where
type PropertyType "Enabled" TracingConfigurationProperty = Value Prelude.Bool
set :: PropertyType "Enabled" TracingConfigurationProperty
-> TracingConfigurationProperty -> TracingConfigurationProperty
set PropertyType "Enabled" TracingConfigurationProperty
newValue TracingConfigurationProperty {Maybe (Value Bool)
()
haddock_workaround_ :: TracingConfigurationProperty -> ()
enabled :: TracingConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
..}
= TracingConfigurationProperty
{enabled :: Maybe (Value Bool)
enabled = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Enabled" TracingConfigurationProperty
Value Bool
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}