module Stratosphere.Bedrock.DataSource.SalesforceSourceConfigurationProperty (
        SalesforceSourceConfigurationProperty(..),
        mkSalesforceSourceConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SalesforceSourceConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-salesforcesourceconfiguration.html>
    SalesforceSourceConfigurationProperty {SalesforceSourceConfigurationProperty -> ()
haddock_workaround_ :: (),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-salesforcesourceconfiguration.html#cfn-bedrock-datasource-salesforcesourceconfiguration-authtype>
                                           SalesforceSourceConfigurationProperty -> Value Text
authType :: (Value Prelude.Text),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-salesforcesourceconfiguration.html#cfn-bedrock-datasource-salesforcesourceconfiguration-credentialssecretarn>
                                           SalesforceSourceConfigurationProperty -> Value Text
credentialsSecretArn :: (Value Prelude.Text),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-salesforcesourceconfiguration.html#cfn-bedrock-datasource-salesforcesourceconfiguration-hosturl>
                                           SalesforceSourceConfigurationProperty -> Value Text
hostUrl :: (Value Prelude.Text)}
  deriving stock (SalesforceSourceConfigurationProperty
-> SalesforceSourceConfigurationProperty -> Bool
(SalesforceSourceConfigurationProperty
 -> SalesforceSourceConfigurationProperty -> Bool)
-> (SalesforceSourceConfigurationProperty
    -> SalesforceSourceConfigurationProperty -> Bool)
-> Eq SalesforceSourceConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SalesforceSourceConfigurationProperty
-> SalesforceSourceConfigurationProperty -> Bool
== :: SalesforceSourceConfigurationProperty
-> SalesforceSourceConfigurationProperty -> Bool
$c/= :: SalesforceSourceConfigurationProperty
-> SalesforceSourceConfigurationProperty -> Bool
/= :: SalesforceSourceConfigurationProperty
-> SalesforceSourceConfigurationProperty -> Bool
Prelude.Eq, Int -> SalesforceSourceConfigurationProperty -> ShowS
[SalesforceSourceConfigurationProperty] -> ShowS
SalesforceSourceConfigurationProperty -> String
(Int -> SalesforceSourceConfigurationProperty -> ShowS)
-> (SalesforceSourceConfigurationProperty -> String)
-> ([SalesforceSourceConfigurationProperty] -> ShowS)
-> Show SalesforceSourceConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SalesforceSourceConfigurationProperty -> ShowS
showsPrec :: Int -> SalesforceSourceConfigurationProperty -> ShowS
$cshow :: SalesforceSourceConfigurationProperty -> String
show :: SalesforceSourceConfigurationProperty -> String
$cshowList :: [SalesforceSourceConfigurationProperty] -> ShowS
showList :: [SalesforceSourceConfigurationProperty] -> ShowS
Prelude.Show)
mkSalesforceSourceConfigurationProperty ::
  Value Prelude.Text
  -> Value Prelude.Text
     -> Value Prelude.Text -> SalesforceSourceConfigurationProperty
mkSalesforceSourceConfigurationProperty :: Value Text
-> Value Text
-> Value Text
-> SalesforceSourceConfigurationProperty
mkSalesforceSourceConfigurationProperty
  Value Text
authType
  Value Text
credentialsSecretArn
  Value Text
hostUrl
  = SalesforceSourceConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), authType :: Value Text
authType = Value Text
authType,
       credentialsSecretArn :: Value Text
credentialsSecretArn = Value Text
credentialsSecretArn, hostUrl :: Value Text
hostUrl = Value Text
hostUrl}
instance ToResourceProperties SalesforceSourceConfigurationProperty where
  toResourceProperties :: SalesforceSourceConfigurationProperty -> ResourceProperties
toResourceProperties SalesforceSourceConfigurationProperty {()
Value Text
haddock_workaround_ :: SalesforceSourceConfigurationProperty -> ()
authType :: SalesforceSourceConfigurationProperty -> Value Text
credentialsSecretArn :: SalesforceSourceConfigurationProperty -> Value Text
hostUrl :: SalesforceSourceConfigurationProperty -> Value Text
haddock_workaround_ :: ()
authType :: Value Text
credentialsSecretArn :: Value Text
hostUrl :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Bedrock::DataSource.SalesforceSourceConfiguration",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"AuthType" 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
authType,
                       Key
"CredentialsSecretArn" 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
credentialsSecretArn,
                       Key
"HostUrl" 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
hostUrl]}
instance JSON.ToJSON SalesforceSourceConfigurationProperty where
  toJSON :: SalesforceSourceConfigurationProperty -> Value
