{-# 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.QuipConfiguration
-- 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.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

-- | Provides the configuration information to connect to Quip as your data
-- source.
--
-- /See:/ 'newQuipConfiguration' smart constructor.
data QuipConfiguration = QuipConfiguration'
  { -- | A list of @DataSourceToIndexFieldMapping@ objects that map attributes or
    -- field names of Quip attachments to Amazon Kendra index field names. To
    -- create custom fields, use the @UpdateIndex@ API before you map to Quip
    -- fields. For more information, see
    -- <https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html Mapping data source fields>.
    -- The Quip field names must exist in your Quip custom metadata.
    QuipConfiguration -> Maybe (NonEmpty DataSourceToIndexFieldMapping)
attachmentFieldMappings :: Prelude.Maybe (Prelude.NonEmpty DataSourceToIndexFieldMapping),
    -- | @TRUE@ to index attachments.
    QuipConfiguration -> Maybe Bool
crawlAttachments :: Prelude.Maybe Prelude.Bool,
    -- | @TRUE@ to index the contents of chat rooms.
    QuipConfiguration -> Maybe Bool
crawlChatRooms :: Prelude.Maybe Prelude.Bool,
    -- | @TRUE@ to index file comments.
    QuipConfiguration -> Maybe Bool
crawlFileComments :: Prelude.Maybe Prelude.Bool,
    -- | A list of regular expression patterns to exclude certain files in your
    -- Quip file system. 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.
    QuipConfiguration -> Maybe [Text]
exclusionPatterns :: Prelude.Maybe [Prelude.Text],
    -- | The identifiers of the Quip folders you want to index. You can find the
    -- folder ID in your browser URL when you access your folder in Quip. For
    -- example,
    -- /https:\/\/quip-company.quipdomain.com\/zlLuOVNSarTL\/folder-name/. The
    -- folder ID in this example is \"zlLuOVNSarTL\".
    QuipConfiguration -> Maybe [Text]
folderIds :: Prelude.Maybe [Prelude.Text],
    -- | A list of regular expression patterns to include certain files in your
    -- Quip file system. 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.
    QuipConfiguration -> Maybe [Text]
inclusionPatterns :: Prelude.Maybe [Prelude.Text],
    -- | A list of @DataSourceToIndexFieldMapping@ objects that map attributes or
    -- field names of Quip messages to Amazon Kendra index field names. To
    -- create custom fields, use the @UpdateIndex@ API before you map to Quip
    -- fields. For more information, see
    -- <https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html Mapping data source fields>.
    -- The Quip field names must exist in your Quip custom metadata.
    QuipConfiguration -> Maybe (NonEmpty DataSourceToIndexFieldMapping)
messageFieldMappings :: Prelude.Maybe (Prelude.NonEmpty DataSourceToIndexFieldMapping),
    -- | A list of @DataSourceToIndexFieldMapping@ objects that map attributes or
    -- field names of Quip threads to Amazon Kendra index field names. To
    -- create custom fields, use the @UpdateIndex@ API before you map to Quip
    -- fields. For more information, see
    -- <https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html Mapping data source fields>.
    -- The Quip field names must exist in your Quip custom metadata.
    QuipConfiguration -> Maybe (NonEmpty DataSourceToIndexFieldMapping)
threadFieldMappings :: Prelude.Maybe (Prelude.NonEmpty DataSourceToIndexFieldMapping),
    -- | Configuration information for an Amazon Virtual Private Cloud (VPC) to
    -- connect to your Quip. For more information, see
    -- <https://docs.aws.amazon.com/kendra/latest/dg/vpc-configuration.html Configuring a VPC>.
    QuipConfiguration -> Maybe DataSourceVpcConfiguration
vpcConfiguration :: Prelude.Maybe DataSourceVpcConfiguration,
    -- | The Quip site domain. For example,
    -- /https:\/\/quip-company.quipdomain.com\/browse/. The domain in this
    -- example is \"quipdomain\".
    QuipConfiguration -> Text
domain :: Prelude.Text,
    -- | The Amazon Resource Name (ARN) of an Secrets Manager secret that
    -- contains the key-value pairs that are required to connect to your Quip.
    -- The secret must contain a JSON structure with the following keys:
    --
    -- -   accessToken—The token created in Quip. For more information, see
    --     <https://docs.aws.amazon.com/kendra/latest/dg/data-source-slack.html Using a Quip data source>.
    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)

-- |
-- Create a value of 'QuipConfiguration' 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:
--
-- 'attachmentFieldMappings', 'quipConfiguration_attachmentFieldMappings' - A list of @DataSourceToIndexFieldMapping@ objects that map attributes or
-- field names of Quip attachments to Amazon Kendra index field names. To
-- create custom fields, use the @UpdateIndex@ API before you map to Quip
-- fields. For more information, see
-- <https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html Mapping data source fields>.
-- The Quip field names must exist in your Quip custom metadata.
--
-- 'crawlAttachments', 'quipConfiguration_crawlAttachments' - @TRUE@ to index attachments.
--
-- 'crawlChatRooms', 'quipConfiguration_crawlChatRooms' - @TRUE@ to index the contents of chat rooms.
--
-- 'crawlFileComments', 'quipConfiguration_crawlFileComments' - @TRUE@ to index file comments.
--
-- 'exclusionPatterns', 'quipConfiguration_exclusionPatterns' - A list of regular expression patterns to exclude certain files in your
-- Quip file system. 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.
--
-- 'folderIds', 'quipConfiguration_folderIds' - The identifiers of the Quip folders you want to index. You can find the
-- folder ID in your browser URL when you access your folder in Quip. For
-- example,
-- /https:\/\/quip-company.quipdomain.com\/zlLuOVNSarTL\/folder-name/. The
-- folder ID in this example is \"zlLuOVNSarTL\".
--
-- 'inclusionPatterns', 'quipConfiguration_inclusionPatterns' - A list of regular expression patterns to include certain files in your
-- Quip file system. 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.
--
-- 'messageFieldMappings', 'quipConfiguration_messageFieldMappings' - A list of @DataSourceToIndexFieldMapping@ objects that map attributes or
-- field names of Quip messages to Amazon Kendra index field names. To
-- create custom fields, use the @UpdateIndex@ API before you map to Quip
-- fields. For more information, see
-- <https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html Mapping data source fields>.
-- The Quip field names must exist in your Quip custom metadata.
--
-- 'threadFieldMappings', 'quipConfiguration_threadFieldMappings' - A list of @DataSourceToIndexFieldMapping@ objects that map attributes or
-- field names of Quip threads to Amazon Kendra index field names. To
-- create custom fields, use the @UpdateIndex@ API before you map to Quip
-- fields. For more information, see
-- <https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html Mapping data source fields>.
-- The Quip field names must exist in your Quip custom metadata.
--
-- 'vpcConfiguration', 'quipConfiguration_vpcConfiguration' - Configuration information for an Amazon Virtual Private Cloud (VPC) to
-- connect to your Quip. For more information, see
-- <https://docs.aws.amazon.com/kendra/latest/dg/vpc-configuration.html Configuring a VPC>.
--
-- 'domain', 'quipConfiguration_domain' - The Quip site domain. For example,
-- /https:\/\/quip-company.quipdomain.com\/browse/. The domain in this
-- example is \"quipdomain\".
--
-- 'secretArn', 'quipConfiguration_secretArn' - The Amazon Resource Name (ARN) of an Secrets Manager secret that
-- contains the key-value pairs that are required to connect to your Quip.
-- The secret must contain a JSON structure with the following keys:
--
-- -   accessToken—The token created in Quip. For more information, see
--     <https://docs.aws.amazon.com/kendra/latest/dg/data-source-slack.html Using a Quip data source>.
newQuipConfiguration ::
  -- | 'domain'
  Prelude.Text ->
  -- | 'secretArn'
  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_
    }

