{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Kendra.Types.AlfrescoConfiguration
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Kendra.Types.AlfrescoConfiguration 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.AlfrescoEntity
import Amazonka.Kendra.Types.DataSourceToIndexFieldMapping
import Amazonka.Kendra.Types.DataSourceVpcConfiguration
import Amazonka.Kendra.Types.S3Path
import qualified Amazonka.Prelude as Prelude

-- | Provides the configuration information to connect to Alfresco as your
-- data source.
--
-- Alfresco data source connector is currently in preview mode. Basic
-- authentication is currently supported. If you would like to use Alfresco
-- connector in production, contact
-- <http://aws.amazon.com/contact-us/ Support>.
--
-- /See:/ 'newAlfrescoConfiguration' smart constructor.
data AlfrescoConfiguration = AlfrescoConfiguration'
  { -- | A list of @DataSourceToIndexFieldMapping@ objects that map attributes or
    -- field names of Alfresco blogs to Amazon Kendra index field names. To
    -- create custom fields, use the @UpdateIndex@ API before you map to
    -- Alfresco fields. For more information, see
    -- <https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html Mapping data source fields>.
    -- The Alfresco data source field names must exist in your Alfresco custom
    -- metadata.
    AlfrescoConfiguration
-> Maybe (NonEmpty DataSourceToIndexFieldMapping)
blogFieldMappings :: Prelude.Maybe (Prelude.NonEmpty DataSourceToIndexFieldMapping),
    -- | @TRUE@ to index comments of blogs and other content.
    AlfrescoConfiguration -> Maybe Bool
crawlComments :: Prelude.Maybe Prelude.Bool,
    -- | @TRUE@ to index shared files.
    AlfrescoConfiguration -> Maybe Bool
crawlSystemFolders :: Prelude.Maybe Prelude.Bool,
    -- | A list of @DataSourceToIndexFieldMapping@ objects that map attributes or
    -- field names of Alfresco document libraries to Amazon Kendra index field
    -- names. To create custom fields, use the @UpdateIndex@ API before you map
    -- to Alfresco fields. For more information, see
    -- <https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html Mapping data source fields>.
    -- The Alfresco data source field names must exist in your Alfresco custom
    -- metadata.
    AlfrescoConfiguration
-> Maybe (NonEmpty DataSourceToIndexFieldMapping)
documentLibraryFieldMappings :: Prelude.Maybe (Prelude.NonEmpty DataSourceToIndexFieldMapping),
    -- | Specify whether to index document libraries, wikis, or blogs. You can
    -- specify one or more of these options.
    AlfrescoConfiguration -> Maybe (NonEmpty AlfrescoEntity)
entityFilter :: Prelude.Maybe (Prelude.NonEmpty AlfrescoEntity),
    -- | A list of regular expression patterns to exclude certain files in your
    -- Alfresco data source. Files that match the patterns are excluded from
    -- the index. Files that don\'t match the patterns are included in the
    -- index. If a file matches both an inclusion pattern and an exclusion
    -- pattern, the exclusion pattern takes precedence and the file isn\'t
    -- included in the index.
    AlfrescoConfiguration -> Maybe [Text]
exclusionPatterns :: Prelude.Maybe [Prelude.Text],
    -- | A list of regular expression patterns to include certain files in your
    -- Alfresco data source. Files that match the patterns are included in the
    -- index. Files that don\'t match the patterns are excluded from the index.
    -- If a file matches both an inclusion pattern and an exclusion pattern,
    -- the exclusion pattern takes precedence and the file isn\'t included in
    -- the index.
    AlfrescoConfiguration -> Maybe [Text]
inclusionPatterns :: Prelude.Maybe [Prelude.Text],
    -- | Configuration information for an Amazon Virtual Private Cloud to connect
    -- to your Alfresco. For more information, see
    -- <https://docs.aws.amazon.com/kendra/latest/dg/vpc-configuration.html Configuring a VPC>.
    AlfrescoConfiguration -> Maybe DataSourceVpcConfiguration
vpcConfiguration :: Prelude.Maybe DataSourceVpcConfiguration,
    -- | A list of @DataSourceToIndexFieldMapping@ objects that map attributes or
    -- field names of Alfresco wikis to Amazon Kendra index field names. To
    -- create custom fields, use the @UpdateIndex@ API before you map to
    -- Alfresco fields. For more information, see
    -- <https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html Mapping data source fields>.
    -- The Alfresco data source field names must exist in your Alfresco custom
    -- metadata.
    AlfrescoConfiguration
-> Maybe (NonEmpty DataSourceToIndexFieldMapping)
wikiFieldMappings :: Prelude.Maybe (Prelude.NonEmpty DataSourceToIndexFieldMapping),
    -- | The URL of the Alfresco site. For example, /https:\/\/hostname:8080/.
    AlfrescoConfiguration -> Text
siteUrl :: Prelude.Text,
    -- | The identifier of the Alfresco site. For example, /my-site/.
    AlfrescoConfiguration -> Text
siteId :: Prelude.Text,
    -- | The Amazon Resource Name (ARN) of an Secrets Manager secret that
    -- contains the key-value pairs required to connect to your Alfresco data
    -- source. The secret must contain a JSON structure with the following
    -- keys:
    --
    -- -   username—The user name of the Alfresco account.
    --
    -- -   password—The password of the Alfresco account.
    AlfrescoConfiguration -> Text
secretArn :: Prelude.Text,
    -- | The path to the SSL certificate stored in an Amazon S3 bucket. You use
    -- this to connect to Alfresco if you require a secure SSL connection.
    --
    -- You can simply generate a self-signed X509 certificate on any computer
    -- using OpenSSL. For an example of using OpenSSL to create an X509
    -- certificate, see
    -- <https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/configuring-https-ssl.html Create and sign an X509 certificate>.
    AlfrescoConfiguration -> S3Path
sslCertificateS3Path :: S3Path
  }
  deriving (AlfrescoConfiguration -> AlfrescoConfiguration -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AlfrescoConfiguration -> AlfrescoConfiguration -> Bool
$c/= :: AlfrescoConfiguration -> AlfrescoConfiguration -> Bool
== :: AlfrescoConfiguration -> AlfrescoConfiguration -> Bool
$c== :: AlfrescoConfiguration -> AlfrescoConfiguration -> Bool
Prelude.Eq, ReadPrec [AlfrescoConfiguration]
ReadPrec AlfrescoConfiguration
Int -> ReadS AlfrescoConfiguration
ReadS [AlfrescoConfiguration]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AlfrescoConfiguration]
$creadListPrec :: ReadPrec [AlfrescoConfiguration]
readPrec :: ReadPrec AlfrescoConfiguration
$creadPrec :: ReadPrec AlfrescoConfiguration
readList :: ReadS [AlfrescoConfiguration]
$creadList :: ReadS [AlfrescoConfiguration]
readsPrec :: Int -> ReadS AlfrescoConfiguration
$creadsPrec :: Int -> ReadS AlfrescoConfiguration
Prelude.Read, Int -> AlfrescoConfiguration -> ShowS
[AlfrescoConfiguration] -> ShowS
AlfrescoConfiguration -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AlfrescoConfiguration] -> ShowS
$cshowList :: [AlfrescoConfiguration] -> ShowS
show :: AlfrescoConfiguration -> String
$cshow :: AlfrescoConfiguration -> String
showsPrec :: Int -> AlfrescoConfiguration -> ShowS
$cshowsPrec :: Int -> AlfrescoConfiguration -> ShowS
Prelude.Show, forall x. Rep AlfrescoConfiguration x -> AlfrescoConfiguration
forall x. AlfrescoConfiguration -> Rep AlfrescoConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AlfrescoConfiguration x -> AlfrescoConfiguration
$cfrom :: forall x. AlfrescoConfiguration -> Rep AlfrescoConfiguration x
Prelude.Generic)

