{-# 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.Firehose.Types.AmazonopensearchserviceDestinationUpdate
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Firehose.Types.AmazonopensearchserviceDestinationUpdate where

import qualified Amazonka.Core as Core
import Amazonka.Firehose.Types.AmazonopensearchserviceBufferingHints
import Amazonka.Firehose.Types.AmazonopensearchserviceIndexRotationPeriod
import Amazonka.Firehose.Types.AmazonopensearchserviceRetryOptions
import Amazonka.Firehose.Types.CloudWatchLoggingOptions
import Amazonka.Firehose.Types.ProcessingConfiguration
import Amazonka.Firehose.Types.S3DestinationUpdate
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | /See:/ 'newAmazonopensearchserviceDestinationUpdate' smart constructor.
data AmazonopensearchserviceDestinationUpdate = AmazonopensearchserviceDestinationUpdate'
  { AmazonopensearchserviceDestinationUpdate
-> Maybe AmazonopensearchserviceIndexRotationPeriod
indexRotationPeriod :: Prelude.Maybe AmazonopensearchserviceIndexRotationPeriod,
    AmazonopensearchserviceDestinationUpdate -> Maybe Text
typeName :: Prelude.Maybe Prelude.Text,
    AmazonopensearchserviceDestinationUpdate -> Maybe Text
domainARN :: Prelude.Maybe Prelude.Text,
    AmazonopensearchserviceDestinationUpdate
-> Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions :: Prelude.Maybe CloudWatchLoggingOptions,
    AmazonopensearchserviceDestinationUpdate
-> Maybe S3DestinationUpdate
s3Update :: Prelude.Maybe S3DestinationUpdate,
    AmazonopensearchserviceDestinationUpdate
-> Maybe AmazonopensearchserviceBufferingHints
bufferingHints :: Prelude.Maybe AmazonopensearchserviceBufferingHints,
    AmazonopensearchserviceDestinationUpdate
-> Maybe AmazonopensearchserviceRetryOptions
retryOptions :: Prelude.Maybe AmazonopensearchserviceRetryOptions,
    AmazonopensearchserviceDestinationUpdate
-> Maybe ProcessingConfiguration
processingConfiguration :: Prelude.Maybe ProcessingConfiguration,
    AmazonopensearchserviceDestinationUpdate -> Maybe Text
roleARN :: Prelude.Maybe Prelude.Text,
    AmazonopensearchserviceDestinationUpdate -> Maybe Text
clusterEndpoint :: Prelude.Maybe Prelude.Text,
    AmazonopensearchserviceDestinationUpdate -> Maybe Text
indexName :: Prelude.Maybe Prelude.Text
  }
  deriving (AmazonopensearchserviceDestinationUpdate
-> AmazonopensearchserviceDestinationUpdate -> Bool
(AmazonopensearchserviceDestinationUpdate
 -> AmazonopensearchserviceDestinationUpdate -> Bool)
-> (AmazonopensearchserviceDestinationUpdate
    -> AmazonopensearchserviceDestinationUpdate -> Bool)
-> Eq AmazonopensearchserviceDestinationUpdate
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AmazonopensearchserviceDestinationUpdate
-> AmazonopensearchserviceDestinationUpdate -> Bool
$c/= :: AmazonopensearchserviceDestinationUpdate
-> AmazonopensearchserviceDestinationUpdate -> Bool
== :: AmazonopensearchserviceDestinationUpdate
-> AmazonopensearchserviceDestinationUpdate -> Bool
$c== :: AmazonopensearchserviceDestinationUpdate
-> AmazonopensearchserviceDestinationUpdate -> Bool
Prelude.Eq, ReadPrec [AmazonopensearchserviceDestinationUpdate]
ReadPrec AmazonopensearchserviceDestinationUpdate
Int -> ReadS AmazonopensearchserviceDestinationUpdate
ReadS [AmazonopensearchserviceDestinationUpdate]
(Int -> ReadS AmazonopensearchserviceDestinationUpdate)
-> ReadS [AmazonopensearchserviceDestinationUpdate]
-> ReadPrec AmazonopensearchserviceDestinationUpdate
-> ReadPrec [AmazonopensearchserviceDestinationUpdate]
-> Read AmazonopensearchserviceDestinationUpdate
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AmazonopensearchserviceDestinationUpdate]
$creadListPrec :: ReadPrec [AmazonopensearchserviceDestinationUpdate]
readPrec :: ReadPrec AmazonopensearchserviceDestinationUpdate
$creadPrec :: ReadPrec AmazonopensearchserviceDestinationUpdate
readList :: ReadS [AmazonopensearchserviceDestinationUpdate]
$creadList :: ReadS [AmazonopensearchserviceDestinationUpdate]
readsPrec :: Int -> ReadS AmazonopensearchserviceDestinationUpdate
$creadsPrec :: Int -> ReadS AmazonopensearchserviceDestinationUpdate
Prelude.Read, Int -> AmazonopensearchserviceDestinationUpdate -> ShowS
[AmazonopensearchserviceDestinationUpdate] -> ShowS
AmazonopensearchserviceDestinationUpdate -> String
(Int -> AmazonopensearchserviceDestinationUpdate -> ShowS)
-> (AmazonopensearchserviceDestinationUpdate -> String)
-> ([AmazonopensearchserviceDestinationUpdate] -> ShowS)
-> Show AmazonopensearchserviceDestinationUpdate
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AmazonopensearchserviceDestinationUpdate] -> ShowS
$cshowList :: [AmazonopensearchserviceDestinationUpdate] -> ShowS
show :: AmazonopensearchserviceDestinationUpdate -> String
$cshow :: AmazonopensearchserviceDestinationUpdate -> String
showsPrec :: Int -> AmazonopensearchserviceDestinationUpdate -> ShowS
$cshowsPrec :: Int -> AmazonopensearchserviceDestinationUpdate -> ShowS
Prelude.Show, (forall x.
 AmazonopensearchserviceDestinationUpdate
 -> Rep AmazonopensearchserviceDestinationUpdate x)
