{-# 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.AmazonopensearchserviceDestinationDescription 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.S3DestinationDescription
import Amazonka.Firehose.Types.VpcConfigurationDescription
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data AmazonopensearchserviceDestinationDescription = AmazonopensearchserviceDestinationDescription'
{ AmazonopensearchserviceDestinationDescription
-> Maybe AmazonopensearchserviceIndexRotationPeriod
indexRotationPeriod :: Prelude.Maybe AmazonopensearchserviceIndexRotationPeriod,
AmazonopensearchserviceDestinationDescription -> Maybe Text
typeName :: Prelude.Maybe Prelude.Text,
AmazonopensearchserviceDestinationDescription
-> Maybe AmazonopensearchserviceS3BackupMode
s3BackupMode :: Prelude.Maybe AmazonopensearchserviceS3BackupMode,
AmazonopensearchserviceDestinationDescription -> Maybe Text
domainARN :: Prelude.Maybe Prelude.Text,
AmazonopensearchserviceDestinationDescription
-> Maybe VpcConfigurationDescription
vpcConfigurationDescription :: Prelude.Maybe VpcConfigurationDescription,
AmazonopensearchserviceDestinationDescription
-> Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions :: Prelude.Maybe CloudWatchLoggingOptions,
AmazonopensearchserviceDestinationDescription
-> Maybe S3DestinationDescription
s3DestinationDescription :: Prelude.Maybe S3DestinationDescription,
AmazonopensearchserviceDestinationDescription
-> Maybe AmazonopensearchserviceBufferingHints
bufferingHints :: Prelude.Maybe AmazonopensearchserviceBufferingHints,
AmazonopensearchserviceDestinationDescription
-> Maybe AmazonopensearchserviceRetryOptions
retryOptions :: Prelude.Maybe AmazonopensearchserviceRetryOptions,
AmazonopensearchserviceDestinationDescription
-> Maybe ProcessingConfiguration
processingConfiguration :: Prelude.Maybe ProcessingConfiguration,
AmazonopensearchserviceDestinationDescription -> Maybe Text
roleARN :: Prelude.Maybe Prelude.Text,
AmazonopensearchserviceDestinationDescription -> Maybe Text
clusterEndpoint :: Prelude.Maybe Prelude.Text,
AmazonopensearchserviceDestinationDescription -> Maybe Text
indexName :: Prelude.Maybe Prelude.Text
}
deriving (AmazonopensearchserviceDestinationDescription
-> AmazonopensearchserviceDestinationDescription -> Bool
(AmazonopensearchserviceDestinationDescription
-> AmazonopensearchserviceDestinationDescription -> Bool)
-> (AmazonopensearchserviceDestinationDescription
-> AmazonopensearchserviceDestinationDescription -> Bool)
-> Eq AmazonopensearchserviceDestinationDescription
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AmazonopensearchserviceDestinationDescription
-> AmazonopensearchserviceDestinationDescription -> Bool
$c/= :: AmazonopensearchserviceDestinationDescription
-> AmazonopensearchserviceDestinationDescription -> Bool
== :: AmazonopensearchserviceDestinationDescription
-> AmazonopensearchserviceDestinationDescription -> Bool
$c== :: AmazonopensearchserviceDestinationDescription
-> AmazonopensearchserviceDestinationDescription -> Bool
Prelude.Eq, ReadPrec [AmazonopensearchserviceDestinationDescription]
ReadPrec AmazonopensearchserviceDestinationDescription
Int -> ReadS AmazonopensearchserviceDestinationDescription
ReadS [AmazonopensearchserviceDestinationDescription]
(Int -> ReadS AmazonopensearchserviceDestinationDescription)
-> ReadS [AmazonopensearchserviceDestinationDescription]
-> ReadPrec AmazonopensearchserviceDestinationDescription
-> ReadPrec [AmazonopensearchserviceDestinationDescription]
-> Read AmazonopensearchserviceDestinationDescription
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AmazonopensearchserviceDestinationDescription]
$creadListPrec :: ReadPrec [AmazonopensearchserviceDestinationDescription]
readPrec :: ReadPrec AmazonopensearchserviceDestinationDescription
$creadPrec :: ReadPrec AmazonopensearchserviceDestinationDescription
readList :: ReadS [AmazonopensearchserviceDestinationDescription]
$creadList :: ReadS [AmazonopensearchserviceDestinationDescription]
readsPrec :: Int -> ReadS AmazonopensearchserviceDestinationDescription
$creadsPrec :: Int -> ReadS AmazonopensearchserviceDestinationDescription
Prelude.Read, Int -> AmazonopensearchserviceDestinationDescription -> ShowS
[AmazonopensearchserviceDestinationDescription] -> ShowS
AmazonopensearchserviceDestinationDescription -> String
(Int -> AmazonopensearchserviceDestinationDescription -> ShowS)
-> (AmazonopensearchserviceDestinationDescription -> String)
-> ([AmazonopensearchserviceDestinationDescription] -> ShowS)
-> Show AmazonopensearchserviceDestinationDescription
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AmazonopensearchserviceDestinationDescription] -> ShowS
$cshowList :: [AmazonopensearchserviceDestinationDescription] -> ShowS
show :: AmazonopensearchserviceDestinationDescription -> String
$cshow :: AmazonopensearchserviceDestinationDescription -> String
showsPrec :: Int -> AmazonopensearchserviceDestinationDescription -> ShowS
$cshowsPrec :: Int -> AmazonopensearchserviceDestinationDescription -> ShowS
Prelude.Show, (forall x.
AmazonopensearchserviceDestinationDescription
-> Rep AmazonopensearchserviceDestinationDescription x)
-> (forall x.
Rep AmazonopensearchserviceDestinationDescription x
-> AmazonopensearchserviceDestinationDescription)
-> Generic AmazonopensearchserviceDestinationDescription
forall x.
Rep AmazonopensearchserviceDestinationDescription x
-> AmazonopensearchserviceDestinationDescription
forall x.
AmazonopensearchserviceDestinationDescription
-> Rep AmazonopensearchserviceDestinationDescription x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AmazonopensearchserviceDestinationDescription x
-> AmazonopensearchserviceDestinationDescription
$cfrom :: forall x.
AmazonopensearchserviceDestinationDescription
-> Rep AmazonopensearchserviceDestinationDescription x
Prelude.Generic)
newAmazonopensearchserviceDestinationDescription ::
AmazonopensearchserviceDestinationDescription
newAmazonopensearchserviceDestinationDescription :: AmazonopensearchserviceDestinationDescription
newAmazonopensearchserviceDestinationDescription =
AmazonopensearchserviceDestinationDescription' :: Maybe AmazonopensearchserviceIndexRotationPeriod
-> Maybe Text
-> Maybe AmazonopensearchserviceS3BackupMode
-> Maybe Text
-> Maybe VpcConfigurationDescription
-> Maybe CloudWatchLoggingOptions
-> Maybe S3DestinationDescription
-> Maybe AmazonopensearchserviceBufferingHints
-> Maybe AmazonopensearchserviceRetryOptions
-> Maybe ProcessingConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AmazonopensearchserviceDestinationDescription
AmazonopensearchserviceDestinationDescription'
{ $sel:indexRotationPeriod:AmazonopensearchserviceDestinationDescription' :: Maybe AmazonopensearchserviceIndexRotationPeriod
indexRotationPeriod =
Maybe AmazonopensearchserviceIndexRotationPeriod
forall a. Maybe a
Prelude.Nothing,
$sel:typeName:AmazonopensearchserviceDestinationDescription' :: Maybe Text
typeName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:s3BackupMode:AmazonopensearchserviceDestinationDescription' :: Maybe AmazonopensearchserviceS3BackupMode
s3BackupMode =
Maybe AmazonopensearchserviceS3BackupMode
forall a. Maybe a
Prelude.Nothing,
$sel:domainARN:AmazonopensearchserviceDestinationDescription' :: Maybe Text
domainARN = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:vpcConfigurationDescription:AmazonopensearchserviceDestinationDescription' :: Maybe VpcConfigurationDescription
vpcConfigurationDescription =
Maybe VpcConfigurationDescription
forall a. Maybe a
Prelude.Nothing,
$sel:cloudWatchLoggingOptions:AmazonopensearchserviceDestinationDescription' :: Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions =
Maybe CloudWatchLoggingOptions
forall a. Maybe a
Prelude.Nothing,
$sel:s3DestinationDescription:AmazonopensearchserviceDestinationDescription' :: Maybe S3DestinationDescription
s3DestinationDescription =
Maybe S3DestinationDescription
forall a. Maybe a
Prelude.Nothing,
$sel:bufferingHints:AmazonopensearchserviceDestinationDescription' :: Maybe AmazonopensearchserviceBufferingHints
bufferingHints =
Maybe AmazonopensearchserviceBufferingHints
forall a. Maybe a
Prelude.Nothing,
$sel:retryOptions:AmazonopensearchserviceDestinationDescription' :: Maybe AmazonopensearchserviceRetryOptions
retryOptions =
Maybe AmazonopensearchserviceRetryOptions
forall a. Maybe a
Prelude.Nothing,
$sel:processingConfiguration:AmazonopensearchserviceDestinationDescription' :: Maybe ProcessingConfiguration
processingConfiguration =
Maybe ProcessingConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:roleARN:AmazonopensearchserviceDestinationDescription' :: Maybe Text
roleARN = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:clusterEndpoint:AmazonopensearchserviceDestinationDescription' :: Maybe Text
clusterEndpoint =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:indexName:AmazonopensearchserviceDestinationDescription' :: Maybe Text
indexName = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
amazonopensearchserviceDestinationDescription_indexRotationPeriod :: Lens.Lens' AmazonopensearchserviceDestinationDescription (Prelude.Maybe AmazonopensearchserviceIndexRotationPeriod)
amazonopensearchserviceDestinationDescription_indexRotationPeriod :: (Maybe AmazonopensearchserviceIndexRotationPeriod
-> f (Maybe AmazonopensearchserviceIndexRotationPeriod))
-> AmazonopensearchserviceDestinationDescription
-> f AmazonopensearchserviceDestinationDescription
amazonopensearchserviceDestinationDescription_indexRotationPeriod = (AmazonopensearchserviceDestinationDescription
-> Maybe AmazonopensearchserviceIndexRotationPeriod)
-> (AmazonopensearchserviceDestinationDescription
-> Maybe AmazonopensearchserviceIndexRotationPeriod
-> AmazonopensearchserviceDestinationDescription)
-> Lens
AmazonopensearchserviceDestinationDescription
AmazonopensearchserviceDestinationDescription
(Maybe AmazonopensearchserviceIndexRotationPeriod)
(Maybe AmazonopensearchserviceIndexRotationPeriod)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AmazonopensearchserviceDestinationDescription' {Maybe AmazonopensearchserviceIndexRotationPeriod
indexRotationPeriod :: Maybe AmazonopensearchserviceIndexRotationPeriod
$sel:indexRotationPeriod:AmazonopensearchserviceDestinationDescription' :: AmazonopensearchserviceDestinationDescription
-> Maybe AmazonopensearchserviceIndexRotationPeriod
indexRotationPeriod} -> Maybe AmazonopensearchserviceIndexRotationPeriod
indexRotationPeriod) (\s :: AmazonopensearchserviceDestinationDescription
s@AmazonopensearchserviceDestinationDescription' {} Maybe AmazonopensearchserviceIndexRotationPeriod
a -> AmazonopensearchserviceDestinationDescription
s {$sel:indexRotationPeriod:AmazonopensearchserviceDestinationDescription' :: Maybe AmazonopensearchserviceIndexRotationPeriod
indexRotationPeriod = Maybe AmazonopensearchserviceIndexRotationPeriod
a} :: AmazonopensearchserviceDestinationDescription)
amazonopensearchserviceDestinationDescription_typeName :: Lens.Lens' AmazonopensearchserviceDestinationDescription (Prelude.Maybe Prelude.Text)
amazonopensearchserviceDestinationDescription_typeName :: (Maybe Text -> f (Maybe Text))
-> AmazonopensearchserviceDestinationDescription
-> f AmazonopensearchserviceDestinationDescription
amazonopensearchserviceDestinationDescription_typeName = (AmazonopensearchserviceDestinationDescription -> Maybe Text)
-> (AmazonopensearchserviceDestinationDescription
-> Maybe Text -> AmazonopensearchserviceDestinationDescription)
-> Lens
AmazonopensearchserviceDestinationDescription
AmazonopensearchserviceDestinationDescription
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AmazonopensearchserviceDestinationDescription' {Maybe Text
typeName :: Maybe Text
$sel:typeName:AmazonopensearchserviceDestinationDescription' :: AmazonopensearchserviceDestinationDescription -> Maybe Text
typeName} -> Maybe Text
typeName) (\s :: AmazonopensearchserviceDestinationDescription
s@AmazonopensearchserviceDestinationDescription' {} Maybe Text
a -> AmazonopensearchserviceDestinationDescription
s {$sel:typeName:AmazonopensearchserviceDestinationDescription' :: Maybe Text
typeName = Maybe Text
a} :: AmazonopensearchserviceDestinationDescription)
amazonopensearchserviceDestinationDescription_s3BackupMode :: Lens.Lens' AmazonopensearchserviceDestinationDescription (Prelude.Maybe AmazonopensearchserviceS3BackupMode)
amazonopensearchserviceDestinationDescription_s3BackupMode :: (Maybe AmazonopensearchserviceS3BackupMode
-> f (Maybe AmazonopensearchserviceS3BackupMode))
-> AmazonopensearchserviceDestinationDescription
-> f AmazonopensearchserviceDestinationDescription
amazonopensearchserviceDestinationDescription_s3BackupMode = (AmazonopensearchserviceDestinationDescription
-> Maybe AmazonopensearchserviceS3BackupMode)
-> (AmazonopensearchserviceDestinationDescription
-> Maybe AmazonopensearchserviceS3BackupMode
-> AmazonopensearchserviceDestinationDescription)
-> Lens
AmazonopensearchserviceDestinationDescription
AmazonopensearchserviceDestinationDescription
(Maybe AmazonopensearchserviceS3BackupMode)
(Maybe AmazonopensearchserviceS3BackupMode)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AmazonopensearchserviceDestinationDescription' {Maybe AmazonopensearchserviceS3BackupMode
s3BackupMode :: Maybe AmazonopensearchserviceS3BackupMode
$sel:s3BackupMode:AmazonopensearchserviceDestinationDescription' :: AmazonopensearchserviceDestinationDescription
-> Maybe AmazonopensearchserviceS3BackupMode
s3BackupMode} -> Maybe AmazonopensearchserviceS3BackupMode
s3BackupMode) (\s :: AmazonopensearchserviceDestinationDescription
s@AmazonopensearchserviceDestinationDescription' {} Maybe AmazonopensearchserviceS3BackupMode
a -> AmazonopensearchserviceDestinationDescription
s {$sel:s3BackupMode:AmazonopensearchserviceDestinationDescription' :: Maybe AmazonopensearchserviceS3BackupMode
s3BackupMode = Maybe AmazonopensearchserviceS3BackupMode
a} :: AmazonopensearchserviceDestinationDescription)
amazonopensearchserviceDestinationDescription_domainARN :: Lens.Lens' AmazonopensearchserviceDestinationDescription (Prelude.Maybe Prelude.Text)
amazonopensearchserviceDestinationDescription_domainARN :: (Maybe Text -> f (Maybe Text))
-> AmazonopensearchserviceDestinationDescription
-> f AmazonopensearchserviceDestinationDescription
amazonopensearchserviceDestinationDescription_domainARN = (AmazonopensearchserviceDestinationDescription -> Maybe Text)
-> (AmazonopensearchserviceDestinationDescription
-> Maybe Text -> AmazonopensearchserviceDestinationDescription)
-> Lens
AmazonopensearchserviceDestinationDescription
AmazonopensearchserviceDestinationDescription
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AmazonopensearchserviceDestinationDescription' {Maybe Text
domainARN :: Maybe Text
$sel:domainARN:AmazonopensearchserviceDestinationDescription' :: AmazonopensearchserviceDestinationDescription -> Maybe Text
domainARN} -> Maybe Text
domainARN) (\s :: AmazonopensearchserviceDestinationDescription
s@AmazonopensearchserviceDestinationDescription' {} Maybe Text
a -> AmazonopensearchserviceDestinationDescription
s {$sel:domainARN:AmazonopensearchserviceDestinationDescription' :: Maybe Text
domainARN = Maybe Text
a} :: AmazonopensearchserviceDestinationDescription)
amazonopensearchserviceDestinationDescription_vpcConfigurationDescription :: Lens.Lens' AmazonopensearchserviceDestinationDescription (Prelude.Maybe VpcConfigurationDescription)
amazonopensearchserviceDestinationDescription_vpcConfigurationDescription :: (Maybe VpcConfigurationDescription
-> f (Maybe VpcConfigurationDescription))
-> AmazonopensearchserviceDestinationDescription
-> f AmazonopensearchserviceDestinationDescription
amazonopensearchserviceDestinationDescription_vpcConfigurationDescription = (AmazonopensearchserviceDestinationDescription
-> Maybe VpcConfigurationDescription)
-> (AmazonopensearchserviceDestinationDescription
-> Maybe VpcConfigurationDescription
-> AmazonopensearchserviceDestinationDescription)
-> Lens
AmazonopensearchserviceDestinationDescription
AmazonopensearchserviceDestinationDescription
(Maybe VpcConfigurationDescription)
(Maybe VpcConfigurationDescription)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AmazonopensearchserviceDestinationDescription' {Maybe VpcConfigurationDescription
vpcConfigurationDescription :: Maybe VpcConfigurationDescription
$sel:vpcConfigurationDescription:AmazonopensearchserviceDestinationDescription' :: AmazonopensearchserviceDestinationDescription
-> Maybe VpcConfigurationDescription
vpcConfigurationDescription} -> Maybe VpcConfigurationDescription
vpcConfigurationDescription) (\s :: AmazonopensearchserviceDestinationDescription
s@AmazonopensearchserviceDestinationDescription' {} Maybe VpcConfigurationDescription
a -> AmazonopensearchserviceDestinationDescription
s {$sel:vpcConfigurationDescription:AmazonopensearchserviceDestinationDescription' :: Maybe VpcConfigurationDescription
vpcConfigurationDescription = Maybe VpcConfigurationDescription
a} :: AmazonopensearchserviceDestinationDescription)
amazonopensearchserviceDestinationDescription_cloudWatchLoggingOptions :: Lens.Lens' AmazonopensearchserviceDestinationDescription (Prelude.Maybe CloudWatchLoggingOptions)
amazonopensearchserviceDestinationDescription_cloudWatchLoggingOptions :: (Maybe CloudWatchLoggingOptions
-> f (Maybe CloudWatchLoggingOptions))
-> AmazonopensearchserviceDestinationDescription
-> f AmazonopensearchserviceDestinationDescription
amazonopensearchserviceDestinationDescription_cloudWatchLoggingOptions = (AmazonopensearchserviceDestinationDescription
-> Maybe CloudWatchLoggingOptions)
-> (AmazonopensearchserviceDestinationDescription
-> Maybe CloudWatchLoggingOptions
-> AmazonopensearchserviceDestinationDescription)
-> Lens
AmazonopensearchserviceDestinationDescription
AmazonopensearchserviceDestinationDescription
(Maybe CloudWatchLoggingOptions)
(Maybe CloudWatchLoggingOptions)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AmazonopensearchserviceDestinationDescription' {Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions :: Maybe CloudWatchLoggingOptions
$sel:cloudWatchLoggingOptions:AmazonopensearchserviceDestinationDescription' :: AmazonopensearchserviceDestinationDescription
-> Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions} -> Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions) (\s :: AmazonopensearchserviceDestinationDescription
s@AmazonopensearchserviceDestinationDescription' {} Maybe CloudWatchLoggingOptions
a -> AmazonopensearchserviceDestinationDescription
s {$sel:cloudWatchLoggingOptions:AmazonopensearchserviceDestinationDescription' :: Maybe CloudWatchLoggingOptions
cloudWatchLoggingOptions = Maybe CloudWatchLoggingOptions
a} :: AmazonopensearchserviceDestinationDescription)
amazonopensearchserviceDestinationDescription_s3DestinationDescription :: Lens.Lens' AmazonopensearchserviceDestinationDescription (Prelude.Maybe S3DestinationDescription)
amazonopensearchserviceDestinationDescription_s3DestinationDescription :: (Maybe S3DestinationDescription
-> f (Maybe S3DestinationDescription))
-> AmazonopensearchserviceDestinationDescription
-> f AmazonopensearchserviceDestinationDescription
amazonopensearchserviceDestinationDescription_s3DestinationDescription = (AmazonopensearchserviceDestinationDescription
-> Maybe S3DestinationDescription)
-> (AmazonopensearchserviceDestinationDescription
-> Maybe S3DestinationDescription
-> AmazonopensearchserviceDestinationDescription)
-> Lens
AmazonopensearchserviceDestinationDescription
AmazonopensearchserviceDestinationDescription
(Maybe S3DestinationDescription)
(Maybe S3DestinationDescription)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AmazonopensearchserviceDestinationDescription' {Maybe S3DestinationDescription
s3DestinationDescription :: Maybe S3DestinationDescription
$sel:s3DestinationDescription:AmazonopensearchserviceDestinationDescription' :: AmazonopensearchserviceDestinationDescription
-> Maybe S3DestinationDescription
s3DestinationDescription} -> Maybe S3DestinationDescription
s3DestinationDescription) (\s :: AmazonopensearchserviceDestinationDescription
s@AmazonopensearchserviceDestinationDescription' {} Maybe S3DestinationDescription
a -> AmazonopensearchserviceDestinationDescription
s {$sel:s3DestinationDescription:AmazonopensearchserviceDestinationDescription' :: Maybe S3DestinationDescription
s3DestinationDescription = Maybe S3DestinationDescription
a} :: AmazonopensearchserviceDestinationDescription)
amazonopensearchserviceDestinationDescription_bufferingHints :: Lens.Lens' AmazonopensearchserviceDestinationDescription (Prelude.Maybe AmazonopensearchserviceBufferingHints)
amazonopensearchserviceDestinationDescription_bufferingHints :: (Maybe AmazonopensearchserviceBufferingHints
-> f (Maybe AmazonopensearchserviceBufferingHints))
-> AmazonopensearchserviceDestinationDescription
-> f AmazonopensearchserviceDestinationDescription
amazonopensearchserviceDestinationDescription_bufferingHints = (AmazonopensearchserviceDestinationDescription
-> Maybe AmazonopensearchserviceBufferingHints)
-> (AmazonopensearchserviceDestinationDescription
-> Maybe AmazonopensearchserviceBufferingHints
-> AmazonopensearchserviceDestinationDescription)
-> Lens
AmazonopensearchserviceDestinationDescription
AmazonopensearchserviceDestinationDescription
(Maybe AmazonopensearchserviceBufferingHints)
(Maybe AmazonopensearchserviceBufferingHints)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AmazonopensearchserviceDestinationDescription' {Maybe AmazonopensearchserviceBufferingHints
bufferingHints :: Maybe AmazonopensearchserviceBufferingHints
$sel:bufferingHints:AmazonopensearchserviceDestinationDescription' :: AmazonopensearchserviceDestinationDescription
-> Maybe AmazonopensearchserviceBufferingHints
bufferingHints} -> Maybe AmazonopensearchserviceBufferingHints
bufferingHints) (\s :: AmazonopensearchserviceDestinationDescription
s@AmazonopensearchserviceDestinationDescription' {} Maybe AmazonopensearchserviceBufferingHints
a -> AmazonopensearchserviceDestinationDescription
s {$sel:bufferingHints:AmazonopensearchserviceDestinationDescription' :: Maybe AmazonopensearchserviceBufferingHints
bufferingHints = Maybe AmazonopensearchserviceBufferingHints
a} :: AmazonopensearchserviceDestinationDescription)
amazonopensearchserviceDestinationDescription_retryOptions :: Lens.Lens' AmazonopensearchserviceDestinationDescription (Prelude.Maybe AmazonopensearchserviceRetryOptions)
amazonopensearchserviceDestinationDescription_retryOptions :: (Maybe AmazonopensearchserviceRetryOptions
-> f (Maybe AmazonopensearchserviceRetryOptions))
-> AmazonopensearchserviceDestinationDescription
-> f AmazonopensearchserviceDestinationDescription
amazonopensearchserviceDestinationDescription_retryOptions = (AmazonopensearchserviceDestinationDescription
-> Maybe AmazonopensearchserviceRetryOptions)
-> (AmazonopensearchserviceDestinationDescription
-> Maybe AmazonopensearchserviceRetryOptions
-> AmazonopensearchserviceDestinationDescription)
-> Lens
AmazonopensearchserviceDestinationDescription
AmazonopensearchserviceDestinationDescription
(Maybe AmazonopensearchserviceRetryOptions)
(Maybe AmazonopensearchserviceRetryOptions)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AmazonopensearchserviceDestinationDescription' {Maybe AmazonopensearchserviceRetryOptions
retryOptions :: Maybe AmazonopensearchserviceRetryOptions
$sel:retryOptions:AmazonopensearchserviceDestinationDescription' :: AmazonopensearchserviceDestinationDescription
-> Maybe AmazonopensearchserviceRetryOptions
retryOptions} -> Maybe AmazonopensearchserviceRetryOptions
retryOptions) (\s :: AmazonopensearchserviceDestinationDescription
s@AmazonopensearchserviceDestinationDescription' {} Maybe AmazonopensearchserviceRetryOptions
a -> AmazonopensearchserviceDestinationDescription
s {$sel:retryOptions:AmazonopensearchserviceDestinationDescription' :: Maybe AmazonopensearchserviceRetryOptions
retryOptions = Maybe AmazonopensearchserviceRetryOptions
a} :: AmazonopensearchserviceDestinationDescription)
amazonopensearchserviceDestinationDescription_processingConfiguration :: Lens.Lens' AmazonopensearchserviceDestinationDescription (Prelude.Maybe ProcessingConfiguration)
amazonopensearchserviceDestinationDescription_processingConfiguration :: (Maybe ProcessingConfiguration
-> f (Maybe ProcessingConfiguration))
-> AmazonopensearchserviceDestinationDescription
-> f AmazonopensearchserviceDestinationDescription
amazonopensearchserviceDestinationDescription_processingConfiguration = (AmazonopensearchserviceDestinationDescription
-> Maybe ProcessingConfiguration)
-> (AmazonopensearchserviceDestinationDescription
-> Maybe ProcessingConfiguration
-> AmazonopensearchserviceDestinationDescription)
-> Lens
AmazonopensearchserviceDestinationDescription
AmazonopensearchserviceDestinationDescription
(Maybe ProcessingConfiguration)
(Maybe ProcessingConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AmazonopensearchserviceDestinationDescription' {Maybe ProcessingConfiguration
processingConfiguration :: Maybe ProcessingConfiguration
$sel:processingConfiguration:AmazonopensearchserviceDestinationDescription' :: AmazonopensearchserviceDestinationDescription
-> Maybe ProcessingConfiguration
processingConfiguration} -> Maybe ProcessingConfiguration
processingConfiguration) (\s :: AmazonopensearchserviceDestinationDescription
s@AmazonopensearchserviceDestinationDescription' {} Maybe ProcessingConfiguration
a -> AmazonopensearchserviceDestinationDescription
s {$sel:processingConfiguration:AmazonopensearchserviceDestinationDescription' :: Maybe ProcessingConfiguration
processingConfiguration = Maybe ProcessingConfiguration
a} :: AmazonopensearchserviceDestinationDescription)
amazonopensearchserviceDestinationDescription_roleARN :: Lens.Lens' AmazonopensearchserviceDestinationDescription (Prelude.Maybe Prelude.Text)
amazonopensearchserviceDestinationDescription_roleARN :: (Maybe Text -> f (Maybe Text))
-> AmazonopensearchserviceDestinationDescription
-> f AmazonopensearchserviceDestinationDescription
amazonopensearchserviceDestinationDescription_roleARN = (AmazonopensearchserviceDestinationDescription -> Maybe Text)
-> (AmazonopensearchserviceDestinationDescription
-> Maybe Text -> AmazonopensearchserviceDestinationDescription)
-> Lens
AmazonopensearchserviceDestinationDescription
AmazonopensearchserviceDestinationDescription
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AmazonopensearchserviceDestinationDescription' {Maybe Text
roleARN :: Maybe Text
$sel:roleARN:AmazonopensearchserviceDestinationDescription' :: AmazonopensearchserviceDestinationDescription -> Maybe Text
roleARN} -> Maybe Text
roleARN) (\s :: AmazonopensearchserviceDestinationDescription
s@AmazonopensearchserviceDestinationDescription' {} Maybe Text
a -> AmazonopensearchserviceDestinationDescription
s {$sel:roleARN:AmazonopensearchserviceDestinationDescription' :: Maybe Text
roleARN = Maybe Text
a} :: AmazonopensearchserviceDestinationDescription)
amazonopensearchserviceDestinationDescription_clusterEndpoint :: Lens.Lens' AmazonopensearchserviceDestinationDescription (Prelude.Maybe Prelude.Text)
amazonopensearchserviceDestinationDescription_clusterEndpoint :: (Maybe Text -> f (Maybe Text))
-> AmazonopensearchserviceDestinationDescription
-> f AmazonopensearchserviceDestinationDescription
amazonopensearchserviceDestinationDescription_clusterEndpoint = (AmazonopensearchserviceDestinationDescription -> Maybe Text)
-> (AmazonopensearchserviceDestinationDescription
-> Maybe Text -> AmazonopensearchserviceDestinationDescription)
-> Lens
AmazonopensearchserviceDestinationDescription
AmazonopensearchserviceDestinationDescription
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AmazonopensearchserviceDestinationDescription' {Maybe Text
clusterEndpoint :: Maybe Text
$sel:clusterEndpoint:AmazonopensearchserviceDestinationDescription' :: AmazonopensearchserviceDestinationDescription -> Maybe Text
clusterEndpoint} -> Maybe Text
clusterEndpoint) (\s :: AmazonopensearchserviceDestinationDescription
s@AmazonopensearchserviceDestinationDescription' {} Maybe Text
a -> AmazonopensearchserviceDestinationDescription
s {$sel:clusterEndpoint:AmazonopensearchserviceDestinationDescription' :: Maybe Text
clusterEndpoint = Maybe Text
a} :: AmazonopensearchserviceDestinationDescription)
amazonopensearchserviceDestinationDescription_indexName :: Lens.Lens' AmazonopensearchserviceDestinationDescription (Prelude.Maybe Prelude.Text)
amazonopensearchserviceDestinationDescription_indexName :: (Maybe Text -> f (Maybe Text))
-> AmazonopensearchserviceDestinationDescription
-> f AmazonopensearchserviceDestinationDescription
amazonopensearchserviceDestinationDescription_indexName = (AmazonopensearchserviceDestinationDescription -> Maybe Text)
-> (AmazonopensearchserviceDestinationDescription
-> Maybe Text -> AmazonopensearchserviceDestinationDescription)
-> Lens
AmazonopensearchserviceDestinationDescription
AmazonopensearchserviceDestinationDescription
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AmazonopensearchserviceDestinationDescription' {Maybe Text
indexName :: Maybe Text
$sel:indexName:AmazonopensearchserviceDestinationDescription' :: AmazonopensearchserviceDestinationDescription -> Maybe Text
indexName} -> Maybe Text
indexName) (\s :: AmazonopensearchserviceDestinationDescription
s@AmazonopensearchserviceDestinationDescription' {} Maybe Text
a -> AmazonopensearchserviceDestinationDescription
s {$sel:indexName:AmazonopensearchserviceDestinationDescription' :: Maybe Text
indexName = Maybe Text
a} :: AmazonopensearchserviceDestinationDescription)
instance
Core.FromJSON
AmazonopensearchserviceDestinationDescription
where
parseJSON :: Value -> Parser AmazonopensearchserviceDestinationDescription
parseJSON =
String
-> (Object -> Parser AmazonopensearchserviceDestinationDescription)
-> Value
-> Parser AmazonopensearchserviceDestinationDescription
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"AmazonopensearchserviceDestinationDescription"
( \Object
x ->
Maybe AmazonopensearchserviceIndexRotationPeriod
-> Maybe Text
-> Maybe AmazonopensearchserviceS3BackupMode
-> Maybe Text
-> Maybe VpcConfigurationDescription
-> Maybe CloudWatchLoggingOptions
-> Maybe S3DestinationDescription
-> Maybe AmazonopensearchserviceBufferingHints
-> Maybe AmazonopensearchserviceRetryOptions
-> Maybe ProcessingConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AmazonopensearchserviceDestinationDescription
AmazonopensearchserviceDestinationDescription'
(Maybe AmazonopensearchserviceIndexRotationPeriod
-> Maybe Text
-> Maybe AmazonopensearchserviceS3BackupMode
-> Maybe Text
-> Maybe VpcConfigurationDescription
-> Maybe CloudWatchLoggingOptions
-> Maybe S3DestinationDescription
-> Maybe AmazonopensearchserviceBufferingHints
-> Maybe AmazonopensearchserviceRetryOptions
-> Maybe ProcessingConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AmazonopensearchserviceDestinationDescription)
-> Parser (Maybe AmazonopensearchserviceIndexRotationPeriod)
-> Parser
(Maybe Text
-> Maybe AmazonopensearchserviceS3BackupMode
-> Maybe Text
-> Maybe VpcConfigurationDescription
-> Maybe CloudWatchLoggingOptions
-> Maybe S3DestinationDescription
-> Maybe AmazonopensearchserviceBufferingHints
-> Maybe AmazonopensearchserviceRetryOptions
-> Maybe ProcessingConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AmazonopensearchserviceDestinationDescription)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object
-> Text
-> Parser (Maybe AmazonopensearchserviceIndexRotationPeriod)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"IndexRotationPeriod")
Parser
(Maybe Text
-> Maybe AmazonopensearchserviceS3BackupMode
-> Maybe Text
-> Maybe VpcConfigurationDescription
-> Maybe CloudWatchLoggingOptions
-> Maybe S3DestinationDescription
-> Maybe AmazonopensearchserviceBufferingHints
-> Maybe AmazonopensearchserviceRetryOptions
-> Maybe ProcessingConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AmazonopensearchserviceDestinationDescription)
-> Parser (Maybe Text)
-> Parser
(Maybe AmazonopensearchserviceS3BackupMode
-> Maybe Text
-> Maybe VpcConfigurationDescription
-> Maybe CloudWatchLoggingOptions
-> Maybe S3DestinationDescription
-> Maybe AmazonopensearchserviceBufferingHints
-> Maybe AmazonopensearchserviceRetryOptions
-> Maybe ProcessingConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AmazonopensearchserviceDestinationDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"TypeName")
Parser
(Maybe AmazonopensearchserviceS3BackupMode
-> Maybe Text
-> Maybe VpcConfigurationDescription
-> Maybe CloudWatchLoggingOptions
-> Maybe S3DestinationDescription
-> Maybe AmazonopensearchserviceBufferingHints
-> Maybe AmazonopensearchserviceRetryOptions
-> Maybe ProcessingConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AmazonopensearchserviceDestinationDescription)
-> Parser (Maybe AmazonopensearchserviceS3BackupMode)
-> Parser
(Maybe Text
-> Maybe VpcConfigurationDescription
-> Maybe CloudWatchLoggingOptions
-> Maybe S3DestinationDescription
-> Maybe AmazonopensearchserviceBufferingHints
-> Maybe AmazonopensearchserviceRetryOptions
-> Maybe ProcessingConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AmazonopensearchserviceDestinationDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Parser (Maybe AmazonopensearchserviceS3BackupMode)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"S3BackupMode")
Parser
(Maybe Text
-> Maybe VpcConfigurationDescription
-> Maybe CloudWatchLoggingOptions
-> Maybe S3DestinationDescription
-> Maybe AmazonopensearchserviceBufferingHints
-> Maybe AmazonopensearchserviceRetryOptions
-> Maybe ProcessingConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AmazonopensearchserviceDestinationDescription)
-> Parser (Maybe Text)
-> Parser
(Maybe VpcConfigurationDescription
-> Maybe CloudWatchLoggingOptions
-> Maybe S3DestinationDescription
-> Maybe AmazonopensearchserviceBufferingHints
-> Maybe AmazonopensearchserviceRetryOptions
-> Maybe ProcessingConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AmazonopensearchserviceDestinationDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"DomainARN")
Parser
(Maybe VpcConfigurationDescription
-> Maybe CloudWatchLoggingOptions
-> Maybe S3DestinationDescription
-> Maybe AmazonopensearchserviceBufferingHints
-> Maybe AmazonopensearchserviceRetryOptions
-> Maybe ProcessingConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AmazonopensearchserviceDestinationDescription)
-> Parser (Maybe VpcConfigurationDescription)
-> Parser
(Maybe CloudWatchLoggingOptions
-> Maybe S3DestinationDescription
-> Maybe AmazonopensearchserviceBufferingHints
-> Maybe AmazonopensearchserviceRetryOptions
-> Maybe ProcessingConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AmazonopensearchserviceDestinationDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe VpcConfigurationDescription)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"VpcConfigurationDescription")
Parser
(Maybe CloudWatchLoggingOptions
-> Maybe S3DestinationDescription
-> Maybe AmazonopensearchserviceBufferingHints
-> Maybe AmazonopensearchserviceRetryOptions
-> Maybe ProcessingConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AmazonopensearchserviceDestinationDescription)
-> Parser (Maybe CloudWatchLoggingOptions)
-> Parser
(Maybe S3DestinationDescription
-> Maybe AmazonopensearchserviceBufferingHints
-> Maybe AmazonopensearchserviceRetryOptions
-> Maybe ProcessingConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AmazonopensearchserviceDestinationDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe CloudWatchLoggingOptions)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CloudWatchLoggingOptions")
Parser
(Maybe S3DestinationDescription
-> Maybe AmazonopensearchserviceBufferingHints
-> Maybe AmazonopensearchserviceRetryOptions
-> Maybe ProcessingConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AmazonopensearchserviceDestinationDescription)
-> Parser (Maybe S3DestinationDescription)
-> Parser
(Maybe AmazonopensearchserviceBufferingHints
-> Maybe AmazonopensearchserviceRetryOptions
-> Maybe ProcessingConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AmazonopensearchserviceDestinationDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe S3DestinationDescription)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"S3DestinationDescription")
Parser
(Maybe AmazonopensearchserviceBufferingHints
-> Maybe AmazonopensearchserviceRetryOptions
-> Maybe ProcessingConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AmazonopensearchserviceDestinationDescription)
-> Parser (Maybe AmazonopensearchserviceBufferingHints)
-> Parser
(Maybe AmazonopensearchserviceRetryOptions
-> Maybe ProcessingConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AmazonopensearchserviceDestinationDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Parser (Maybe AmazonopensearchserviceBufferingHints)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"BufferingHints")
Parser
(Maybe AmazonopensearchserviceRetryOptions
-> Maybe ProcessingConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AmazonopensearchserviceDestinationDescription)
-> Parser (Maybe AmazonopensearchserviceRetryOptions)
-> Parser
(Maybe ProcessingConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AmazonopensearchserviceDestinationDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Parser (Maybe AmazonopensearchserviceRetryOptions)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"RetryOptions")
Parser
(Maybe ProcessingConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AmazonopensearchserviceDestinationDescription)
-> Parser (Maybe ProcessingConfiguration)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> AmazonopensearchserviceDestinationDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ProcessingConfiguration)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ProcessingConfiguration")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> AmazonopensearchserviceDestinationDescription)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text -> AmazonopensearchserviceDestinationDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"RoleARN")
Parser
(Maybe Text
-> Maybe Text -> AmazonopensearchserviceDestinationDescription)
-> Parser (Maybe Text)
-> Parser
(Maybe Text -> AmazonopensearchserviceDestinationDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ClusterEndpoint")
Parser
(Maybe Text -> AmazonopensearchserviceDestinationDescription)
-> Parser (Maybe Text)
-> Parser AmazonopensearchserviceDestinationDescription
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"IndexName")
)
instance
Prelude.Hashable
AmazonopensearchserviceDestinationDescription
instance
Prelude.NFData
AmazonopensearchserviceDestinationDescription