module Stratosphere.Lex.BotAlias.S3BucketLogDestinationProperty (
        S3BucketLogDestinationProperty(..),
        mkS3BucketLogDestinationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data S3BucketLogDestinationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-botalias-s3bucketlogdestination.html>
    S3BucketLogDestinationProperty {S3BucketLogDestinationProperty -> ()
haddock_workaround_ :: (),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-botalias-s3bucketlogdestination.html#cfn-lex-botalias-s3bucketlogdestination-kmskeyarn>
                                    S3BucketLogDestinationProperty -> Maybe (Value Text)
kmsKeyArn :: (Prelude.Maybe (Value Prelude.Text)),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-botalias-s3bucketlogdestination.html#cfn-lex-botalias-s3bucketlogdestination-logprefix>
                                    S3BucketLogDestinationProperty -> Value Text
logPrefix :: (Value Prelude.Text),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-botalias-s3bucketlogdestination.html#cfn-lex-botalias-s3bucketlogdestination-s3bucketarn>
                                    S3BucketLogDestinationProperty -> Value Text
s3BucketArn :: (Value Prelude.Text)}
  deriving stock (S3BucketLogDestinationProperty
-> S3BucketLogDestinationProperty -> Bool
(S3BucketLogDestinationProperty
 -> S3BucketLogDestinationProperty -> Bool)
-> (S3BucketLogDestinationProperty
    -> S3BucketLogDestinationProperty -> Bool)
-> Eq S3BucketLogDestinationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: S3BucketLogDestinationProperty
-> S3BucketLogDestinationProperty -> Bool
== :: S3BucketLogDestinationProperty
-> S3BucketLogDestinationProperty -> Bool
$c/= :: S3BucketLogDestinationProperty
-> S3BucketLogDestinationProperty -> Bool
/= :: S3BucketLogDestinationProperty
-> S3BucketLogDestinationProperty -> Bool
Prelude.Eq, Int -> S3BucketLogDestinationProperty -> ShowS
[S3BucketLogDestinationProperty] -> ShowS
S3BucketLogDestinationProperty -> String
(Int -> S3BucketLogDestinationProperty -> ShowS)
-> (S3BucketLogDestinationProperty -> String)
-> ([S3BucketLogDestinationProperty] -> ShowS)
-> Show S3BucketLogDestinationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> S3BucketLogDestinationProperty -> ShowS
showsPrec :: Int -> S3BucketLogDestinationProperty -> ShowS
$cshow :: S3BucketLogDestinationProperty -> String
show :: S3BucketLogDestinationProperty -> String
$cshowList :: [S3BucketLogDestinationProperty] -> ShowS
showList :: [S3BucketLogDestinationProperty] -> ShowS
Prelude.Show)
mkS3BucketLogDestinationProperty ::
  Value Prelude.Text
  -> Value Prelude.Text -> S3BucketLogDestinationProperty
mkS3BucketLogDestinationProperty :: Value Text -> Value Text -> S3BucketLogDestinationProperty
mkS3BucketLogDestinationProperty Value Text
logPrefix Value Text
s3BucketArn
  = S3BucketLogDestinationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), logPrefix :: Value Text
logPrefix = Value Text
logPrefix,
       s3BucketArn :: Value Text
s3BucketArn = Value Text
s3BucketArn, kmsKeyArn :: Maybe (Value Text)
kmsKeyArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties S3BucketLogDestinationProperty where
  toResourceProperties :: S3BucketLogDestinationProperty -> ResourceProperties
toResourceProperties S3BucketLogDestinationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3BucketLogDestinationProperty -> ()
kmsKeyArn :: S3BucketLogDestinationProperty -> Maybe (Value Text)
logPrefix :: S3BucketLogDestinationProperty -> Value Text
s3BucketArn :: S3BucketLogDestinationProperty -> Value Text
haddock_workaround_ :: ()
kmsKeyArn :: Maybe (Value Text)
logPrefix :: Value Text
s3BucketArn :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Lex::BotAlias.S3BucketLogDestination",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
                           [Key
"LogPrefix" 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
logPrefix, Key
"S3BucketArn" 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
s3BucketArn]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [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..=) Key
"KmsKeyArn" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
kmsKeyArn]))}
instance JSON.ToJSON S3BucketLogDestinationProperty where
  toJSON :: S3BucketLogDestinationProperty -> Value