-> (forall x.
    Rep AmazonopensearchserviceDestinationUpdate x
    -> AmazonopensearchserviceDestinationUpdate)
-> Generic AmazonopensearchserviceDestinationUpdate
forall x.
Rep AmazonopensearchserviceDestinationUpdate x
-> AmazonopensearchserviceDestinationUpdate
forall x.
AmazonopensearchserviceDestinationUpdate
-> Rep AmazonopensearchserviceDestinationUpdate x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AmazonopensearchserviceDestinationUpdate x
-> AmazonopensearchserviceDestinationUpdate
$cfrom :: forall x.
AmazonopensearchserviceDestinationUpdate
-> Rep AmazonopensearchserviceDestinationUpdate x
Prelude.Generic)

-- |
-- Create a value of 'AmazonopensearchserviceDestinationUpdate' 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:
--
-- 'indexRotationPeriod', 'amazonopensearchserviceDestinationUpdate_indexRotationPeriod' - Undocumented member.
--
-- 'typeName', 'amazonopensearchserviceDestinationUpdate_typeName' - Undocumented member.
--
-- 'domainARN', 'amazonopensearchserviceDestinationUpdate_domainARN' - Undocumented member.
--
-- 'cloudWatchLoggingOptions', 'amazonopensearchserviceDestinationUpdate_cloudWatchLoggingOptions' - Undocumented member.
--
-- 's3Update', 'amazonopensearchserviceDestinationUpdate_s3Update' - Undocumented member.
--
-- 'bufferingHints', 'amazonopensearchserviceDestinationUpdate_bufferingHints' - Undocumented member.
--
-- 'retryOptions', 'amazonopensearchserviceDestinationUpdate_retryOptions' - Undocumented member.
--
-- 'processingConfiguration', 'amazonopensearchserviceDestinationUpdate_processingConfiguration' - Undocumented member.
--
-- 'roleARN', 'amazonopensearchserviceDestinationUpdate_roleARN' - Undocumented member.
--
-- 'clusterEndpoint', 'amazonopensearchserviceDestinationUpdate_clusterEndpoint' - Undocumented member.
--
-- 'indexName', 'amazonopensearchserviceDestinationUpdate_indexName' - Undocumented member.
newAmazonopensearchserviceDestinationUpdate ::
  AmazonopensearchserviceDestinationUpdate
newAmazonopensearchserviceDestinationUpdate :: AmazonopensearchserviceDestinationUpdate
newAmazonopensearchserviceDestinationUpdate =
  AmazonopensearchserviceDestinationUpdate' :: Maybe AmazonopensearchserviceIndexRotationPeriod