-- |
-- Create a value of 'AlfrescoConfiguration' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'blogFieldMappings', 'alfrescoConfiguration_blogFieldMappings' - A list of @DataSourceToIndexFieldMapping@ objects that map attributes or
-- field names of Alfresco blogs to Amazon Kendra index field names. To
-- create custom fields, use the @UpdateIndex@ API before you map to
-- Alfresco fields. For more information, see
-- <https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html Mapping data source fields>.
-- The Alfresco data source field names must exist in your Alfresco custom
-- metadata.
--
-- 'crawlComments', 'alfrescoConfiguration_crawlComments' - @TRUE@ to index comments of blogs and other content.
--
-- 'crawlSystemFolders', 'alfrescoConfiguration_crawlSystemFolders' - @TRUE@ to index shared files.
--
-- 'documentLibraryFieldMappings', 'alfrescoConfiguration_documentLibraryFieldMappings' - A list of @DataSourceToIndexFieldMapping@ objects that map attributes or
-- field names of Alfresco document libraries to Amazon Kendra index field
-- names. To create custom fields, use the @UpdateIndex@ API before you map
-- to Alfresco fields. For more information, see
-- <https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html Mapping data source fields>.
-- The Alfresco data source field names must exist in your Alfresco custom
-- metadata.
--
-- 'entityFilter', 'alfrescoConfiguration_entityFilter' - Specify whether to index document libraries, wikis, or blogs. You can
-- specify one or more of these options.
--
-- 'exclusionPatterns', 'alfrescoConfiguration_exclusionPatterns' - A list of regular expression patterns to exclude certain files in your
-- Alfresco data source. Files that match the patterns are excluded from
-- the index. Files that don\'t match the patterns are included in the
-- index. If a file matches both an inclusion pattern and an exclusion
-- pattern, the exclusion pattern takes precedence and the file isn\'t
-- included in the index.
--
-- 'inclusionPatterns', 'alfrescoConfiguration_inclusionPatterns' - A list of regular expression patterns to include certain files in your
-- Alfresco data source. Files that match the patterns are included in the
-- index. Files that don\'t match the patterns are excluded from the index.
-- If a file matches both an inclusion pattern and an exclusion pattern,
-- the exclusion pattern takes precedence and the file isn\'t included in
-- the index.
--
-- 'vpcConfiguration', 'alfrescoConfiguration_vpcConfiguration' - Configuration information for an Amazon Virtual Private Cloud to connect
-- to your Alfresco. For more information, see
-- <https://docs.aws.amazon.com/kendra/latest/dg/vpc-configuration.html Configuring a VPC>.
--
-- 'wikiFieldMappings', 'alfrescoConfiguration_wikiFieldMappings' - A list of @DataSourceToIndexFieldMapping@ objects that map attributes or
-- field names of Alfresco wikis to Amazon Kendra index field names. To
-- create custom fields, use the @UpdateIndex@ API before you map to
-- Alfresco fields. For more information, see
-- <https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html Mapping data source fields>.
-- The Alfresco data source field names must exist in your Alfresco custom
-- metadata.
--
-- 'siteUrl', 'alfrescoConfiguration_siteUrl' - The URL of the Alfresco site. For example, /https:\/\/hostname:8080/.
--
-- 'siteId', 'alfrescoConfiguration_siteId' - The identifier of the Alfresco site. For example, /my-site/.
--
-- 'secretArn', 'alfrescoConfiguration_secretArn' - The Amazon Resource Name (ARN) of an Secrets Manager secret that
-- contains the key-value pairs required to connect to your Alfresco data
-- source. The secret must contain a JSON structure with the following
-- keys:
--
-- -   username—The user name of the Alfresco account.
--
-- -   password—The password of the Alfresco account.
--
-- 'sslCertificateS3Path', 'alfrescoConfiguration_sslCertificateS3Path' - The path to the SSL certificate stored in an Amazon S3 bucket. You use
-- this to connect to Alfresco if you require a secure SSL connection.
--
-- You can simply generate a self-signed X509 certificate on any computer
-- using OpenSSL. For an example of using OpenSSL to create an X509
-- certificate, see
-- <https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/configuring-https-ssl.html Create and sign an X509 certificate>.
newAlfrescoConfiguration ::
  -- | 'siteUrl'
  Prelude.Text ->
  -- | 'siteId'
  Prelude.Text ->
  -- | 'secretArn'
  Prelude.Text ->
  -- | 'sslCertificateS3Path'
  S3Path ->
  AlfrescoConfiguration
