module Stratosphere.Kendra.DataSource.SqlConfigurationProperty (
SqlConfigurationProperty(..), mkSqlConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SqlConfigurationProperty
=
SqlConfigurationProperty {SqlConfigurationProperty -> ()
haddock_workaround_ :: (),
SqlConfigurationProperty -> Maybe (Value Text)
queryIdentifiersEnclosingOption :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (SqlConfigurationProperty -> SqlConfigurationProperty -> Bool
(SqlConfigurationProperty -> SqlConfigurationProperty -> Bool)
-> (SqlConfigurationProperty -> SqlConfigurationProperty -> Bool)
-> Eq SqlConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SqlConfigurationProperty -> SqlConfigurationProperty -> Bool
== :: SqlConfigurationProperty -> SqlConfigurationProperty -> Bool
$c/= :: SqlConfigurationProperty -> SqlConfigurationProperty -> Bool
/= :: SqlConfigurationProperty -> SqlConfigurationProperty -> Bool
Prelude.Eq, Int -> SqlConfigurationProperty -> ShowS
[SqlConfigurationProperty] -> ShowS
SqlConfigurationProperty -> String
(Int -> SqlConfigurationProperty -> ShowS)
-> (SqlConfigurationProperty -> String)
-> ([SqlConfigurationProperty] -> ShowS)
-> Show SqlConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SqlConfigurationProperty -> ShowS
showsPrec :: Int -> SqlConfigurationProperty -> ShowS
$cshow :: SqlConfigurationProperty -> String
show :: SqlConfigurationProperty -> String
$cshowList :: [SqlConfigurationProperty] -> ShowS
showList :: [SqlConfigurationProperty] -> ShowS
Prelude.Show)
mkSqlConfigurationProperty :: SqlConfigurationProperty
mkSqlConfigurationProperty :: SqlConfigurationProperty
mkSqlConfigurationProperty
= SqlConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
queryIdentifiersEnclosingOption :: Maybe (Value Text)
queryIdentifiersEnclosingOption = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SqlConfigurationProperty where
toResourceProperties :: SqlConfigurationProperty -> ResourceProperties
toResourceProperties SqlConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: SqlConfigurationProperty -> ()
queryIdentifiersEnclosingOption :: SqlConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
queryIdentifiersEnclosingOption :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Kendra::DataSource.SqlConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([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
"QueryIdentifiersEnclosingOption"
(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)
queryIdentifiersEnclosingOption])}
instance JSON.ToJSON SqlConfigurationProperty where
toJSON :: SqlConfigurationProperty -> Value
toJSON SqlConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: SqlConfigurationProperty -> ()
queryIdentifiersEnclosingOption :: SqlConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
queryIdentifiersEnclosingOption :: Maybe (Value Text)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([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
"QueryIdentifiersEnclosingOption"
(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)
queryIdentifiersEnclosingOption]))
instance Property "QueryIdentifiersEnclosingOption" SqlConfigurationProperty where
type PropertyType "QueryIdentifiersEnclosingOption" SqlConfigurationProperty = Value Prelude.Text
set :: PropertyType
"QueryIdentifiersEnclosingOption" SqlConfigurationProperty
-> SqlConfigurationProperty -> SqlConfigurationProperty
set PropertyType
"QueryIdentifiersEnclosingOption" SqlConfigurationProperty
newValue SqlConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: SqlConfigurationProperty -> ()
queryIdentifiersEnclosingOption :: SqlConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
queryIdentifiersEnclosingOption :: Maybe (Value Text)
..}
= SqlConfigurationProperty
{queryIdentifiersEnclosingOption :: Maybe (Value Text)
queryIdentifiersEnclosingOption = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"QueryIdentifiersEnclosingOption" SqlConfigurationProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}