-> Maybe Text
-> Maybe Text
-> Maybe CloudWatchLoggingOptions
-> Maybe S3DestinationUpdate
-> Maybe AmazonopensearchserviceBufferingHints
-> Maybe AmazonopensearchserviceRetryOptions
-> Maybe ProcessingConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AmazonopensearchserviceDestinationUpdate
AmazonopensearchserviceDestinationUpdate'
    { $sel:indexRotationPeriod:AmazonopensearchserviceDestinationUpdate' :: Maybe AmazonopensearchserviceIndexRotationPeriod
indexRotationPeriod =
        Maybe AmazonopensearchserviceIndexRotationPeriod
forall a. Maybe a
Prelude.Nothing,
      $sel:typeName:AmazonopensearchserviceDestinationUpdate' :: Maybe Text
typeName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:domainARN:AmazonopensearchserviceDestinationUpdate' :: Maybe Text
domainARN = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:cloudWatchLoggingOptions:AmazonopensearchserviceDestinationUpdate' :: Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions =
        Maybe CloudWatchLoggingOptions
forall a. Maybe a
Prelude.Nothing,
      $sel:s3Update:AmazonopensearchserviceDestinationUpdate' :: Maybe S3DestinationUpdate
s3Update = Maybe S3DestinationUpdate
forall a. Maybe a
Prelude.Nothing,
      $sel:bufferingHints:AmazonopensearchserviceDestinationUpdate' :: Maybe AmazonopensearchserviceBufferingHints
bufferingHints = Maybe AmazonopensearchserviceBufferingHints
forall a. Maybe a
Prelude.Nothing,
      $sel:retryOptions:AmazonopensearchserviceDestinationUpdate' :: Maybe AmazonopensearchserviceRetryOptions
retryOptions = Maybe AmazonopensearchserviceRetryOptions
forall a. Maybe a
Prelude.Nothing,
      $sel:processingConfiguration:AmazonopensearchserviceDestinationUpdate' :: Maybe ProcessingConfiguration
processingConfiguration =
        Maybe ProcessingConfiguration
forall a. Maybe a
Prelude.Nothing,
      $sel:roleARN:AmazonopensearchserviceDestinationUpdate' :: Maybe Text
roleARN = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:clusterEndpoint:AmazonopensearchserviceDestinationUpdate' :: Maybe Text
clusterEndpoint = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:indexName:AmazonopensearchserviceDestinationUpdate' :: Maybe Text
indexName = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | Undocumented member.
amazonopensearchserviceDestinationUpdate_indexRotationPeriod :: Lens.Lens' AmazonopensearchserviceDestinationUpdate (Prelude.Maybe AmazonopensearchserviceIndexRotationPeriod)
amazonopensearchserviceDestinationUpdate_indexRotationPeriod :: (Maybe AmazonopensearchserviceIndexRotationPeriod
 -> f (Maybe AmazonopensearchserviceIndexRotationPeriod))
-> AmazonopensearchserviceDestinationUpdate
-> f AmazonopensearchserviceDestinationUpdate
amazonopensearchserviceDestinationUpdate_indexRotationPeriod = (AmazonopensearchserviceDestinationUpdate
 -> Maybe AmazonopensearchserviceIndexRotationPeriod)
-> (AmazonopensearchserviceDestinationUpdate
    -> Maybe AmazonopensearchserviceIndexRotationPeriod
    -> AmazonopensearchserviceDestinationUpdate)
-> Lens
     AmazonopensearchserviceDestinationUpdate
     AmazonopensearchserviceDestinationUpdate
     (Maybe AmazonopensearchserviceIndexRotationPeriod)
     (Maybe AmazonopensearchserviceIndexRotationPeriod)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AmazonopensearchserviceDestinationUpdate' {Maybe AmazonopensearchserviceIndexRotationPeriod
indexRotationPeriod :: Maybe AmazonopensearchserviceIndexRotationPeriod
$sel:indexRotationPeriod:AmazonopensearchserviceDestinationUpdate' :: AmazonopensearchserviceDestinationUpdate
-> Maybe AmazonopensearchserviceIndexRotationPeriod
indexRotationPeriod} -> Maybe AmazonopensearchserviceIndexRotationPeriod
indexRotationPeriod) (\s :: AmazonopensearchserviceDestinationUpdate
s@AmazonopensearchserviceDestinationUpdate' {} Maybe AmazonopensearchserviceIndexRotationPeriod
a -> AmazonopensearchserviceDestinationUpdate
s {$sel:indexRotationPeriod:AmazonopensearchserviceDestinationUpdate' :: Maybe AmazonopensearchserviceIndexRotationPeriod
indexRotationPeriod = Maybe AmazonopensearchserviceIndexRotationPeriod
a} :: AmazonopensearchserviceDestinationUpdate)

