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