module Stratosphere.AppFlow.ConnectorProfile.ConnectorProfileConfigProperty (
module Exports, ConnectorProfileConfigProperty(..),
mkConnectorProfileConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.AppFlow.ConnectorProfile.ConnectorProfileCredentialsProperty as Exports
import {-# SOURCE #-} Stratosphere.AppFlow.ConnectorProfile.ConnectorProfilePropertiesProperty as Exports
import Stratosphere.ResourceProperties
data ConnectorProfileConfigProperty
=
ConnectorProfileConfigProperty {ConnectorProfileConfigProperty -> ()
haddock_workaround_ :: (),
ConnectorProfileConfigProperty
-> Maybe ConnectorProfileCredentialsProperty
connectorProfileCredentials :: (Prelude.Maybe ConnectorProfileCredentialsProperty),
ConnectorProfileConfigProperty
-> Maybe ConnectorProfilePropertiesProperty
connectorProfileProperties :: (Prelude.Maybe ConnectorProfilePropertiesProperty)}
deriving stock (ConnectorProfileConfigProperty
-> ConnectorProfileConfigProperty -> Bool
(ConnectorProfileConfigProperty
-> ConnectorProfileConfigProperty -> Bool)
-> (ConnectorProfileConfigProperty
-> ConnectorProfileConfigProperty -> Bool)
-> Eq ConnectorProfileConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ConnectorProfileConfigProperty
-> ConnectorProfileConfigProperty -> Bool
== :: ConnectorProfileConfigProperty
-> ConnectorProfileConfigProperty -> Bool
$c/= :: ConnectorProfileConfigProperty
-> ConnectorProfileConfigProperty -> Bool
/= :: ConnectorProfileConfigProperty
-> ConnectorProfileConfigProperty -> Bool
Prelude.Eq, Int -> ConnectorProfileConfigProperty -> ShowS
[ConnectorProfileConfigProperty] -> ShowS
ConnectorProfileConfigProperty -> String
(Int -> ConnectorProfileConfigProperty -> ShowS)
-> (ConnectorProfileConfigProperty -> String)
-> ([ConnectorProfileConfigProperty] -> ShowS)
-> Show ConnectorProfileConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ConnectorProfileConfigProperty -> ShowS
showsPrec :: Int -> ConnectorProfileConfigProperty -> ShowS
$cshow :: ConnectorProfileConfigProperty -> String
show :: ConnectorProfileConfigProperty -> String
$cshowList :: [ConnectorProfileConfigProperty] -> ShowS
showList :: [ConnectorProfileConfigProperty] -> ShowS
Prelude.Show)
mkConnectorProfileConfigProperty :: ConnectorProfileConfigProperty
mkConnectorProfileConfigProperty :: ConnectorProfileConfigProperty
mkConnectorProfileConfigProperty
= ConnectorProfileConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
connectorProfileCredentials :: Maybe ConnectorProfileCredentialsProperty
connectorProfileCredentials = Maybe ConnectorProfileCredentialsProperty
forall a. Maybe a
Prelude.Nothing,
connectorProfileProperties :: Maybe ConnectorProfilePropertiesProperty
connectorProfileProperties = Maybe ConnectorProfilePropertiesProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ConnectorProfileConfigProperty where
toResourceProperties :: ConnectorProfileConfigProperty -> ResourceProperties
toResourceProperties ConnectorProfileConfigProperty {Maybe ConnectorProfileCredentialsProperty
Maybe ConnectorProfilePropertiesProperty
()
haddock_workaround_ :: ConnectorProfileConfigProperty -> ()
connectorProfileCredentials :: ConnectorProfileConfigProperty
-> Maybe ConnectorProfileCredentialsProperty
connectorProfileProperties :: ConnectorProfileConfigProperty
-> Maybe ConnectorProfilePropertiesProperty
haddock_workaround_ :: ()
connectorProfileCredentials :: Maybe ConnectorProfileCredentialsProperty
connectorProfileProperties :: Maybe ConnectorProfilePropertiesProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::AppFlow::ConnectorProfile.ConnectorProfileConfig",
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 -> ConnectorProfileCredentialsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ConnectorProfileCredentials"
(ConnectorProfileCredentialsProperty -> (Key, Value))
-> Maybe ConnectorProfileCredentialsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ConnectorProfileCredentialsProperty
connectorProfileCredentials,
Key -> ConnectorProfilePropertiesProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ConnectorProfileProperties"
(ConnectorProfilePropertiesProperty -> (Key, Value))
-> Maybe ConnectorProfilePropertiesProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ConnectorProfilePropertiesProperty
connectorProfileProperties])}
instance JSON.ToJSON ConnectorProfileConfigProperty where
toJSON :: ConnectorProfileConfigProperty -> Value
toJSON ConnectorProfileConfigProperty {Maybe ConnectorProfileCredentialsProperty
Maybe ConnectorProfilePropertiesProperty
()
haddock_workaround_ :: ConnectorProfileConfigProperty -> ()
connectorProfileCredentials :: ConnectorProfileConfigProperty
-> Maybe ConnectorProfileCredentialsProperty
connectorProfileProperties :: ConnectorProfileConfigProperty
-> Maybe ConnectorProfilePropertiesProperty
haddock_workaround_ :: ()
connectorProfileCredentials :: Maybe ConnectorProfileCredentialsProperty
connectorProfileProperties :: Maybe ConnectorProfilePropertiesProperty
..}
= [(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 -> ConnectorProfileCredentialsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ConnectorProfileCredentials"
(ConnectorProfileCredentialsProperty -> (Key, Value))
-> Maybe ConnectorProfileCredentialsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ConnectorProfileCredentialsProperty
connectorProfileCredentials,
Key -> ConnectorProfilePropertiesProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ConnectorProfileProperties"
(ConnectorProfilePropertiesProperty -> (Key, Value))
-> Maybe ConnectorProfilePropertiesProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ConnectorProfilePropertiesProperty
connectorProfileProperties]))
instance Property "ConnectorProfileCredentials" ConnectorProfileConfigProperty where
type PropertyType "ConnectorProfileCredentials" ConnectorProfileConfigProperty = ConnectorProfileCredentialsProperty
set :: PropertyType
"ConnectorProfileCredentials" ConnectorProfileConfigProperty
-> ConnectorProfileConfigProperty -> ConnectorProfileConfigProperty
set PropertyType
"ConnectorProfileCredentials" ConnectorProfileConfigProperty
newValue ConnectorProfileConfigProperty {Maybe ConnectorProfileCredentialsProperty
Maybe ConnectorProfilePropertiesProperty
()
haddock_workaround_ :: ConnectorProfileConfigProperty -> ()
connectorProfileCredentials :: ConnectorProfileConfigProperty
-> Maybe ConnectorProfileCredentialsProperty
connectorProfileProperties :: ConnectorProfileConfigProperty
-> Maybe ConnectorProfilePropertiesProperty
haddock_workaround_ :: ()
connectorProfileCredentials :: Maybe ConnectorProfileCredentialsProperty
connectorProfileProperties :: Maybe ConnectorProfilePropertiesProperty
..}
= ConnectorProfileConfigProperty
{connectorProfileCredentials :: Maybe ConnectorProfileCredentialsProperty
connectorProfileCredentials = ConnectorProfileCredentialsProperty
-> Maybe ConnectorProfileCredentialsProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"ConnectorProfileCredentials" ConnectorProfileConfigProperty
ConnectorProfileCredentialsProperty
newValue, Maybe ConnectorProfilePropertiesProperty
()
haddock_workaround_ :: ()
connectorProfileProperties :: Maybe ConnectorProfilePropertiesProperty
haddock_workaround_ :: ()
connectorProfileProperties :: Maybe ConnectorProfilePropertiesProperty
..}
instance Property "ConnectorProfileProperties" ConnectorProfileConfigProperty where
type PropertyType "ConnectorProfileProperties" ConnectorProfileConfigProperty = ConnectorProfilePropertiesProperty
set :: PropertyType
"ConnectorProfileProperties" ConnectorProfileConfigProperty
-> ConnectorProfileConfigProperty -> ConnectorProfileConfigProperty
set PropertyType
"ConnectorProfileProperties" ConnectorProfileConfigProperty
newValue ConnectorProfileConfigProperty {Maybe ConnectorProfileCredentialsProperty
Maybe ConnectorProfilePropertiesProperty
()
haddock_workaround_ :: ConnectorProfileConfigProperty -> ()
connectorProfileCredentials :: ConnectorProfileConfigProperty
-> Maybe ConnectorProfileCredentialsProperty
connectorProfileProperties :: ConnectorProfileConfigProperty
-> Maybe ConnectorProfilePropertiesProperty
haddock_workaround_ :: ()
connectorProfileCredentials :: Maybe ConnectorProfileCredentialsProperty
connectorProfileProperties :: Maybe ConnectorProfilePropertiesProperty
..}
= ConnectorProfileConfigProperty
{connectorProfileProperties :: Maybe ConnectorProfilePropertiesProperty
connectorProfileProperties = ConnectorProfilePropertiesProperty
-> Maybe ConnectorProfilePropertiesProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"ConnectorProfileProperties" ConnectorProfileConfigProperty
ConnectorProfilePropertiesProperty
newValue, Maybe ConnectorProfileCredentialsProperty
()
haddock_workaround_ :: ()
connectorProfileCredentials :: Maybe ConnectorProfileCredentialsProperty
haddock_workaround_ :: ()
connectorProfileCredentials :: Maybe ConnectorProfileCredentialsProperty
..}