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