-- | Undocumented member.
amazonopensearchserviceDestinationUpdate_typeName :: Lens.Lens' AmazonopensearchserviceDestinationUpdate (Prelude.Maybe Prelude.Text)
amazonopensearchserviceDestinationUpdate_typeName :: (Maybe Text -> f (Maybe Text))
-> AmazonopensearchserviceDestinationUpdate
-> f AmazonopensearchserviceDestinationUpdate
amazonopensearchserviceDestinationUpdate_typeName = (AmazonopensearchserviceDestinationUpdate -> Maybe Text)
-> (AmazonopensearchserviceDestinationUpdate
    -> Maybe Text -> AmazonopensearchserviceDestinationUpdate)
-> Lens
     AmazonopensearchserviceDestinationUpdate
     AmazonopensearchserviceDestinationUpdate
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AmazonopensearchserviceDestinationUpdate' {Maybe Text
typeName :: Maybe Text
$sel:typeName:AmazonopensearchserviceDestinationUpdate' :: AmazonopensearchserviceDestinationUpdate -> Maybe Text
typeName} -> Maybe Text
typeName) (\s :: AmazonopensearchserviceDestinationUpdate
s@AmazonopensearchserviceDestinationUpdate' {} Maybe Text
a -> AmazonopensearchserviceDestinationUpdate
s {$sel:typeName:AmazonopensearchserviceDestinationUpdate' :: Maybe Text
typeName = Maybe Text
a} :: AmazonopensearchserviceDestinationUpdate)

-- | Undocumented member.
amazonopensearchserviceDestinationUpdate_domainARN :: Lens.Lens' AmazonopensearchserviceDestinationUpdate (Prelude.Maybe Prelude.Text)
amazonopensearchserviceDestinationUpdate_domainARN :: (Maybe Text -> f (Maybe Text))
-> AmazonopensearchserviceDestinationUpdate
-> f AmazonopensearchserviceDestinationUpdate
amazonopensearchserviceDestinationUpdate_domainARN = (AmazonopensearchserviceDestinationUpdate -> Maybe Text)
-> (AmazonopensearchserviceDestinationUpdate
    -> Maybe Text -> AmazonopensearchserviceDestinationUpdate)
-> Lens
     AmazonopensearchserviceDestinationUpdate
     AmazonopensearchserviceDestinationUpdate
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AmazonopensearchserviceDestinationUpdate' {Maybe Text
domainARN :: Maybe Text
$sel:domainARN:AmazonopensearchserviceDestinationUpdate' :: AmazonopensearchserviceDestinationUpdate -> Maybe Text
domainARN} -> Maybe Text
domainARN) (\s :: AmazonopensearchserviceDestinationUpdate
s@AmazonopensearchserviceDestinationUpdate' {} Maybe Text
a -> AmazonopensearchserviceDestinationUpdate
s {$sel:domainARN:AmazonopensearchserviceDestinationUpdate' :: Maybe Text
domainARN = Maybe Text
a} :: AmazonopensearchserviceDestinationUpdate)

-- | Undocumented member.
amazonopensearchserviceDestinationUpdate_cloudWatchLoggingOptions :: Lens.Lens' AmazonopensearchserviceDestinationUpdate (Prelude.Maybe CloudWatchLoggingOptions)
amazonopensearchserviceDestinationUpdate_cloudWatchLoggingOptions :: (Maybe CloudWatchLoggingOptions
 -> f (Maybe CloudWatchLoggingOptions))
-> AmazonopensearchserviceDestinationUpdate
-> f AmazonopensearchserviceDestinationUpdate
amazonopensearchserviceDestinationUpdate_cloudWatchLoggingOptions = (AmazonopensearchserviceDestinationUpdate
 -> Maybe CloudWatchLoggingOptions)
-> (AmazonopensearchserviceDestinationUpdate
    -> Maybe CloudWatchLoggingOptions
    -> AmazonopensearchserviceDestinationUpdate)
-> Lens
     AmazonopensearchserviceDestinationUpdate
     AmazonopensearchserviceDestinationUpdate
     (Maybe CloudWatchLoggingOptions)
     (Maybe CloudWatchLoggingOptions)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AmazonopensearchserviceDestinationUpdate' {Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions :: Maybe CloudWatchLoggingOptions