newAlfrescoConfiguration :: Text -> Text -> Text -> S3Path -> AlfrescoConfiguration
newAlfrescoConfiguration
  Text
pSiteUrl_
  Text
pSiteId_
  Text
pSecretArn_
  S3Path
pSslCertificateS3Path_ =
    AlfrescoConfiguration'
      { $sel:blogFieldMappings:AlfrescoConfiguration' :: Maybe (NonEmpty DataSourceToIndexFieldMapping)
blogFieldMappings =
          forall a. Maybe a
Prelude.Nothing,
        $sel:crawlComments:AlfrescoConfiguration' :: Maybe Bool
crawlComments = forall a. Maybe a
Prelude.Nothing,
        $sel:crawlSystemFolders:AlfrescoConfiguration' :: Maybe Bool
crawlSystemFolders = forall a. Maybe a
Prelude.Nothing,
        $sel:documentLibraryFieldMappings:AlfrescoConfiguration' :: Maybe (NonEmpty DataSourceToIndexFieldMapping)
documentLibraryFieldMappings = forall a. Maybe a
Prelude.Nothing,
        $sel:entityFilter:AlfrescoConfiguration' :: Maybe (NonEmpty AlfrescoEntity)
entityFilter = forall a. Maybe a
Prelude.Nothing,
        $sel:exclusionPatterns:AlfrescoConfiguration' :: Maybe [Text]
exclusionPatterns = forall a. Maybe a
Prelude.Nothing,
        $sel:inclusionPatterns:AlfrescoConfiguration' :: Maybe [Text]
inclusionPatterns = forall a. Maybe a
Prelude.Nothing,
        $sel:vpcConfiguration:AlfrescoConfiguration' :: Maybe DataSourceVpcConfiguration
vpcConfiguration = forall a. Maybe a
Prelude.Nothing,
        $sel:wikiFieldMappings:AlfrescoConfiguration' :: Maybe (NonEmpty DataSourceToIndexFieldMapping)
wikiFieldMappings = forall a. Maybe a
Prelude.Nothing,
        $sel:siteUrl:AlfrescoConfiguration' :: Text
siteUrl = Text
pSiteUrl_,
        $sel:siteId:AlfrescoConfiguration' :: Text
siteId = Text
pSiteId_,
        $sel:secretArn:AlfrescoConfiguration' :: Text
secretArn = Text
pSecretArn_,
        $sel:sslCertificateS3Path:AlfrescoConfiguration' :: S3Path
sslCertificateS3Path = S3Path
pSslCertificateS3Path_
      }

-- | A list of @DataSourceToIndexFieldMapping@ objects that map attributes or
-- field names of Alfresco blogs to Amazon Kendra index field names. To
-- create custom fields, use the @UpdateIndex@ API before you map to
-- Alfresco fields. For more information, see
-- <https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html Mapping data source fields>.
-- The Alfresco data source field names must exist in your Alfresco custom
-- metadata.
alfrescoConfiguration_blogFieldMappings :: Lens.Lens' AlfrescoConfiguration (Prelude.Maybe (Prelude.NonEmpty DataSourceToIndexFieldMapping))
alfrescoConfiguration_blogFieldMappings :: Lens'
  AlfrescoConfiguration
  (Maybe (NonEmpty DataSourceToIndexFieldMapping))
