module Stratosphere.Kendra.DataSource.SalesforceChatterFeedConfigurationProperty (
        module Exports, SalesforceChatterFeedConfigurationProperty(..),
        mkSalesforceChatterFeedConfigurationProperty
    ) 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 SalesforceChatterFeedConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kendra-datasource-salesforcechatterfeedconfiguration.html>
    SalesforceChatterFeedConfigurationProperty {SalesforceChatterFeedConfigurationProperty -> ()
haddock_workaround_ :: (),
                                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kendra-datasource-salesforcechatterfeedconfiguration.html#cfn-kendra-datasource-salesforcechatterfeedconfiguration-documentdatafieldname>
                                                SalesforceChatterFeedConfigurationProperty -> Value Text
documentDataFieldName :: (Value Prelude.Text),
                                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kendra-datasource-salesforcechatterfeedconfiguration.html#cfn-kendra-datasource-salesforcechatterfeedconfiguration-documenttitlefieldname>
                                                SalesforceChatterFeedConfigurationProperty -> Maybe (Value Text)
documentTitleFieldName :: (Prelude.Maybe (Value Prelude.Text)),
                                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kendra-datasource-salesforcechatterfeedconfiguration.html#cfn-kendra-datasource-salesforcechatterfeedconfiguration-fieldmappings>
                                                SalesforceChatterFeedConfigurationProperty
-> Maybe [DataSourceToIndexFieldMappingProperty]
fieldMappings :: (Prelude.Maybe [DataSourceToIndexFieldMappingProperty]),
                                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kendra-datasource-salesforcechatterfeedconfiguration.html#cfn-kendra-datasource-salesforcechatterfeedconfiguration-includefiltertypes>
                                                SalesforceChatterFeedConfigurationProperty
-> Maybe (ValueList Text)
includeFilterTypes :: (Prelude.Maybe (ValueList Prelude.Text))}
  deriving stock (SalesforceChatterFeedConfigurationProperty
-> SalesforceChatterFeedConfigurationProperty -> Bool
(SalesforceChatterFeedConfigurationProperty
 -> SalesforceChatterFeedConfigurationProperty -> Bool)
-> (SalesforceChatterFeedConfigurationProperty
    -> SalesforceChatterFeedConfigurationProperty -> Bool)
-> Eq SalesforceChatterFeedConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SalesforceChatterFeedConfigurationProperty
-> SalesforceChatterFeedConfigurationProperty -> Bool
== :: SalesforceChatterFeedConfigurationProperty
-> SalesforceChatterFeedConfigurationProperty -> Bool
$c/= :: SalesforceChatterFeedConfigurationProperty
-> SalesforceChatterFeedConfigurationProperty -> Bool
/= :: SalesforceChatterFeedConfigurationProperty
-> SalesforceChatterFeedConfigurationProperty -> Bool
Prelude.Eq, Int -> SalesforceChatterFeedConfigurationProperty -> ShowS
[SalesforceChatterFeedConfigurationProperty] -> ShowS
SalesforceChatterFeedConfigurationProperty -> String
(Int -> SalesforceChatterFeedConfigurationProperty -> ShowS)
-> (SalesforceChatterFeedConfigurationProperty -> String)
-> ([SalesforceChatterFeedConfigurationProperty] -> ShowS)
-> Show SalesforceChatterFeedConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SalesforceChatterFeedConfigurationProperty -> ShowS
showsPrec :: Int -> SalesforceChatterFeedConfigurationProperty -> ShowS
$cshow :: SalesforceChatterFeedConfigurationProperty -> String
show :: SalesforceChatterFeedConfigurationProperty -> String
$cshowList :: [SalesforceChatterFeedConfigurationProperty] -> ShowS
showList :: [SalesforceChatterFeedConfigurationProperty] -> ShowS
Prelude.Show)
mkSalesforceChatterFeedConfigurationProperty ::
  Value Prelude.Text -> SalesforceChatterFeedConfigurationProperty
mkSalesforceChatterFeedConfigurationProperty :: Value Text -> SalesforceChatterFeedConfigurationProperty
mkSalesforceChatterFeedConfigurationProperty Value Text
documentDataFieldName
  = SalesforceChatterFeedConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       documentDataFieldName :: Value Text
documentDataFieldName = Value Text
documentDataFieldName,
       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,
       includeFilterTypes :: Maybe (ValueList Text)
includeFilterTypes = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SalesforceChatterFeedConfigurationProperty where
  toResourceProperties :: SalesforceChatterFeedConfigurationProperty -> ResourceProperties
