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