alfrescoConfiguration_blogFieldMappings = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AlfrescoConfiguration' {Maybe (NonEmpty DataSourceToIndexFieldMapping)
blogFieldMappings :: Maybe (NonEmpty DataSourceToIndexFieldMapping)
$sel:blogFieldMappings:AlfrescoConfiguration' :: AlfrescoConfiguration
-> Maybe (NonEmpty DataSourceToIndexFieldMapping)
blogFieldMappings} -> Maybe (NonEmpty DataSourceToIndexFieldMapping)
blogFieldMappings) (\s :: AlfrescoConfiguration
s@AlfrescoConfiguration' {} Maybe (NonEmpty DataSourceToIndexFieldMapping)
a -> AlfrescoConfiguration
s {$sel:blogFieldMappings:AlfrescoConfiguration' :: Maybe (NonEmpty DataSourceToIndexFieldMapping)
blogFieldMappings = Maybe (NonEmpty DataSourceToIndexFieldMapping)
a} :: AlfrescoConfiguration) 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

-- | @TRUE@ to index comments of blogs and other content.
alfrescoConfiguration_crawlComments :: Lens.Lens' AlfrescoConfiguration (Prelude.Maybe Prelude.Bool)
alfrescoConfiguration_crawlComments :: Lens' AlfrescoConfiguration (Maybe Bool)
alfrescoConfiguration_crawlComments = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AlfrescoConfiguration' {Maybe Bool
crawlComments :: Maybe Bool
$sel:crawlComments:AlfrescoConfiguration' :: AlfrescoConfiguration -> Maybe Bool
crawlComments} -> Maybe Bool
crawlComments) (\s :: AlfrescoConfiguration
s@AlfrescoConfiguration' {} Maybe Bool
a -> AlfrescoConfiguration
s {$sel:crawlComments:AlfrescoConfiguration' :: Maybe Bool
crawlComments = Maybe Bool
a} :: AlfrescoConfiguration)

-- | @TRUE@ to index shared files.
alfrescoConfiguration_crawlSystemFolders :: Lens.Lens' AlfrescoConfiguration (Prelude.Maybe Prelude.Bool)
alfrescoConfiguration_crawlSystemFolders :: Lens' AlfrescoConfiguration (Maybe Bool)
alfrescoConfiguration_crawlSystemFolders = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AlfrescoConfiguration' {Maybe Bool
crawlSystemFolders :: Maybe Bool
$sel:crawlSystemFolders:AlfrescoConfiguration' :: AlfrescoConfiguration -> Maybe Bool
crawlSystemFolders} -> Maybe Bool
crawlSystemFolders) (\s :: AlfrescoConfiguration
s@AlfrescoConfiguration' {} Maybe Bool
a -> AlfrescoConfiguration
s {$sel:crawlSystemFolders:AlfrescoConfiguration' :: Maybe Bool
crawlSystemFolders = Maybe Bool
a} :: AlfrescoConfiguration)

-- | A list of @DataSourceToIndexFieldMapping@ objects that map attributes or
-- field names of Alfresco document libraries to Amazon Kendra index field
-- names. To create custom fields, use the @UpdateIndex@ API before you map
-- to Alfresco fields. For more information, see
-- <https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html Mapping data source fields>.
-- The Alfresco data source field names must exist in your Alfresco custom
-- metadata.
alfrescoConfiguration_documentLibraryFieldMappings :: Lens.Lens' AlfrescoConfiguration (Prelude.Maybe (Prelude.NonEmpty DataSourceToIndexFieldMapping))
alfrescoConfiguration_documentLibraryFieldMappings :: Lens'
  AlfrescoConfiguration
  (Maybe (NonEmpty DataSourceToIndexFieldMapping))
alfrescoConfiguration_documentLibraryFieldMappings = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AlfrescoConfiguration' {Maybe (NonEmpty DataSourceToIndexFieldMapping)
documentLibraryFieldMappings :: Maybe (NonEmpty DataSourceToIndexFieldMapping)
$sel:documentLibraryFieldMappings:AlfrescoConfiguration' :: AlfrescoConfiguration
-> Maybe (NonEmpty DataSourceToIndexFieldMapping)
documentLibraryFieldMappings} -> Maybe (NonEmpty DataSourceToIndexFieldMapping)
documentLibraryFieldMappings) (\s :: AlfrescoConfiguration
s@AlfrescoConfiguration' {} Maybe (NonEmpty DataSourceToIndexFieldMapping)
a -> AlfrescoConfiguration
s {$sel:documentLibraryFieldMappings:AlfrescoConfiguration' :: Maybe (NonEmpty DataSourceToIndexFieldMapping)
documentLibraryFieldMappings = Maybe (NonEmpty DataSourceToIndexFieldMapping)
a} :: AlfrescoConfiguration) 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

-- | Specify whether to index document libraries, wikis, or blogs. You can
-- specify one or more of these options.
alfrescoConfiguration_entityFilter :: Lens.Lens' AlfrescoConfiguration (Prelude.Maybe (Prelude.NonEmpty AlfrescoEntity))
alfrescoConfiguration_entityFilter :: Lens' AlfrescoConfiguration (Maybe (NonEmpty AlfrescoEntity))
alfrescoConfiguration_entityFilter = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AlfrescoConfiguration' {Maybe (NonEmpty AlfrescoEntity)
entityFilter :: Maybe (NonEmpty AlfrescoEntity)
$sel:entityFilter:AlfrescoConfiguration' :: AlfrescoConfiguration -> Maybe (NonEmpty AlfrescoEntity)
entityFilter} -> Maybe (NonEmpty AlfrescoEntity)
entityFilter) (\s :: AlfrescoConfiguration
s@AlfrescoConfiguration' {} Maybe (NonEmpty AlfrescoEntity)
a -> AlfrescoConfiguration
s {$sel:entityFilter:AlfrescoConfiguration' :: Maybe (NonEmpty AlfrescoEntity)
entityFilter = Maybe (NonEmpty AlfrescoEntity)
a} :: AlfrescoConfiguration) 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