toResourceProperties
    SalesforceChatterFeedConfigurationProperty {Maybe [DataSourceToIndexFieldMappingProperty]
Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SalesforceChatterFeedConfigurationProperty -> ()
documentDataFieldName :: SalesforceChatterFeedConfigurationProperty -> Value Text
documentTitleFieldName :: SalesforceChatterFeedConfigurationProperty -> Maybe (Value Text)
fieldMappings :: SalesforceChatterFeedConfigurationProperty
-> Maybe [DataSourceToIndexFieldMappingProperty]
includeFilterTypes :: SalesforceChatterFeedConfigurationProperty
-> Maybe (ValueList Text)
haddock_workaround_ :: ()
documentDataFieldName :: Value Text
documentTitleFieldName :: Maybe (Value Text)
fieldMappings :: Maybe [DataSourceToIndexFieldMappingProperty]
includeFilterTypes :: Maybe (ValueList Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Kendra::DataSource.SalesforceChatterFeedConfiguration",
         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]
                           ([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,
                               Key -> ValueList 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
"IncludeFilterTypes" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
includeFilterTypes]))}
instance JSON.ToJSON SalesforceChatterFeedConfigurationProperty where
  toJSON :: SalesforceChatterFeedConfigurationProperty -> Value
toJSON SalesforceChatterFeedConfigurationProperty {Maybe [DataSourceToIndexFieldMappingProperty]
Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SalesforceChatterFeedConfigurationProperty -> ()
documentDataFieldName :: SalesforceChatterFeedConfigurationProperty -> Value Text
documentTitleFieldName :: SalesforceChatterFeedConfigurationProperty -> Maybe (Value Text)
fieldMappings :: SalesforceChatterFeedConfigurationProperty
-> Maybe [DataSourceToIndexFieldMappingProperty]
includeFilterTypes :: SalesforceChatterFeedConfigurationProperty
-> Maybe (ValueList Text)
haddock_workaround_ :: ()
documentDataFieldName :: Value Text
documentTitleFieldName :: Maybe (Value Text)
fieldMappings :: Maybe [DataSourceToIndexFieldMappingProperty]
includeFilterTypes :: Maybe (ValueList 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]
              ([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,
                  Key -> ValueList 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
"IncludeFilterTypes" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
includeFilterTypes])))
instance Property "DocumentDataFieldName" SalesforceChatterFeedConfigurationProperty where
  type PropertyType "DocumentDataFieldName" SalesforceChatterFeedConfigurationProperty = Value Prelude.Text
  set :: PropertyType
  "DocumentDataFieldName" SalesforceChatterFeedConfigurationProperty
-> SalesforceChatterFeedConfigurationProperty
-> SalesforceChatterFeedConfigurationProperty
set PropertyType
  "DocumentDataFieldName" SalesforceChatterFeedConfigurationProperty
newValue SalesforceChatterFeedConfigurationProperty {Maybe [DataSourceToIndexFieldMappingProperty]
Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SalesforceChatterFeedConfigurationProperty -> ()
documentDataFieldName :: SalesforceChatterFeedConfigurationProperty -> Value Text
documentTitleFieldName :: SalesforceChatterFeedConfigurationProperty -> Maybe (Value Text)
fieldMappings :: SalesforceChatterFeedConfigurationProperty
-> Maybe [DataSourceToIndexFieldMappingProperty]
includeFilterTypes :: SalesforceChatterFeedConfigurationProperty
-> Maybe (ValueList Text)
haddock_workaround_ :: ()
documentDataFieldName :: Value Text
documentTitleFieldName :: Maybe (Value Text)
fieldMappings :: Maybe [DataSourceToIndexFieldMappingProperty]
includeFilterTypes :: Maybe (ValueList Text)
..}
    = SalesforceChatterFeedConfigurationProperty
        {documentDataFieldName :: Value Text
documentDataFieldName = PropertyType
  "DocumentDataFieldName" SalesforceChatterFeedConfigurationProperty
Value Text
newValue, Maybe [DataSourceToIndexFieldMappingProperty]
Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
documentTitleFieldName :: Maybe (Value Text)
fieldMappings :: Maybe [DataSourceToIndexFieldMappingProperty]
includeFilterTypes :: Maybe (ValueList Text)
haddock_workaround_ :: ()
documentTitleFieldName :: Maybe (Value Text)
fieldMappings :: Maybe [DataSourceToIndexFieldMappingProperty]
includeFilterTypes :: Maybe (ValueList Text)
..}
instance Property "DocumentTitleFieldName" SalesforceChatterFeedConfigurationProperty where
  type PropertyType "DocumentTitleFieldName" SalesforceChatterFeedConfigurationProperty = Value Prelude.Text
  set :: PropertyType
  "DocumentTitleFieldName" SalesforceChatterFeedConfigurationProperty
-> SalesforceChatterFeedConfigurationProperty
-> SalesforceChatterFeedConfigurationProperty
set PropertyType
  "DocumentTitleFieldName" SalesforceChatterFeedConfigurationProperty
