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