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