-- | A list of regular expression patterns to exclude certain files in your
-- Alfresco data source. Files that match the patterns are excluded from
-- the index. Files that don\'t match the patterns are included in the
-- index. If a file matches both an inclusion pattern and an exclusion
-- pattern, the exclusion pattern takes precedence and the file isn\'t
-- included in the index.
alfrescoConfiguration_exclusionPatterns :: Lens.Lens' AlfrescoConfiguration (Prelude.Maybe [Prelude.Text])
alfrescoConfiguration_exclusionPatterns :: Lens' AlfrescoConfiguration (Maybe [Text])
alfrescoConfiguration_exclusionPatterns = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AlfrescoConfiguration' {Maybe [Text]
exclusionPatterns :: Maybe [Text]
$sel:exclusionPatterns:AlfrescoConfiguration' :: AlfrescoConfiguration -> Maybe [Text]
exclusionPatterns} -> Maybe [Text]
exclusionPatterns) (\s :: AlfrescoConfiguration
s@AlfrescoConfiguration' {} Maybe [Text]
a -> AlfrescoConfiguration
s {$sel:exclusionPatterns:AlfrescoConfiguration' :: Maybe [Text]
exclusionPatterns = Maybe [Text]
a} :: AlfrescoConfiguration) 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

-- | A list of regular expression patterns to include certain files in your
-- Alfresco data source. Files that match the patterns are included in the
-- index. Files that don\'t match the patterns are excluded from the index.
-- If a file matches both an inclusion pattern and an exclusion pattern,
-- the exclusion pattern takes precedence and the file isn\'t included in
-- the index.
alfrescoConfiguration_inclusionPatterns :: Lens.Lens' AlfrescoConfiguration (Prelude.Maybe [Prelude.Text])
alfrescoConfiguration_inclusionPatterns :: Lens' AlfrescoConfiguration (Maybe [Text])
alfrescoConfiguration_inclusionPatterns = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AlfrescoConfiguration' {Maybe [Text]
inclusionPatterns :: Maybe [Text]
$sel:inclusionPatterns:AlfrescoConfiguration' :: AlfrescoConfiguration -> Maybe [Text]
inclusionPatterns} -> Maybe [Text]
inclusionPatterns) (\s :: AlfrescoConfiguration
s@AlfrescoConfiguration' {} Maybe [Text]
a -> AlfrescoConfiguration
s {$sel:inclusionPatterns:AlfrescoConfiguration' :: Maybe [Text]
inclusionPatterns = Maybe [Text]
a} :: AlfrescoConfiguration) 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

-- | Configuration information for an Amazon Virtual Private Cloud to connect
-- to your Alfresco. For more information, see
-- <https://docs.aws.amazon.com/kendra/latest/dg/vpc-configuration.html Configuring a VPC>.
alfrescoConfiguration_vpcConfiguration :: Lens.Lens' AlfrescoConfiguration (Prelude.Maybe DataSourceVpcConfiguration)
alfrescoConfiguration_vpcConfiguration :: Lens' AlfrescoConfiguration (Maybe DataSourceVpcConfiguration)
alfrescoConfiguration_vpcConfiguration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AlfrescoConfiguration' {Maybe DataSourceVpcConfiguration
vpcConfiguration :: Maybe DataSourceVpcConfiguration
$sel:vpcConfiguration:AlfrescoConfiguration' :: AlfrescoConfiguration -> Maybe DataSourceVpcConfiguration
vpcConfiguration} -> Maybe DataSourceVpcConfiguration
vpcConfiguration) (\s :: AlfrescoConfiguration
s@AlfrescoConfiguration' {} Maybe DataSourceVpcConfiguration
a -> AlfrescoConfiguration
s {$sel:vpcConfiguration:AlfrescoConfiguration' :: Maybe DataSourceVpcConfiguration
vpcConfiguration = Maybe DataSourceVpcConfiguration
a} :: AlfrescoConfiguration)

-- | A list of @DataSourceToIndexFieldMapping@ objects that map attributes or
-- field names of Alfresco wikis to Amazon Kendra index field names. To
-- create custom fields, use the @UpdateIndex@ API before you map to
-- Alfresco fields. For more information, see
-- <https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html Mapping data source fields>.
-- The Alfresco data source field names must exist in your Alfresco custom
-- metadata.
alfrescoConfiguration_wikiFieldMappings :: Lens.Lens' AlfrescoConfiguration (Prelude.Maybe (Prelude.NonEmpty DataSourceToIndexFieldMapping))
alfrescoConfiguration_wikiFieldMappings :: Lens'
  AlfrescoConfiguration
  (Maybe (NonEmpty DataSourceToIndexFieldMapping))
