module Stratosphere.Bedrock.KnowledgeBase.RedshiftQueryEngineStorageConfigurationProperty (
module Exports,
RedshiftQueryEngineStorageConfigurationProperty(..),
mkRedshiftQueryEngineStorageConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Bedrock.KnowledgeBase.RedshiftQueryEngineAwsDataCatalogStorageConfigurationProperty as Exports
import {-# SOURCE #-} Stratosphere.Bedrock.KnowledgeBase.RedshiftQueryEngineRedshiftStorageConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RedshiftQueryEngineStorageConfigurationProperty
=
RedshiftQueryEngineStorageConfigurationProperty {RedshiftQueryEngineStorageConfigurationProperty -> ()
haddock_workaround_ :: (),
RedshiftQueryEngineStorageConfigurationProperty
-> Maybe
RedshiftQueryEngineAwsDataCatalogStorageConfigurationProperty
awsDataCatalogConfiguration :: (Prelude.Maybe RedshiftQueryEngineAwsDataCatalogStorageConfigurationProperty),
RedshiftQueryEngineStorageConfigurationProperty
-> Maybe RedshiftQueryEngineRedshiftStorageConfigurationProperty
redshiftConfiguration :: (Prelude.Maybe RedshiftQueryEngineRedshiftStorageConfigurationProperty),
RedshiftQueryEngineStorageConfigurationProperty -> Value Text
type' :: (Value Prelude.Text)}
deriving stock (RedshiftQueryEngineStorageConfigurationProperty
-> RedshiftQueryEngineStorageConfigurationProperty -> Bool
(RedshiftQueryEngineStorageConfigurationProperty
-> RedshiftQueryEngineStorageConfigurationProperty -> Bool)
-> (RedshiftQueryEngineStorageConfigurationProperty
-> RedshiftQueryEngineStorageConfigurationProperty -> Bool)
-> Eq RedshiftQueryEngineStorageConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RedshiftQueryEngineStorageConfigurationProperty
-> RedshiftQueryEngineStorageConfigurationProperty -> Bool
== :: RedshiftQueryEngineStorageConfigurationProperty
-> RedshiftQueryEngineStorageConfigurationProperty -> Bool
$c/= :: RedshiftQueryEngineStorageConfigurationProperty
-> RedshiftQueryEngineStorageConfigurationProperty -> Bool
/= :: RedshiftQueryEngineStorageConfigurationProperty
-> RedshiftQueryEngineStorageConfigurationProperty -> Bool
Prelude.Eq, Int -> RedshiftQueryEngineStorageConfigurationProperty -> ShowS
[RedshiftQueryEngineStorageConfigurationProperty] -> ShowS
RedshiftQueryEngineStorageConfigurationProperty -> String
(Int -> RedshiftQueryEngineStorageConfigurationProperty -> ShowS)
-> (RedshiftQueryEngineStorageConfigurationProperty -> String)
-> ([RedshiftQueryEngineStorageConfigurationProperty] -> ShowS)
-> Show RedshiftQueryEngineStorageConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RedshiftQueryEngineStorageConfigurationProperty -> ShowS
showsPrec :: Int -> RedshiftQueryEngineStorageConfigurationProperty -> ShowS
$cshow :: RedshiftQueryEngineStorageConfigurationProperty -> String
show :: RedshiftQueryEngineStorageConfigurationProperty -> String
$cshowList :: [RedshiftQueryEngineStorageConfigurationProperty] -> ShowS
showList :: [RedshiftQueryEngineStorageConfigurationProperty] -> ShowS
Prelude.Show)
mkRedshiftQueryEngineStorageConfigurationProperty ::
Value Prelude.Text
-> RedshiftQueryEngineStorageConfigurationProperty
mkRedshiftQueryEngineStorageConfigurationProperty :: Value Text -> RedshiftQueryEngineStorageConfigurationProperty
mkRedshiftQueryEngineStorageConfigurationProperty Value Text
type'
= RedshiftQueryEngineStorageConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), type' :: Value Text
type' = Value Text
type',
awsDataCatalogConfiguration :: Maybe RedshiftQueryEngineAwsDataCatalogStorageConfigurationProperty
awsDataCatalogConfiguration = Maybe RedshiftQueryEngineAwsDataCatalogStorageConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
redshiftConfiguration :: Maybe RedshiftQueryEngineRedshiftStorageConfigurationProperty
redshiftConfiguration = Maybe RedshiftQueryEngineRedshiftStorageConfigurationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties RedshiftQueryEngineStorageConfigurationProperty where
toResourceProperties :: RedshiftQueryEngineStorageConfigurationProperty
-> ResourceProperties
toResourceProperties
RedshiftQueryEngineStorageConfigurationProperty {Maybe RedshiftQueryEngineAwsDataCatalogStorageConfigurationProperty
Maybe RedshiftQueryEngineRedshiftStorageConfigurationProperty
()
Value Text
haddock_workaround_ :: RedshiftQueryEngineStorageConfigurationProperty -> ()
awsDataCatalogConfiguration :: RedshiftQueryEngineStorageConfigurationProperty
-> Maybe
RedshiftQueryEngineAwsDataCatalogStorageConfigurationProperty
redshiftConfiguration :: RedshiftQueryEngineStorageConfigurationProperty
-> Maybe RedshiftQueryEngineRedshiftStorageConfigurationProperty
type' :: RedshiftQueryEngineStorageConfigurationProperty -> Value Text
haddock_workaround_ :: ()
awsDataCatalogConfiguration :: Maybe RedshiftQueryEngineAwsDataCatalogStorageConfigurationProperty
redshiftConfiguration :: Maybe RedshiftQueryEngineRedshiftStorageConfigurationProperty
type' :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Bedrock::KnowledgeBase.RedshiftQueryEngineStorageConfiguration",
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
-> RedshiftQueryEngineAwsDataCatalogStorageConfigurationProperty
-> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AwsDataCatalogConfiguration"
(RedshiftQueryEngineAwsDataCatalogStorageConfigurationProperty
-> (Key, Value))
-> Maybe
RedshiftQueryEngineAwsDataCatalogStorageConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe RedshiftQueryEngineAwsDataCatalogStorageConfigurationProperty
awsDataCatalogConfiguration,
Key
-> RedshiftQueryEngineRedshiftStorageConfigurationProperty
-> (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"
(RedshiftQueryEngineRedshiftStorageConfigurationProperty
-> (Key, Value))
-> Maybe RedshiftQueryEngineRedshiftStorageConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe RedshiftQueryEngineRedshiftStorageConfigurationProperty
redshiftConfiguration]))}
instance JSON.ToJSON RedshiftQueryEngineStorageConfigurationProperty where
toJSON :: RedshiftQueryEngineStorageConfigurationProperty -> Value
toJSON RedshiftQueryEngineStorageConfigurationProperty {Maybe RedshiftQueryEngineAwsDataCatalogStorageConfigurationProperty
Maybe RedshiftQueryEngineRedshiftStorageConfigurationProperty
()
Value Text
haddock_workaround_ :: RedshiftQueryEngineStorageConfigurationProperty -> ()
awsDataCatalogConfiguration :: RedshiftQueryEngineStorageConfigurationProperty
-> Maybe
RedshiftQueryEngineAwsDataCatalogStorageConfigurationProperty
redshiftConfiguration :: RedshiftQueryEngineStorageConfigurationProperty
-> Maybe RedshiftQueryEngineRedshiftStorageConfigurationProperty
type' :: RedshiftQueryEngineStorageConfigurationProperty -> Value Text
haddock_workaround_ :: ()
awsDataCatalogConfiguration :: Maybe RedshiftQueryEngineAwsDataCatalogStorageConfigurationProperty
redshiftConfiguration :: Maybe RedshiftQueryEngineRedshiftStorageConfigurationProperty
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
-> RedshiftQueryEngineAwsDataCatalogStorageConfigurationProperty
-> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AwsDataCatalogConfiguration"
(RedshiftQueryEngineAwsDataCatalogStorageConfigurationProperty
-> (Key, Value))
-> Maybe
RedshiftQueryEngineAwsDataCatalogStorageConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe RedshiftQueryEngineAwsDataCatalogStorageConfigurationProperty
awsDataCatalogConfiguration,
Key
-> RedshiftQueryEngineRedshiftStorageConfigurationProperty
-> (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"
(RedshiftQueryEngineRedshiftStorageConfigurationProperty
-> (Key, Value))
-> Maybe RedshiftQueryEngineRedshiftStorageConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe RedshiftQueryEngineRedshiftStorageConfigurationProperty
redshiftConfiguration])))
instance Property "AwsDataCatalogConfiguration" RedshiftQueryEngineStorageConfigurationProperty where
type PropertyType "AwsDataCatalogConfiguration" RedshiftQueryEngineStorageConfigurationProperty = RedshiftQueryEngineAwsDataCatalogStorageConfigurationProperty
set :: PropertyType
"AwsDataCatalogConfiguration"
RedshiftQueryEngineStorageConfigurationProperty
-> RedshiftQueryEngineStorageConfigurationProperty
-> RedshiftQueryEngineStorageConfigurationProperty
set PropertyType
"AwsDataCatalogConfiguration"
RedshiftQueryEngineStorageConfigurationProperty
newValue RedshiftQueryEngineStorageConfigurationProperty {Maybe RedshiftQueryEngineAwsDataCatalogStorageConfigurationProperty
Maybe RedshiftQueryEngineRedshiftStorageConfigurationProperty
()
Value Text
haddock_workaround_ :: RedshiftQueryEngineStorageConfigurationProperty -> ()
awsDataCatalogConfiguration :: RedshiftQueryEngineStorageConfigurationProperty
-> Maybe
RedshiftQueryEngineAwsDataCatalogStorageConfigurationProperty
redshiftConfiguration :: RedshiftQueryEngineStorageConfigurationProperty
-> Maybe RedshiftQueryEngineRedshiftStorageConfigurationProperty
type' :: RedshiftQueryEngineStorageConfigurationProperty -> Value Text
haddock_workaround_ :: ()
awsDataCatalogConfiguration :: Maybe RedshiftQueryEngineAwsDataCatalogStorageConfigurationProperty
redshiftConfiguration :: Maybe RedshiftQueryEngineRedshiftStorageConfigurationProperty
type' :: Value Text
..}
= RedshiftQueryEngineStorageConfigurationProperty
{awsDataCatalogConfiguration :: Maybe RedshiftQueryEngineAwsDataCatalogStorageConfigurationProperty
awsDataCatalogConfiguration = RedshiftQueryEngineAwsDataCatalogStorageConfigurationProperty
-> Maybe
RedshiftQueryEngineAwsDataCatalogStorageConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"AwsDataCatalogConfiguration"
RedshiftQueryEngineStorageConfigurationProperty
RedshiftQueryEngineAwsDataCatalogStorageConfigurationProperty
newValue, Maybe RedshiftQueryEngineRedshiftStorageConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
redshiftConfiguration :: Maybe RedshiftQueryEngineRedshiftStorageConfigurationProperty
type' :: Value Text
haddock_workaround_ :: ()
redshiftConfiguration :: Maybe RedshiftQueryEngineRedshiftStorageConfigurationProperty
type' :: Value Text
..}
instance Property "RedshiftConfiguration" RedshiftQueryEngineStorageConfigurationProperty where
type PropertyType "RedshiftConfiguration" RedshiftQueryEngineStorageConfigurationProperty = RedshiftQueryEngineRedshiftStorageConfigurationProperty
set :: PropertyType
"RedshiftConfiguration"
RedshiftQueryEngineStorageConfigurationProperty
-> RedshiftQueryEngineStorageConfigurationProperty
-> RedshiftQueryEngineStorageConfigurationProperty
set PropertyType
"RedshiftConfiguration"
RedshiftQueryEngineStorageConfigurationProperty
newValue RedshiftQueryEngineStorageConfigurationProperty {Maybe RedshiftQueryEngineAwsDataCatalogStorageConfigurationProperty
Maybe RedshiftQueryEngineRedshiftStorageConfigurationProperty
()
Value Text
haddock_workaround_ :: RedshiftQueryEngineStorageConfigurationProperty -> ()
awsDataCatalogConfiguration :: RedshiftQueryEngineStorageConfigurationProperty
-> Maybe
RedshiftQueryEngineAwsDataCatalogStorageConfigurationProperty
redshiftConfiguration :: RedshiftQueryEngineStorageConfigurationProperty
-> Maybe RedshiftQueryEngineRedshiftStorageConfigurationProperty
type' :: RedshiftQueryEngineStorageConfigurationProperty -> Value Text
haddock_workaround_ :: ()
awsDataCatalogConfiguration :: Maybe RedshiftQueryEngineAwsDataCatalogStorageConfigurationProperty
redshiftConfiguration :: Maybe RedshiftQueryEngineRedshiftStorageConfigurationProperty
type' :: Value Text
..}
= RedshiftQueryEngineStorageConfigurationProperty
{redshiftConfiguration :: Maybe RedshiftQueryEngineRedshiftStorageConfigurationProperty
redshiftConfiguration = RedshiftQueryEngineRedshiftStorageConfigurationProperty
-> Maybe RedshiftQueryEngineRedshiftStorageConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"RedshiftConfiguration"
RedshiftQueryEngineStorageConfigurationProperty
RedshiftQueryEngineRedshiftStorageConfigurationProperty
newValue, Maybe RedshiftQueryEngineAwsDataCatalogStorageConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
awsDataCatalogConfiguration :: Maybe RedshiftQueryEngineAwsDataCatalogStorageConfigurationProperty
type' :: Value Text
haddock_workaround_ :: ()
awsDataCatalogConfiguration :: Maybe RedshiftQueryEngineAwsDataCatalogStorageConfigurationProperty
type' :: Value Text
..}
instance Property "Type" RedshiftQueryEngineStorageConfigurationProperty where
type PropertyType "Type" RedshiftQueryEngineStorageConfigurationProperty = Value Prelude.Text
set :: PropertyType "Type" RedshiftQueryEngineStorageConfigurationProperty
-> RedshiftQueryEngineStorageConfigurationProperty
-> RedshiftQueryEngineStorageConfigurationProperty
set PropertyType "Type" RedshiftQueryEngineStorageConfigurationProperty
newValue RedshiftQueryEngineStorageConfigurationProperty {Maybe RedshiftQueryEngineAwsDataCatalogStorageConfigurationProperty
Maybe RedshiftQueryEngineRedshiftStorageConfigurationProperty
()
Value Text
haddock_workaround_ :: RedshiftQueryEngineStorageConfigurationProperty -> ()
awsDataCatalogConfiguration :: RedshiftQueryEngineStorageConfigurationProperty
-> Maybe
RedshiftQueryEngineAwsDataCatalogStorageConfigurationProperty
redshiftConfiguration :: RedshiftQueryEngineStorageConfigurationProperty
-> Maybe RedshiftQueryEngineRedshiftStorageConfigurationProperty
type' :: RedshiftQueryEngineStorageConfigurationProperty -> Value Text
haddock_workaround_ :: ()
awsDataCatalogConfiguration :: Maybe RedshiftQueryEngineAwsDataCatalogStorageConfigurationProperty
redshiftConfiguration :: Maybe RedshiftQueryEngineRedshiftStorageConfigurationProperty
type' :: Value Text
..}
= RedshiftQueryEngineStorageConfigurationProperty
{type' :: Value Text
type' = PropertyType "Type" RedshiftQueryEngineStorageConfigurationProperty
Value Text
newValue, Maybe RedshiftQueryEngineAwsDataCatalogStorageConfigurationProperty
Maybe RedshiftQueryEngineRedshiftStorageConfigurationProperty
()
haddock_workaround_ :: ()
awsDataCatalogConfiguration :: Maybe RedshiftQueryEngineAwsDataCatalogStorageConfigurationProperty
redshiftConfiguration :: Maybe RedshiftQueryEngineRedshiftStorageConfigurationProperty
haddock_workaround_ :: ()
awsDataCatalogConfiguration :: Maybe RedshiftQueryEngineAwsDataCatalogStorageConfigurationProperty
redshiftConfiguration :: Maybe RedshiftQueryEngineRedshiftStorageConfigurationProperty
..}