$sel:cloudWatchLoggingOptions:AmazonopensearchserviceDestinationUpdate' :: AmazonopensearchserviceDestinationUpdate
-> Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions} -> Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions) (\s :: AmazonopensearchserviceDestinationUpdate
s@AmazonopensearchserviceDestinationUpdate' {} Maybe CloudWatchLoggingOptions
a -> AmazonopensearchserviceDestinationUpdate
s {$sel:cloudWatchLoggingOptions:AmazonopensearchserviceDestinationUpdate' :: Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions = Maybe CloudWatchLoggingOptions
a} :: AmazonopensearchserviceDestinationUpdate)

-- | Undocumented member.
amazonopensearchserviceDestinationUpdate_s3Update :: Lens.Lens' AmazonopensearchserviceDestinationUpdate (Prelude.Maybe S3DestinationUpdate)
amazonopensearchserviceDestinationUpdate_s3Update :: (Maybe S3DestinationUpdate -> f (Maybe S3DestinationUpdate))
-> AmazonopensearchserviceDestinationUpdate
-> f AmazonopensearchserviceDestinationUpdate
amazonopensearchserviceDestinationUpdate_s3Update = (AmazonopensearchserviceDestinationUpdate
 -> Maybe S3DestinationUpdate)
-> (AmazonopensearchserviceDestinationUpdate
    -> Maybe S3DestinationUpdate
    -> AmazonopensearchserviceDestinationUpdate)
-> Lens
     AmazonopensearchserviceDestinationUpdate
     AmazonopensearchserviceDestinationUpdate
     (Maybe S3DestinationUpdate)
     (Maybe S3DestinationUpdate)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AmazonopensearchserviceDestinationUpdate' {Maybe S3DestinationUpdate
s3Update :: Maybe S3DestinationUpdate
$sel:s3Update:AmazonopensearchserviceDestinationUpdate' :: AmazonopensearchserviceDestinationUpdate
-> Maybe S3DestinationUpdate
s3Update} -> Maybe S3DestinationUpdate
s3Update) (\s :: AmazonopensearchserviceDestinationUpdate
s@AmazonopensearchserviceDestinationUpdate' {} Maybe S3DestinationUpdate
a -> AmazonopensearchserviceDestinationUpdate
s {$sel:s3Update:AmazonopensearchserviceDestinationUpdate' :: Maybe S3DestinationUpdate
s3Update = Maybe S3DestinationUpdate
a} :: AmazonopensearchserviceDestinationUpdate)

-- | Undocumented member.
amazonopensearchserviceDestinationUpdate_bufferingHints :: Lens.Lens' AmazonopensearchserviceDestinationUpdate (Prelude.Maybe AmazonopensearchserviceBufferingHints)
amazonopensearchserviceDestinationUpdate_bufferingHints :: (Maybe AmazonopensearchserviceBufferingHints
 -> f (Maybe AmazonopensearchserviceBufferingHints))
-> AmazonopensearchserviceDestinationUpdate
-> f AmazonopensearchserviceDestinationUpdate
amazonopensearchserviceDestinationUpdate_bufferingHints = (AmazonopensearchserviceDestinationUpdate
 -> Maybe AmazonopensearchserviceBufferingHints)
-> (AmazonopensearchserviceDestinationUpdate
    -> Maybe AmazonopensearchserviceBufferingHints
    -> AmazonopensearchserviceDestinationUpdate)
-> Lens
     AmazonopensearchserviceDestinationUpdate
     AmazonopensearchserviceDestinationUpdate
     (Maybe AmazonopensearchserviceBufferingHints)
     (Maybe AmazonopensearchserviceBufferingHints)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AmazonopensearchserviceDestinationUpdate' {Maybe AmazonopensearchserviceBufferingHints
bufferingHints :: Maybe AmazonopensearchserviceBufferingHints
$sel:bufferingHints:AmazonopensearchserviceDestinationUpdate' :: AmazonopensearchserviceDestinationUpdate
-> Maybe AmazonopensearchserviceBufferingHints
bufferingHints} -> Maybe AmazonopensearchserviceBufferingHints
bufferingHints) (\s :: AmazonopensearchserviceDestinationUpdate
s@AmazonopensearchserviceDestinationUpdate' {} Maybe AmazonopensearchserviceBufferingHints
a -> AmazonopensearchserviceDestinationUpdate
s {$sel:bufferingHints:AmazonopensearchserviceDestinationUpdate' :: Maybe AmazonopensearchserviceBufferingHints
bufferingHints = Maybe AmazonopensearchserviceBufferingHints
a} :: AmazonopensearchserviceDestinationUpdate)