alfrescoConfiguration_wikiFieldMappings = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AlfrescoConfiguration' {Maybe (NonEmpty DataSourceToIndexFieldMapping)
wikiFieldMappings :: Maybe (NonEmpty DataSourceToIndexFieldMapping)
$sel:wikiFieldMappings:AlfrescoConfiguration' :: AlfrescoConfiguration
-> Maybe (NonEmpty DataSourceToIndexFieldMapping)
wikiFieldMappings} -> Maybe (NonEmpty DataSourceToIndexFieldMapping)
wikiFieldMappings) (\s :: AlfrescoConfiguration
s@AlfrescoConfiguration' {} Maybe (NonEmpty DataSourceToIndexFieldMapping)
a -> AlfrescoConfiguration
s {$sel:wikiFieldMappings:AlfrescoConfiguration' :: Maybe (NonEmpty DataSourceToIndexFieldMapping)
wikiFieldMappings = Maybe (NonEmpty DataSourceToIndexFieldMapping)
a} :: AlfrescoConfiguration) 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

-- | The URL of the Alfresco site. For example, /https:\/\/hostname:8080/.
alfrescoConfiguration_siteUrl :: Lens.Lens' AlfrescoConfiguration Prelude.Text
alfrescoConfiguration_siteUrl :: Lens' AlfrescoConfiguration Text
alfrescoConfiguration_siteUrl = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AlfrescoConfiguration' {Text
siteUrl :: Text
$sel:siteUrl:AlfrescoConfiguration' :: AlfrescoConfiguration -> Text
siteUrl} -> Text
siteUrl) (\s :: AlfrescoConfiguration
s@AlfrescoConfiguration' {} Text
a -> AlfrescoConfiguration
s {$sel:siteUrl:AlfrescoConfiguration' :: Text
siteUrl = Text
a} :: AlfrescoConfiguration)

-- | The identifier of the Alfresco site. For example, /my-site/.
alfrescoConfiguration_siteId :: Lens.Lens' AlfrescoConfiguration Prelude.Text
alfrescoConfiguration_siteId :: Lens' AlfrescoConfiguration Text
alfrescoConfiguration_siteId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AlfrescoConfiguration' {Text
siteId :: Text
$sel:siteId:AlfrescoConfiguration' :: AlfrescoConfiguration -> Text
siteId} -> Text
siteId) (\s :: AlfrescoConfiguration
s@AlfrescoConfiguration' {} Text
a -> AlfrescoConfiguration
s {$sel:siteId:AlfrescoConfiguration' :: Text
siteId = Text
a} :: AlfrescoConfiguration)

-- | The Amazon Resource Name (ARN) of an Secrets Manager secret that
-- contains the key-value pairs required to connect to your Alfresco data
-- source. The secret must contain a JSON structure with the following
-- keys:
--
-- -   username—The user name of the Alfresco account.
--
-- -   password—The password of the Alfresco account.
alfrescoConfiguration_secretArn :: Lens.Lens' AlfrescoConfiguration Prelude.Text
alfrescoConfiguration_secretArn :: Lens' AlfrescoConfiguration Text
alfrescoConfiguration_secretArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AlfrescoConfiguration' {Text
secretArn :: Text
$sel:secretArn:AlfrescoConfiguration' :: AlfrescoConfiguration -> Text
secretArn} -> Text
secretArn) (\s :: AlfrescoConfiguration
s@AlfrescoConfiguration' {} Text
a -> AlfrescoConfiguration
s {$sel:secretArn:AlfrescoConfiguration' :: Text
secretArn = Text
a} :: AlfrescoConfiguration)

-- | The path to the SSL certificate stored in an Amazon S3 bucket. You use
-- this to connect to Alfresco if you require a secure SSL connection.
--
-- You can simply generate a self-signed X509 certificate on any computer
-- using OpenSSL. For an example of using OpenSSL to create an X509
-- certificate, see
-- <https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/configuring-https-ssl.html Create and sign an X509 certificate>.
alfrescoConfiguration_sslCertificateS3Path :: Lens.Lens' AlfrescoConfiguration S3Path
alfrescoConfiguration_sslCertificateS3Path :: Lens' AlfrescoConfiguration S3Path
alfrescoConfiguration_sslCertificateS3Path = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AlfrescoConfiguration' {S3Path
sslCertificateS3Path :: S3Path
$sel:sslCertificateS3Path:AlfrescoConfiguration' :: AlfrescoConfiguration -> S3Path
sslCertificateS3Path} -> S3Path
sslCertificateS3Path) (\s :: AlfrescoConfiguration
s@AlfrescoConfiguration' {} S3Path
a -> AlfrescoConfiguration
s {$sel:sslCertificateS3Path:AlfrescoConfiguration' :: S3Path
sslCertificateS3Path = S3Path
a} :: AlfrescoConfiguration)

instance Data.FromJSON AlfrescoConfiguration where
  parseJSON :: Value -> Parser AlfrescoConfiguration
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"AlfrescoConfiguration"
      ( \Object
x ->
          Maybe (NonEmpty DataSourceToIndexFieldMapping)
-> Maybe Bool
-> Maybe Bool
-> Maybe (NonEmpty DataSourceToIndexFieldMapping)
-> Maybe (NonEmpty AlfrescoEntity)
-> Maybe [Text]
-> Maybe [Text]
-> Maybe DataSourceVpcConfiguration
-> Maybe (NonEmpty DataSourceToIndexFieldMapping)
-> Text
-> Text
-> Text
-> S3Path
-> AlfrescoConfiguration
AlfrescoConfiguration'
            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
"BlogFieldMappings")
            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
"CrawlComments")
            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
"CrawlSystemFolders")
            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
"DocumentLibraryFieldMappings")
            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
"EntityFilter")
            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
"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
"VpcConfiguration")
            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
"WikiFieldMappings")
            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
