{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.Kendra.Types.QuipConfiguration where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.Kendra.Types.DataSourceToIndexFieldMapping
import Amazonka.Kendra.Types.DataSourceVpcConfiguration
import qualified Amazonka.Prelude as Prelude
data QuipConfiguration = QuipConfiguration'
{
QuipConfiguration -> Maybe (NonEmpty DataSourceToIndexFieldMapping)
attachmentFieldMappings :: Prelude.Maybe (Prelude.NonEmpty DataSourceToIndexFieldMapping),
QuipConfiguration -> Maybe Bool
crawlAttachments :: Prelude.Maybe Prelude.Bool,
QuipConfiguration -> Maybe Bool
crawlChatRooms :: Prelude.Maybe Prelude.Bool,
:: Prelude.Maybe Prelude.Bool,
QuipConfiguration -> Maybe [Text]
exclusionPatterns :: Prelude.Maybe [Prelude.Text],
QuipConfiguration -> Maybe [Text]
folderIds :: Prelude.Maybe [Prelude.Text],
QuipConfiguration -> Maybe [Text]
inclusionPatterns :: Prelude.Maybe [Prelude.Text],
QuipConfiguration -> Maybe (NonEmpty DataSourceToIndexFieldMapping)
messageFieldMappings :: Prelude.Maybe (Prelude.NonEmpty DataSourceToIndexFieldMapping),
QuipConfiguration -> Maybe (NonEmpty DataSourceToIndexFieldMapping)
threadFieldMappings :: Prelude.Maybe (Prelude.NonEmpty DataSourceToIndexFieldMapping),
QuipConfiguration -> Maybe DataSourceVpcConfiguration
vpcConfiguration :: Prelude.Maybe DataSourceVpcConfiguration,
QuipConfiguration -> Text
domain :: Prelude.Text,
QuipConfiguration -> Text
secretArn :: Prelude.Text
}
deriving (QuipConfiguration -> QuipConfiguration -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: QuipConfiguration -> QuipConfiguration -> Bool
$c/= :: QuipConfiguration -> QuipConfiguration -> Bool
== :: QuipConfiguration -> QuipConfiguration -> Bool
$c== :: QuipConfiguration -> QuipConfiguration -> Bool
Prelude.Eq, ReadPrec [QuipConfiguration]
ReadPrec QuipConfiguration
Int -> ReadS QuipConfiguration
ReadS [QuipConfiguration]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [QuipConfiguration]
$creadListPrec :: ReadPrec [QuipConfiguration]
readPrec :: ReadPrec QuipConfiguration
$creadPrec :: ReadPrec QuipConfiguration
readList :: ReadS [QuipConfiguration]
$creadList :: ReadS [QuipConfiguration]
readsPrec :: Int -> ReadS QuipConfiguration
$creadsPrec :: Int -> ReadS QuipConfiguration
Prelude.Read, Int -> QuipConfiguration -> ShowS
[QuipConfiguration] -> ShowS
QuipConfiguration -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [QuipConfiguration] -> ShowS
$cshowList :: [QuipConfiguration] -> ShowS
show :: QuipConfiguration -> String
$cshow :: QuipConfiguration -> String
showsPrec :: Int -> QuipConfiguration -> ShowS
$cshowsPrec :: Int -> QuipConfiguration -> ShowS
Prelude.Show, forall x. Rep QuipConfiguration x -> QuipConfiguration
forall x. QuipConfiguration -> Rep QuipConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep QuipConfiguration x -> QuipConfiguration
$cfrom :: forall x. QuipConfiguration -> Rep QuipConfiguration x
Prelude.Generic)
newQuipConfiguration ::
Prelude.Text ->
Prelude.Text ->
QuipConfiguration
newQuipConfiguration :: Text -> Text -> QuipConfiguration
newQuipConfiguration Text
pDomain_ Text
pSecretArn_ =
QuipConfiguration'
{ $sel:attachmentFieldMappings:QuipConfiguration' :: Maybe (NonEmpty DataSourceToIndexFieldMapping)
attachmentFieldMappings =
forall a. Maybe a
Prelude.Nothing,
$sel:crawlAttachments:QuipConfiguration' :: Maybe Bool
crawlAttachments = forall a. Maybe a
Prelude.Nothing,
$sel:crawlChatRooms:QuipConfiguration' :: Maybe Bool
crawlChatRooms = forall a. Maybe a
Prelude.Nothing,
$sel:crawlFileComments:QuipConfiguration' :: Maybe Bool
crawlFileComments = forall a. Maybe a
Prelude.Nothing,
$sel:exclusionPatterns:QuipConfiguration' :: Maybe [Text]
exclusionPatterns = forall a. Maybe a
Prelude.Nothing,
$sel:folderIds:QuipConfiguration' :: Maybe [Text]
folderIds = forall a. Maybe a
Prelude.Nothing,
$sel:inclusionPatterns:QuipConfiguration' :: Maybe [Text]
inclusionPatterns = forall a. Maybe a
Prelude.Nothing,
$sel:messageFieldMappings:QuipConfiguration' :: Maybe (NonEmpty DataSourceToIndexFieldMapping)
messageFieldMappings = forall a. Maybe a
Prelude.Nothing,
$sel:threadFieldMappings:QuipConfiguration' :: Maybe (NonEmpty DataSourceToIndexFieldMapping)
threadFieldMappings = forall a. Maybe a
Prelude.Nothing,
$sel:vpcConfiguration:QuipConfiguration' :: Maybe DataSourceVpcConfiguration
vpcConfiguration = forall a. Maybe a
Prelude.Nothing,
$sel:domain:QuipConfiguration' :: Text
domain = Text
pDomain_,
$sel:secretArn:QuipConfiguration' :: Text
secretArn = Text
pSecretArn_
}
quipConfiguration_attachmentFieldMappings :: Lens.Lens' QuipConfiguration (Prelude.Maybe (Prelude.NonEmpty DataSourceToIndexFieldMapping))
quipConfiguration_attachmentFieldMappings :: Lens'
QuipConfiguration (Maybe (NonEmpty DataSourceToIndexFieldMapping))
quipConfiguration_attachmentFieldMappings = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\QuipConfiguration' {Maybe (NonEmpty DataSourceToIndexFieldMapping)
attachmentFieldMappings :: Maybe (NonEmpty DataSourceToIndexFieldMapping)
$sel:attachmentFieldMappings:QuipConfiguration' :: QuipConfiguration -> Maybe (NonEmpty DataSourceToIndexFieldMapping)
attachmentFieldMappings} -> Maybe (NonEmpty DataSourceToIndexFieldMapping)
attachmentFieldMappings) (\s :: QuipConfiguration
s@QuipConfiguration' {} Maybe (NonEmpty DataSourceToIndexFieldMapping)
a -> QuipConfiguration
s {$sel:attachmentFieldMappings:QuipConfiguration' :: Maybe (NonEmpty DataSourceToIndexFieldMapping)
attachmentFieldMappings = Maybe (NonEmpty DataSourceToIndexFieldMapping)
a} :: QuipConfiguration) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
quipConfiguration_crawlAttachments :: Lens.Lens' QuipConfiguration (Prelude.Maybe Prelude.Bool)
quipConfiguration_crawlAttachments :: Lens' QuipConfiguration (Maybe Bool)
quipConfiguration_crawlAttachments = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\QuipConfiguration' {Maybe Bool
crawlAttachments :: Maybe Bool
$sel:crawlAttachments:QuipConfiguration' :: QuipConfiguration -> Maybe Bool
crawlAttachments} -> Maybe Bool
crawlAttachments) (\s :: QuipConfiguration
s@QuipConfiguration' {} Maybe Bool
a -> QuipConfiguration
s {$sel:crawlAttachments:QuipConfiguration' :: Maybe Bool
crawlAttachments = Maybe Bool
a} :: QuipConfiguration)
quipConfiguration_crawlChatRooms :: Lens.Lens' QuipConfiguration (Prelude.Maybe Prelude.Bool)
quipConfiguration_crawlChatRooms :: Lens' QuipConfiguration (Maybe Bool)
quipConfiguration_crawlChatRooms = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\QuipConfiguration' {Maybe Bool
crawlChatRooms :: Maybe Bool
$sel:crawlChatRooms:QuipConfiguration' :: QuipConfiguration -> Maybe Bool
crawlChatRooms} -> Maybe Bool
crawlChatRooms) (\s :: QuipConfiguration
s@QuipConfiguration' {} Maybe Bool
a -> QuipConfiguration
s {$sel:crawlChatRooms:QuipConfiguration' :: Maybe Bool
crawlChatRooms = Maybe Bool
a} :: QuipConfiguration)
quipConfiguration_crawlFileComments :: Lens.Lens' QuipConfiguration (Prelude.Maybe Prelude.Bool)
= forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\QuipConfiguration' {Maybe Bool
crawlFileComments :: Maybe Bool
$sel:crawlFileComments:QuipConfiguration' :: QuipConfiguration -> Maybe Bool
crawlFileComments} -> Maybe Bool
crawlFileComments) (\s :: QuipConfiguration
s@QuipConfiguration' {} Maybe Bool
a -> QuipConfiguration
s {$sel:crawlFileComments:QuipConfiguration' :: Maybe Bool
crawlFileComments = Maybe Bool
a} :: QuipConfiguration)
quipConfiguration_exclusionPatterns :: Lens.Lens' QuipConfiguration (Prelude.Maybe [Prelude.Text])
quipConfiguration_exclusionPatterns :: Lens' QuipConfiguration (Maybe [Text])
quipConfiguration_exclusionPatterns = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\QuipConfiguration' {Maybe [Text]
exclusionPatterns :: Maybe [Text]
$sel:exclusionPatterns:QuipConfiguration' :: QuipConfiguration -> Maybe [Text]
exclusionPatterns} -> Maybe [Text]
exclusionPatterns) (\s :: QuipConfiguration
s@QuipConfiguration' {} Maybe [Text]
a -> QuipConfiguration
s {$sel:exclusionPatterns:QuipConfiguration' :: Maybe [Text]
exclusionPatterns = Maybe [Text]
a} :: QuipConfiguration) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
quipConfiguration_folderIds :: Lens.Lens' QuipConfiguration (Prelude.Maybe [Prelude.Text])
quipConfiguration_folderIds :: Lens' QuipConfiguration (Maybe [Text])
quipConfiguration_folderIds = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\QuipConfiguration' {Maybe [Text]
folderIds :: Maybe [Text]
$sel:folderIds:QuipConfiguration' :: QuipConfiguration -> Maybe [Text]
folderIds} -> Maybe [Text]
folderIds) (\s :: QuipConfiguration
s@QuipConfiguration' {} Maybe [Text]
a -> QuipConfiguration
s {$sel:folderIds:QuipConfiguration' :: Maybe [Text]
folderIds = Maybe [Text]
a} :: QuipConfiguration) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
quipConfiguration_inclusionPatterns :: Lens.Lens' QuipConfiguration (Prelude.Maybe [Prelude.Text])
quipConfiguration_inclusionPatterns :: Lens' QuipConfiguration (Maybe [Text])
quipConfiguration_inclusionPatterns = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\QuipConfiguration' {Maybe [Text]
inclusionPatterns :: Maybe [Text]
$sel:inclusionPatterns:QuipConfiguration' :: QuipConfiguration -> Maybe [Text]
inclusionPatterns} -> Maybe [Text]
inclusionPatterns) (\s :: QuipConfiguration
s@QuipConfiguration' {} Maybe [Text]
a -> QuipConfiguration
s {$sel:inclusionPatterns:QuipConfiguration' :: Maybe [Text]
inclusionPatterns = Maybe [Text]
a} :: QuipConfiguration) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
quipConfiguration_messageFieldMappings :: Lens.Lens' QuipConfiguration (Prelude.Maybe (Prelude.NonEmpty DataSourceToIndexFieldMapping))
quipConfiguration_messageFieldMappings :: Lens'
QuipConfiguration (Maybe (NonEmpty DataSourceToIndexFieldMapping))
quipConfiguration_messageFieldMappings = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\QuipConfiguration' {Maybe (NonEmpty DataSourceToIndexFieldMapping)
messageFieldMappings :: Maybe (NonEmpty DataSourceToIndexFieldMapping)
$sel:messageFieldMappings:QuipConfiguration' :: QuipConfiguration -> Maybe (NonEmpty DataSourceToIndexFieldMapping)
messageFieldMappings} -> Maybe (NonEmpty DataSourceToIndexFieldMapping)
messageFieldMappings) (\s :: QuipConfiguration
s@QuipConfiguration' {} Maybe (NonEmpty DataSourceToIndexFieldMapping)
a -> QuipConfiguration
s {$sel:messageFieldMappings:QuipConfiguration' :: Maybe (NonEmpty DataSourceToIndexFieldMapping)
messageFieldMappings = Maybe (NonEmpty DataSourceToIndexFieldMapping)
a} :: QuipConfiguration) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
quipConfiguration_threadFieldMappings :: Lens.Lens' QuipConfiguration (Prelude.Maybe (Prelude.NonEmpty DataSourceToIndexFieldMapping))
quipConfiguration_threadFieldMappings :: Lens'
QuipConfiguration (Maybe (NonEmpty DataSourceToIndexFieldMapping))
quipConfiguration_threadFieldMappings = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\QuipConfiguration' {Maybe (NonEmpty DataSourceToIndexFieldMapping)
threadFieldMappings :: Maybe (NonEmpty DataSourceToIndexFieldMapping)
$sel:threadFieldMappings:QuipConfiguration' :: QuipConfiguration -> Maybe (NonEmpty DataSourceToIndexFieldMapping)
threadFieldMappings} -> Maybe (NonEmpty DataSourceToIndexFieldMapping)
threadFieldMappings) (\s :: QuipConfiguration
s@QuipConfiguration' {} Maybe (NonEmpty DataSourceToIndexFieldMapping)
a -> QuipConfiguration
s {$sel:threadFieldMappings:QuipConfiguration' :: Maybe (NonEmpty DataSourceToIndexFieldMapping)
threadFieldMappings = Maybe (NonEmpty DataSourceToIndexFieldMapping)
a} :: QuipConfiguration) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
quipConfiguration_vpcConfiguration :: Lens.Lens' QuipConfiguration (Prelude.Maybe DataSourceVpcConfiguration)
quipConfiguration_vpcConfiguration :: Lens' QuipConfiguration (Maybe DataSourceVpcConfiguration)
quipConfiguration_vpcConfiguration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\QuipConfiguration' {Maybe DataSourceVpcConfiguration
vpcConfiguration :: Maybe DataSourceVpcConfiguration
$sel:vpcConfiguration:QuipConfiguration' :: QuipConfiguration -> Maybe DataSourceVpcConfiguration
vpcConfiguration} -> Maybe DataSourceVpcConfiguration
vpcConfiguration) (\s :: QuipConfiguration
s@QuipConfiguration' {} Maybe DataSourceVpcConfiguration
a -> QuipConfiguration
s {$sel:vpcConfiguration:QuipConfiguration' :: Maybe DataSourceVpcConfiguration
vpcConfiguration = Maybe DataSourceVpcConfiguration
a} :: QuipConfiguration)
quipConfiguration_domain :: Lens.Lens' QuipConfiguration Prelude.Text
quipConfiguration_domain :: Lens' QuipConfiguration Text
quipConfiguration_domain = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\QuipConfiguration' {Text
domain :: Text
$sel:domain:QuipConfiguration' :: QuipConfiguration -> Text
domain} -> Text
domain) (\s :: QuipConfiguration
s@QuipConfiguration' {} Text
a -> QuipConfiguration
s {$sel:domain:QuipConfiguration' :: Text
domain = Text
a} :: QuipConfiguration)
quipConfiguration_secretArn :: Lens.Lens' QuipConfiguration Prelude.Text
quipConfiguration_secretArn :: Lens' QuipConfiguration Text
quipConfiguration_secretArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\QuipConfiguration' {Text
secretArn :: Text
$sel:secretArn:QuipConfiguration' :: QuipConfiguration -> Text
secretArn} -> Text
secretArn) (\s :: QuipConfiguration
s@QuipConfiguration' {} Text
a -> QuipConfiguration
s {$sel:secretArn:QuipConfiguration' :: Text
secretArn = Text
a} :: QuipConfiguration)
instance Data.FromJSON QuipConfiguration where
parseJSON :: Value -> Parser QuipConfiguration
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"QuipConfiguration"
( \Object
x ->
Maybe (NonEmpty DataSourceToIndexFieldMapping)
-> Maybe Bool
-> Maybe Bool
-> Maybe Bool
-> Maybe [Text]
-> Maybe [Text]
-> Maybe [Text]
-> Maybe (NonEmpty DataSourceToIndexFieldMapping)
-> Maybe (NonEmpty DataSourceToIndexFieldMapping)
-> Maybe DataSourceVpcConfiguration
-> Text
-> Text
-> QuipConfiguration
QuipConfiguration'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"AttachmentFieldMappings")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"CrawlAttachments")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"CrawlChatRooms")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"CrawlFileComments")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ExclusionPatterns"
forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"FolderIds" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"InclusionPatterns"
forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"MessageFieldMappings")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ThreadFieldMappings")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"VpcConfiguration")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"Domain")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"SecretArn")
)
instance Prelude.Hashable QuipConfiguration where
hashWithSalt :: Int -> QuipConfiguration -> Int
hashWithSalt Int
_salt QuipConfiguration' {Maybe Bool
Maybe [Text]
Maybe (NonEmpty DataSourceToIndexFieldMapping)
Maybe DataSourceVpcConfiguration
Text
secretArn :: Text
domain :: Text
vpcConfiguration :: Maybe DataSourceVpcConfiguration
threadFieldMappings :: Maybe (NonEmpty DataSourceToIndexFieldMapping)
messageFieldMappings :: Maybe (NonEmpty DataSourceToIndexFieldMapping)
inclusionPatterns :: Maybe [Text]
folderIds :: Maybe [Text]
exclusionPatterns :: Maybe [Text]
crawlFileComments :: Maybe Bool
crawlChatRooms :: Maybe Bool
crawlAttachments :: Maybe Bool
attachmentFieldMappings :: Maybe (NonEmpty DataSourceToIndexFieldMapping)
$sel:secretArn:QuipConfiguration' :: QuipConfiguration -> Text
$sel:domain:QuipConfiguration' :: QuipConfiguration -> Text
$sel:vpcConfiguration:QuipConfiguration' :: QuipConfiguration -> Maybe DataSourceVpcConfiguration
$sel:threadFieldMappings:QuipConfiguration' :: QuipConfiguration -> Maybe (NonEmpty DataSourceToIndexFieldMapping)
$sel:messageFieldMappings:QuipConfiguration' :: QuipConfiguration -> Maybe (NonEmpty DataSourceToIndexFieldMapping)
$sel:inclusionPatterns:QuipConfiguration' :: QuipConfiguration -> Maybe [Text]
$sel:folderIds:QuipConfiguration' :: QuipConfiguration -> Maybe [Text]
$sel:exclusionPatterns:QuipConfiguration' :: QuipConfiguration -> Maybe [Text]
$sel:crawlFileComments:QuipConfiguration' :: QuipConfiguration -> Maybe Bool
$sel:crawlChatRooms:QuipConfiguration' :: QuipConfiguration -> Maybe Bool
$sel:crawlAttachments:QuipConfiguration' :: QuipConfiguration -> Maybe Bool
$sel:attachmentFieldMappings:QuipConfiguration' :: QuipConfiguration -> Maybe (NonEmpty DataSourceToIndexFieldMapping)
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (NonEmpty DataSourceToIndexFieldMapping)
attachmentFieldMappings
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
crawlAttachments
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
crawlChatRooms
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
crawlFileComments
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
exclusionPatterns
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
folderIds
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
inclusionPatterns
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (NonEmpty DataSourceToIndexFieldMapping)
messageFieldMappings
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (NonEmpty DataSourceToIndexFieldMapping)
threadFieldMappings
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe DataSourceVpcConfiguration
vpcConfiguration
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
domain
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
secretArn
instance Prelude.NFData QuipConfiguration where
rnf :: QuipConfiguration -> ()
rnf QuipConfiguration' {Maybe Bool
Maybe [Text]
Maybe (NonEmpty DataSourceToIndexFieldMapping)
Maybe DataSourceVpcConfiguration
Text
secretArn :: Text
domain :: Text
vpcConfiguration :: Maybe DataSourceVpcConfiguration
threadFieldMappings :: Maybe (NonEmpty DataSourceToIndexFieldMapping)
messageFieldMappings :: Maybe (NonEmpty DataSourceToIndexFieldMapping)
inclusionPatterns :: Maybe [Text]
folderIds :: Maybe [Text]
exclusionPatterns :: Maybe [Text]
crawlFileComments :: Maybe Bool
crawlChatRooms :: Maybe Bool
crawlAttachments :: Maybe Bool
attachmentFieldMappings :: Maybe (NonEmpty DataSourceToIndexFieldMapping)
$sel:secretArn:QuipConfiguration' :: QuipConfiguration -> Text
$sel:domain:QuipConfiguration' :: QuipConfiguration -> Text
$sel:vpcConfiguration:QuipConfiguration' :: QuipConfiguration -> Maybe DataSourceVpcConfiguration
$sel:threadFieldMappings:QuipConfiguration' :: QuipConfiguration -> Maybe (NonEmpty DataSourceToIndexFieldMapping)
$sel:messageFieldMappings:QuipConfiguration' :: QuipConfiguration -> Maybe (NonEmpty DataSourceToIndexFieldMapping)
$sel:inclusionPatterns:QuipConfiguration' :: QuipConfiguration -> Maybe [Text]
$sel:folderIds:QuipConfiguration' :: QuipConfiguration -> Maybe [Text]
$sel:exclusionPatterns:QuipConfiguration' :: QuipConfiguration -> Maybe [Text]
$sel:crawlFileComments:QuipConfiguration' :: QuipConfiguration -> Maybe Bool
$sel:crawlChatRooms:QuipConfiguration' :: QuipConfiguration -> Maybe Bool
$sel:crawlAttachments:QuipConfiguration' :: QuipConfiguration -> Maybe Bool
$sel:attachmentFieldMappings:QuipConfiguration' :: QuipConfiguration -> Maybe (NonEmpty DataSourceToIndexFieldMapping)
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe (NonEmpty DataSourceToIndexFieldMapping)
attachmentFieldMappings
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
crawlAttachments
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
crawlChatRooms
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
crawlFileComments
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
exclusionPatterns
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
folderIds
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
inclusionPatterns
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (NonEmpty DataSourceToIndexFieldMapping)
messageFieldMappings
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (NonEmpty DataSourceToIndexFieldMapping)
threadFieldMappings
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe DataSourceVpcConfiguration
vpcConfiguration
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
domain
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
secretArn
instance Data.ToJSON QuipConfiguration where
toJSON :: QuipConfiguration -> Value
toJSON QuipConfiguration' {Maybe Bool
Maybe [Text]
Maybe (NonEmpty DataSourceToIndexFieldMapping)
Maybe DataSourceVpcConfiguration
Text
secretArn :: Text
domain :: Text
vpcConfiguration :: Maybe DataSourceVpcConfiguration
threadFieldMappings :: Maybe (NonEmpty DataSourceToIndexFieldMapping)
messageFieldMappings :: Maybe (NonEmpty DataSourceToIndexFieldMapping)
inclusionPatterns :: Maybe [Text]
folderIds :: Maybe [Text]
exclusionPatterns :: Maybe [Text]
crawlFileComments :: Maybe Bool
crawlChatRooms :: Maybe Bool
crawlAttachments :: Maybe Bool
attachmentFieldMappings :: Maybe (NonEmpty DataSourceToIndexFieldMapping)
$sel:secretArn:QuipConfiguration' :: QuipConfiguration -> Text
$sel:domain:QuipConfiguration' :: QuipConfiguration -> Text
$sel:vpcConfiguration:QuipConfiguration' :: QuipConfiguration -> Maybe DataSourceVpcConfiguration
$sel:threadFieldMappings:QuipConfiguration' :: QuipConfiguration -> Maybe (NonEmpty DataSourceToIndexFieldMapping)
$sel:messageFieldMappings:QuipConfiguration' :: QuipConfiguration -> Maybe (NonEmpty DataSourceToIndexFieldMapping)
$sel:inclusionPatterns:QuipConfiguration' :: QuipConfiguration -> Maybe [Text]
$sel:folderIds:QuipConfiguration' :: QuipConfiguration -> Maybe [Text]
$sel:exclusionPatterns:QuipConfiguration' :: QuipConfiguration -> Maybe [Text]
$sel:crawlFileComments:QuipConfiguration' :: QuipConfiguration -> Maybe Bool
$sel:crawlChatRooms:QuipConfiguration' :: QuipConfiguration -> Maybe Bool
$sel:crawlAttachments:QuipConfiguration' :: QuipConfiguration -> Maybe Bool
$sel:attachmentFieldMappings:QuipConfiguration' :: QuipConfiguration -> Maybe (NonEmpty DataSourceToIndexFieldMapping)
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"AttachmentFieldMappings" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty DataSourceToIndexFieldMapping)
attachmentFieldMappings,
(Key
"CrawlAttachments" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
crawlAttachments,
(Key
"CrawlChatRooms" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
crawlChatRooms,
(Key
"CrawlFileComments" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
crawlFileComments,
(Key
"ExclusionPatterns" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
exclusionPatterns,
(Key
"FolderIds" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
folderIds,
(Key
"InclusionPatterns" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
inclusionPatterns,
(Key
"MessageFieldMappings" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty DataSourceToIndexFieldMapping)
messageFieldMappings,
(Key
"ThreadFieldMappings" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty DataSourceToIndexFieldMapping)
threadFieldMappings,
(Key
"VpcConfiguration" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DataSourceVpcConfiguration
vpcConfiguration,
forall a. a -> Maybe a
Prelude.Just (Key
"Domain" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
domain),
forall a. a -> Maybe a
Prelude.Just (Key
"SecretArn" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
secretArn)
]
)