-- | Undocumented member.
amazonopensearchserviceDestinationUpdate_retryOptions :: Lens.Lens' AmazonopensearchserviceDestinationUpdate (Prelude.Maybe AmazonopensearchserviceRetryOptions)
amazonopensearchserviceDestinationUpdate_retryOptions :: (Maybe AmazonopensearchserviceRetryOptions
 -> f (Maybe AmazonopensearchserviceRetryOptions))
-> AmazonopensearchserviceDestinationUpdate
-> f AmazonopensearchserviceDestinationUpdate
amazonopensearchserviceDestinationUpdate_retryOptions = (AmazonopensearchserviceDestinationUpdate
 -> Maybe AmazonopensearchserviceRetryOptions)
-> (AmazonopensearchserviceDestinationUpdate
    -> Maybe AmazonopensearchserviceRetryOptions
    -> AmazonopensearchserviceDestinationUpdate)
-> Lens
     AmazonopensearchserviceDestinationUpdate
     AmazonopensearchserviceDestinationUpdate
     (Maybe AmazonopensearchserviceRetryOptions)
     (Maybe AmazonopensearchserviceRetryOptions)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AmazonopensearchserviceDestinationUpdate' {Maybe AmazonopensearchserviceRetryOptions
retryOptions :: Maybe AmazonopensearchserviceRetryOptions
$sel:retryOptions:AmazonopensearchserviceDestinationUpdate' :: AmazonopensearchserviceDestinationUpdate
-> Maybe AmazonopensearchserviceRetryOptions
retryOptions} -> Maybe AmazonopensearchserviceRetryOptions
retryOptions) (\s :: AmazonopensearchserviceDestinationUpdate
s@AmazonopensearchserviceDestinationUpdate' {} Maybe AmazonopensearchserviceRetryOptions
a -> AmazonopensearchserviceDestinationUpdate
s {$sel:retryOptions:AmazonopensearchserviceDestinationUpdate' :: Maybe AmazonopensearchserviceRetryOptions
retryOptions = Maybe AmazonopensearchserviceRetryOptions
a} :: AmazonopensearchserviceDestinationUpdate)

-- | Undocumented member.
amazonopensearchserviceDestinationUpdate_processingConfiguration :: Lens.Lens' AmazonopensearchserviceDestinationUpdate (Prelude.Maybe ProcessingConfiguration)
amazonopensearchserviceDestinationUpdate_processingConfiguration :: (Maybe ProcessingConfiguration
 -> f (Maybe ProcessingConfiguration))
-> AmazonopensearchserviceDestinationUpdate
-> f AmazonopensearchserviceDestinationUpdate
amazonopensearchserviceDestinationUpdate_processingConfiguration = (AmazonopensearchserviceDestinationUpdate
 -> Maybe ProcessingConfiguration)
-> (AmazonopensearchserviceDestinationUpdate
    -> Maybe ProcessingConfiguration
    -> AmazonopensearchserviceDestinationUpdate)
-> Lens
     AmazonopensearchserviceDestinationUpdate
     AmazonopensearchserviceDestinationUpdate
     (Maybe ProcessingConfiguration)
     (Maybe ProcessingConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AmazonopensearchserviceDestinationUpdate' {Maybe ProcessingConfiguration
processingConfiguration :: Maybe ProcessingConfiguration
$sel:processingConfiguration:AmazonopensearchserviceDestinationUpdate' :: AmazonopensearchserviceDestinationUpdate
-> Maybe ProcessingConfiguration
processingConfiguration} -> Maybe ProcessingConfiguration
processingConfiguration) (\s :: AmazonopensearchserviceDestinationUpdate
s@AmazonopensearchserviceDestinationUpdate' {} Maybe ProcessingConfiguration
a -> AmazonopensearchserviceDestinationUpdate
s {$sel:processingConfiguration:AmazonopensearchserviceDestinationUpdate' :: Maybe ProcessingConfiguration
processingConfiguration = Maybe ProcessingConfiguration
a} :: AmazonopensearchserviceDestinationUpdate)

-- | Undocumented member.
amazonopensearchserviceDestinationUpdate_roleARN :: Lens.Lens' AmazonopensearchserviceDestinationUpdate (Prelude.Maybe Prelude.Text)
amazonopensearchserviceDestinationUpdate_roleARN :: (Maybe Text -> f (Maybe Text))
-> AmazonopensearchserviceDestinationUpdate
-> f AmazonopensearchserviceDestinationUpdate
amazonopensearchserviceDestinationUpdate_roleARN = (AmazonopensearchserviceDestinationUpdate -> Maybe Text)
-> (AmazonopensearchserviceDestinationUpdate
    -> Maybe Text -> AmazonopensearchserviceDestinationUpdate)
