module Stratosphere.AppFlow.ConnectorProfile.PardotConnectorProfilePropertiesProperty (
        PardotConnectorProfilePropertiesProperty(..),
        mkPardotConnectorProfilePropertiesProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PardotConnectorProfilePropertiesProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-connectorprofile-pardotconnectorprofileproperties.html>
    PardotConnectorProfilePropertiesProperty {PardotConnectorProfilePropertiesProperty -> ()
haddock_workaround_ :: (),
                                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-connectorprofile-pardotconnectorprofileproperties.html#cfn-appflow-connectorprofile-pardotconnectorprofileproperties-businessunitid>
                                              PardotConnectorProfilePropertiesProperty -> Value Text
businessUnitId :: (Value Prelude.Text),
                                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-connectorprofile-pardotconnectorprofileproperties.html#cfn-appflow-connectorprofile-pardotconnectorprofileproperties-instanceurl>
                                              PardotConnectorProfilePropertiesProperty -> Maybe (Value Text)
instanceUrl :: (Prelude.Maybe (Value Prelude.Text)),
                                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-connectorprofile-pardotconnectorprofileproperties.html#cfn-appflow-connectorprofile-pardotconnectorprofileproperties-issandboxenvironment>
                                              PardotConnectorProfilePropertiesProperty -> Maybe (Value Bool)
isSandboxEnvironment :: (Prelude.Maybe (Value Prelude.Bool))}
  deriving stock (PardotConnectorProfilePropertiesProperty
-> PardotConnectorProfilePropertiesProperty -> Bool
(PardotConnectorProfilePropertiesProperty
 -> PardotConnectorProfilePropertiesProperty -> Bool)
-> (PardotConnectorProfilePropertiesProperty
    -> PardotConnectorProfilePropertiesProperty -> Bool)
-> Eq PardotConnectorProfilePropertiesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PardotConnectorProfilePropertiesProperty
-> PardotConnectorProfilePropertiesProperty -> Bool
== :: PardotConnectorProfilePropertiesProperty
-> PardotConnectorProfilePropertiesProperty -> Bool
$c/= :: PardotConnectorProfilePropertiesProperty
-> PardotConnectorProfilePropertiesProperty -> Bool
/= :: PardotConnectorProfilePropertiesProperty
-> PardotConnectorProfilePropertiesProperty -> Bool
Prelude.Eq, Int -> PardotConnectorProfilePropertiesProperty -> ShowS
[PardotConnectorProfilePropertiesProperty] -> ShowS
PardotConnectorProfilePropertiesProperty -> String
(Int -> PardotConnectorProfilePropertiesProperty -> ShowS)
-> (PardotConnectorProfilePropertiesProperty -> String)
-> ([PardotConnectorProfilePropertiesProperty] -> ShowS)
-> Show PardotConnectorProfilePropertiesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PardotConnectorProfilePropertiesProperty -> ShowS
showsPrec :: Int -> PardotConnectorProfilePropertiesProperty -> ShowS
$cshow :: PardotConnectorProfilePropertiesProperty -> String
show :: PardotConnectorProfilePropertiesProperty -> String
$cshowList :: [PardotConnectorProfilePropertiesProperty] -> ShowS
showList :: [PardotConnectorProfilePropertiesProperty] -> ShowS
Prelude.Show)
mkPardotConnectorProfilePropertiesProperty ::
  Value Prelude.Text -> PardotConnectorProfilePropertiesProperty
mkPardotConnectorProfilePropertiesProperty :: Value Text -> PardotConnectorProfilePropertiesProperty
mkPardotConnectorProfilePropertiesProperty Value Text
businessUnitId
  = PardotConnectorProfilePropertiesProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), businessUnitId :: Value Text
businessUnitId = Value Text
businessUnitId,
       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}
instance ToResourceProperties PardotConnectorProfilePropertiesProperty where
  toResourceProperties :: PardotConnectorProfilePropertiesProperty -> ResourceProperties
toResourceProperties PardotConnectorProfilePropertiesProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: PardotConnectorProfilePropertiesProperty -> ()
businessUnitId :: PardotConnectorProfilePropertiesProperty -> Value Text
instanceUrl :: PardotConnectorProfilePropertiesProperty -> Maybe (Value Text)
isSandboxEnvironment :: PardotConnectorProfilePropertiesProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
businessUnitId :: Value Text
instanceUrl :: Maybe (Value Text)
isSandboxEnvironment :: Maybe (Value Bool)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::AppFlow::ConnectorProfile.PardotConnectorProfileProperties",
         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
"BusinessUnitId" 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
businessUnitId]
                           ([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]))}