toJSON SalesforceSourceConfigurationProperty {()
Value Text
haddock_workaround_ :: SalesforceSourceConfigurationProperty -> ()
authType :: SalesforceSourceConfigurationProperty -> Value Text
credentialsSecretArn :: SalesforceSourceConfigurationProperty -> Value Text
hostUrl :: SalesforceSourceConfigurationProperty -> Value Text
haddock_workaround_ :: ()
authType :: Value Text
credentialsSecretArn :: Value Text
hostUrl :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"AuthType" 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
authType,
         Key
"CredentialsSecretArn" 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
credentialsSecretArn,
         Key
"HostUrl" 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
hostUrl]
instance Property "AuthType" SalesforceSourceConfigurationProperty where
  type PropertyType "AuthType" SalesforceSourceConfigurationProperty = Value Prelude.Text
  set :: PropertyType "AuthType" SalesforceSourceConfigurationProperty
-> SalesforceSourceConfigurationProperty
-> SalesforceSourceConfigurationProperty
set PropertyType "AuthType" SalesforceSourceConfigurationProperty
newValue SalesforceSourceConfigurationProperty {()
Value Text
haddock_workaround_ :: SalesforceSourceConfigurationProperty -> ()
authType :: SalesforceSourceConfigurationProperty -> Value Text
credentialsSecretArn :: SalesforceSourceConfigurationProperty -> Value Text
hostUrl :: SalesforceSourceConfigurationProperty -> Value Text
haddock_workaround_ :: ()
authType :: Value Text
credentialsSecretArn :: Value Text
hostUrl :: Value Text
..}
    = SalesforceSourceConfigurationProperty {authType :: Value Text
authType = PropertyType "AuthType" SalesforceSourceConfigurationProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
credentialsSecretArn :: Value Text
hostUrl :: Value Text
haddock_workaround_ :: ()
credentialsSecretArn :: Value Text
hostUrl :: Value Text
..}
instance Property "CredentialsSecretArn" SalesforceSourceConfigurationProperty where
  type PropertyType "CredentialsSecretArn" SalesforceSourceConfigurationProperty = Value Prelude.Text
  set :: PropertyType
  "CredentialsSecretArn" SalesforceSourceConfigurationProperty
-> SalesforceSourceConfigurationProperty
-> SalesforceSourceConfigurationProperty
set PropertyType
  "CredentialsSecretArn" SalesforceSourceConfigurationProperty
newValue SalesforceSourceConfigurationProperty {()
Value Text
haddock_workaround_ :: SalesforceSourceConfigurationProperty -> ()
authType :: SalesforceSourceConfigurationProperty -> Value Text
credentialsSecretArn :: SalesforceSourceConfigurationProperty -> Value Text
hostUrl :: SalesforceSourceConfigurationProperty -> Value Text
haddock_workaround_ :: ()
authType :: Value Text
credentialsSecretArn :: Value Text
hostUrl :: Value Text
..}
    = SalesforceSourceConfigurationProperty
        {credentialsSecretArn :: Value Text
credentialsSecretArn = PropertyType
  "CredentialsSecretArn" SalesforceSourceConfigurationProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
authType :: Value Text
hostUrl :: Value Text
haddock_workaround_ :: ()
authType :: Value Text
hostUrl :: Value Text
..}
instance Property "HostUrl" SalesforceSourceConfigurationProperty where
  type PropertyType "HostUrl" SalesforceSourceConfigurationProperty = Value Prelude.Text
  set :: PropertyType "HostUrl" SalesforceSourceConfigurationProperty
-> SalesforceSourceConfigurationProperty
-> SalesforceSourceConfigurationProperty
set PropertyType "HostUrl" SalesforceSourceConfigurationProperty
newValue SalesforceSourceConfigurationProperty {()
Value Text
haddock_workaround_ :: SalesforceSourceConfigurationProperty -> ()
authType :: SalesforceSourceConfigurationProperty -> Value Text
credentialsSecretArn :: SalesforceSourceConfigurationProperty -> Value Text
hostUrl :: SalesforceSourceConfigurationProperty -> Value Text
haddock_workaround_ :: ()
authType :: Value Text
credentialsSecretArn :: Value Text
hostUrl :: Value Text
..}
    = SalesforceSourceConfigurationProperty {hostUrl :: Value Text
hostUrl = PropertyType "HostUrl" SalesforceSourceConfigurationProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
authType :: Value Text
credentialsSecretArn :: Value Text
haddock_workaround_ :: ()
authType :: Value Text
credentialsSecretArn :: Value Text
..}