stratosphere-bedrock-1.0.0: gen/Stratosphere/Bedrock/DataSource/SalesforceSourceConfigurationProperty.hs
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 {haddock_workaround_ :: (),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-salesforcesourceconfiguration.html#cfn-bedrock-datasource-salesforcesourceconfiguration-authtype>
authType :: (Value Prelude.Text),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-salesforcesourceconfiguration.html#cfn-bedrock-datasource-salesforcesourceconfiguration-credentialssecretarn>
credentialsSecretArn :: (Value Prelude.Text),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-salesforcesourceconfiguration.html#cfn-bedrock-datasource-salesforcesourceconfiguration-hosturl>
hostUrl :: (Value Prelude.Text)}
deriving stock (Prelude.Eq, Prelude.Show)
mkSalesforceSourceConfigurationProperty ::
Value Prelude.Text
-> Value Prelude.Text
-> Value Prelude.Text -> SalesforceSourceConfigurationProperty
mkSalesforceSourceConfigurationProperty
authType
credentialsSecretArn
hostUrl
= SalesforceSourceConfigurationProperty
{haddock_workaround_ = (), authType = authType,
credentialsSecretArn = credentialsSecretArn, hostUrl = hostUrl}
instance ToResourceProperties SalesforceSourceConfigurationProperty where
toResourceProperties SalesforceSourceConfigurationProperty {..}
= ResourceProperties
{awsType = "AWS::Bedrock::DataSource.SalesforceSourceConfiguration",
supportsTags = Prelude.False,
properties = ["AuthType" JSON..= authType,
"CredentialsSecretArn" JSON..= credentialsSecretArn,
"HostUrl" JSON..= hostUrl]}
instance JSON.ToJSON SalesforceSourceConfigurationProperty where
toJSON SalesforceSourceConfigurationProperty {..}
= JSON.object
["AuthType" JSON..= authType,
"CredentialsSecretArn" JSON..= credentialsSecretArn,
"HostUrl" JSON..= hostUrl]
instance Property "AuthType" SalesforceSourceConfigurationProperty where
type PropertyType "AuthType" SalesforceSourceConfigurationProperty = Value Prelude.Text
set newValue SalesforceSourceConfigurationProperty {..}
= SalesforceSourceConfigurationProperty {authType = newValue, ..}
instance Property "CredentialsSecretArn" SalesforceSourceConfigurationProperty where
type PropertyType "CredentialsSecretArn" SalesforceSourceConfigurationProperty = Value Prelude.Text
set newValue SalesforceSourceConfigurationProperty {..}
= SalesforceSourceConfigurationProperty
{credentialsSecretArn = newValue, ..}
instance Property "HostUrl" SalesforceSourceConfigurationProperty where
type PropertyType "HostUrl" SalesforceSourceConfigurationProperty = Value Prelude.Text
set newValue SalesforceSourceConfigurationProperty {..}
= SalesforceSourceConfigurationProperty {hostUrl = newValue, ..}