module Stratosphere.Bedrock.KnowledgeBase.SqlKnowledgeBaseConfigurationProperty (
        module Exports, SqlKnowledgeBaseConfigurationProperty(..),
        mkSqlKnowledgeBaseConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Bedrock.KnowledgeBase.RedshiftConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SqlKnowledgeBaseConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-sqlknowledgebaseconfiguration.html>
    SqlKnowledgeBaseConfigurationProperty {SqlKnowledgeBaseConfigurationProperty -> ()
haddock_workaround_ :: (),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-sqlknowledgebaseconfiguration.html#cfn-bedrock-knowledgebase-sqlknowledgebaseconfiguration-redshiftconfiguration>
                                           SqlKnowledgeBaseConfigurationProperty
-> Maybe RedshiftConfigurationProperty
redshiftConfiguration :: (Prelude.Maybe RedshiftConfigurationProperty),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-sqlknowledgebaseconfiguration.html#cfn-bedrock-knowledgebase-sqlknowledgebaseconfiguration-type>
                                           SqlKnowledgeBaseConfigurationProperty -> Value Text
type' :: (Value Prelude.Text)}
  deriving stock (SqlKnowledgeBaseConfigurationProperty
-> SqlKnowledgeBaseConfigurationProperty -> Bool
(SqlKnowledgeBaseConfigurationProperty
 -> SqlKnowledgeBaseConfigurationProperty -> Bool)
-> (SqlKnowledgeBaseConfigurationProperty
    -> SqlKnowledgeBaseConfigurationProperty -> Bool)
-> Eq SqlKnowledgeBaseConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SqlKnowledgeBaseConfigurationProperty
-> SqlKnowledgeBaseConfigurationProperty -> Bool
== :: SqlKnowledgeBaseConfigurationProperty
-> SqlKnowledgeBaseConfigurationProperty -> Bool
$c/= :: SqlKnowledgeBaseConfigurationProperty
-> SqlKnowledgeBaseConfigurationProperty -> Bool
/= :: SqlKnowledgeBaseConfigurationProperty
-> SqlKnowledgeBaseConfigurationProperty -> Bool
Prelude.Eq, Int -> SqlKnowledgeBaseConfigurationProperty -> ShowS
[SqlKnowledgeBaseConfigurationProperty] -> ShowS
SqlKnowledgeBaseConfigurationProperty -> String
(Int -> SqlKnowledgeBaseConfigurationProperty -> ShowS)
-> (SqlKnowledgeBaseConfigurationProperty -> String)
-> ([SqlKnowledgeBaseConfigurationProperty] -> ShowS)
-> Show SqlKnowledgeBaseConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SqlKnowledgeBaseConfigurationProperty -> ShowS
showsPrec :: Int -> SqlKnowledgeBaseConfigurationProperty -> ShowS
$cshow :: SqlKnowledgeBaseConfigurationProperty -> String
show :: SqlKnowledgeBaseConfigurationProperty -> String
$cshowList :: [SqlKnowledgeBaseConfigurationProperty] -> ShowS
showList :: [SqlKnowledgeBaseConfigurationProperty] -> ShowS
Prelude.Show)
mkSqlKnowledgeBaseConfigurationProperty ::
  Value Prelude.Text -> SqlKnowledgeBaseConfigurationProperty
mkSqlKnowledgeBaseConfigurationProperty :: Value Text -> SqlKnowledgeBaseConfigurationProperty
mkSqlKnowledgeBaseConfigurationProperty Value Text
type'
  = SqlKnowledgeBaseConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), type' :: Value Text
type' = Value Text
type',
       redshiftConfiguration :: Maybe RedshiftConfigurationProperty
redshiftConfiguration = Maybe RedshiftConfigurationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SqlKnowledgeBaseConfigurationProperty where
  toResourceProperties :: SqlKnowledgeBaseConfigurationProperty -> ResourceProperties
toResourceProperties SqlKnowledgeBaseConfigurationProperty {Maybe RedshiftConfigurationProperty
()
Value Text
haddock_workaround_ :: SqlKnowledgeBaseConfigurationProperty -> ()
redshiftConfiguration :: SqlKnowledgeBaseConfigurationProperty
-> Maybe RedshiftConfigurationProperty
type' :: SqlKnowledgeBaseConfigurationProperty -> Value Text
haddock_workaround_ :: ()
redshiftConfiguration :: Maybe RedshiftConfigurationProperty
type' :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Bedrock::KnowledgeBase.SqlKnowledgeBaseConfiguration",
         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
"Type" 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
type']
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> RedshiftConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"RedshiftConfiguration"
                                 (RedshiftConfigurationProperty -> (Key, Value))
-> Maybe RedshiftConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe RedshiftConfigurationProperty
redshiftConfiguration]))}
instance JSON.ToJSON SqlKnowledgeBaseConfigurationProperty where
  toJSON :: SqlKnowledgeBaseConfigurationProperty -> Value
