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