-- | A list of @DataSourceToIndexFieldMapping@ objects that map attributes or
-- field names of Quip attachments to Amazon Kendra index field names. To
-- create custom fields, use the @UpdateIndex@ API before you map to Quip
-- fields. For more information, see
-- <https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html Mapping data source fields>.
-- The Quip field names must exist in your Quip custom metadata.
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

-- | @TRUE@ to index attachments.
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)

-- | @TRUE@ to index the contents of chat rooms.
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)

-- | @TRUE@ to index file comments.
quipConfiguration_crawlFileComments :: Lens.Lens' QuipConfiguration (Prelude.Maybe Prelude.Bool)
quipConfiguration_crawlFileComments :: Lens' QuipConfiguration (Maybe Bool)
quipConfiguration_crawlFileComments = 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)

-- | A list of regular expression patterns to exclude certain files in your
-- Quip file system. 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.
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

-- | The identifiers of the Quip folders you want to index. You can find the
-- folder ID in your browser URL when you access your folder in Quip. For
-- example,
-- /https:\/\/quip-company.quipdomain.com\/zlLuOVNSarTL\/folder-name/. The
-- folder ID in this example is \"zlLuOVNSarTL\".
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

-- | A list of regular expression patterns to include certain files in your
-- Quip file system. 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.
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

-- | A list of @DataSourceToIndexFieldMapping@ objects that map attributes or
-- field names of Quip messages to Amazon Kendra index field names. To
-- create custom fields, use the @UpdateIndex@ API before you map to Quip
-- fields. For more information, see
-- <https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html Mapping data source fields>.
-- The Quip field names must exist in your Quip custom metadata.
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

-- | A list of @DataSourceToIndexFieldMapping@ objects that map attributes or
-- field names of Quip threads to Amazon Kendra index field names. To
-- create custom fields, use the @UpdateIndex@ API before you map to Quip
-- fields. For more information, see
-- <https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html Mapping data source fields>.
-- The Quip field names must exist in your Quip custom metadata.
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

-- | Configuration information for an Amazon Virtual Private Cloud (VPC) to
-- connect to your Quip. For more information, see
-- <https://docs.aws.amazon.com/kendra/latest/dg/vpc-configuration.html Configuring a VPC>.
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)

-- | The Quip site domain. For example,
-- /https:\/\/quip-company.quipdomain.com\/browse/. The domain in this
-- example is \"quipdomain\".
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)

-- | The Amazon Resource Name (ARN) of an Secrets Manager secret that
-- contains the key-value pairs that are required to connect to your Quip.
-- The secret must contain a JSON structure with the following keys:
--
-- -   accessToken—The token created in Quip. For more information, see
--     <https://docs.aws.amazon.com/kendra/latest/dg/data-source-slack.html Using a Quip data source>.
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)
          ]
      )