module Stratosphere.Kendra.DataSource.SalesforceStandardObjectAttachmentConfigurationProperty (
module Exports,
SalesforceStandardObjectAttachmentConfigurationProperty(..),
mkSalesforceStandardObjectAttachmentConfigurationProperty
) 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 SalesforceStandardObjectAttachmentConfigurationProperty
=
SalesforceStandardObjectAttachmentConfigurationProperty {SalesforceStandardObjectAttachmentConfigurationProperty -> ()
haddock_workaround_ :: (),
SalesforceStandardObjectAttachmentConfigurationProperty
-> Maybe (Value Text)
documentTitleFieldName :: (Prelude.Maybe (Value Prelude.Text)),
SalesforceStandardObjectAttachmentConfigurationProperty
-> Maybe [DataSourceToIndexFieldMappingProperty]
fieldMappings :: (Prelude.Maybe [DataSourceToIndexFieldMappingProperty])}
deriving stock (SalesforceStandardObjectAttachmentConfigurationProperty
-> SalesforceStandardObjectAttachmentConfigurationProperty -> Bool
(SalesforceStandardObjectAttachmentConfigurationProperty
-> SalesforceStandardObjectAttachmentConfigurationProperty -> Bool)
-> (SalesforceStandardObjectAttachmentConfigurationProperty
-> SalesforceStandardObjectAttachmentConfigurationProperty -> Bool)
-> Eq SalesforceStandardObjectAttachmentConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SalesforceStandardObjectAttachmentConfigurationProperty
-> SalesforceStandardObjectAttachmentConfigurationProperty -> Bool
== :: SalesforceStandardObjectAttachmentConfigurationProperty
-> SalesforceStandardObjectAttachmentConfigurationProperty -> Bool
$c/= :: SalesforceStandardObjectAttachmentConfigurationProperty
-> SalesforceStandardObjectAttachmentConfigurationProperty -> Bool
/= :: SalesforceStandardObjectAttachmentConfigurationProperty
-> SalesforceStandardObjectAttachmentConfigurationProperty -> Bool
Prelude.Eq, Int
-> SalesforceStandardObjectAttachmentConfigurationProperty -> ShowS
[SalesforceStandardObjectAttachmentConfigurationProperty] -> ShowS
SalesforceStandardObjectAttachmentConfigurationProperty -> String
(Int
-> SalesforceStandardObjectAttachmentConfigurationProperty
-> ShowS)
-> (SalesforceStandardObjectAttachmentConfigurationProperty
-> String)
-> ([SalesforceStandardObjectAttachmentConfigurationProperty]
-> ShowS)
-> Show SalesforceStandardObjectAttachmentConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int
-> SalesforceStandardObjectAttachmentConfigurationProperty -> ShowS
showsPrec :: Int
-> SalesforceStandardObjectAttachmentConfigurationProperty -> ShowS
$cshow :: SalesforceStandardObjectAttachmentConfigurationProperty -> String
show :: SalesforceStandardObjectAttachmentConfigurationProperty -> String
$cshowList :: [SalesforceStandardObjectAttachmentConfigurationProperty] -> ShowS
showList :: [SalesforceStandardObjectAttachmentConfigurationProperty] -> ShowS
Prelude.Show)
mkSalesforceStandardObjectAttachmentConfigurationProperty ::
SalesforceStandardObjectAttachmentConfigurationProperty
mkSalesforceStandardObjectAttachmentConfigurationProperty :: SalesforceStandardObjectAttachmentConfigurationProperty
mkSalesforceStandardObjectAttachmentConfigurationProperty
= SalesforceStandardObjectAttachmentConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
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 SalesforceStandardObjectAttachmentConfigurationProperty where
toResourceProperties :: SalesforceStandardObjectAttachmentConfigurationProperty
-> ResourceProperties
toResourceProperties
SalesforceStandardObjectAttachmentConfigurationProperty {Maybe [DataSourceToIndexFieldMappingProperty]
Maybe (Value Text)
()
haddock_workaround_ :: SalesforceStandardObjectAttachmentConfigurationProperty -> ()
documentTitleFieldName :: SalesforceStandardObjectAttachmentConfigurationProperty
-> Maybe (Value Text)
fieldMappings :: SalesforceStandardObjectAttachmentConfigurationProperty
-> Maybe [DataSourceToIndexFieldMappingProperty]
haddock_workaround_ :: ()
documentTitleFieldName :: Maybe (Value Text)
fieldMappings :: Maybe [DataSourceToIndexFieldMappingProperty]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Kendra::DataSource.SalesforceStandardObjectAttachmentConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([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 SalesforceStandardObjectAttachmentConfigurationProperty where
toJSON :: SalesforceStandardObjectAttachmentConfigurationProperty -> Value
toJSON SalesforceStandardObjectAttachmentConfigurationProperty {Maybe [DataSourceToIndexFieldMappingProperty]
Maybe (Value Text)
()
haddock_workaround_ :: SalesforceStandardObjectAttachmentConfigurationProperty -> ()
documentTitleFieldName :: SalesforceStandardObjectAttachmentConfigurationProperty
-> Maybe (Value Text)
fieldMappings :: SalesforceStandardObjectAttachmentConfigurationProperty
-> Maybe [DataSourceToIndexFieldMappingProperty]
haddock_workaround_ :: ()
documentTitleFieldName :: Maybe (Value Text)
fieldMappings :: Maybe [DataSourceToIndexFieldMappingProperty]
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([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 "DocumentTitleFieldName" SalesforceStandardObjectAttachmentConfigurationProperty where
type PropertyType "DocumentTitleFieldName" SalesforceStandardObjectAttachmentConfigurationProperty = Value Prelude.Text
set :: PropertyType
"DocumentTitleFieldName"
SalesforceStandardObjectAttachmentConfigurationProperty
-> SalesforceStandardObjectAttachmentConfigurationProperty
-> SalesforceStandardObjectAttachmentConfigurationProperty
set
PropertyType
"DocumentTitleFieldName"
SalesforceStandardObjectAttachmentConfigurationProperty
newValue
SalesforceStandardObjectAttachmentConfigurationProperty {Maybe [DataSourceToIndexFieldMappingProperty]
Maybe (Value Text)
()
haddock_workaround_ :: SalesforceStandardObjectAttachmentConfigurationProperty -> ()
documentTitleFieldName :: SalesforceStandardObjectAttachmentConfigurationProperty
-> Maybe (Value Text)
fieldMappings :: SalesforceStandardObjectAttachmentConfigurationProperty
-> Maybe [DataSourceToIndexFieldMappingProperty]
haddock_workaround_ :: ()
documentTitleFieldName :: Maybe (Value Text)
fieldMappings :: Maybe [DataSourceToIndexFieldMappingProperty]
..}
= SalesforceStandardObjectAttachmentConfigurationProperty
{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"
SalesforceStandardObjectAttachmentConfigurationProperty
Value Text
newValue, Maybe [DataSourceToIndexFieldMappingProperty]
()
haddock_workaround_ :: ()
fieldMappings :: Maybe [DataSourceToIndexFieldMappingProperty]
haddock_workaround_ :: ()
fieldMappings :: Maybe [DataSourceToIndexFieldMappingProperty]
..}
instance Property "FieldMappings" SalesforceStandardObjectAttachmentConfigurationProperty where
type PropertyType "FieldMappings" SalesforceStandardObjectAttachmentConfigurationProperty = [DataSourceToIndexFieldMappingProperty]
set :: PropertyType
"FieldMappings"
SalesforceStandardObjectAttachmentConfigurationProperty
-> SalesforceStandardObjectAttachmentConfigurationProperty
-> SalesforceStandardObjectAttachmentConfigurationProperty
set
PropertyType
"FieldMappings"
SalesforceStandardObjectAttachmentConfigurationProperty
newValue
SalesforceStandardObjectAttachmentConfigurationProperty {Maybe [DataSourceToIndexFieldMappingProperty]
Maybe (Value Text)
()
haddock_workaround_ :: SalesforceStandardObjectAttachmentConfigurationProperty -> ()
documentTitleFieldName :: SalesforceStandardObjectAttachmentConfigurationProperty
-> Maybe (Value Text)
fieldMappings :: SalesforceStandardObjectAttachmentConfigurationProperty
-> Maybe [DataSourceToIndexFieldMappingProperty]
haddock_workaround_ :: ()
documentTitleFieldName :: Maybe (Value Text)
fieldMappings :: Maybe [DataSourceToIndexFieldMappingProperty]
..}
= SalesforceStandardObjectAttachmentConfigurationProperty
{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"
SalesforceStandardObjectAttachmentConfigurationProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
documentTitleFieldName :: Maybe (Value Text)
haddock_workaround_ :: ()
documentTitleFieldName :: Maybe (Value Text)
..}