module Stratosphere.AppFlow.ConnectorProfile.RedshiftConnectorProfileCredentialsProperty (
RedshiftConnectorProfileCredentialsProperty(..),
mkRedshiftConnectorProfileCredentialsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RedshiftConnectorProfileCredentialsProperty
=
RedshiftConnectorProfileCredentialsProperty {RedshiftConnectorProfileCredentialsProperty -> ()
haddock_workaround_ :: (),
RedshiftConnectorProfileCredentialsProperty -> Maybe (Value Text)
password :: (Prelude.Maybe (Value Prelude.Text)),
RedshiftConnectorProfileCredentialsProperty -> Maybe (Value Text)
username :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (RedshiftConnectorProfileCredentialsProperty
-> RedshiftConnectorProfileCredentialsProperty -> Bool
(RedshiftConnectorProfileCredentialsProperty
-> RedshiftConnectorProfileCredentialsProperty -> Bool)
-> (RedshiftConnectorProfileCredentialsProperty
-> RedshiftConnectorProfileCredentialsProperty -> Bool)
-> Eq RedshiftConnectorProfileCredentialsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RedshiftConnectorProfileCredentialsProperty
-> RedshiftConnectorProfileCredentialsProperty -> Bool
== :: RedshiftConnectorProfileCredentialsProperty
-> RedshiftConnectorProfileCredentialsProperty -> Bool
$c/= :: RedshiftConnectorProfileCredentialsProperty
-> RedshiftConnectorProfileCredentialsProperty -> Bool
/= :: RedshiftConnectorProfileCredentialsProperty
-> RedshiftConnectorProfileCredentialsProperty -> Bool
Prelude.Eq, Int -> RedshiftConnectorProfileCredentialsProperty -> ShowS
[RedshiftConnectorProfileCredentialsProperty] -> ShowS
RedshiftConnectorProfileCredentialsProperty -> String
(Int -> RedshiftConnectorProfileCredentialsProperty -> ShowS)
-> (RedshiftConnectorProfileCredentialsProperty -> String)
-> ([RedshiftConnectorProfileCredentialsProperty] -> ShowS)
-> Show RedshiftConnectorProfileCredentialsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RedshiftConnectorProfileCredentialsProperty -> ShowS
showsPrec :: Int -> RedshiftConnectorProfileCredentialsProperty -> ShowS
$cshow :: RedshiftConnectorProfileCredentialsProperty -> String
show :: RedshiftConnectorProfileCredentialsProperty -> String
$cshowList :: [RedshiftConnectorProfileCredentialsProperty] -> ShowS
showList :: [RedshiftConnectorProfileCredentialsProperty] -> ShowS
Prelude.Show)
mkRedshiftConnectorProfileCredentialsProperty ::
RedshiftConnectorProfileCredentialsProperty
mkRedshiftConnectorProfileCredentialsProperty :: RedshiftConnectorProfileCredentialsProperty
mkRedshiftConnectorProfileCredentialsProperty
= RedshiftConnectorProfileCredentialsProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), password :: Maybe (Value Text)
password = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
username :: Maybe (Value Text)
username = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties RedshiftConnectorProfileCredentialsProperty where
toResourceProperties :: RedshiftConnectorProfileCredentialsProperty -> ResourceProperties
toResourceProperties
RedshiftConnectorProfileCredentialsProperty {Maybe (Value Text)
()
haddock_workaround_ :: RedshiftConnectorProfileCredentialsProperty -> ()
password :: RedshiftConnectorProfileCredentialsProperty -> Maybe (Value Text)
username :: RedshiftConnectorProfileCredentialsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
password :: Maybe (Value Text)
username :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::AppFlow::ConnectorProfile.RedshiftConnectorProfileCredentials",
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
"Password" (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)
password,
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
"Username" (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)
username])}
instance JSON.ToJSON RedshiftConnectorProfileCredentialsProperty where
toJSON :: RedshiftConnectorProfileCredentialsProperty -> Value
toJSON RedshiftConnectorProfileCredentialsProperty {Maybe (Value Text)
()
haddock_workaround_ :: RedshiftConnectorProfileCredentialsProperty -> ()
password :: RedshiftConnectorProfileCredentialsProperty -> Maybe (Value Text)
username :: RedshiftConnectorProfileCredentialsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
password :: Maybe (Value Text)
username :: 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
"Password" (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)
password,
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
"Username" (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)
username]))
instance Property "Password" RedshiftConnectorProfileCredentialsProperty where
type PropertyType "Password" RedshiftConnectorProfileCredentialsProperty = Value Prelude.Text
set :: PropertyType "Password" RedshiftConnectorProfileCredentialsProperty
-> RedshiftConnectorProfileCredentialsProperty
-> RedshiftConnectorProfileCredentialsProperty
set PropertyType "Password" RedshiftConnectorProfileCredentialsProperty
newValue RedshiftConnectorProfileCredentialsProperty {Maybe (Value Text)
()
haddock_workaround_ :: RedshiftConnectorProfileCredentialsProperty -> ()
password :: RedshiftConnectorProfileCredentialsProperty -> Maybe (Value Text)
username :: RedshiftConnectorProfileCredentialsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
password :: Maybe (Value Text)
username :: Maybe (Value Text)
..}
= RedshiftConnectorProfileCredentialsProperty
{password :: Maybe (Value Text)
password = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Password" RedshiftConnectorProfileCredentialsProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
username :: Maybe (Value Text)
haddock_workaround_ :: ()
username :: Maybe (Value Text)
..}
instance Property "Username" RedshiftConnectorProfileCredentialsProperty where
type PropertyType "Username" RedshiftConnectorProfileCredentialsProperty = Value Prelude.Text
set :: PropertyType "Username" RedshiftConnectorProfileCredentialsProperty
-> RedshiftConnectorProfileCredentialsProperty
-> RedshiftConnectorProfileCredentialsProperty
set PropertyType "Username" RedshiftConnectorProfileCredentialsProperty
newValue RedshiftConnectorProfileCredentialsProperty {Maybe (Value Text)
()
haddock_workaround_ :: RedshiftConnectorProfileCredentialsProperty -> ()
password :: RedshiftConnectorProfileCredentialsProperty -> Maybe (Value Text)
username :: RedshiftConnectorProfileCredentialsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
password :: Maybe (Value Text)
username :: Maybe (Value Text)
..}
= RedshiftConnectorProfileCredentialsProperty
{username :: Maybe (Value Text)
username = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Username" RedshiftConnectorProfileCredentialsProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
password :: Maybe (Value Text)
haddock_workaround_ :: ()
password :: Maybe (Value Text)
..}