module Stratosphere.Lex.Bot.GrammarSlotTypeSourceProperty (
GrammarSlotTypeSourceProperty(..), mkGrammarSlotTypeSourceProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data GrammarSlotTypeSourceProperty
=
GrammarSlotTypeSourceProperty {GrammarSlotTypeSourceProperty -> ()
haddock_workaround_ :: (),
GrammarSlotTypeSourceProperty -> Maybe (Value Text)
kmsKeyArn :: (Prelude.Maybe (Value Prelude.Text)),
GrammarSlotTypeSourceProperty -> Value Text
s3BucketName :: (Value Prelude.Text),
GrammarSlotTypeSourceProperty -> Value Text
s3ObjectKey :: (Value Prelude.Text)}
deriving stock (GrammarSlotTypeSourceProperty
-> GrammarSlotTypeSourceProperty -> Bool
(GrammarSlotTypeSourceProperty
-> GrammarSlotTypeSourceProperty -> Bool)
-> (GrammarSlotTypeSourceProperty
-> GrammarSlotTypeSourceProperty -> Bool)
-> Eq GrammarSlotTypeSourceProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: GrammarSlotTypeSourceProperty
-> GrammarSlotTypeSourceProperty -> Bool
== :: GrammarSlotTypeSourceProperty
-> GrammarSlotTypeSourceProperty -> Bool
$c/= :: GrammarSlotTypeSourceProperty
-> GrammarSlotTypeSourceProperty -> Bool
/= :: GrammarSlotTypeSourceProperty
-> GrammarSlotTypeSourceProperty -> Bool
Prelude.Eq, Int -> GrammarSlotTypeSourceProperty -> ShowS
[GrammarSlotTypeSourceProperty] -> ShowS
GrammarSlotTypeSourceProperty -> String
(Int -> GrammarSlotTypeSourceProperty -> ShowS)
-> (GrammarSlotTypeSourceProperty -> String)
-> ([GrammarSlotTypeSourceProperty] -> ShowS)
-> Show GrammarSlotTypeSourceProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> GrammarSlotTypeSourceProperty -> ShowS
showsPrec :: Int -> GrammarSlotTypeSourceProperty -> ShowS
$cshow :: GrammarSlotTypeSourceProperty -> String
show :: GrammarSlotTypeSourceProperty -> String
$cshowList :: [GrammarSlotTypeSourceProperty] -> ShowS
showList :: [GrammarSlotTypeSourceProperty] -> ShowS
Prelude.Show)
mkGrammarSlotTypeSourceProperty ::
Value Prelude.Text
-> Value Prelude.Text -> GrammarSlotTypeSourceProperty
mkGrammarSlotTypeSourceProperty :: Value Text -> Value Text -> GrammarSlotTypeSourceProperty
mkGrammarSlotTypeSourceProperty Value Text
s3BucketName Value Text
s3ObjectKey
= GrammarSlotTypeSourceProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), s3BucketName :: Value Text
s3BucketName = Value Text
s3BucketName,
s3ObjectKey :: Value Text
s3ObjectKey = Value Text
s3ObjectKey, kmsKeyArn :: Maybe (Value Text)
kmsKeyArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties GrammarSlotTypeSourceProperty where
toResourceProperties :: GrammarSlotTypeSourceProperty -> ResourceProperties
toResourceProperties GrammarSlotTypeSourceProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: GrammarSlotTypeSourceProperty -> ()
kmsKeyArn :: GrammarSlotTypeSourceProperty -> Maybe (Value Text)
s3BucketName :: GrammarSlotTypeSourceProperty -> Value Text
s3ObjectKey :: GrammarSlotTypeSourceProperty -> Value Text
haddock_workaround_ :: ()
kmsKeyArn :: Maybe (Value Text)
s3BucketName :: Value Text
s3ObjectKey :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Lex::Bot.GrammarSlotTypeSource",
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
"S3BucketName" 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
s3BucketName,
Key
"S3ObjectKey" 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
s3ObjectKey]
([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 GrammarSlotTypeSourceProperty where
toJSON :: GrammarSlotTypeSourceProperty -> Value
toJSON GrammarSlotTypeSourceProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: GrammarSlotTypeSourceProperty -> ()
kmsKeyArn :: GrammarSlotTypeSourceProperty -> Maybe (Value Text)
s3BucketName :: GrammarSlotTypeSourceProperty -> Value Text
s3ObjectKey :: GrammarSlotTypeSourceProperty -> Value Text
haddock_workaround_ :: ()
kmsKeyArn :: Maybe (Value Text)
s3BucketName :: Value Text
s3ObjectKey :: 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
"S3BucketName" 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
s3BucketName,
Key
"S3ObjectKey" 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
s3ObjectKey]
([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" GrammarSlotTypeSourceProperty where
type PropertyType "KmsKeyArn" GrammarSlotTypeSourceProperty = Value Prelude.Text
set :: PropertyType "KmsKeyArn" GrammarSlotTypeSourceProperty
-> GrammarSlotTypeSourceProperty -> GrammarSlotTypeSourceProperty
set PropertyType "KmsKeyArn" GrammarSlotTypeSourceProperty
newValue GrammarSlotTypeSourceProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: GrammarSlotTypeSourceProperty -> ()
kmsKeyArn :: GrammarSlotTypeSourceProperty -> Maybe (Value Text)
s3BucketName :: GrammarSlotTypeSourceProperty -> Value Text
s3ObjectKey :: GrammarSlotTypeSourceProperty -> Value Text
haddock_workaround_ :: ()
kmsKeyArn :: Maybe (Value Text)
s3BucketName :: Value Text
s3ObjectKey :: Value Text
..}
= GrammarSlotTypeSourceProperty
{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" GrammarSlotTypeSourceProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
s3BucketName :: Value Text
s3ObjectKey :: Value Text
haddock_workaround_ :: ()
s3BucketName :: Value Text
s3ObjectKey :: Value Text
..}
instance Property "S3BucketName" GrammarSlotTypeSourceProperty where
type PropertyType "S3BucketName" GrammarSlotTypeSourceProperty = Value Prelude.Text
set :: PropertyType "S3BucketName" GrammarSlotTypeSourceProperty
-> GrammarSlotTypeSourceProperty -> GrammarSlotTypeSourceProperty
set PropertyType "S3BucketName" GrammarSlotTypeSourceProperty
newValue GrammarSlotTypeSourceProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: GrammarSlotTypeSourceProperty -> ()
kmsKeyArn :: GrammarSlotTypeSourceProperty -> Maybe (Value Text)
s3BucketName :: GrammarSlotTypeSourceProperty -> Value Text
s3ObjectKey :: GrammarSlotTypeSourceProperty -> Value Text
haddock_workaround_ :: ()
kmsKeyArn :: Maybe (Value Text)
s3BucketName :: Value Text
s3ObjectKey :: Value Text
..}
= GrammarSlotTypeSourceProperty {s3BucketName :: Value Text
s3BucketName = PropertyType "S3BucketName" GrammarSlotTypeSourceProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
kmsKeyArn :: Maybe (Value Text)
s3ObjectKey :: Value Text
haddock_workaround_ :: ()
kmsKeyArn :: Maybe (Value Text)
s3ObjectKey :: Value Text
..}
instance Property "S3ObjectKey" GrammarSlotTypeSourceProperty where
type PropertyType "S3ObjectKey" GrammarSlotTypeSourceProperty = Value Prelude.Text
set :: PropertyType "S3ObjectKey" GrammarSlotTypeSourceProperty
-> GrammarSlotTypeSourceProperty -> GrammarSlotTypeSourceProperty
set PropertyType "S3ObjectKey" GrammarSlotTypeSourceProperty
newValue GrammarSlotTypeSourceProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: GrammarSlotTypeSourceProperty -> ()
kmsKeyArn :: GrammarSlotTypeSourceProperty -> Maybe (Value Text)
s3BucketName :: GrammarSlotTypeSourceProperty -> Value Text
s3ObjectKey :: GrammarSlotTypeSourceProperty -> Value Text
haddock_workaround_ :: ()
kmsKeyArn :: Maybe (Value Text)
s3BucketName :: Value Text
s3ObjectKey :: Value Text
..}
= GrammarSlotTypeSourceProperty {s3ObjectKey :: Value Text
s3ObjectKey = PropertyType "S3ObjectKey" GrammarSlotTypeSourceProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
kmsKeyArn :: Maybe (Value Text)
s3BucketName :: Value Text
haddock_workaround_ :: ()
kmsKeyArn :: Maybe (Value Text)
s3BucketName :: Value Text
..}