toJSON SqlKnowledgeBaseConfigurationProperty {Maybe RedshiftConfigurationProperty
()
Value Text
haddock_workaround_ :: SqlKnowledgeBaseConfigurationProperty -> ()
redshiftConfiguration :: SqlKnowledgeBaseConfigurationProperty
-> Maybe RedshiftConfigurationProperty
type' :: SqlKnowledgeBaseConfigurationProperty -> Value Text
haddock_workaround_ :: ()
redshiftConfiguration :: Maybe RedshiftConfigurationProperty
type' :: 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
"Type" 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
type']
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> RedshiftConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"RedshiftConfiguration"
                    (RedshiftConfigurationProperty -> (Key, Value))
-> Maybe RedshiftConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe RedshiftConfigurationProperty
redshiftConfiguration])))
instance Property "RedshiftConfiguration" SqlKnowledgeBaseConfigurationProperty where
  type PropertyType "RedshiftConfiguration" SqlKnowledgeBaseConfigurationProperty = RedshiftConfigurationProperty
  set :: PropertyType
  "RedshiftConfiguration" SqlKnowledgeBaseConfigurationProperty
-> SqlKnowledgeBaseConfigurationProperty
-> SqlKnowledgeBaseConfigurationProperty
set PropertyType
  "RedshiftConfiguration" SqlKnowledgeBaseConfigurationProperty
newValue SqlKnowledgeBaseConfigurationProperty {Maybe RedshiftConfigurationProperty
()
Value Text
haddock_workaround_ :: SqlKnowledgeBaseConfigurationProperty -> ()
redshiftConfiguration :: SqlKnowledgeBaseConfigurationProperty
-> Maybe RedshiftConfigurationProperty
type' :: SqlKnowledgeBaseConfigurationProperty -> Value Text
haddock_workaround_ :: ()
redshiftConfiguration :: Maybe RedshiftConfigurationProperty
type' :: Value Text
..}
    = SqlKnowledgeBaseConfigurationProperty
        {redshiftConfiguration :: Maybe RedshiftConfigurationProperty
redshiftConfiguration = RedshiftConfigurationProperty
-> Maybe RedshiftConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "RedshiftConfiguration" SqlKnowledgeBaseConfigurationProperty
RedshiftConfigurationProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
type' :: Value Text
haddock_workaround_ :: ()
type' :: Value Text
..}
instance Property "Type" SqlKnowledgeBaseConfigurationProperty where
  type PropertyType "Type" SqlKnowledgeBaseConfigurationProperty = Value Prelude.Text
  set :: PropertyType "Type" SqlKnowledgeBaseConfigurationProperty
-> SqlKnowledgeBaseConfigurationProperty
-> SqlKnowledgeBaseConfigurationProperty
set PropertyType "Type" SqlKnowledgeBaseConfigurationProperty
newValue SqlKnowledgeBaseConfigurationProperty {Maybe RedshiftConfigurationProperty
()
Value Text
haddock_workaround_ :: SqlKnowledgeBaseConfigurationProperty -> ()
redshiftConfiguration :: SqlKnowledgeBaseConfigurationProperty
-> Maybe RedshiftConfigurationProperty
type' :: SqlKnowledgeBaseConfigurationProperty -> Value Text
haddock_workaround_ :: ()
redshiftConfiguration :: Maybe RedshiftConfigurationProperty
type' :: Value Text
..}
    = SqlKnowledgeBaseConfigurationProperty {type' :: Value Text
type' = PropertyType "Type" SqlKnowledgeBaseConfigurationProperty
Value Text
newValue, Maybe RedshiftConfigurationProperty
()
haddock_workaround_ :: ()
redshiftConfiguration :: Maybe RedshiftConfigurationProperty
haddock_workaround_ :: ()
redshiftConfiguration :: Maybe RedshiftConfigurationProperty
..}