module Stratosphere.Lex.BotAlias.TextLogSettingProperty (
        module Exports, TextLogSettingProperty(..),
        mkTextLogSettingProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Lex.BotAlias.TextLogDestinationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TextLogSettingProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-botalias-textlogsetting.html>
    TextLogSettingProperty {TextLogSettingProperty -> ()
haddock_workaround_ :: (),
                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-botalias-textlogsetting.html#cfn-lex-botalias-textlogsetting-destination>
                            TextLogSettingProperty -> TextLogDestinationProperty
destination :: TextLogDestinationProperty,
                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-botalias-textlogsetting.html#cfn-lex-botalias-textlogsetting-enabled>
                            TextLogSettingProperty -> Value Bool
enabled :: (Value Prelude.Bool)}
  deriving stock (TextLogSettingProperty -> TextLogSettingProperty -> Bool
(TextLogSettingProperty -> TextLogSettingProperty -> Bool)
-> (TextLogSettingProperty -> TextLogSettingProperty -> Bool)
-> Eq TextLogSettingProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TextLogSettingProperty -> TextLogSettingProperty -> Bool
== :: TextLogSettingProperty -> TextLogSettingProperty -> Bool
$c/= :: TextLogSettingProperty -> TextLogSettingProperty -> Bool
/= :: TextLogSettingProperty -> TextLogSettingProperty -> Bool
Prelude.Eq, Int -> TextLogSettingProperty -> ShowS
[TextLogSettingProperty] -> ShowS
TextLogSettingProperty -> String
(Int -> TextLogSettingProperty -> ShowS)
-> (TextLogSettingProperty -> String)
-> ([TextLogSettingProperty] -> ShowS)
-> Show TextLogSettingProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TextLogSettingProperty -> ShowS
showsPrec :: Int -> TextLogSettingProperty -> ShowS
$cshow :: TextLogSettingProperty -> String
show :: TextLogSettingProperty -> String
$cshowList :: [TextLogSettingProperty] -> ShowS
showList :: [TextLogSettingProperty] -> ShowS
Prelude.Show)
mkTextLogSettingProperty ::
  TextLogDestinationProperty
  -> Value Prelude.Bool -> TextLogSettingProperty
mkTextLogSettingProperty :: TextLogDestinationProperty -> Value Bool -> TextLogSettingProperty
mkTextLogSettingProperty TextLogDestinationProperty
destination Value Bool
enabled
  = TextLogSettingProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), destination :: TextLogDestinationProperty
destination = TextLogDestinationProperty
destination,
       enabled :: Value Bool
enabled = Value Bool
enabled}
instance ToResourceProperties TextLogSettingProperty where
  toResourceProperties :: TextLogSettingProperty -> ResourceProperties
toResourceProperties TextLogSettingProperty {()
Value Bool
TextLogDestinationProperty
haddock_workaround_ :: TextLogSettingProperty -> ()
destination :: TextLogSettingProperty -> TextLogDestinationProperty
enabled :: TextLogSettingProperty -> Value Bool
haddock_workaround_ :: ()
destination :: TextLogDestinationProperty
enabled :: Value Bool
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Lex::BotAlias.TextLogSetting",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"Destination" Key -> TextLogDestinationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= TextLogDestinationProperty
destination,
                       Key
"Enabled" 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..= Value Bool
enabled]}
instance JSON.ToJSON TextLogSettingProperty where
  toJSON :: TextLogSettingProperty -> Value
toJSON TextLogSettingProperty {()
Value Bool
TextLogDestinationProperty
haddock_workaround_ :: TextLogSettingProperty -> ()
destination :: TextLogSettingProperty -> TextLogDestinationProperty
enabled :: TextLogSettingProperty -> Value Bool
haddock_workaround_ :: ()
destination :: TextLogDestinationProperty
enabled :: Value Bool
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"Destination" Key -> TextLogDestinationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= TextLogDestinationProperty
destination, Key
"Enabled" 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..= Value Bool
enabled]
instance Property "Destination" TextLogSettingProperty where
  type PropertyType "Destination" TextLogSettingProperty = TextLogDestinationProperty
  set :: PropertyType "Destination" TextLogSettingProperty
-> TextLogSettingProperty -> TextLogSettingProperty
set PropertyType "Destination" TextLogSettingProperty
newValue TextLogSettingProperty {()
Value Bool
TextLogDestinationProperty
haddock_workaround_ :: TextLogSettingProperty -> ()
destination :: TextLogSettingProperty -> TextLogDestinationProperty
enabled :: TextLogSettingProperty -> Value Bool
haddock_workaround_ :: ()
destination :: TextLogDestinationProperty
enabled :: Value Bool
..}
    = TextLogSettingProperty {destination :: TextLogDestinationProperty
destination = PropertyType "Destination" TextLogSettingProperty
TextLogDestinationProperty
newValue, ()
Value Bool
haddock_workaround_ :: ()
enabled :: Value Bool
haddock_workaround_ :: ()
enabled :: Value Bool
..}
instance Property "Enabled" TextLogSettingProperty where
  type PropertyType "Enabled" TextLogSettingProperty = Value Prelude.Bool
  set :: PropertyType "Enabled" TextLogSettingProperty
-> TextLogSettingProperty -> TextLogSettingProperty
set PropertyType "Enabled" TextLogSettingProperty
newValue TextLogSettingProperty {()
Value Bool
TextLogDestinationProperty
haddock_workaround_ :: TextLogSettingProperty -> ()
destination :: TextLogSettingProperty -> TextLogDestinationProperty
enabled :: TextLogSettingProperty -> Value Bool
haddock_workaround_ :: ()
destination :: TextLogDestinationProperty
enabled :: Value Bool
..}
    = TextLogSettingProperty {enabled :: Value Bool
enabled = PropertyType "Enabled" TextLogSettingProperty
Value Bool
newValue, ()
TextLogDestinationProperty
haddock_workaround_ :: ()
destination :: TextLogDestinationProperty
haddock_workaround_ :: ()
destination :: TextLogDestinationProperty
..}