-> Lens
     AmazonopensearchserviceDestinationUpdate
     AmazonopensearchserviceDestinationUpdate
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AmazonopensearchserviceDestinationUpdate' {Maybe Text
roleARN :: Maybe Text
$sel:roleARN:AmazonopensearchserviceDestinationUpdate' :: AmazonopensearchserviceDestinationUpdate -> Maybe Text
roleARN} -> Maybe Text
roleARN) (\s :: AmazonopensearchserviceDestinationUpdate
s@AmazonopensearchserviceDestinationUpdate' {} Maybe Text
a -> AmazonopensearchserviceDestinationUpdate
s {$sel:roleARN:AmazonopensearchserviceDestinationUpdate' :: Maybe Text
roleARN = Maybe Text
a} :: AmazonopensearchserviceDestinationUpdate)

-- | Undocumented member.
amazonopensearchserviceDestinationUpdate_clusterEndpoint :: Lens.Lens' AmazonopensearchserviceDestinationUpdate (Prelude.Maybe Prelude.Text)
amazonopensearchserviceDestinationUpdate_clusterEndpoint :: (Maybe Text -> f (Maybe Text))
-> AmazonopensearchserviceDestinationUpdate
-> f AmazonopensearchserviceDestinationUpdate
amazonopensearchserviceDestinationUpdate_clusterEndpoint = (AmazonopensearchserviceDestinationUpdate -> Maybe Text)
-> (AmazonopensearchserviceDestinationUpdate
    -> Maybe Text -> AmazonopensearchserviceDestinationUpdate)
-> Lens
     AmazonopensearchserviceDestinationUpdate
     AmazonopensearchserviceDestinationUpdate
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AmazonopensearchserviceDestinationUpdate' {Maybe Text
clusterEndpoint :: Maybe Text
$sel:clusterEndpoint:AmazonopensearchserviceDestinationUpdate' :: AmazonopensearchserviceDestinationUpdate -> Maybe Text
clusterEndpoint} -> Maybe Text
clusterEndpoint) (\s :: AmazonopensearchserviceDestinationUpdate
s@AmazonopensearchserviceDestinationUpdate' {} Maybe Text
a -> AmazonopensearchserviceDestinationUpdate
s {$sel:clusterEndpoint:AmazonopensearchserviceDestinationUpdate' :: Maybe Text
clusterEndpoint = Maybe Text
a} :: AmazonopensearchserviceDestinationUpdate)

-- | Undocumented member.
amazonopensearchserviceDestinationUpdate_indexName :: Lens.Lens' AmazonopensearchserviceDestinationUpdate (Prelude.Maybe Prelude.Text)
amazonopensearchserviceDestinationUpdate_indexName :: (Maybe Text -> f (Maybe Text))
-> AmazonopensearchserviceDestinationUpdate
-> f AmazonopensearchserviceDestinationUpdate
amazonopensearchserviceDestinationUpdate_indexName = (AmazonopensearchserviceDestinationUpdate -> Maybe Text)
-> (AmazonopensearchserviceDestinationUpdate
    -> Maybe Text -> AmazonopensearchserviceDestinationUpdate)
-> Lens
     AmazonopensearchserviceDestinationUpdate
     AmazonopensearchserviceDestinationUpdate
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AmazonopensearchserviceDestinationUpdate' {Maybe Text
indexName :: Maybe Text
$sel:indexName:AmazonopensearchserviceDestinationUpdate' :: AmazonopensearchserviceDestinationUpdate -> Maybe Text
indexName} -> Maybe Text
indexName) (\s :: AmazonopensearchserviceDestinationUpdate
s@AmazonopensearchserviceDestinationUpdate' {} Maybe Text
a -> AmazonopensearchserviceDestinationUpdate
s {$sel:indexName:AmazonopensearchserviceDestinationUpdate' :: Maybe Text
indexName = Maybe Text
a} :: AmazonopensearchserviceDestinationUpdate)

instance
  Prelude.Hashable
    AmazonopensearchserviceDestinationUpdate

instance
  Prelude.NFData
    AmazonopensearchserviceDestinationUpdate

instance
  Core.ToJSON
    AmazonopensearchserviceDestinationUpdate
  where
  toJSON :: AmazonopensearchserviceDestinationUpdate -> Value