instance JSON.ToJSON PardotConnectorProfilePropertiesProperty where
  toJSON :: PardotConnectorProfilePropertiesProperty -> Value
toJSON PardotConnectorProfilePropertiesProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: PardotConnectorProfilePropertiesProperty -> ()
businessUnitId :: PardotConnectorProfilePropertiesProperty -> Value Text
instanceUrl :: PardotConnectorProfilePropertiesProperty -> Maybe (Value Text)
isSandboxEnvironment :: PardotConnectorProfilePropertiesProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
businessUnitId :: Value Text
instanceUrl :: Maybe (Value Text)
isSandboxEnvironment :: Maybe (Value Bool)
..}
    = [(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
"BusinessUnitId" 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
businessUnitId]
              ([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])))
instance Property "BusinessUnitId" PardotConnectorProfilePropertiesProperty where
  type PropertyType "BusinessUnitId" PardotConnectorProfilePropertiesProperty = Value Prelude.Text
  set :: PropertyType
  "BusinessUnitId" PardotConnectorProfilePropertiesProperty
-> PardotConnectorProfilePropertiesProperty
-> PardotConnectorProfilePropertiesProperty
set PropertyType
  "BusinessUnitId" PardotConnectorProfilePropertiesProperty
newValue PardotConnectorProfilePropertiesProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: PardotConnectorProfilePropertiesProperty -> ()
businessUnitId :: PardotConnectorProfilePropertiesProperty -> Value Text
instanceUrl :: PardotConnectorProfilePropertiesProperty -> Maybe (Value Text)
isSandboxEnvironment :: PardotConnectorProfilePropertiesProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
businessUnitId :: Value Text
instanceUrl :: Maybe (Value Text)
isSandboxEnvironment :: Maybe (Value Bool)
..}
    = PardotConnectorProfilePropertiesProperty
        {businessUnitId :: Value Text
businessUnitId = PropertyType
  "BusinessUnitId" PardotConnectorProfilePropertiesProperty
Value Text
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)
..}
instance Property "InstanceUrl" PardotConnectorProfilePropertiesProperty where
  type PropertyType "InstanceUrl" PardotConnectorProfilePropertiesProperty = Value Prelude.Text
  set :: PropertyType "InstanceUrl" PardotConnectorProfilePropertiesProperty
-> PardotConnectorProfilePropertiesProperty
-> PardotConnectorProfilePropertiesProperty
set PropertyType "InstanceUrl" PardotConnectorProfilePropertiesProperty
newValue PardotConnectorProfilePropertiesProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: PardotConnectorProfilePropertiesProperty -> ()
businessUnitId :: PardotConnectorProfilePropertiesProperty -> Value Text
instanceUrl :: PardotConnectorProfilePropertiesProperty -> Maybe (Value Text)
isSandboxEnvironment :: PardotConnectorProfilePropertiesProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
businessUnitId :: Value Text
instanceUrl :: Maybe (Value Text)
isSandboxEnvironment :: Maybe (Value Bool)
..}
    = PardotConnectorProfilePropertiesProperty
        {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" PardotConnectorProfilePropertiesProperty
Value Text
newValue, Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: ()
businessUnitId :: Value Text
isSandboxEnvironment :: Maybe (Value Bool)
haddock_workaround_ :: ()
businessUnitId :: Value Text
isSandboxEnvironment :: Maybe (Value Bool)
..}
instance Property "IsSandboxEnvironment" PardotConnectorProfilePropertiesProperty where
  type PropertyType "IsSandboxEnvironment" PardotConnectorProfilePropertiesProperty = Value Prelude.Bool
  set :: PropertyType
  "IsSandboxEnvironment" PardotConnectorProfilePropertiesProperty
-> PardotConnectorProfilePropertiesProperty
-> PardotConnectorProfilePropertiesProperty
set PropertyType
  "IsSandboxEnvironment" PardotConnectorProfilePropertiesProperty
newValue PardotConnectorProfilePropertiesProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: PardotConnectorProfilePropertiesProperty -> ()
businessUnitId :: PardotConnectorProfilePropertiesProperty -> Value Text
instanceUrl :: PardotConnectorProfilePropertiesProperty -> Maybe (Value Text)
isSandboxEnvironment :: PardotConnectorProfilePropertiesProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
businessUnitId :: Value Text
instanceUrl :: Maybe (Value Text)
isSandboxEnvironment :: Maybe (Value Bool)
..}
    = PardotConnectorProfilePropertiesProperty
        {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" PardotConnectorProfilePropertiesProperty
Value Bool
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
businessUnitId :: Value Text
instanceUrl :: Maybe (Value Text)
haddock_workaround_ :: ()
businessUnitId :: Value Text
instanceUrl :: Maybe (Value Text)
..}