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