toJSON S3BucketLogDestinationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3BucketLogDestinationProperty -> ()
kmsKeyArn :: S3BucketLogDestinationProperty -> Maybe (Value Text)
logPrefix :: S3BucketLogDestinationProperty -> Value Text
s3BucketArn :: S3BucketLogDestinationProperty -> Value Text
haddock_workaround_ :: ()
kmsKeyArn :: Maybe (Value Text)
logPrefix :: Value Text
s3BucketArn :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
              [Key
"LogPrefix" 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
logPrefix, Key
"S3BucketArn" 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
s3BucketArn]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [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..=) Key
"KmsKeyArn" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
kmsKeyArn])))
instance Property "KmsKeyArn" S3BucketLogDestinationProperty where
  type PropertyType "KmsKeyArn" S3BucketLogDestinationProperty = Value Prelude.Text
  set :: PropertyType "KmsKeyArn" S3BucketLogDestinationProperty
-> S3BucketLogDestinationProperty -> S3BucketLogDestinationProperty
set PropertyType "KmsKeyArn" S3BucketLogDestinationProperty
newValue S3BucketLogDestinationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3BucketLogDestinationProperty -> ()
kmsKeyArn :: S3BucketLogDestinationProperty -> Maybe (Value Text)
logPrefix :: S3BucketLogDestinationProperty -> Value Text
s3BucketArn :: S3BucketLogDestinationProperty -> Value Text
haddock_workaround_ :: ()
kmsKeyArn :: Maybe (Value Text)
logPrefix :: Value Text
s3BucketArn :: Value Text
..}
    = S3BucketLogDestinationProperty
        {kmsKeyArn :: Maybe (Value Text)
kmsKeyArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "KmsKeyArn" S3BucketLogDestinationProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
logPrefix :: Value Text
s3BucketArn :: Value Text
haddock_workaround_ :: ()
logPrefix :: Value Text
s3BucketArn :: Value Text
..}
instance Property "LogPrefix" S3BucketLogDestinationProperty where
  type PropertyType "LogPrefix" S3BucketLogDestinationProperty = Value Prelude.Text
  set :: PropertyType "LogPrefix" S3BucketLogDestinationProperty
-> S3BucketLogDestinationProperty -> S3BucketLogDestinationProperty
set PropertyType "LogPrefix" S3BucketLogDestinationProperty
newValue S3BucketLogDestinationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3BucketLogDestinationProperty -> ()
kmsKeyArn :: S3BucketLogDestinationProperty -> Maybe (Value Text)
logPrefix :: S3BucketLogDestinationProperty -> Value Text
s3BucketArn :: S3BucketLogDestinationProperty -> Value Text
haddock_workaround_ :: ()
kmsKeyArn :: Maybe (Value Text)
logPrefix :: Value Text
s3BucketArn :: Value Text
..}
    = S3BucketLogDestinationProperty {logPrefix :: Value Text
logPrefix = PropertyType "LogPrefix" S3BucketLogDestinationProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
kmsKeyArn :: Maybe (Value Text)
s3BucketArn :: Value Text
haddock_workaround_ :: ()
kmsKeyArn :: Maybe (Value Text)
s3BucketArn :: Value Text
..}
instance Property "S3BucketArn" S3BucketLogDestinationProperty where
  type PropertyType "S3BucketArn" S3BucketLogDestinationProperty = Value Prelude.Text
  set :: PropertyType "S3BucketArn" S3BucketLogDestinationProperty
-> S3BucketLogDestinationProperty -> S3BucketLogDestinationProperty
set PropertyType "S3BucketArn" S3BucketLogDestinationProperty
newValue S3BucketLogDestinationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3BucketLogDestinationProperty -> ()
kmsKeyArn :: S3BucketLogDestinationProperty -> Maybe (Value Text)
logPrefix :: S3BucketLogDestinationProperty -> Value Text
s3BucketArn :: S3BucketLogDestinationProperty -> Value Text
haddock_workaround_ :: ()
kmsKeyArn :: Maybe (Value Text)
logPrefix :: Value Text
s3BucketArn :: Value Text
..}
    = S3BucketLogDestinationProperty {s3BucketArn :: Value Text
s3BucketArn = PropertyType "S3BucketArn" S3BucketLogDestinationProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
kmsKeyArn :: Maybe (Value Text)
logPrefix :: Value Text
haddock_workaround_ :: ()
kmsKeyArn :: Maybe (Value Text)
logPrefix :: Value Text
..}