toJSON AmazonopensearchserviceDestinationUpdate' {Maybe Text
Maybe AmazonopensearchserviceBufferingHints
Maybe AmazonopensearchserviceIndexRotationPeriod
Maybe AmazonopensearchserviceRetryOptions
Maybe CloudWatchLoggingOptions
Maybe ProcessingConfiguration
Maybe S3DestinationUpdate
indexName :: Maybe Text
clusterEndpoint :: Maybe Text
roleARN :: Maybe Text
processingConfiguration :: Maybe ProcessingConfiguration
retryOptions :: Maybe AmazonopensearchserviceRetryOptions
bufferingHints :: Maybe AmazonopensearchserviceBufferingHints
s3Update :: Maybe S3DestinationUpdate
cloudWatchLoggingOptions :: Maybe CloudWatchLoggingOptions
domainARN :: Maybe Text
typeName :: Maybe Text
indexRotationPeriod :: Maybe AmazonopensearchserviceIndexRotationPeriod
$sel:indexName:AmazonopensearchserviceDestinationUpdate' :: AmazonopensearchserviceDestinationUpdate -> Maybe Text
$sel:clusterEndpoint:AmazonopensearchserviceDestinationUpdate' :: AmazonopensearchserviceDestinationUpdate -> Maybe Text
$sel:roleARN:AmazonopensearchserviceDestinationUpdate' :: AmazonopensearchserviceDestinationUpdate -> Maybe Text
$sel:processingConfiguration:AmazonopensearchserviceDestinationUpdate' :: AmazonopensearchserviceDestinationUpdate
-> Maybe ProcessingConfiguration
$sel:retryOptions:AmazonopensearchserviceDestinationUpdate' :: AmazonopensearchserviceDestinationUpdate
-> Maybe AmazonopensearchserviceRetryOptions
$sel:bufferingHints:AmazonopensearchserviceDestinationUpdate' :: AmazonopensearchserviceDestinationUpdate
-> Maybe AmazonopensearchserviceBufferingHints
$sel:s3Update:AmazonopensearchserviceDestinationUpdate' :: AmazonopensearchserviceDestinationUpdate
-> Maybe S3DestinationUpdate
$sel:cloudWatchLoggingOptions:AmazonopensearchserviceDestinationUpdate' :: AmazonopensearchserviceDestinationUpdate
-> Maybe CloudWatchLoggingOptions
$sel:domainARN:AmazonopensearchserviceDestinationUpdate' :: AmazonopensearchserviceDestinationUpdate -> Maybe Text
$sel:typeName:AmazonopensearchserviceDestinationUpdate' :: AmazonopensearchserviceDestinationUpdate -> Maybe Text
$sel:indexRotationPeriod:AmazonopensearchserviceDestinationUpdate' :: AmazonopensearchserviceDestinationUpdate
-> Maybe AmazonopensearchserviceIndexRotationPeriod
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"IndexRotationPeriod" Text -> AmazonopensearchserviceIndexRotationPeriod -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (AmazonopensearchserviceIndexRotationPeriod -> Pair)
-> Maybe AmazonopensearchserviceIndexRotationPeriod -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AmazonopensearchserviceIndexRotationPeriod
indexRotationPeriod,
            (Text
"TypeName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
typeName,
            (Text
"DomainARN" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
domainARN,
            (Text
"CloudWatchLoggingOptions" Text -> CloudWatchLoggingOptions -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (CloudWatchLoggingOptions -> Pair)
-> Maybe CloudWatchLoggingOptions -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions,
            (Text
"S3Update" Text -> S3DestinationUpdate -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (S3DestinationUpdate -> Pair)
-> Maybe S3DestinationUpdate -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe S3DestinationUpdate
s3Update,
            (Text
"BufferingHints" Text -> AmazonopensearchserviceBufferingHints -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (AmazonopensearchserviceBufferingHints -> Pair)
-> Maybe AmazonopensearchserviceBufferingHints -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AmazonopensearchserviceBufferingHints
bufferingHints,
            (Text
"RetryOptions" Text -> AmazonopensearchserviceRetryOptions -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (AmazonopensearchserviceRetryOptions -> Pair)
-> Maybe AmazonopensearchserviceRetryOptions -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AmazonopensearchserviceRetryOptions
retryOptions,
            (Text
"ProcessingConfiguration" Text -> ProcessingConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (ProcessingConfiguration -> Pair)
-> Maybe ProcessingConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ProcessingConfiguration
processingConfiguration,
            (Text
"RoleARN" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
roleARN,
            (Text
"ClusterEndpoint" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
clusterEndpoint,
            (Text
"IndexName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
indexName
          ]
      )