module Stratosphere.Kendra.DataSource.ConfluencePageToIndexFieldMappingProperty (
ConfluencePageToIndexFieldMappingProperty(..),
mkConfluencePageToIndexFieldMappingProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ConfluencePageToIndexFieldMappingProperty
=
ConfluencePageToIndexFieldMappingProperty {ConfluencePageToIndexFieldMappingProperty -> ()
haddock_workaround_ :: (),
ConfluencePageToIndexFieldMappingProperty -> Value Text
dataSourceFieldName :: (Value Prelude.Text),
ConfluencePageToIndexFieldMappingProperty -> Maybe (Value Text)
dateFieldFormat :: (Prelude.Maybe (Value Prelude.Text)),
ConfluencePageToIndexFieldMappingProperty -> Value Text
indexFieldName :: (Value Prelude.Text)}
deriving stock (ConfluencePageToIndexFieldMappingProperty
-> ConfluencePageToIndexFieldMappingProperty -> Bool
(ConfluencePageToIndexFieldMappingProperty
-> ConfluencePageToIndexFieldMappingProperty -> Bool)
-> (ConfluencePageToIndexFieldMappingProperty
-> ConfluencePageToIndexFieldMappingProperty -> Bool)
-> Eq ConfluencePageToIndexFieldMappingProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ConfluencePageToIndexFieldMappingProperty
-> ConfluencePageToIndexFieldMappingProperty -> Bool
== :: ConfluencePageToIndexFieldMappingProperty
-> ConfluencePageToIndexFieldMappingProperty -> Bool
$c/= :: ConfluencePageToIndexFieldMappingProperty
-> ConfluencePageToIndexFieldMappingProperty -> Bool
/= :: ConfluencePageToIndexFieldMappingProperty
-> ConfluencePageToIndexFieldMappingProperty -> Bool
Prelude.Eq, Int -> ConfluencePageToIndexFieldMappingProperty -> ShowS
[ConfluencePageToIndexFieldMappingProperty] -> ShowS
ConfluencePageToIndexFieldMappingProperty -> String
(Int -> ConfluencePageToIndexFieldMappingProperty -> ShowS)
-> (ConfluencePageToIndexFieldMappingProperty -> String)
-> ([ConfluencePageToIndexFieldMappingProperty] -> ShowS)
-> Show ConfluencePageToIndexFieldMappingProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ConfluencePageToIndexFieldMappingProperty -> ShowS
showsPrec :: Int -> ConfluencePageToIndexFieldMappingProperty -> ShowS
$cshow :: ConfluencePageToIndexFieldMappingProperty -> String
show :: ConfluencePageToIndexFieldMappingProperty -> String
$cshowList :: [ConfluencePageToIndexFieldMappingProperty] -> ShowS
showList :: [ConfluencePageToIndexFieldMappingProperty] -> ShowS
Prelude.Show)
mkConfluencePageToIndexFieldMappingProperty ::
Value Prelude.Text
-> Value Prelude.Text -> ConfluencePageToIndexFieldMappingProperty
mkConfluencePageToIndexFieldMappingProperty :: Value Text
-> Value Text -> ConfluencePageToIndexFieldMappingProperty
mkConfluencePageToIndexFieldMappingProperty
Value Text
dataSourceFieldName
Value Text
indexFieldName
= ConfluencePageToIndexFieldMappingProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
dataSourceFieldName :: Value Text
dataSourceFieldName = Value Text
dataSourceFieldName,
indexFieldName :: Value Text
indexFieldName = Value Text
indexFieldName, dateFieldFormat :: Maybe (Value Text)
dateFieldFormat = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ConfluencePageToIndexFieldMappingProperty where
toResourceProperties :: ConfluencePageToIndexFieldMappingProperty -> ResourceProperties
toResourceProperties ConfluencePageToIndexFieldMappingProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ConfluencePageToIndexFieldMappingProperty -> ()
dataSourceFieldName :: ConfluencePageToIndexFieldMappingProperty -> Value Text
dateFieldFormat :: ConfluencePageToIndexFieldMappingProperty -> Maybe (Value Text)
indexFieldName :: ConfluencePageToIndexFieldMappingProperty -> Value Text
haddock_workaround_ :: ()
dataSourceFieldName :: Value Text
dateFieldFormat :: Maybe (Value Text)
indexFieldName :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Kendra::DataSource.ConfluencePageToIndexFieldMapping",
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
"DataSourceFieldName" 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
dataSourceFieldName,
Key
"IndexFieldName" 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
indexFieldName]
([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
"DateFieldFormat" (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)
dateFieldFormat]))}
instance JSON.ToJSON ConfluencePageToIndexFieldMappingProperty where
toJSON :: ConfluencePageToIndexFieldMappingProperty -> Value
toJSON ConfluencePageToIndexFieldMappingProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ConfluencePageToIndexFieldMappingProperty -> ()
dataSourceFieldName :: ConfluencePageToIndexFieldMappingProperty -> Value Text
dateFieldFormat :: ConfluencePageToIndexFieldMappingProperty -> Maybe (Value Text)
indexFieldName :: ConfluencePageToIndexFieldMappingProperty -> Value Text
haddock_workaround_ :: ()
dataSourceFieldName :: Value Text
dateFieldFormat :: Maybe (Value Text)
indexFieldName :: 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
"DataSourceFieldName" 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
dataSourceFieldName,
Key
"IndexFieldName" 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
indexFieldName]
([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
"DateFieldFormat" (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)
dateFieldFormat])))
instance Property "DataSourceFieldName" ConfluencePageToIndexFieldMappingProperty where
type PropertyType "DataSourceFieldName" ConfluencePageToIndexFieldMappingProperty = Value Prelude.Text
set :: PropertyType
"DataSourceFieldName" ConfluencePageToIndexFieldMappingProperty
-> ConfluencePageToIndexFieldMappingProperty
-> ConfluencePageToIndexFieldMappingProperty
set PropertyType
"DataSourceFieldName" ConfluencePageToIndexFieldMappingProperty
newValue ConfluencePageToIndexFieldMappingProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ConfluencePageToIndexFieldMappingProperty -> ()
dataSourceFieldName :: ConfluencePageToIndexFieldMappingProperty -> Value Text
dateFieldFormat :: ConfluencePageToIndexFieldMappingProperty -> Maybe (Value Text)
indexFieldName :: ConfluencePageToIndexFieldMappingProperty -> Value Text
haddock_workaround_ :: ()
dataSourceFieldName :: Value Text
dateFieldFormat :: Maybe (Value Text)
indexFieldName :: Value Text
..}
= ConfluencePageToIndexFieldMappingProperty
{dataSourceFieldName :: Value Text
dataSourceFieldName = PropertyType
"DataSourceFieldName" ConfluencePageToIndexFieldMappingProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
dateFieldFormat :: Maybe (Value Text)
indexFieldName :: Value Text
haddock_workaround_ :: ()
dateFieldFormat :: Maybe (Value Text)
indexFieldName :: Value Text
..}
instance Property "DateFieldFormat" ConfluencePageToIndexFieldMappingProperty where
type PropertyType "DateFieldFormat" ConfluencePageToIndexFieldMappingProperty = Value Prelude.Text
set :: PropertyType
"DateFieldFormat" ConfluencePageToIndexFieldMappingProperty
-> ConfluencePageToIndexFieldMappingProperty
-> ConfluencePageToIndexFieldMappingProperty
set PropertyType
"DateFieldFormat" ConfluencePageToIndexFieldMappingProperty
newValue ConfluencePageToIndexFieldMappingProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ConfluencePageToIndexFieldMappingProperty -> ()
dataSourceFieldName :: ConfluencePageToIndexFieldMappingProperty -> Value Text
dateFieldFormat :: ConfluencePageToIndexFieldMappingProperty -> Maybe (Value Text)
indexFieldName :: ConfluencePageToIndexFieldMappingProperty -> Value Text
haddock_workaround_ :: ()
dataSourceFieldName :: Value Text
dateFieldFormat :: Maybe (Value Text)
indexFieldName :: Value Text
..}
= ConfluencePageToIndexFieldMappingProperty
{dateFieldFormat :: Maybe (Value Text)
dateFieldFormat = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"DateFieldFormat" ConfluencePageToIndexFieldMappingProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
dataSourceFieldName :: Value Text
indexFieldName :: Value Text
haddock_workaround_ :: ()
dataSourceFieldName :: Value Text
indexFieldName :: Value Text
..}
instance Property "IndexFieldName" ConfluencePageToIndexFieldMappingProperty where
type PropertyType "IndexFieldName" ConfluencePageToIndexFieldMappingProperty = Value Prelude.Text
set :: PropertyType
"IndexFieldName" ConfluencePageToIndexFieldMappingProperty
-> ConfluencePageToIndexFieldMappingProperty
-> ConfluencePageToIndexFieldMappingProperty
set PropertyType
"IndexFieldName" ConfluencePageToIndexFieldMappingProperty
newValue ConfluencePageToIndexFieldMappingProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ConfluencePageToIndexFieldMappingProperty -> ()
dataSourceFieldName :: ConfluencePageToIndexFieldMappingProperty -> Value Text
dateFieldFormat :: ConfluencePageToIndexFieldMappingProperty -> Maybe (Value Text)
indexFieldName :: ConfluencePageToIndexFieldMappingProperty -> Value Text
haddock_workaround_ :: ()
dataSourceFieldName :: Value Text
dateFieldFormat :: Maybe (Value Text)
indexFieldName :: Value Text
..}
= ConfluencePageToIndexFieldMappingProperty
{indexFieldName :: Value Text
indexFieldName = PropertyType
"IndexFieldName" ConfluencePageToIndexFieldMappingProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
dataSourceFieldName :: Value Text
dateFieldFormat :: Maybe (Value Text)
haddock_workaround_ :: ()
dataSourceFieldName :: Value Text
dateFieldFormat :: Maybe (Value Text)
..}