newValue SalesforceChatterFeedConfigurationProperty {Maybe [DataSourceToIndexFieldMappingProperty]
Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SalesforceChatterFeedConfigurationProperty -> ()
documentDataFieldName :: SalesforceChatterFeedConfigurationProperty -> Value Text
documentTitleFieldName :: SalesforceChatterFeedConfigurationProperty -> Maybe (Value Text)
fieldMappings :: SalesforceChatterFeedConfigurationProperty
-> Maybe [DataSourceToIndexFieldMappingProperty]
includeFilterTypes :: SalesforceChatterFeedConfigurationProperty
-> Maybe (ValueList Text)
haddock_workaround_ :: ()
documentDataFieldName :: Value Text
documentTitleFieldName :: Maybe (Value Text)
fieldMappings :: Maybe [DataSourceToIndexFieldMappingProperty]
includeFilterTypes :: Maybe (ValueList Text)
..}
    = SalesforceChatterFeedConfigurationProperty
        {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" SalesforceChatterFeedConfigurationProperty
Value Text
newValue, Maybe [DataSourceToIndexFieldMappingProperty]
Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: ()
documentDataFieldName :: Value Text
fieldMappings :: Maybe [DataSourceToIndexFieldMappingProperty]
includeFilterTypes :: Maybe (ValueList Text)
haddock_workaround_ :: ()
documentDataFieldName :: Value Text
fieldMappings :: Maybe [DataSourceToIndexFieldMappingProperty]
includeFilterTypes :: Maybe (ValueList Text)
..}
instance Property "FieldMappings" SalesforceChatterFeedConfigurationProperty where
  type PropertyType "FieldMappings" SalesforceChatterFeedConfigurationProperty = [DataSourceToIndexFieldMappingProperty]
  set :: PropertyType
  "FieldMappings" SalesforceChatterFeedConfigurationProperty
-> SalesforceChatterFeedConfigurationProperty
-> SalesforceChatterFeedConfigurationProperty
set PropertyType
  "FieldMappings" SalesforceChatterFeedConfigurationProperty
newValue SalesforceChatterFeedConfigurationProperty {Maybe [DataSourceToIndexFieldMappingProperty]
Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SalesforceChatterFeedConfigurationProperty -> ()
documentDataFieldName :: SalesforceChatterFeedConfigurationProperty -> Value Text
documentTitleFieldName :: SalesforceChatterFeedConfigurationProperty -> Maybe (Value Text)
fieldMappings :: SalesforceChatterFeedConfigurationProperty
-> Maybe [DataSourceToIndexFieldMappingProperty]
includeFilterTypes :: SalesforceChatterFeedConfigurationProperty
-> Maybe (ValueList Text)
haddock_workaround_ :: ()
documentDataFieldName :: Value Text
documentTitleFieldName :: Maybe (Value Text)
fieldMappings :: Maybe [DataSourceToIndexFieldMappingProperty]
includeFilterTypes :: Maybe (ValueList Text)
..}
    = SalesforceChatterFeedConfigurationProperty
        {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" SalesforceChatterFeedConfigurationProperty
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
documentDataFieldName :: Value Text
documentTitleFieldName :: Maybe (Value Text)
includeFilterTypes :: Maybe (ValueList Text)
haddock_workaround_ :: ()
documentDataFieldName :: Value Text
documentTitleFieldName :: Maybe (Value Text)
includeFilterTypes :: Maybe (ValueList Text)
..}
instance Property "IncludeFilterTypes" SalesforceChatterFeedConfigurationProperty where
  type PropertyType "IncludeFilterTypes" SalesforceChatterFeedConfigurationProperty = ValueList Prelude.Text
  set :: PropertyType
  "IncludeFilterTypes" SalesforceChatterFeedConfigurationProperty
-> SalesforceChatterFeedConfigurationProperty
-> SalesforceChatterFeedConfigurationProperty
set PropertyType
  "IncludeFilterTypes" SalesforceChatterFeedConfigurationProperty
newValue SalesforceChatterFeedConfigurationProperty {Maybe [DataSourceToIndexFieldMappingProperty]
Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SalesforceChatterFeedConfigurationProperty -> ()
documentDataFieldName :: SalesforceChatterFeedConfigurationProperty -> Value Text
documentTitleFieldName :: SalesforceChatterFeedConfigurationProperty -> Maybe (Value Text)
fieldMappings :: SalesforceChatterFeedConfigurationProperty
-> Maybe [DataSourceToIndexFieldMappingProperty]
includeFilterTypes :: SalesforceChatterFeedConfigurationProperty
-> Maybe (ValueList Text)
haddock_workaround_ :: ()
documentDataFieldName :: Value Text
documentTitleFieldName :: Maybe (Value Text)
fieldMappings :: Maybe [DataSourceToIndexFieldMappingProperty]
includeFilterTypes :: Maybe (ValueList Text)
..}
    = SalesforceChatterFeedConfigurationProperty
        {includeFilterTypes :: Maybe (ValueList Text)
includeFilterTypes = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "IncludeFilterTypes" SalesforceChatterFeedConfigurationProperty
ValueList 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]
..}