module Stratosphere.Bedrock.KnowledgeBase.RedshiftProvisionedAuthConfigurationProperty (
RedshiftProvisionedAuthConfigurationProperty(..),
mkRedshiftProvisionedAuthConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RedshiftProvisionedAuthConfigurationProperty
=
RedshiftProvisionedAuthConfigurationProperty {RedshiftProvisionedAuthConfigurationProperty -> ()
haddock_workaround_ :: (),
RedshiftProvisionedAuthConfigurationProperty -> Maybe (Value Text)
databaseUser :: (Prelude.Maybe (Value Prelude.Text)),
RedshiftProvisionedAuthConfigurationProperty -> Value Text
type' :: (Value Prelude.Text),
RedshiftProvisionedAuthConfigurationProperty -> Maybe (Value Text)
usernamePasswordSecretArn :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (RedshiftProvisionedAuthConfigurationProperty
-> RedshiftProvisionedAuthConfigurationProperty -> Bool
(RedshiftProvisionedAuthConfigurationProperty
-> RedshiftProvisionedAuthConfigurationProperty -> Bool)
-> (RedshiftProvisionedAuthConfigurationProperty
-> RedshiftProvisionedAuthConfigurationProperty -> Bool)
-> Eq RedshiftProvisionedAuthConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RedshiftProvisionedAuthConfigurationProperty
-> RedshiftProvisionedAuthConfigurationProperty -> Bool
== :: RedshiftProvisionedAuthConfigurationProperty
-> RedshiftProvisionedAuthConfigurationProperty -> Bool
$c/= :: RedshiftProvisionedAuthConfigurationProperty
-> RedshiftProvisionedAuthConfigurationProperty -> Bool
/= :: RedshiftProvisionedAuthConfigurationProperty
-> RedshiftProvisionedAuthConfigurationProperty -> Bool
Prelude.Eq, Int -> RedshiftProvisionedAuthConfigurationProperty -> ShowS
[RedshiftProvisionedAuthConfigurationProperty] -> ShowS
RedshiftProvisionedAuthConfigurationProperty -> String
(Int -> RedshiftProvisionedAuthConfigurationProperty -> ShowS)
-> (RedshiftProvisionedAuthConfigurationProperty -> String)
-> ([RedshiftProvisionedAuthConfigurationProperty] -> ShowS)
-> Show RedshiftProvisionedAuthConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RedshiftProvisionedAuthConfigurationProperty -> ShowS
showsPrec :: Int -> RedshiftProvisionedAuthConfigurationProperty -> ShowS
$cshow :: RedshiftProvisionedAuthConfigurationProperty -> String
show :: RedshiftProvisionedAuthConfigurationProperty -> String
$cshowList :: [RedshiftProvisionedAuthConfigurationProperty] -> ShowS
showList :: [RedshiftProvisionedAuthConfigurationProperty] -> ShowS
Prelude.Show)
mkRedshiftProvisionedAuthConfigurationProperty ::
Value Prelude.Text -> RedshiftProvisionedAuthConfigurationProperty
mkRedshiftProvisionedAuthConfigurationProperty :: Value Text -> RedshiftProvisionedAuthConfigurationProperty
mkRedshiftProvisionedAuthConfigurationProperty Value Text
type'
= RedshiftProvisionedAuthConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), type' :: Value Text
type' = Value Text
type',
databaseUser :: Maybe (Value Text)
databaseUser = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
usernamePasswordSecretArn :: Maybe (Value Text)
usernamePasswordSecretArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties RedshiftProvisionedAuthConfigurationProperty where
toResourceProperties :: RedshiftProvisionedAuthConfigurationProperty -> ResourceProperties
toResourceProperties
RedshiftProvisionedAuthConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RedshiftProvisionedAuthConfigurationProperty -> ()
databaseUser :: RedshiftProvisionedAuthConfigurationProperty -> Maybe (Value Text)
type' :: RedshiftProvisionedAuthConfigurationProperty -> Value Text
usernamePasswordSecretArn :: RedshiftProvisionedAuthConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
databaseUser :: Maybe (Value Text)
type' :: Value Text
usernamePasswordSecretArn :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Bedrock::KnowledgeBase.RedshiftProvisionedAuthConfiguration",
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 -> 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
"DatabaseUser" (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)
databaseUser,
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
"UsernamePasswordSecretArn"
(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)
usernamePasswordSecretArn]))}
instance JSON.ToJSON RedshiftProvisionedAuthConfigurationProperty where
toJSON :: RedshiftProvisionedAuthConfigurationProperty -> Value
toJSON RedshiftProvisionedAuthConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RedshiftProvisionedAuthConfigurationProperty -> ()
databaseUser :: RedshiftProvisionedAuthConfigurationProperty -> Maybe (Value Text)
type' :: RedshiftProvisionedAuthConfigurationProperty -> Value Text
usernamePasswordSecretArn :: RedshiftProvisionedAuthConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
databaseUser :: Maybe (Value Text)
type' :: Value Text
usernamePasswordSecretArn :: Maybe (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 -> 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
"DatabaseUser" (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)
databaseUser,
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
"UsernamePasswordSecretArn"
(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)
usernamePasswordSecretArn])))
instance Property "DatabaseUser" RedshiftProvisionedAuthConfigurationProperty where
type PropertyType "DatabaseUser" RedshiftProvisionedAuthConfigurationProperty = Value Prelude.Text
set :: PropertyType
"DatabaseUser" RedshiftProvisionedAuthConfigurationProperty
-> RedshiftProvisionedAuthConfigurationProperty
-> RedshiftProvisionedAuthConfigurationProperty
set PropertyType
"DatabaseUser" RedshiftProvisionedAuthConfigurationProperty
newValue RedshiftProvisionedAuthConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RedshiftProvisionedAuthConfigurationProperty -> ()
databaseUser :: RedshiftProvisionedAuthConfigurationProperty -> Maybe (Value Text)
type' :: RedshiftProvisionedAuthConfigurationProperty -> Value Text
usernamePasswordSecretArn :: RedshiftProvisionedAuthConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
databaseUser :: Maybe (Value Text)
type' :: Value Text
usernamePasswordSecretArn :: Maybe (Value Text)
..}
= RedshiftProvisionedAuthConfigurationProperty
{databaseUser :: Maybe (Value Text)
databaseUser = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"DatabaseUser" RedshiftProvisionedAuthConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
type' :: Value Text
usernamePasswordSecretArn :: Maybe (Value Text)
haddock_workaround_ :: ()
type' :: Value Text
usernamePasswordSecretArn :: Maybe (Value Text)
..}
instance Property "Type" RedshiftProvisionedAuthConfigurationProperty where
type PropertyType "Type" RedshiftProvisionedAuthConfigurationProperty = Value Prelude.Text
set :: PropertyType "Type" RedshiftProvisionedAuthConfigurationProperty
-> RedshiftProvisionedAuthConfigurationProperty
-> RedshiftProvisionedAuthConfigurationProperty
set PropertyType "Type" RedshiftProvisionedAuthConfigurationProperty
newValue RedshiftProvisionedAuthConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RedshiftProvisionedAuthConfigurationProperty -> ()
databaseUser :: RedshiftProvisionedAuthConfigurationProperty -> Maybe (Value Text)
type' :: RedshiftProvisionedAuthConfigurationProperty -> Value Text
usernamePasswordSecretArn :: RedshiftProvisionedAuthConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
databaseUser :: Maybe (Value Text)
type' :: Value Text
usernamePasswordSecretArn :: Maybe (Value Text)
..}
= RedshiftProvisionedAuthConfigurationProperty
{type' :: Value Text
type' = PropertyType "Type" RedshiftProvisionedAuthConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
databaseUser :: Maybe (Value Text)
usernamePasswordSecretArn :: Maybe (Value Text)
haddock_workaround_ :: ()
databaseUser :: Maybe (Value Text)
usernamePasswordSecretArn :: Maybe (Value Text)
..}
instance Property "UsernamePasswordSecretArn" RedshiftProvisionedAuthConfigurationProperty where
type PropertyType "UsernamePasswordSecretArn" RedshiftProvisionedAuthConfigurationProperty = Value Prelude.Text
set :: PropertyType
"UsernamePasswordSecretArn"
RedshiftProvisionedAuthConfigurationProperty
-> RedshiftProvisionedAuthConfigurationProperty
-> RedshiftProvisionedAuthConfigurationProperty
set PropertyType
"UsernamePasswordSecretArn"
RedshiftProvisionedAuthConfigurationProperty
newValue RedshiftProvisionedAuthConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RedshiftProvisionedAuthConfigurationProperty -> ()
databaseUser :: RedshiftProvisionedAuthConfigurationProperty -> Maybe (Value Text)
type' :: RedshiftProvisionedAuthConfigurationProperty -> Value Text
usernamePasswordSecretArn :: RedshiftProvisionedAuthConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
databaseUser :: Maybe (Value Text)
type' :: Value Text
usernamePasswordSecretArn :: Maybe (Value Text)
..}
= RedshiftProvisionedAuthConfigurationProperty
{usernamePasswordSecretArn :: Maybe (Value Text)
usernamePasswordSecretArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"UsernamePasswordSecretArn"
RedshiftProvisionedAuthConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
databaseUser :: Maybe (Value Text)
type' :: Value Text
haddock_workaround_ :: ()
databaseUser :: Maybe (Value Text)
type' :: Value Text
..}