module Stratosphere.Kendra.DataSource.SalesforceStandardObjectConfigurationProperty (
module Exports, SalesforceStandardObjectConfigurationProperty(..),
mkSalesforceStandardObjectConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Kendra.DataSource.DataSourceToIndexFieldMappingProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SalesforceStandardObjectConfigurationProperty
=
SalesforceStandardObjectConfigurationProperty {SalesforceStandardObjectConfigurationProperty -> ()
haddock_workaround_ :: (),
SalesforceStandardObjectConfigurationProperty -> Value Text
documentDataFieldName :: (Value Prelude.Text),
SalesforceStandardObjectConfigurationProperty -> Maybe (Value Text)
documentTitleFieldName :: (Prelude.Maybe (Value Prelude.Text)),
SalesforceStandardObjectConfigurationProperty
-> Maybe [DataSourceToIndexFieldMappingProperty]
fieldMappings :: (Prelude.Maybe [DataSourceToIndexFieldMappingProperty]),
SalesforceStandardObjectConfigurationProperty -> Value Text
name :: (Value Prelude.Text)}
deriving stock (SalesforceStandardObjectConfigurationProperty
-> SalesforceStandardObjectConfigurationProperty -> Bool
(SalesforceStandardObjectConfigurationProperty
-> SalesforceStandardObjectConfigurationProperty -> Bool)
-> (SalesforceStandardObjectConfigurationProperty
-> SalesforceStandardObjectConfigurationProperty -> Bool)
-> Eq SalesforceStandardObjectConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SalesforceStandardObjectConfigurationProperty
-> SalesforceStandardObjectConfigurationProperty -> Bool
== :: SalesforceStandardObjectConfigurationProperty
-> SalesforceStandardObjectConfigurationProperty -> Bool
$c/= :: SalesforceStandardObjectConfigurationProperty
-> SalesforceStandardObjectConfigurationProperty -> Bool
/= :: SalesforceStandardObjectConfigurationProperty
-> SalesforceStandardObjectConfigurationProperty -> Bool
Prelude.Eq, Int -> SalesforceStandardObjectConfigurationProperty -> ShowS
[SalesforceStandardObjectConfigurationProperty] -> ShowS
SalesforceStandardObjectConfigurationProperty -> String
(Int -> SalesforceStandardObjectConfigurationProperty -> ShowS)
-> (SalesforceStandardObjectConfigurationProperty -> String)
-> ([SalesforceStandardObjectConfigurationProperty] -> ShowS)
-> Show SalesforceStandardObjectConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SalesforceStandardObjectConfigurationProperty -> ShowS
showsPrec :: Int -> SalesforceStandardObjectConfigurationProperty -> ShowS
$cshow :: SalesforceStandardObjectConfigurationProperty -> String
show :: SalesforceStandardObjectConfigurationProperty -> String
$cshowList :: [SalesforceStandardObjectConfigurationProperty] -> ShowS
showList :: [SalesforceStandardObjectConfigurationProperty] -> ShowS
Prelude.Show)
mkSalesforceStandardObjectConfigurationProperty ::
Value Prelude.Text
-> Value Prelude.Text
-> SalesforceStandardObjectConfigurationProperty
mkSalesforceStandardObjectConfigurationProperty :: Value Text
-> Value Text -> SalesforceStandardObjectConfigurationProperty
mkSalesforceStandardObjectConfigurationProperty
Value Text
documentDataFieldName
Value Text
name
= SalesforceStandardObjectConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
documentDataFieldName :: Value Text
documentDataFieldName = Value Text
documentDataFieldName, name :: Value Text
name = Value Text
name,
documentTitleFieldName :: Maybe (Value Text)
documentTitleFieldName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
fieldMappings :: Maybe [DataSourceToIndexFieldMappingProperty]
fieldMappings = Maybe [DataSourceToIndexFieldMappingProperty]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SalesforceStandardObjectConfigurationProperty where
toResourceProperties :: SalesforceStandardObjectConfigurationProperty -> ResourceProperties
toResourceProperties
SalesforceStandardObjectConfigurationProperty {Maybe [DataSourceToIndexFieldMappingProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SalesforceStandardObjectConfigurationProperty -> ()
documentDataFieldName :: SalesforceStandardObjectConfigurationProperty -> Value Text
documentTitleFieldName :: SalesforceStandardObjectConfigurationProperty -> Maybe (Value Text)
fieldMappings :: SalesforceStandardObjectConfigurationProperty
-> Maybe [DataSourceToIndexFieldMappingProperty]
name :: SalesforceStandardObjectConfigurationProperty -> Value Text
haddock_workaround_ :: ()
documentDataFieldName :: Value Text
documentTitleFieldName :: Maybe (Value Text)
fieldMappings :: Maybe [DataSourceToIndexFieldMappingProperty]
name :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Kendra::DataSource.SalesforceStandardObjectConfiguration",
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
"DocumentDataFieldName" 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
documentDataFieldName,
Key
"Name" 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
name]
([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
"DocumentTitleFieldName"
(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)
documentTitleFieldName,
Key -> [DataSourceToIndexFieldMappingProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"FieldMappings" ([DataSourceToIndexFieldMappingProperty] -> (Key, Value))
-> Maybe [DataSourceToIndexFieldMappingProperty]
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [DataSourceToIndexFieldMappingProperty]
fieldMappings]))}
instance JSON.ToJSON SalesforceStandardObjectConfigurationProperty where
toJSON :: SalesforceStandardObjectConfigurationProperty -> Value
toJSON SalesforceStandardObjectConfigurationProperty {Maybe [DataSourceToIndexFieldMappingProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SalesforceStandardObjectConfigurationProperty -> ()
documentDataFieldName :: SalesforceStandardObjectConfigurationProperty -> Value Text
documentTitleFieldName :: SalesforceStandardObjectConfigurationProperty -> Maybe (Value Text)
fieldMappings :: SalesforceStandardObjectConfigurationProperty
-> Maybe [DataSourceToIndexFieldMappingProperty]
name :: SalesforceStandardObjectConfigurationProperty -> Value Text
haddock_workaround_ :: ()
documentDataFieldName :: Value Text
documentTitleFieldName :: Maybe (Value Text)
fieldMappings :: Maybe [DataSourceToIndexFieldMappingProperty]
name :: Value Text
..}
= [(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
"DocumentDataFieldName" 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
documentDataFieldName,
Key
"Name" 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
name]
([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
"DocumentTitleFieldName"
(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)
documentTitleFieldName,
Key -> [DataSourceToIndexFieldMappingProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"FieldMappings" ([DataSourceToIndexFieldMappingProperty] -> (Key, Value))
-> Maybe [DataSourceToIndexFieldMappingProperty]
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [DataSourceToIndexFieldMappingProperty]
fieldMappings])))
instance Property "DocumentDataFieldName" SalesforceStandardObjectConfigurationProperty where
type PropertyType "DocumentDataFieldName" SalesforceStandardObjectConfigurationProperty = Value Prelude.Text
set :: PropertyType
"DocumentDataFieldName"
SalesforceStandardObjectConfigurationProperty
-> SalesforceStandardObjectConfigurationProperty
-> SalesforceStandardObjectConfigurationProperty
set PropertyType
"DocumentDataFieldName"
SalesforceStandardObjectConfigurationProperty
newValue SalesforceStandardObjectConfigurationProperty {Maybe [DataSourceToIndexFieldMappingProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SalesforceStandardObjectConfigurationProperty -> ()
documentDataFieldName :: SalesforceStandardObjectConfigurationProperty -> Value Text
documentTitleFieldName :: SalesforceStandardObjectConfigurationProperty -> Maybe (Value Text)
fieldMappings :: SalesforceStandardObjectConfigurationProperty
-> Maybe [DataSourceToIndexFieldMappingProperty]
name :: SalesforceStandardObjectConfigurationProperty -> Value Text
haddock_workaround_ :: ()
documentDataFieldName :: Value Text
documentTitleFieldName :: Maybe (Value Text)
fieldMappings :: Maybe [DataSourceToIndexFieldMappingProperty]
name :: Value Text
..}
= SalesforceStandardObjectConfigurationProperty
{documentDataFieldName :: Value Text
documentDataFieldName = PropertyType
"DocumentDataFieldName"
SalesforceStandardObjectConfigurationProperty
Value Text
newValue, Maybe [DataSourceToIndexFieldMappingProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
documentTitleFieldName :: Maybe (Value Text)
fieldMappings :: Maybe [DataSourceToIndexFieldMappingProperty]
name :: Value Text
haddock_workaround_ :: ()
documentTitleFieldName :: Maybe (Value Text)
fieldMappings :: Maybe [DataSourceToIndexFieldMappingProperty]
name :: Value Text
..}
instance Property "DocumentTitleFieldName" SalesforceStandardObjectConfigurationProperty where
type PropertyType "DocumentTitleFieldName" SalesforceStandardObjectConfigurationProperty = Value Prelude.Text
set :: PropertyType
"DocumentTitleFieldName"
SalesforceStandardObjectConfigurationProperty
-> SalesforceStandardObjectConfigurationProperty
-> SalesforceStandardObjectConfigurationProperty
set PropertyType
"DocumentTitleFieldName"
SalesforceStandardObjectConfigurationProperty
newValue SalesforceStandardObjectConfigurationProperty {Maybe [DataSourceToIndexFieldMappingProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SalesforceStandardObjectConfigurationProperty -> ()
documentDataFieldName :: SalesforceStandardObjectConfigurationProperty -> Value Text
documentTitleFieldName :: SalesforceStandardObjectConfigurationProperty -> Maybe (Value Text)
fieldMappings :: SalesforceStandardObjectConfigurationProperty
-> Maybe [DataSourceToIndexFieldMappingProperty]
name :: SalesforceStandardObjectConfigurationProperty -> Value Text
haddock_workaround_ :: ()
documentDataFieldName :: Value Text
documentTitleFieldName :: Maybe (Value Text)
fieldMappings :: Maybe [DataSourceToIndexFieldMappingProperty]
name :: Value Text
..}
= SalesforceStandardObjectConfigurationProperty
{documentTitleFieldName :: Maybe (Value Text)
documentTitleFieldName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"DocumentTitleFieldName"
SalesforceStandardObjectConfigurationProperty
Value Text
newValue, Maybe [DataSourceToIndexFieldMappingProperty]
()
Value Text
haddock_workaround_ :: ()
documentDataFieldName :: Value Text
fieldMappings :: Maybe [DataSourceToIndexFieldMappingProperty]
name :: Value Text
haddock_workaround_ :: ()
documentDataFieldName :: Value Text
fieldMappings :: Maybe [DataSourceToIndexFieldMappingProperty]
name :: Value Text
..}
instance Property "FieldMappings" SalesforceStandardObjectConfigurationProperty where
type PropertyType "FieldMappings" SalesforceStandardObjectConfigurationProperty = [DataSourceToIndexFieldMappingProperty]
set :: PropertyType
"FieldMappings" SalesforceStandardObjectConfigurationProperty
-> SalesforceStandardObjectConfigurationProperty
-> SalesforceStandardObjectConfigurationProperty
set PropertyType
"FieldMappings" SalesforceStandardObjectConfigurationProperty
newValue SalesforceStandardObjectConfigurationProperty {Maybe [DataSourceToIndexFieldMappingProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SalesforceStandardObjectConfigurationProperty -> ()
documentDataFieldName :: SalesforceStandardObjectConfigurationProperty -> Value Text
documentTitleFieldName :: SalesforceStandardObjectConfigurationProperty -> Maybe (Value Text)
fieldMappings :: SalesforceStandardObjectConfigurationProperty
-> Maybe [DataSourceToIndexFieldMappingProperty]
name :: SalesforceStandardObjectConfigurationProperty -> Value Text
haddock_workaround_ :: ()
documentDataFieldName :: Value Text
documentTitleFieldName :: Maybe (Value Text)
fieldMappings :: Maybe [DataSourceToIndexFieldMappingProperty]
name :: Value Text
..}
= SalesforceStandardObjectConfigurationProperty
{fieldMappings :: Maybe [DataSourceToIndexFieldMappingProperty]
fieldMappings = [DataSourceToIndexFieldMappingProperty]
-> Maybe [DataSourceToIndexFieldMappingProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [DataSourceToIndexFieldMappingProperty]
PropertyType
"FieldMappings" SalesforceStandardObjectConfigurationProperty
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
documentDataFieldName :: Value Text
documentTitleFieldName :: Maybe (Value Text)
name :: Value Text
haddock_workaround_ :: ()
documentDataFieldName :: Value Text
documentTitleFieldName :: Maybe (Value Text)
name :: Value Text
..}
instance Property "Name" SalesforceStandardObjectConfigurationProperty where
type PropertyType "Name" SalesforceStandardObjectConfigurationProperty = Value Prelude.Text
set :: PropertyType "Name" SalesforceStandardObjectConfigurationProperty
-> SalesforceStandardObjectConfigurationProperty
-> SalesforceStandardObjectConfigurationProperty
set PropertyType "Name" SalesforceStandardObjectConfigurationProperty
newValue SalesforceStandardObjectConfigurationProperty {Maybe [DataSourceToIndexFieldMappingProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SalesforceStandardObjectConfigurationProperty -> ()
documentDataFieldName :: SalesforceStandardObjectConfigurationProperty -> Value Text
documentTitleFieldName :: SalesforceStandardObjectConfigurationProperty -> Maybe (Value Text)
fieldMappings :: SalesforceStandardObjectConfigurationProperty
-> Maybe [DataSourceToIndexFieldMappingProperty]
name :: SalesforceStandardObjectConfigurationProperty -> Value Text
haddock_workaround_ :: ()
documentDataFieldName :: Value Text
documentTitleFieldName :: Maybe (Value Text)
fieldMappings :: Maybe [DataSourceToIndexFieldMappingProperty]
name :: Value Text
..}
= SalesforceStandardObjectConfigurationProperty
{name :: Value Text
name = PropertyType "Name" SalesforceStandardObjectConfigurationProperty
Value Text
newValue, Maybe [DataSourceToIndexFieldMappingProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
documentDataFieldName :: Value Text
documentTitleFieldName :: Maybe (Value Text)
fieldMappings :: Maybe [DataSourceToIndexFieldMappingProperty]
haddock_workaround_ :: ()
documentDataFieldName :: Value Text
documentTitleFieldName :: Maybe (Value Text)
fieldMappings :: Maybe [DataSourceToIndexFieldMappingProperty]
..}