"SiteUrl")
            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
"SiteId")
            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")
            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
"SslCertificateS3Path")
      )

instance Prelude.Hashable AlfrescoConfiguration where
  hashWithSalt :: Int -> AlfrescoConfiguration -> Int
hashWithSalt Int
_salt AlfrescoConfiguration' {Maybe Bool
Maybe [Text]
Maybe (NonEmpty AlfrescoEntity)
Maybe (NonEmpty DataSourceToIndexFieldMapping)
Maybe DataSourceVpcConfiguration
Text
S3Path
sslCertificateS3Path :: S3Path
secretArn :: Text
siteId :: Text
siteUrl :: Text
wikiFieldMappings :: Maybe (NonEmpty DataSourceToIndexFieldMapping)
vpcConfiguration :: Maybe DataSourceVpcConfiguration
inclusionPatterns :: Maybe [Text]
exclusionPatterns :: Maybe [Text]
entityFilter :: Maybe (NonEmpty AlfrescoEntity)
documentLibraryFieldMappings :: Maybe (NonEmpty DataSourceToIndexFieldMapping)
crawlSystemFolders :: Maybe Bool
crawlComments :: Maybe Bool
blogFieldMappings :: Maybe (NonEmpty DataSourceToIndexFieldMapping)
$sel:sslCertificateS3Path:AlfrescoConfiguration' :: AlfrescoConfiguration -> S3Path
$sel:secretArn:AlfrescoConfiguration' :: AlfrescoConfiguration -> Text
$sel:siteId:AlfrescoConfiguration' :: AlfrescoConfiguration -> Text
$sel:siteUrl:AlfrescoConfiguration' :: AlfrescoConfiguration -> Text
$sel:wikiFieldMappings:AlfrescoConfiguration' :: AlfrescoConfiguration
-> Maybe (NonEmpty DataSourceToIndexFieldMapping)
$sel:vpcConfiguration:AlfrescoConfiguration' :: AlfrescoConfiguration -> Maybe DataSourceVpcConfiguration
$sel:inclusionPatterns:AlfrescoConfiguration' :: AlfrescoConfiguration -> Maybe [Text]
$sel:exclusionPatterns:AlfrescoConfiguration' :: AlfrescoConfiguration -> Maybe [Text]
$sel:entityFilter:AlfrescoConfiguration' :: AlfrescoConfiguration -> Maybe (NonEmpty AlfrescoEntity)
$sel:documentLibraryFieldMappings:AlfrescoConfiguration' :: AlfrescoConfiguration
-> Maybe (NonEmpty DataSourceToIndexFieldMapping)
$sel:crawlSystemFolders:AlfrescoConfiguration' :: AlfrescoConfiguration -> Maybe Bool
$sel:crawlComments:AlfrescoConfiguration' :: AlfrescoConfiguration -> Maybe Bool
$sel:blogFieldMappings:AlfrescoConfiguration' :: AlfrescoConfiguration
-> Maybe (NonEmpty DataSourceToIndexFieldMapping)
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (NonEmpty DataSourceToIndexFieldMapping)
blogFieldMappings
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
crawlComments
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
crawlSystemFolders
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (NonEmpty DataSourceToIndexFieldMapping)
documentLibraryFieldMappings
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (NonEmpty AlfrescoEntity)
entityFilter
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
exclusionPatterns
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
inclusionPatterns
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe DataSourceVpcConfiguration
vpcConfiguration
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (NonEmpty DataSourceToIndexFieldMapping)
wikiFieldMappings
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
siteUrl
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
siteId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
secretArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` S3Path
sslCertificateS3Path

instance Prelude.NFData AlfrescoConfiguration where
  rnf :: AlfrescoConfiguration -> ()
rnf AlfrescoConfiguration' {Maybe Bool
Maybe [Text]
Maybe (NonEmpty AlfrescoEntity)
Maybe (NonEmpty DataSourceToIndexFieldMapping)
Maybe DataSourceVpcConfiguration
Text
S3Path
sslCertificateS3Path :: S3Path
secretArn :: Text
siteId :: Text
siteUrl :: Text
wikiFieldMappings :: Maybe (NonEmpty DataSourceToIndexFieldMapping)
vpcConfiguration :: Maybe DataSourceVpcConfiguration
inclusionPatterns :: Maybe [Text]
exclusionPatterns :: Maybe [Text]
entityFilter :: Maybe (NonEmpty AlfrescoEntity)
documentLibraryFieldMappings :: Maybe (NonEmpty DataSourceToIndexFieldMapping)
crawlSystemFolders :: Maybe Bool
crawlComments :: Maybe Bool
blogFieldMappings :: Maybe (NonEmpty DataSourceToIndexFieldMapping)
$sel:sslCertificateS3Path:AlfrescoConfiguration' :: AlfrescoConfiguration -> S3Path
$sel:secretArn:AlfrescoConfiguration' :: AlfrescoConfiguration -> Text
$sel:siteId:AlfrescoConfiguration' :: AlfrescoConfiguration -> Text
$sel:siteUrl:AlfrescoConfiguration' :: AlfrescoConfiguration -> Text
$sel:wikiFieldMappings:AlfrescoConfiguration' :: AlfrescoConfiguration
-> Maybe (NonEmpty DataSourceToIndexFieldMapping)
$sel:vpcConfiguration:AlfrescoConfiguration' :: AlfrescoConfiguration -> Maybe DataSourceVpcConfiguration
$sel:inclusionPatterns:AlfrescoConfiguration' :: AlfrescoConfiguration -> Maybe [Text]
$sel:exclusionPatterns:AlfrescoConfiguration' :: AlfrescoConfiguration -> Maybe [Text]
$sel:entityFilter:AlfrescoConfiguration' :: AlfrescoConfiguration -> Maybe (NonEmpty AlfrescoEntity)
$sel:documentLibraryFieldMappings:AlfrescoConfiguration' :: AlfrescoConfiguration
-> Maybe (NonEmpty DataSourceToIndexFieldMapping)
$sel:crawlSystemFolders:AlfrescoConfiguration' :: AlfrescoConfiguration -> Maybe Bool
$sel:crawlComments:AlfrescoConfiguration' :: AlfrescoConfiguration -> Maybe Bool
$sel:blogFieldMappings:AlfrescoConfiguration' :: AlfrescoConfiguration
-> Maybe (NonEmpty DataSourceToIndexFieldMapping)
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe (NonEmpty DataSourceToIndexFieldMapping)
blogFieldMappings
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
crawlComments
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
crawlSystemFolders
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (NonEmpty DataSourceToIndexFieldMapping)
documentLibraryFieldMappings
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (NonEmpty AlfrescoEntity)
entityFilter
      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]
inclusionPatterns
      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 Maybe (NonEmpty DataSourceToIndexFieldMapping)
wikiFieldMappings
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
siteUrl
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
siteId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
secretArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf S3Path
sslCertificateS3Path

instance Data.ToJSON AlfrescoConfiguration where
  toJSON :: AlfrescoConfiguration -> Value
toJSON AlfrescoConfiguration' {Maybe Bool
Maybe [Text]
Maybe (NonEmpty AlfrescoEntity)
Maybe (NonEmpty DataSourceToIndexFieldMapping)
Maybe DataSourceVpcConfiguration
Text
S3Path
sslCertificateS3Path :: S3Path
secretArn :: Text
siteId :: Text
siteUrl :: Text
wikiFieldMappings :: Maybe (NonEmpty DataSourceToIndexFieldMapping)
vpcConfiguration :: Maybe DataSourceVpcConfiguration
inclusionPatterns :: Maybe [Text]
exclusionPatterns :: Maybe [Text]
entityFilter :: Maybe (NonEmpty AlfrescoEntity)
documentLibraryFieldMappings :: Maybe (NonEmpty DataSourceToIndexFieldMapping)
crawlSystemFolders :: Maybe Bool
crawlComments :: Maybe Bool
blogFieldMappings :: Maybe (NonEmpty DataSourceToIndexFieldMapping)
$sel:sslCertificateS3Path:AlfrescoConfiguration' :: AlfrescoConfiguration -> S3Path
$sel:secretArn:AlfrescoConfiguration' :: AlfrescoConfiguration -> Text
$sel:siteId:AlfrescoConfiguration' :: AlfrescoConfiguration -> Text
$sel:siteUrl:AlfrescoConfiguration' :: AlfrescoConfiguration -> Text
$sel:wikiFieldMappings:AlfrescoConfiguration' :: AlfrescoConfiguration
-> Maybe (NonEmpty DataSourceToIndexFieldMapping)
$sel:vpcConfiguration:AlfrescoConfiguration' :: AlfrescoConfiguration -> Maybe DataSourceVpcConfiguration
$sel:inclusionPatterns:AlfrescoConfiguration' :: AlfrescoConfiguration -> Maybe [Text]
$sel:exclusionPatterns:AlfrescoConfiguration' :: AlfrescoConfiguration -> Maybe [Text]
$sel:entityFilter:AlfrescoConfiguration' :: AlfrescoConfiguration -> Maybe (NonEmpty AlfrescoEntity)
$sel:documentLibraryFieldMappings:AlfrescoConfiguration' :: AlfrescoConfiguration
-> Maybe (NonEmpty DataSourceToIndexFieldMapping)
$sel:crawlSystemFolders:AlfrescoConfiguration' :: AlfrescoConfiguration -> Maybe Bool
$sel:crawlComments:AlfrescoConfiguration' :: AlfrescoConfiguration -> Maybe Bool
$sel:blogFieldMappings:AlfrescoConfiguration' :: AlfrescoConfiguration
-> Maybe (NonEmpty DataSourceToIndexFieldMapping)
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"BlogFieldMappings" 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)
blogFieldMappings,
            (Key
"CrawlComments" 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
crawlComments,
            (Key
"CrawlSystemFolders" 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
crawlSystemFolders,
            (Key
"DocumentLibraryFieldMappings" 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)
documentLibraryFieldMappings,
            (Key
"EntityFilter" 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 AlfrescoEntity)
entityFilter,
            (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
"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
"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,
            (Key
"WikiFieldMappings" 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)
wikiFieldMappings,
            forall a. a -> Maybe a
Prelude.Just (Key
"SiteUrl" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
siteUrl),
            forall a. a -> Maybe a
Prelude.Just (Key
"SiteId" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
siteId),
            forall a. a -> Maybe a
Prelude.Just (Key
"SecretArn" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
secretArn),
            forall a. a -> Maybe a
Prelude.Just
              ( Key
"SslCertificateS3Path"
                  forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= S3Path
sslCertificateS3Path
              )
          ]
      )