module Stratosphere.Lex.Bot.AudioLogDestinationProperty (
        module Exports, AudioLogDestinationProperty(..),
        mkAudioLogDestinationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Lex.Bot.S3BucketLogDestinationProperty as Exports
import Stratosphere.ResourceProperties
data AudioLogDestinationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-audiologdestination.html>
    AudioLogDestinationProperty {AudioLogDestinationProperty -> ()
haddock_workaround_ :: (),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-audiologdestination.html#cfn-lex-bot-audiologdestination-s3bucket>
                                 AudioLogDestinationProperty -> S3BucketLogDestinationProperty
s3Bucket :: S3BucketLogDestinationProperty}
  deriving stock (AudioLogDestinationProperty -> AudioLogDestinationProperty -> Bool
(AudioLogDestinationProperty
 -> AudioLogDestinationProperty -> Bool)
-> (AudioLogDestinationProperty
    -> AudioLogDestinationProperty -> Bool)
-> Eq AudioLogDestinationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AudioLogDestinationProperty -> AudioLogDestinationProperty -> Bool
== :: AudioLogDestinationProperty -> AudioLogDestinationProperty -> Bool
$c/= :: AudioLogDestinationProperty -> AudioLogDestinationProperty -> Bool
/= :: AudioLogDestinationProperty -> AudioLogDestinationProperty -> Bool
Prelude.Eq, Int -> AudioLogDestinationProperty -> ShowS
[AudioLogDestinationProperty] -> ShowS
AudioLogDestinationProperty -> String
(Int -> AudioLogDestinationProperty -> ShowS)
-> (AudioLogDestinationProperty -> String)
-> ([AudioLogDestinationProperty] -> ShowS)
-> Show AudioLogDestinationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AudioLogDestinationProperty -> ShowS
showsPrec :: Int -> AudioLogDestinationProperty -> ShowS
$cshow :: AudioLogDestinationProperty -> String
show :: AudioLogDestinationProperty -> String
$cshowList :: [AudioLogDestinationProperty] -> ShowS
showList :: [AudioLogDestinationProperty] -> ShowS
Prelude.Show)
mkAudioLogDestinationProperty ::
  S3BucketLogDestinationProperty -> AudioLogDestinationProperty
mkAudioLogDestinationProperty :: S3BucketLogDestinationProperty -> AudioLogDestinationProperty
mkAudioLogDestinationProperty S3BucketLogDestinationProperty
s3Bucket
  = AudioLogDestinationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), s3Bucket :: S3BucketLogDestinationProperty
s3Bucket = S3BucketLogDestinationProperty
s3Bucket}
instance ToResourceProperties AudioLogDestinationProperty where
  toResourceProperties :: AudioLogDestinationProperty -> ResourceProperties
toResourceProperties AudioLogDestinationProperty {()
S3BucketLogDestinationProperty
haddock_workaround_ :: AudioLogDestinationProperty -> ()
s3Bucket :: AudioLogDestinationProperty -> S3BucketLogDestinationProperty
haddock_workaround_ :: ()
s3Bucket :: S3BucketLogDestinationProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Lex::Bot.AudioLogDestination",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"S3Bucket" Key -> S3BucketLogDestinationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= S3BucketLogDestinationProperty
s3Bucket]}
instance JSON.ToJSON AudioLogDestinationProperty where
  toJSON :: AudioLogDestinationProperty -> Value
toJSON AudioLogDestinationProperty {()
S3BucketLogDestinationProperty
haddock_workaround_ :: AudioLogDestinationProperty -> ()
s3Bucket :: AudioLogDestinationProperty -> S3BucketLogDestinationProperty
haddock_workaround_ :: ()
s3Bucket :: S3BucketLogDestinationProperty
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"S3Bucket" Key -> S3BucketLogDestinationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= S3BucketLogDestinationProperty
s3Bucket]
instance Property "S3Bucket" AudioLogDestinationProperty where
  type PropertyType "S3Bucket" AudioLogDestinationProperty = S3BucketLogDestinationProperty
  set :: PropertyType "S3Bucket" AudioLogDestinationProperty
-> AudioLogDestinationProperty -> AudioLogDestinationProperty
set PropertyType "S3Bucket" AudioLogDestinationProperty
newValue AudioLogDestinationProperty {()
S3BucketLogDestinationProperty
haddock_workaround_ :: AudioLogDestinationProperty -> ()
s3Bucket :: AudioLogDestinationProperty -> S3BucketLogDestinationProperty
haddock_workaround_ :: ()
s3Bucket :: S3BucketLogDestinationProperty
..}
    = AudioLogDestinationProperty {s3Bucket :: S3BucketLogDestinationProperty
s3Bucket = PropertyType "S3Bucket" AudioLogDestinationProperty
S3BucketLogDestinationProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}