{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.Firehose.Types.AmazonopensearchserviceDestinationConfiguration 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.AmazonopensearchserviceS3BackupMode
import Amazonka.Firehose.Types.CloudWatchLoggingOptions
import Amazonka.Firehose.Types.ProcessingConfiguration
import Amazonka.Firehose.Types.S3DestinationConfiguration
import Amazonka.Firehose.Types.VpcConfiguration
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data AmazonopensearchserviceDestinationConfiguration = AmazonopensearchserviceDestinationConfiguration'
{ AmazonopensearchserviceDestinationConfiguration
-> Maybe AmazonopensearchserviceIndexRotationPeriod
indexRotationPeriod :: Prelude.Maybe AmazonopensearchserviceIndexRotationPeriod,
AmazonopensearchserviceDestinationConfiguration -> Maybe Text
typeName :: Prelude.Maybe Prelude.Text,
AmazonopensearchserviceDestinationConfiguration
-> Maybe AmazonopensearchserviceS3BackupMode
s3BackupMode :: Prelude.Maybe AmazonopensearchserviceS3BackupMode,
AmazonopensearchserviceDestinationConfiguration -> Maybe Text
domainARN :: Prelude.Maybe Prelude.Text,
AmazonopensearchserviceDestinationConfiguration
-> Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions :: Prelude.Maybe CloudWatchLoggingOptions,
AmazonopensearchserviceDestinationConfiguration
-> Maybe VpcConfiguration
vpcConfiguration :: Prelude.Maybe VpcConfiguration,
AmazonopensearchserviceDestinationConfiguration
-> Maybe AmazonopensearchserviceBufferingHints
bufferingHints :: Prelude.Maybe AmazonopensearchserviceBufferingHints,
AmazonopensearchserviceDestinationConfiguration
-> Maybe AmazonopensearchserviceRetryOptions
retryOptions :: Prelude.Maybe AmazonopensearchserviceRetryOptions,
AmazonopensearchserviceDestinationConfiguration
-> Maybe ProcessingConfiguration
processingConfiguration :: Prelude.Maybe ProcessingConfiguration,
AmazonopensearchserviceDestinationConfiguration -> Maybe Text
clusterEndpoint :: Prelude.Maybe Prelude.Text,
AmazonopensearchserviceDestinationConfiguration -> Text
roleARN :: Prelude.Text,
AmazonopensearchserviceDestinationConfiguration -> Text
indexName :: Prelude.Text,
AmazonopensearchserviceDestinationConfiguration
-> S3DestinationConfiguration
s3Configuration :: S3DestinationConfiguration
}
deriving (AmazonopensearchserviceDestinationConfiguration
-> AmazonopensearchserviceDestinationConfiguration -> Bool
(AmazonopensearchserviceDestinationConfiguration
-> AmazonopensearchserviceDestinationConfiguration -> Bool)
-> (AmazonopensearchserviceDestinationConfiguration
-> AmazonopensearchserviceDestinationConfiguration -> Bool)
-> Eq AmazonopensearchserviceDestinationConfiguration
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AmazonopensearchserviceDestinationConfiguration
-> AmazonopensearchserviceDestinationConfiguration -> Bool
$c/= :: AmazonopensearchserviceDestinationConfiguration
-> AmazonopensearchserviceDestinationConfiguration -> Bool
== :: AmazonopensearchserviceDestinationConfiguration
-> AmazonopensearchserviceDestinationConfiguration -> Bool
$c== :: AmazonopensearchserviceDestinationConfiguration
-> AmazonopensearchserviceDestinationConfiguration -> Bool
Prelude.Eq, ReadPrec [AmazonopensearchserviceDestinationConfiguration]
ReadPrec AmazonopensearchserviceDestinationConfiguration
Int -> ReadS AmazonopensearchserviceDestinationConfiguration
ReadS [AmazonopensearchserviceDestinationConfiguration]
(Int -> ReadS AmazonopensearchserviceDestinationConfiguration)
-> ReadS [AmazonopensearchserviceDestinationConfiguration]
-> ReadPrec AmazonopensearchserviceDestinationConfiguration
-> ReadPrec [AmazonopensearchserviceDestinationConfiguration]
-> Read AmazonopensearchserviceDestinationConfiguration
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AmazonopensearchserviceDestinationConfiguration]
$creadListPrec :: ReadPrec [AmazonopensearchserviceDestinationConfiguration]
readPrec :: ReadPrec AmazonopensearchserviceDestinationConfiguration
$creadPrec :: ReadPrec AmazonopensearchserviceDestinationConfiguration
readList :: ReadS [AmazonopensearchserviceDestinationConfiguration]
$creadList :: ReadS [AmazonopensearchserviceDestinationConfiguration]
readsPrec :: Int -> ReadS AmazonopensearchserviceDestinationConfiguration
$creadsPrec :: Int -> ReadS AmazonopensearchserviceDestinationConfiguration
Prelude.Read, Int -> AmazonopensearchserviceDestinationConfiguration -> ShowS
[AmazonopensearchserviceDestinationConfiguration] -> ShowS
AmazonopensearchserviceDestinationConfiguration -> String
(Int -> AmazonopensearchserviceDestinationConfiguration -> ShowS)
-> (AmazonopensearchserviceDestinationConfiguration -> String)
-> ([AmazonopensearchserviceDestinationConfiguration] -> ShowS)
-> Show AmazonopensearchserviceDestinationConfiguration
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AmazonopensearchserviceDestinationConfiguration] -> ShowS
$cshowList :: [AmazonopensearchserviceDestinationConfiguration] -> ShowS
show :: AmazonopensearchserviceDestinationConfiguration -> String
$cshow :: AmazonopensearchserviceDestinationConfiguration -> String
showsPrec :: Int -> AmazonopensearchserviceDestinationConfiguration -> ShowS
$cshowsPrec :: Int -> AmazonopensearchserviceDestinationConfiguration -> ShowS
Prelude.Show, (forall x.
AmazonopensearchserviceDestinationConfiguration
-> Rep AmazonopensearchserviceDestinationConfiguration x)
-> (forall x.
Rep AmazonopensearchserviceDestinationConfiguration x
-> AmazonopensearchserviceDestinationConfiguration)
-> Generic AmazonopensearchserviceDestinationConfiguration
forall x.
Rep AmazonopensearchserviceDestinationConfiguration x
-> AmazonopensearchserviceDestinationConfiguration
forall x.
AmazonopensearchserviceDestinationConfiguration
-> Rep AmazonopensearchserviceDestinationConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AmazonopensearchserviceDestinationConfiguration x
-> AmazonopensearchserviceDestinationConfiguration
$cfrom :: forall x.
AmazonopensearchserviceDestinationConfiguration
-> Rep AmazonopensearchserviceDestinationConfiguration x
Prelude.Generic)
newAmazonopensearchserviceDestinationConfiguration ::
Prelude.Text ->
Prelude.Text ->
S3DestinationConfiguration ->
AmazonopensearchserviceDestinationConfiguration
newAmazonopensearchserviceDestinationConfiguration :: Text
-> Text
-> S3DestinationConfiguration
-> AmazonopensearchserviceDestinationConfiguration
newAmazonopensearchserviceDestinationConfiguration
Text
pRoleARN_
Text
pIndexName_
S3DestinationConfiguration
pS3Configuration_ =
AmazonopensearchserviceDestinationConfiguration' :: Maybe AmazonopensearchserviceIndexRotationPeriod
-> Maybe Text
-> Maybe AmazonopensearchserviceS3BackupMode
-> Maybe Text
-> Maybe CloudWatchLoggingOptions
-> Maybe VpcConfiguration
-> Maybe AmazonopensearchserviceBufferingHints
-> Maybe AmazonopensearchserviceRetryOptions
-> Maybe ProcessingConfiguration
-> Maybe Text
-> Text
-> Text
-> S3DestinationConfiguration
-> AmazonopensearchserviceDestinationConfiguration
AmazonopensearchserviceDestinationConfiguration'
{ $sel:indexRotationPeriod:AmazonopensearchserviceDestinationConfiguration' :: Maybe AmazonopensearchserviceIndexRotationPeriod
indexRotationPeriod =
Maybe AmazonopensearchserviceIndexRotationPeriod
forall a. Maybe a
Prelude.Nothing,
$sel:typeName:AmazonopensearchserviceDestinationConfiguration' :: Maybe Text
typeName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:s3BackupMode:AmazonopensearchserviceDestinationConfiguration' :: Maybe AmazonopensearchserviceS3BackupMode
s3BackupMode =
Maybe AmazonopensearchserviceS3BackupMode
forall a. Maybe a
Prelude.Nothing,
$sel:domainARN:AmazonopensearchserviceDestinationConfiguration' :: Maybe Text
domainARN =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:cloudWatchLoggingOptions:AmazonopensearchserviceDestinationConfiguration' :: Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions =
Maybe CloudWatchLoggingOptions
forall a. Maybe a
Prelude.Nothing,
$sel:vpcConfiguration:AmazonopensearchserviceDestinationConfiguration' :: Maybe VpcConfiguration
vpcConfiguration =
Maybe VpcConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:bufferingHints:AmazonopensearchserviceDestinationConfiguration' :: Maybe AmazonopensearchserviceBufferingHints
bufferingHints =
Maybe AmazonopensearchserviceBufferingHints
forall a. Maybe a
Prelude.Nothing,
$sel:retryOptions:AmazonopensearchserviceDestinationConfiguration' :: Maybe AmazonopensearchserviceRetryOptions
retryOptions =
Maybe AmazonopensearchserviceRetryOptions
forall a. Maybe a
Prelude.Nothing,
$sel:processingConfiguration:AmazonopensearchserviceDestinationConfiguration' :: Maybe ProcessingConfiguration
processingConfiguration =
Maybe ProcessingConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:clusterEndpoint:AmazonopensearchserviceDestinationConfiguration' :: Maybe Text
clusterEndpoint =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:roleARN:AmazonopensearchserviceDestinationConfiguration' :: Text
roleARN = Text
pRoleARN_,
$sel:indexName:AmazonopensearchserviceDestinationConfiguration' :: Text
indexName = Text
pIndexName_,
$sel:s3Configuration:AmazonopensearchserviceDestinationConfiguration' :: S3DestinationConfiguration
s3Configuration =
S3DestinationConfiguration
pS3Configuration_
}
amazonopensearchserviceDestinationConfiguration_indexRotationPeriod :: Lens.Lens' AmazonopensearchserviceDestinationConfiguration (Prelude.Maybe AmazonopensearchserviceIndexRotationPeriod)
amazonopensearchserviceDestinationConfiguration_indexRotationPeriod :: (Maybe AmazonopensearchserviceIndexRotationPeriod
-> f (Maybe AmazonopensearchserviceIndexRotationPeriod))
-> AmazonopensearchserviceDestinationConfiguration
-> f AmazonopensearchserviceDestinationConfiguration
amazonopensearchserviceDestinationConfiguration_indexRotationPeriod = (AmazonopensearchserviceDestinationConfiguration
-> Maybe AmazonopensearchserviceIndexRotationPeriod)
-> (AmazonopensearchserviceDestinationConfiguration
-> Maybe AmazonopensearchserviceIndexRotationPeriod
-> AmazonopensearchserviceDestinationConfiguration)
-> Lens
AmazonopensearchserviceDestinationConfiguration
AmazonopensearchserviceDestinationConfiguration
(Maybe AmazonopensearchserviceIndexRotationPeriod)
(Maybe AmazonopensearchserviceIndexRotationPeriod)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AmazonopensearchserviceDestinationConfiguration' {Maybe AmazonopensearchserviceIndexRotationPeriod
indexRotationPeriod :: Maybe AmazonopensearchserviceIndexRotationPeriod
$sel:indexRotationPeriod:AmazonopensearchserviceDestinationConfiguration' :: AmazonopensearchserviceDestinationConfiguration
-> Maybe AmazonopensearchserviceIndexRotationPeriod
indexRotationPeriod} -> Maybe AmazonopensearchserviceIndexRotationPeriod
indexRotationPeriod) (\s :: AmazonopensearchserviceDestinationConfiguration
s@AmazonopensearchserviceDestinationConfiguration' {} Maybe AmazonopensearchserviceIndexRotationPeriod
a -> AmazonopensearchserviceDestinationConfiguration
s {$sel:indexRotationPeriod:AmazonopensearchserviceDestinationConfiguration' :: Maybe AmazonopensearchserviceIndexRotationPeriod
indexRotationPeriod = Maybe AmazonopensearchserviceIndexRotationPeriod
a} :: AmazonopensearchserviceDestinationConfiguration)
amazonopensearchserviceDestinationConfiguration_typeName :: Lens.Lens' AmazonopensearchserviceDestinationConfiguration (Prelude.Maybe Prelude.Text)
amazonopensearchserviceDestinationConfiguration_typeName :: (Maybe Text -> f (Maybe Text))
-> AmazonopensearchserviceDestinationConfiguration
-> f AmazonopensearchserviceDestinationConfiguration
amazonopensearchserviceDestinationConfiguration_typeName = (AmazonopensearchserviceDestinationConfiguration -> Maybe Text)
-> (AmazonopensearchserviceDestinationConfiguration
-> Maybe Text -> AmazonopensearchserviceDestinationConfiguration)
-> Lens
AmazonopensearchserviceDestinationConfiguration
AmazonopensearchserviceDestinationConfiguration
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AmazonopensearchserviceDestinationConfiguration' {Maybe Text
typeName :: Maybe Text
$sel:typeName:AmazonopensearchserviceDestinationConfiguration' :: AmazonopensearchserviceDestinationConfiguration -> Maybe Text
typeName} -> Maybe Text
typeName) (\s :: AmazonopensearchserviceDestinationConfiguration
s@AmazonopensearchserviceDestinationConfiguration' {} Maybe Text
a -> AmazonopensearchserviceDestinationConfiguration
s {$sel:typeName:AmazonopensearchserviceDestinationConfiguration' :: Maybe Text
typeName = Maybe Text
a} :: AmazonopensearchserviceDestinationConfiguration)
amazonopensearchserviceDestinationConfiguration_s3BackupMode :: Lens.Lens' AmazonopensearchserviceDestinationConfiguration (Prelude.Maybe AmazonopensearchserviceS3BackupMode)
amazonopensearchserviceDestinationConfiguration_s3BackupMode :: (Maybe AmazonopensearchserviceS3BackupMode
-> f (Maybe AmazonopensearchserviceS3BackupMode))
-> AmazonopensearchserviceDestinationConfiguration
-> f AmazonopensearchserviceDestinationConfiguration
amazonopensearchserviceDestinationConfiguration_s3BackupMode = (AmazonopensearchserviceDestinationConfiguration
-> Maybe AmazonopensearchserviceS3BackupMode)
-> (AmazonopensearchserviceDestinationConfiguration
-> Maybe AmazonopensearchserviceS3BackupMode
-> AmazonopensearchserviceDestinationConfiguration)
-> Lens
AmazonopensearchserviceDestinationConfiguration
AmazonopensearchserviceDestinationConfiguration
(Maybe AmazonopensearchserviceS3BackupMode)
(Maybe AmazonopensearchserviceS3BackupMode)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AmazonopensearchserviceDestinationConfiguration' {Maybe AmazonopensearchserviceS3BackupMode
s3BackupMode :: Maybe AmazonopensearchserviceS3BackupMode
$sel:s3BackupMode:AmazonopensearchserviceDestinationConfiguration' :: AmazonopensearchserviceDestinationConfiguration
-> Maybe AmazonopensearchserviceS3BackupMode
s3BackupMode} -> Maybe AmazonopensearchserviceS3BackupMode
s3BackupMode) (\s :: AmazonopensearchserviceDestinationConfiguration
s@AmazonopensearchserviceDestinationConfiguration' {} Maybe AmazonopensearchserviceS3BackupMode
a -> AmazonopensearchserviceDestinationConfiguration
s {$sel:s3BackupMode:AmazonopensearchserviceDestinationConfiguration' :: Maybe AmazonopensearchserviceS3BackupMode
s3BackupMode = Maybe AmazonopensearchserviceS3BackupMode
a} :: AmazonopensearchserviceDestinationConfiguration)
amazonopensearchserviceDestinationConfiguration_domainARN :: Lens.Lens' AmazonopensearchserviceDestinationConfiguration (Prelude.Maybe Prelude.Text)
amazonopensearchserviceDestinationConfiguration_domainARN :: (Maybe Text -> f (Maybe Text))
-> AmazonopensearchserviceDestinationConfiguration
-> f AmazonopensearchserviceDestinationConfiguration
amazonopensearchserviceDestinationConfiguration_domainARN = (AmazonopensearchserviceDestinationConfiguration -> Maybe Text)
-> (AmazonopensearchserviceDestinationConfiguration
-> Maybe Text -> AmazonopensearchserviceDestinationConfiguration)
-> Lens
AmazonopensearchserviceDestinationConfiguration
AmazonopensearchserviceDestinationConfiguration
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AmazonopensearchserviceDestinationConfiguration' {Maybe Text
domainARN :: Maybe Text
$sel:domainARN:AmazonopensearchserviceDestinationConfiguration' :: AmazonopensearchserviceDestinationConfiguration -> Maybe Text
domainARN} -> Maybe Text
domainARN) (\s :: AmazonopensearchserviceDestinationConfiguration
s@AmazonopensearchserviceDestinationConfiguration' {} Maybe Text
a -> AmazonopensearchserviceDestinationConfiguration
s {$sel:domainARN:AmazonopensearchserviceDestinationConfiguration' :: Maybe Text
domainARN = Maybe Text
a} :: AmazonopensearchserviceDestinationConfiguration)
amazonopensearchserviceDestinationConfiguration_cloudWatchLoggingOptions :: Lens.Lens' AmazonopensearchserviceDestinationConfiguration (Prelude.Maybe CloudWatchLoggingOptions)
amazonopensearchserviceDestinationConfiguration_cloudWatchLoggingOptions :: (Maybe CloudWatchLoggingOptions
-> f (Maybe CloudWatchLoggingOptions))
-> AmazonopensearchserviceDestinationConfiguration
-> f AmazonopensearchserviceDestinationConfiguration
amazonopensearchserviceDestinationConfiguration_cloudWatchLoggingOptions = (AmazonopensearchserviceDestinationConfiguration
-> Maybe CloudWatchLoggingOptions)
-> (AmazonopensearchserviceDestinationConfiguration
-> Maybe CloudWatchLoggingOptions
-> AmazonopensearchserviceDestinationConfiguration)
-> Lens
AmazonopensearchserviceDestinationConfiguration
AmazonopensearchserviceDestinationConfiguration
(Maybe CloudWatchLoggingOptions)
(Maybe CloudWatchLoggingOptions)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AmazonopensearchserviceDestinationConfiguration' {Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions :: Maybe CloudWatchLoggingOptions
$sel:cloudWatchLoggingOptions:AmazonopensearchserviceDestinationConfiguration' :: AmazonopensearchserviceDestinationConfiguration
-> Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions} -> Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions) (\s :: AmazonopensearchserviceDestinationConfiguration
s@AmazonopensearchserviceDestinationConfiguration' {} Maybe CloudWatchLoggingOptions
a -> AmazonopensearchserviceDestinationConfiguration
s {$sel:cloudWatchLoggingOptions:AmazonopensearchserviceDestinationConfiguration' :: Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions = Maybe CloudWatchLoggingOptions
a} :: AmazonopensearchserviceDestinationConfiguration)
amazonopensearchserviceDestinationConfiguration_vpcConfiguration :: Lens.Lens' AmazonopensearchserviceDestinationConfiguration (Prelude.Maybe VpcConfiguration)
amazonopensearchserviceDestinationConfiguration_vpcConfiguration :: (Maybe VpcConfiguration -> f (Maybe VpcConfiguration))
-> AmazonopensearchserviceDestinationConfiguration
-> f AmazonopensearchserviceDestinationConfiguration
amazonopensearchserviceDestinationConfiguration_vpcConfiguration = (AmazonopensearchserviceDestinationConfiguration
-> Maybe VpcConfiguration)
-> (AmazonopensearchserviceDestinationConfiguration
-> Maybe VpcConfiguration
-> AmazonopensearchserviceDestinationConfiguration)
-> Lens
AmazonopensearchserviceDestinationConfiguration
AmazonopensearchserviceDestinationConfiguration
(Maybe VpcConfiguration)
(Maybe VpcConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AmazonopensearchserviceDestinationConfiguration' {Maybe VpcConfiguration
vpcConfiguration :: Maybe VpcConfiguration
$sel:vpcConfiguration:AmazonopensearchserviceDestinationConfiguration' :: AmazonopensearchserviceDestinationConfiguration
-> Maybe VpcConfiguration
vpcConfiguration} -> Maybe VpcConfiguration
vpcConfiguration) (\s :: AmazonopensearchserviceDestinationConfiguration
s@AmazonopensearchserviceDestinationConfiguration' {} Maybe VpcConfiguration
a -> AmazonopensearchserviceDestinationConfiguration
s {$sel:vpcConfiguration:AmazonopensearchserviceDestinationConfiguration' :: Maybe VpcConfiguration
vpcConfiguration = Maybe VpcConfiguration
a} :: AmazonopensearchserviceDestinationConfiguration)
amazonopensearchserviceDestinationConfiguration_bufferingHints :: Lens.Lens' AmazonopensearchserviceDestinationConfiguration (Prelude.Maybe AmazonopensearchserviceBufferingHints)
amazonopensearchserviceDestinationConfiguration_bufferingHints :: (Maybe AmazonopensearchserviceBufferingHints
-> f (Maybe AmazonopensearchserviceBufferingHints))
-> AmazonopensearchserviceDestinationConfiguration
-> f AmazonopensearchserviceDestinationConfiguration
amazonopensearchserviceDestinationConfiguration_bufferingHints = (AmazonopensearchserviceDestinationConfiguration
-> Maybe AmazonopensearchserviceBufferingHints)
-> (AmazonopensearchserviceDestinationConfiguration
-> Maybe AmazonopensearchserviceBufferingHints
-> AmazonopensearchserviceDestinationConfiguration)
-> Lens
AmazonopensearchserviceDestinationConfiguration
AmazonopensearchserviceDestinationConfiguration
(Maybe AmazonopensearchserviceBufferingHints)
(Maybe AmazonopensearchserviceBufferingHints)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AmazonopensearchserviceDestinationConfiguration' {Maybe AmazonopensearchserviceBufferingHints
bufferingHints :: Maybe AmazonopensearchserviceBufferingHints
$sel:bufferingHints:AmazonopensearchserviceDestinationConfiguration' :: AmazonopensearchserviceDestinationConfiguration
-> Maybe AmazonopensearchserviceBufferingHints
bufferingHints} -> Maybe AmazonopensearchserviceBufferingHints
bufferingHints) (\s :: AmazonopensearchserviceDestinationConfiguration
s@AmazonopensearchserviceDestinationConfiguration' {} Maybe AmazonopensearchserviceBufferingHints
a -> AmazonopensearchserviceDestinationConfiguration
s {$sel:bufferingHints:AmazonopensearchserviceDestinationConfiguration' :: Maybe AmazonopensearchserviceBufferingHints
bufferingHints = Maybe AmazonopensearchserviceBufferingHints
a} :: AmazonopensearchserviceDestinationConfiguration)
amazonopensearchserviceDestinationConfiguration_retryOptions :: Lens.Lens' AmazonopensearchserviceDestinationConfiguration (Prelude.Maybe AmazonopensearchserviceRetryOptions)
amazonopensearchserviceDestinationConfiguration_retryOptions :: (Maybe AmazonopensearchserviceRetryOptions
-> f (Maybe AmazonopensearchserviceRetryOptions))
-> AmazonopensearchserviceDestinationConfiguration
-> f AmazonopensearchserviceDestinationConfiguration
amazonopensearchserviceDestinationConfiguration_retryOptions = (AmazonopensearchserviceDestinationConfiguration
-> Maybe AmazonopensearchserviceRetryOptions)
-> (AmazonopensearchserviceDestinationConfiguration
-> Maybe AmazonopensearchserviceRetryOptions
-> AmazonopensearchserviceDestinationConfiguration)
-> Lens
AmazonopensearchserviceDestinationConfiguration
AmazonopensearchserviceDestinationConfiguration
(Maybe AmazonopensearchserviceRetryOptions)
(Maybe AmazonopensearchserviceRetryOptions)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AmazonopensearchserviceDestinationConfiguration' {Maybe AmazonopensearchserviceRetryOptions
retryOptions :: Maybe AmazonopensearchserviceRetryOptions
$sel:retryOptions:AmazonopensearchserviceDestinationConfiguration' :: AmazonopensearchserviceDestinationConfiguration
-> Maybe AmazonopensearchserviceRetryOptions
retryOptions} -> Maybe AmazonopensearchserviceRetryOptions
retryOptions) (\s :: AmazonopensearchserviceDestinationConfiguration
s@AmazonopensearchserviceDestinationConfiguration' {} Maybe AmazonopensearchserviceRetryOptions
a -> AmazonopensearchserviceDestinationConfiguration
s {$sel:retryOptions:AmazonopensearchserviceDestinationConfiguration' :: Maybe AmazonopensearchserviceRetryOptions
retryOptions = Maybe AmazonopensearchserviceRetryOptions
a} :: AmazonopensearchserviceDestinationConfiguration)
amazonopensearchserviceDestinationConfiguration_processingConfiguration :: Lens.Lens' AmazonopensearchserviceDestinationConfiguration (Prelude.Maybe ProcessingConfiguration)
amazonopensearchserviceDestinationConfiguration_processingConfiguration :: (Maybe ProcessingConfiguration
-> f (Maybe ProcessingConfiguration))
-> AmazonopensearchserviceDestinationConfiguration
-> f AmazonopensearchserviceDestinationConfiguration
amazonopensearchserviceDestinationConfiguration_processingConfiguration = (AmazonopensearchserviceDestinationConfiguration
-> Maybe ProcessingConfiguration)
-> (AmazonopensearchserviceDestinationConfiguration
-> Maybe ProcessingConfiguration
-> AmazonopensearchserviceDestinationConfiguration)
-> Lens
AmazonopensearchserviceDestinationConfiguration
AmazonopensearchserviceDestinationConfiguration
(Maybe ProcessingConfiguration)
(Maybe ProcessingConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AmazonopensearchserviceDestinationConfiguration' {Maybe ProcessingConfiguration
processingConfiguration :: Maybe ProcessingConfiguration
$sel:processingConfiguration:AmazonopensearchserviceDestinationConfiguration' :: AmazonopensearchserviceDestinationConfiguration
-> Maybe ProcessingConfiguration
processingConfiguration} -> Maybe ProcessingConfiguration
processingConfiguration) (\s :: AmazonopensearchserviceDestinationConfiguration
s@AmazonopensearchserviceDestinationConfiguration' {} Maybe ProcessingConfiguration
a -> AmazonopensearchserviceDestinationConfiguration
s {$sel:processingConfiguration:AmazonopensearchserviceDestinationConfiguration' :: Maybe ProcessingConfiguration
processingConfiguration = Maybe ProcessingConfiguration
a} :: AmazonopensearchserviceDestinationConfiguration)
amazonopensearchserviceDestinationConfiguration_clusterEndpoint :: Lens.Lens' AmazonopensearchserviceDestinationConfiguration (Prelude.Maybe Prelude.Text)
amazonopensearchserviceDestinationConfiguration_clusterEndpoint :: (Maybe Text -> f (Maybe Text))
-> AmazonopensearchserviceDestinationConfiguration
-> f AmazonopensearchserviceDestinationConfiguration
amazonopensearchserviceDestinationConfiguration_clusterEndpoint = (AmazonopensearchserviceDestinationConfiguration -> Maybe Text)
-> (AmazonopensearchserviceDestinationConfiguration
-> Maybe Text -> AmazonopensearchserviceDestinationConfiguration)
-> Lens
AmazonopensearchserviceDestinationConfiguration
AmazonopensearchserviceDestinationConfiguration
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AmazonopensearchserviceDestinationConfiguration' {Maybe Text
clusterEndpoint :: Maybe Text
$sel:clusterEndpoint:AmazonopensearchserviceDestinationConfiguration' :: AmazonopensearchserviceDestinationConfiguration -> Maybe Text
clusterEndpoint} -> Maybe Text
clusterEndpoint) (\s :: AmazonopensearchserviceDestinationConfiguration
s@AmazonopensearchserviceDestinationConfiguration' {} Maybe Text
a -> AmazonopensearchserviceDestinationConfiguration
s {$sel:clusterEndpoint:AmazonopensearchserviceDestinationConfiguration' :: Maybe Text
clusterEndpoint = Maybe Text
a} :: AmazonopensearchserviceDestinationConfiguration)
amazonopensearchserviceDestinationConfiguration_roleARN :: Lens.Lens' AmazonopensearchserviceDestinationConfiguration Prelude.Text
amazonopensearchserviceDestinationConfiguration_roleARN :: (Text -> f Text)
-> AmazonopensearchserviceDestinationConfiguration
-> f AmazonopensearchserviceDestinationConfiguration
amazonopensearchserviceDestinationConfiguration_roleARN = (AmazonopensearchserviceDestinationConfiguration -> Text)
-> (AmazonopensearchserviceDestinationConfiguration
-> Text -> AmazonopensearchserviceDestinationConfiguration)
-> Lens
AmazonopensearchserviceDestinationConfiguration
AmazonopensearchserviceDestinationConfiguration
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AmazonopensearchserviceDestinationConfiguration' {Text
roleARN :: Text
$sel:roleARN:AmazonopensearchserviceDestinationConfiguration' :: AmazonopensearchserviceDestinationConfiguration -> Text
roleARN} -> Text
roleARN) (\s :: AmazonopensearchserviceDestinationConfiguration
s@AmazonopensearchserviceDestinationConfiguration' {} Text
a -> AmazonopensearchserviceDestinationConfiguration
s {$sel:roleARN:AmazonopensearchserviceDestinationConfiguration' :: Text
roleARN = Text
a} :: AmazonopensearchserviceDestinationConfiguration)
amazonopensearchserviceDestinationConfiguration_indexName :: Lens.Lens' AmazonopensearchserviceDestinationConfiguration Prelude.Text
amazonopensearchserviceDestinationConfiguration_indexName :: (Text -> f Text)
-> AmazonopensearchserviceDestinationConfiguration
-> f AmazonopensearchserviceDestinationConfiguration
amazonopensearchserviceDestinationConfiguration_indexName = (AmazonopensearchserviceDestinationConfiguration -> Text)
-> (AmazonopensearchserviceDestinationConfiguration
-> Text -> AmazonopensearchserviceDestinationConfiguration)
-> Lens
AmazonopensearchserviceDestinationConfiguration
AmazonopensearchserviceDestinationConfiguration
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AmazonopensearchserviceDestinationConfiguration' {Text
indexName :: Text
$sel:indexName:AmazonopensearchserviceDestinationConfiguration' :: AmazonopensearchserviceDestinationConfiguration -> Text
indexName} -> Text
indexName) (\s :: AmazonopensearchserviceDestinationConfiguration
s@AmazonopensearchserviceDestinationConfiguration' {} Text
a -> AmazonopensearchserviceDestinationConfiguration
s {$sel:indexName:AmazonopensearchserviceDestinationConfiguration' :: Text
indexName = Text
a} :: AmazonopensearchserviceDestinationConfiguration)
amazonopensearchserviceDestinationConfiguration_s3Configuration :: Lens.Lens' AmazonopensearchserviceDestinationConfiguration S3DestinationConfiguration
amazonopensearchserviceDestinationConfiguration_s3Configuration :: (S3DestinationConfiguration -> f S3DestinationConfiguration)
-> AmazonopensearchserviceDestinationConfiguration
-> f AmazonopensearchserviceDestinationConfiguration
amazonopensearchserviceDestinationConfiguration_s3Configuration = (AmazonopensearchserviceDestinationConfiguration
-> S3DestinationConfiguration)
-> (AmazonopensearchserviceDestinationConfiguration
-> S3DestinationConfiguration
-> AmazonopensearchserviceDestinationConfiguration)
-> Lens
AmazonopensearchserviceDestinationConfiguration
AmazonopensearchserviceDestinationConfiguration
S3DestinationConfiguration
S3DestinationConfiguration
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AmazonopensearchserviceDestinationConfiguration' {S3DestinationConfiguration
s3Configuration :: S3DestinationConfiguration
$sel:s3Configuration:AmazonopensearchserviceDestinationConfiguration' :: AmazonopensearchserviceDestinationConfiguration
-> S3DestinationConfiguration
s3Configuration} -> S3DestinationConfiguration
s3Configuration) (\s :: AmazonopensearchserviceDestinationConfiguration
s@AmazonopensearchserviceDestinationConfiguration' {} S3DestinationConfiguration
a -> AmazonopensearchserviceDestinationConfiguration
s {$sel:s3Configuration:AmazonopensearchserviceDestinationConfiguration' :: S3DestinationConfiguration
s3Configuration = S3DestinationConfiguration
a} :: AmazonopensearchserviceDestinationConfiguration)
instance
Prelude.Hashable
AmazonopensearchserviceDestinationConfiguration
instance
Prelude.NFData
AmazonopensearchserviceDestinationConfiguration
instance
Core.ToJSON
AmazonopensearchserviceDestinationConfiguration
where
toJSON :: AmazonopensearchserviceDestinationConfiguration -> Value
toJSON
AmazonopensearchserviceDestinationConfiguration' {Maybe Text
Maybe AmazonopensearchserviceBufferingHints
Maybe AmazonopensearchserviceIndexRotationPeriod
Maybe AmazonopensearchserviceRetryOptions
Maybe AmazonopensearchserviceS3BackupMode
Maybe CloudWatchLoggingOptions
Maybe ProcessingConfiguration
Maybe VpcConfiguration
Text
S3DestinationConfiguration
s3Configuration :: S3DestinationConfiguration
indexName :: Text
roleARN :: Text
clusterEndpoint :: Maybe Text
processingConfiguration :: Maybe ProcessingConfiguration
retryOptions :: Maybe AmazonopensearchserviceRetryOptions
bufferingHints :: Maybe AmazonopensearchserviceBufferingHints
vpcConfiguration :: Maybe VpcConfiguration
cloudWatchLoggingOptions :: Maybe CloudWatchLoggingOptions
domainARN :: Maybe Text
s3BackupMode :: Maybe AmazonopensearchserviceS3BackupMode
typeName :: Maybe Text
indexRotationPeriod :: Maybe AmazonopensearchserviceIndexRotationPeriod
$sel:s3Configuration:AmazonopensearchserviceDestinationConfiguration' :: AmazonopensearchserviceDestinationConfiguration
-> S3DestinationConfiguration
$sel:indexName:AmazonopensearchserviceDestinationConfiguration' :: AmazonopensearchserviceDestinationConfiguration -> Text
$sel:roleARN:AmazonopensearchserviceDestinationConfiguration' :: AmazonopensearchserviceDestinationConfiguration -> Text
$sel:clusterEndpoint:AmazonopensearchserviceDestinationConfiguration' :: AmazonopensearchserviceDestinationConfiguration -> Maybe Text
$sel:processingConfiguration:AmazonopensearchserviceDestinationConfiguration' :: AmazonopensearchserviceDestinationConfiguration
-> Maybe ProcessingConfiguration
$sel:retryOptions:AmazonopensearchserviceDestinationConfiguration' :: AmazonopensearchserviceDestinationConfiguration
-> Maybe AmazonopensearchserviceRetryOptions
$sel:bufferingHints:AmazonopensearchserviceDestinationConfiguration' :: AmazonopensearchserviceDestinationConfiguration
-> Maybe AmazonopensearchserviceBufferingHints
$sel:vpcConfiguration:AmazonopensearchserviceDestinationConfiguration' :: AmazonopensearchserviceDestinationConfiguration
-> Maybe VpcConfiguration
$sel:cloudWatchLoggingOptions:AmazonopensearchserviceDestinationConfiguration' :: AmazonopensearchserviceDestinationConfiguration
-> Maybe CloudWatchLoggingOptions
$sel:domainARN:AmazonopensearchserviceDestinationConfiguration' :: AmazonopensearchserviceDestinationConfiguration -> Maybe Text
$sel:s3BackupMode:AmazonopensearchserviceDestinationConfiguration' :: AmazonopensearchserviceDestinationConfiguration
-> Maybe AmazonopensearchserviceS3BackupMode
$sel:typeName:AmazonopensearchserviceDestinationConfiguration' :: AmazonopensearchserviceDestinationConfiguration -> Maybe Text
$sel:indexRotationPeriod:AmazonopensearchserviceDestinationConfiguration' :: AmazonopensearchserviceDestinationConfiguration
-> 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
"S3BackupMode" Text -> AmazonopensearchserviceS3BackupMode -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (AmazonopensearchserviceS3BackupMode -> Pair)
-> Maybe AmazonopensearchserviceS3BackupMode -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AmazonopensearchserviceS3BackupMode
s3BackupMode,
(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
"VpcConfiguration" Text -> VpcConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(VpcConfiguration -> Pair) -> Maybe VpcConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe VpcConfiguration
vpcConfiguration,
(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
"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,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"RoleARN" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
roleARN),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"IndexName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
indexName),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"S3Configuration" Text -> S3DestinationConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= S3DestinationConfiguration
s3Configuration)
]
)