{-# 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.DestinationDescription
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Firehose.Types.DestinationDescription where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.Firehose.Types.AmazonOpenSearchServerlessDestinationDescription
import Amazonka.Firehose.Types.AmazonopensearchserviceDestinationDescription
import Amazonka.Firehose.Types.ElasticsearchDestinationDescription
import Amazonka.Firehose.Types.ExtendedS3DestinationDescription
import Amazonka.Firehose.Types.HttpEndpointDestinationDescription
import Amazonka.Firehose.Types.RedshiftDestinationDescription
import Amazonka.Firehose.Types.S3DestinationDescription
import Amazonka.Firehose.Types.SplunkDestinationDescription
import qualified Amazonka.Prelude as Prelude

-- | Describes the destination for a delivery stream.
--
-- /See:/ 'newDestinationDescription' smart constructor.
data DestinationDescription = DestinationDescription'
  { -- | The destination in the Serverless offering for Amazon OpenSearch
    -- Service.
    DestinationDescription
-> Maybe AmazonOpenSearchServerlessDestinationDescription
amazonOpenSearchServerlessDestinationDescription :: Prelude.Maybe AmazonOpenSearchServerlessDestinationDescription,
    -- | The destination in Amazon OpenSearch Service.
    DestinationDescription
-> Maybe AmazonopensearchserviceDestinationDescription
amazonopensearchserviceDestinationDescription :: Prelude.Maybe AmazonopensearchserviceDestinationDescription,
    -- | The destination in Amazon ES.
    DestinationDescription -> Maybe ElasticsearchDestinationDescription
elasticsearchDestinationDescription :: Prelude.Maybe ElasticsearchDestinationDescription,
    -- | The destination in Amazon S3.
    DestinationDescription -> Maybe ExtendedS3DestinationDescription
extendedS3DestinationDescription :: Prelude.Maybe ExtendedS3DestinationDescription,
    -- | Describes the specified HTTP endpoint destination.
    DestinationDescription -> Maybe HttpEndpointDestinationDescription
httpEndpointDestinationDescription :: Prelude.Maybe HttpEndpointDestinationDescription,
    -- | The destination in Amazon Redshift.
    DestinationDescription -> Maybe RedshiftDestinationDescription
redshiftDestinationDescription :: Prelude.Maybe RedshiftDestinationDescription,
    -- | [Deprecated] The destination in Amazon S3.
    DestinationDescription -> Maybe S3DestinationDescription
s3DestinationDescription :: Prelude.Maybe S3DestinationDescription,
    -- | The destination in Splunk.
    DestinationDescription -> Maybe SplunkDestinationDescription
splunkDestinationDescription :: Prelude.Maybe SplunkDestinationDescription,
    -- | The ID of the destination.
    DestinationDescription -> Text
destinationId :: Prelude.Text
  }
  deriving (DestinationDescription -> DestinationDescription -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DestinationDescription -> DestinationDescription -> Bool
$c/= :: DestinationDescription -> DestinationDescription -> Bool
== :: DestinationDescription -> DestinationDescription -> Bool
$c== :: DestinationDescription -> DestinationDescription -> Bool
Prelude.Eq, Int -> DestinationDescription -> ShowS
[DestinationDescription] -> ShowS
DestinationDescription -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DestinationDescription] -> ShowS
$cshowList :: [DestinationDescription] -> ShowS
show :: DestinationDescription -> String
$cshow :: DestinationDescription -> String
showsPrec :: Int -> DestinationDescription -> ShowS
$cshowsPrec :: Int -> DestinationDescription -> ShowS
Prelude.Show, forall x. Rep DestinationDescription x -> DestinationDescription
forall x. DestinationDescription -> Rep DestinationDescription x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DestinationDescription x -> DestinationDescription
$cfrom :: forall x. DestinationDescription -> Rep DestinationDescription x
Prelude.Generic)

-- |
-- Create a value of 'DestinationDescription' 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:
--
-- 'amazonOpenSearchServerlessDestinationDescription', 'destinationDescription_amazonOpenSearchServerlessDestinationDescription' - The destination in the Serverless offering for Amazon OpenSearch
-- Service.
--
-- 'amazonopensearchserviceDestinationDescription', 'destinationDescription_amazonopensearchserviceDestinationDescription' - The destination in Amazon OpenSearch Service.
--
-- 'elasticsearchDestinationDescription', 'destinationDescription_elasticsearchDestinationDescription' - The destination in Amazon ES.
--
-- 'extendedS3DestinationDescription', 'destinationDescription_extendedS3DestinationDescription' - The destination in Amazon S3.
--
-- 'httpEndpointDestinationDescription', 'destinationDescription_httpEndpointDestinationDescription' - Describes the specified HTTP endpoint destination.
--
-- 'redshiftDestinationDescription', 'destinationDescription_redshiftDestinationDescription' - The destination in Amazon Redshift.
--
-- 's3DestinationDescription', 'destinationDescription_s3DestinationDescription' - [Deprecated] The destination in Amazon S3.
--
-- 'splunkDestinationDescription', 'destinationDescription_splunkDestinationDescription' - The destination in Splunk.
--
-- 'destinationId', 'destinationDescription_destinationId' - The ID of the destination.
newDestinationDescription ::
  -- | 'destinationId'
  Prelude.Text ->
  DestinationDescription
newDestinationDescription :: Text -> DestinationDescription
newDestinationDescription Text
pDestinationId_ =
  DestinationDescription'
    { $sel:amazonOpenSearchServerlessDestinationDescription:DestinationDescription' :: Maybe AmazonOpenSearchServerlessDestinationDescription
amazonOpenSearchServerlessDestinationDescription =
        forall a. Maybe a
Prelude.Nothing,
      $sel:amazonopensearchserviceDestinationDescription:DestinationDescription' :: Maybe AmazonopensearchserviceDestinationDescription
amazonopensearchserviceDestinationDescription =
        forall a. Maybe a
Prelude.Nothing,
      $sel:elasticsearchDestinationDescription:DestinationDescription' :: Maybe ElasticsearchDestinationDescription
elasticsearchDestinationDescription =
        forall a. Maybe a
Prelude.Nothing,
      $sel:extendedS3DestinationDescription:DestinationDescription' :: Maybe ExtendedS3DestinationDescription
extendedS3DestinationDescription = forall a. Maybe a
Prelude.Nothing,
      $sel:httpEndpointDestinationDescription:DestinationDescription' :: Maybe HttpEndpointDestinationDescription
httpEndpointDestinationDescription =
        forall a. Maybe a
Prelude.Nothing,
      $sel:redshiftDestinationDescription:DestinationDescription' :: Maybe RedshiftDestinationDescription
redshiftDestinationDescription = forall a. Maybe a
Prelude.Nothing,
      $sel:s3DestinationDescription:DestinationDescription' :: Maybe S3DestinationDescription
s3DestinationDescription = forall a. Maybe a
Prelude.Nothing,
      $sel:splunkDestinationDescription:DestinationDescription' :: Maybe SplunkDestinationDescription
splunkDestinationDescription = forall a. Maybe a
Prelude.Nothing,
      $sel:destinationId:DestinationDescription' :: Text
destinationId = Text
pDestinationId_
    }

-- | The destination in the Serverless offering for Amazon OpenSearch
-- Service.
destinationDescription_amazonOpenSearchServerlessDestinationDescription :: Lens.Lens' DestinationDescription (Prelude.Maybe AmazonOpenSearchServerlessDestinationDescription)
destinationDescription_amazonOpenSearchServerlessDestinationDescription :: Lens'
  DestinationDescription
  (Maybe AmazonOpenSearchServerlessDestinationDescription)
destinationDescription_amazonOpenSearchServerlessDestinationDescription = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DestinationDescription' {Maybe AmazonOpenSearchServerlessDestinationDescription
amazonOpenSearchServerlessDestinationDescription :: Maybe AmazonOpenSearchServerlessDestinationDescription
$sel:amazonOpenSearchServerlessDestinationDescription:DestinationDescription' :: DestinationDescription
-> Maybe AmazonOpenSearchServerlessDestinationDescription
amazonOpenSearchServerlessDestinationDescription} -> Maybe AmazonOpenSearchServerlessDestinationDescription
amazonOpenSearchServerlessDestinationDescription) (\s :: DestinationDescription
s@DestinationDescription' {} Maybe AmazonOpenSearchServerlessDestinationDescription
a -> DestinationDescription
s {$sel:amazonOpenSearchServerlessDestinationDescription:DestinationDescription' :: Maybe AmazonOpenSearchServerlessDestinationDescription
amazonOpenSearchServerlessDestinationDescription = Maybe AmazonOpenSearchServerlessDestinationDescription
a} :: DestinationDescription)

-- | The destination in Amazon OpenSearch Service.
destinationDescription_amazonopensearchserviceDestinationDescription :: Lens.Lens' DestinationDescription (Prelude.Maybe AmazonopensearchserviceDestinationDescription)
destinationDescription_amazonopensearchserviceDestinationDescription :: Lens'
  DestinationDescription
  (Maybe AmazonopensearchserviceDestinationDescription)
destinationDescription_amazonopensearchserviceDestinationDescription = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DestinationDescription' {Maybe AmazonopensearchserviceDestinationDescription
amazonopensearchserviceDestinationDescription :: Maybe AmazonopensearchserviceDestinationDescription
$sel:amazonopensearchserviceDestinationDescription:DestinationDescription' :: DestinationDescription
-> Maybe AmazonopensearchserviceDestinationDescription
amazonopensearchserviceDestinationDescription} -> Maybe AmazonopensearchserviceDestinationDescription
amazonopensearchserviceDestinationDescription) (\s :: DestinationDescription
s@DestinationDescription' {} Maybe AmazonopensearchserviceDestinationDescription
a -> DestinationDescription
s {$sel:amazonopensearchserviceDestinationDescription:DestinationDescription' :: Maybe AmazonopensearchserviceDestinationDescription
amazonopensearchserviceDestinationDescription = Maybe AmazonopensearchserviceDestinationDescription
a} :: DestinationDescription)

-- | The destination in Amazon ES.
destinationDescription_elasticsearchDestinationDescription :: Lens.Lens' DestinationDescription (Prelude.Maybe ElasticsearchDestinationDescription)
destinationDescription_elasticsearchDestinationDescription :: Lens'
  DestinationDescription (Maybe ElasticsearchDestinationDescription)
destinationDescription_elasticsearchDestinationDescription = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DestinationDescription' {Maybe ElasticsearchDestinationDescription
elasticsearchDestinationDescription :: Maybe ElasticsearchDestinationDescription
$sel:elasticsearchDestinationDescription:DestinationDescription' :: DestinationDescription -> Maybe ElasticsearchDestinationDescription
elasticsearchDestinationDescription} -> Maybe ElasticsearchDestinationDescription
elasticsearchDestinationDescription) (\s :: DestinationDescription
s@DestinationDescription' {} Maybe ElasticsearchDestinationDescription
a -> DestinationDescription
s {$sel:elasticsearchDestinationDescription:DestinationDescription' :: Maybe ElasticsearchDestinationDescription
elasticsearchDestinationDescription = Maybe ElasticsearchDestinationDescription
a} :: DestinationDescription)

-- | The destination in Amazon S3.
destinationDescription_extendedS3DestinationDescription :: Lens.Lens' DestinationDescription (Prelude.Maybe ExtendedS3DestinationDescription)
destinationDescription_extendedS3DestinationDescription :: Lens'
  DestinationDescription (Maybe ExtendedS3DestinationDescription)
destinationDescription_extendedS3DestinationDescription = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DestinationDescription' {Maybe ExtendedS3DestinationDescription
extendedS3DestinationDescription :: Maybe ExtendedS3DestinationDescription
$sel:extendedS3DestinationDescription:DestinationDescription' :: DestinationDescription -> Maybe ExtendedS3DestinationDescription
extendedS3DestinationDescription} -> Maybe ExtendedS3DestinationDescription
extendedS3DestinationDescription) (\s :: DestinationDescription
s@DestinationDescription' {} Maybe ExtendedS3DestinationDescription
a -> DestinationDescription
s {$sel:extendedS3DestinationDescription:DestinationDescription' :: Maybe ExtendedS3DestinationDescription
extendedS3DestinationDescription = Maybe ExtendedS3DestinationDescription
a} :: DestinationDescription)

-- | Describes the specified HTTP endpoint destination.
destinationDescription_httpEndpointDestinationDescription :: Lens.Lens' DestinationDescription (Prelude.Maybe HttpEndpointDestinationDescription)
destinationDescription_httpEndpointDestinationDescription :: Lens'
  DestinationDescription (Maybe HttpEndpointDestinationDescription)
destinationDescription_httpEndpointDestinationDescription = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DestinationDescription' {Maybe HttpEndpointDestinationDescription
httpEndpointDestinationDescription :: Maybe HttpEndpointDestinationDescription
$sel:httpEndpointDestinationDescription:DestinationDescription' :: DestinationDescription -> Maybe HttpEndpointDestinationDescription
httpEndpointDestinationDescription} -> Maybe HttpEndpointDestinationDescription
httpEndpointDestinationDescription) (\s :: DestinationDescription
s@DestinationDescription' {} Maybe HttpEndpointDestinationDescription
a -> DestinationDescription
s {$sel:httpEndpointDestinationDescription:DestinationDescription' :: Maybe HttpEndpointDestinationDescription
httpEndpointDestinationDescription = Maybe HttpEndpointDestinationDescription
a} :: DestinationDescription)

-- | The destination in Amazon Redshift.
destinationDescription_redshiftDestinationDescription :: Lens.Lens' DestinationDescription (Prelude.Maybe RedshiftDestinationDescription)
destinationDescription_redshiftDestinationDescription :: Lens' DestinationDescription (Maybe RedshiftDestinationDescription)
destinationDescription_redshiftDestinationDescription = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DestinationDescription' {Maybe RedshiftDestinationDescription
redshiftDestinationDescription :: Maybe RedshiftDestinationDescription
$sel:redshiftDestinationDescription:DestinationDescription' :: DestinationDescription -> Maybe RedshiftDestinationDescription
redshiftDestinationDescription} -> Maybe RedshiftDestinationDescription
redshiftDestinationDescription) (\s :: DestinationDescription
s@DestinationDescription' {} Maybe RedshiftDestinationDescription
a -> DestinationDescription
s {$sel:redshiftDestinationDescription:DestinationDescription' :: Maybe RedshiftDestinationDescription
redshiftDestinationDescription = Maybe RedshiftDestinationDescription
a} :: DestinationDescription)

-- | [Deprecated] The destination in Amazon S3.
destinationDescription_s3DestinationDescription :: Lens.Lens' DestinationDescription (Prelude.Maybe S3DestinationDescription)
destinationDescription_s3DestinationDescription :: Lens' DestinationDescription (Maybe S3DestinationDescription)
destinationDescription_s3DestinationDescription = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DestinationDescription' {Maybe S3DestinationDescription
s3DestinationDescription :: Maybe S3DestinationDescription
$sel:s3DestinationDescription:DestinationDescription' :: DestinationDescription -> Maybe S3DestinationDescription
s3DestinationDescription} -> Maybe S3DestinationDescription
s3DestinationDescription) (\s :: DestinationDescription
s@DestinationDescription' {} Maybe S3DestinationDescription
a -> DestinationDescription
s {$sel:s3DestinationDescription:DestinationDescription' :: Maybe S3DestinationDescription
s3DestinationDescription = Maybe S3DestinationDescription
a} :: DestinationDescription)

-- | The destination in Splunk.
destinationDescription_splunkDestinationDescription :: Lens.Lens' DestinationDescription (Prelude.Maybe SplunkDestinationDescription)
destinationDescription_splunkDestinationDescription :: Lens' DestinationDescription (Maybe SplunkDestinationDescription)
destinationDescription_splunkDestinationDescription = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DestinationDescription' {Maybe SplunkDestinationDescription
splunkDestinationDescription :: Maybe SplunkDestinationDescription
$sel:splunkDestinationDescription:DestinationDescription' :: DestinationDescription -> Maybe SplunkDestinationDescription
splunkDestinationDescription} -> Maybe SplunkDestinationDescription
splunkDestinationDescription) (\s :: DestinationDescription
s@DestinationDescription' {} Maybe SplunkDestinationDescription
a -> DestinationDescription
s {$sel:splunkDestinationDescription:DestinationDescription' :: Maybe SplunkDestinationDescription
splunkDestinationDescription = Maybe SplunkDestinationDescription
a} :: DestinationDescription)

-- | The ID of the destination.
destinationDescription_destinationId :: Lens.Lens' DestinationDescription Prelude.Text
destinationDescription_destinationId :: Lens' DestinationDescription Text
destinationDescription_destinationId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DestinationDescription' {Text
destinationId :: Text
$sel:destinationId:DestinationDescription' :: DestinationDescription -> Text
destinationId} -> Text
destinationId) (\s :: DestinationDescription
s@DestinationDescription' {} Text
a -> DestinationDescription
s {$sel:destinationId:DestinationDescription' :: Text
destinationId = Text
a} :: DestinationDescription)

instance Data.FromJSON DestinationDescription where
  parseJSON :: Value -> Parser DestinationDescription
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"DestinationDescription"
      ( \Object
x ->
          Maybe AmazonOpenSearchServerlessDestinationDescription
-> Maybe AmazonopensearchserviceDestinationDescription
-> Maybe ElasticsearchDestinationDescription
-> Maybe ExtendedS3DestinationDescription
-> Maybe HttpEndpointDestinationDescription
-> Maybe RedshiftDestinationDescription
-> Maybe S3DestinationDescription
-> Maybe SplunkDestinationDescription
-> Text
-> DestinationDescription
DestinationDescription'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"AmazonOpenSearchServerlessDestinationDescription"
                        )
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"AmazonopensearchserviceDestinationDescription"
                        )
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ElasticsearchDestinationDescription")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ExtendedS3DestinationDescription")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"HttpEndpointDestinationDescription")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"RedshiftDestinationDescription")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"S3DestinationDescription")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"SplunkDestinationDescription")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"DestinationId")
      )

instance Prelude.Hashable DestinationDescription where
  hashWithSalt :: Int -> DestinationDescription -> Int
hashWithSalt Int
_salt DestinationDescription' {Maybe S3DestinationDescription
Maybe RedshiftDestinationDescription
Maybe HttpEndpointDestinationDescription
Maybe ExtendedS3DestinationDescription
Maybe SplunkDestinationDescription
Maybe ElasticsearchDestinationDescription
Maybe AmazonopensearchserviceDestinationDescription
Maybe AmazonOpenSearchServerlessDestinationDescription
Text
destinationId :: Text
splunkDestinationDescription :: Maybe SplunkDestinationDescription
s3DestinationDescription :: Maybe S3DestinationDescription
redshiftDestinationDescription :: Maybe RedshiftDestinationDescription
httpEndpointDestinationDescription :: Maybe HttpEndpointDestinationDescription
extendedS3DestinationDescription :: Maybe ExtendedS3DestinationDescription
elasticsearchDestinationDescription :: Maybe ElasticsearchDestinationDescription
amazonopensearchserviceDestinationDescription :: Maybe AmazonopensearchserviceDestinationDescription
amazonOpenSearchServerlessDestinationDescription :: Maybe AmazonOpenSearchServerlessDestinationDescription
$sel:destinationId:DestinationDescription' :: DestinationDescription -> Text
$sel:splunkDestinationDescription:DestinationDescription' :: DestinationDescription -> Maybe SplunkDestinationDescription
$sel:s3DestinationDescription:DestinationDescription' :: DestinationDescription -> Maybe S3DestinationDescription
$sel:redshiftDestinationDescription:DestinationDescription' :: DestinationDescription -> Maybe RedshiftDestinationDescription
$sel:httpEndpointDestinationDescription:DestinationDescription' :: DestinationDescription -> Maybe HttpEndpointDestinationDescription
$sel:extendedS3DestinationDescription:DestinationDescription' :: DestinationDescription -> Maybe ExtendedS3DestinationDescription
$sel:elasticsearchDestinationDescription:DestinationDescription' :: DestinationDescription -> Maybe ElasticsearchDestinationDescription
$sel:amazonopensearchserviceDestinationDescription:DestinationDescription' :: DestinationDescription
-> Maybe AmazonopensearchserviceDestinationDescription
$sel:amazonOpenSearchServerlessDestinationDescription:DestinationDescription' :: DestinationDescription
-> Maybe AmazonOpenSearchServerlessDestinationDescription
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe AmazonOpenSearchServerlessDestinationDescription
amazonOpenSearchServerlessDestinationDescription
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe AmazonopensearchserviceDestinationDescription
amazonopensearchserviceDestinationDescription
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ElasticsearchDestinationDescription
elasticsearchDestinationDescription
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ExtendedS3DestinationDescription
extendedS3DestinationDescription
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe HttpEndpointDestinationDescription
httpEndpointDestinationDescription
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe RedshiftDestinationDescription
redshiftDestinationDescription
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe S3DestinationDescription
s3DestinationDescription
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe SplunkDestinationDescription
splunkDestinationDescription
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
destinationId

instance Prelude.NFData DestinationDescription where
  rnf :: DestinationDescription -> ()
rnf DestinationDescription' {Maybe S3DestinationDescription
Maybe RedshiftDestinationDescription
Maybe HttpEndpointDestinationDescription
Maybe ExtendedS3DestinationDescription
Maybe SplunkDestinationDescription
Maybe ElasticsearchDestinationDescription
Maybe AmazonopensearchserviceDestinationDescription
Maybe AmazonOpenSearchServerlessDestinationDescription
Text
destinationId :: Text
splunkDestinationDescription :: Maybe SplunkDestinationDescription
s3DestinationDescription :: Maybe S3DestinationDescription
redshiftDestinationDescription :: Maybe RedshiftDestinationDescription
httpEndpointDestinationDescription :: Maybe HttpEndpointDestinationDescription
extendedS3DestinationDescription :: Maybe ExtendedS3DestinationDescription
elasticsearchDestinationDescription :: Maybe ElasticsearchDestinationDescription
amazonopensearchserviceDestinationDescription :: Maybe AmazonopensearchserviceDestinationDescription
amazonOpenSearchServerlessDestinationDescription :: Maybe AmazonOpenSearchServerlessDestinationDescription
$sel:destinationId:DestinationDescription' :: DestinationDescription -> Text
$sel:splunkDestinationDescription:DestinationDescription' :: DestinationDescription -> Maybe SplunkDestinationDescription
$sel:s3DestinationDescription:DestinationDescription' :: DestinationDescription -> Maybe S3DestinationDescription
$sel:redshiftDestinationDescription:DestinationDescription' :: DestinationDescription -> Maybe RedshiftDestinationDescription
$sel:httpEndpointDestinationDescription:DestinationDescription' :: DestinationDescription -> Maybe HttpEndpointDestinationDescription
$sel:extendedS3DestinationDescription:DestinationDescription' :: DestinationDescription -> Maybe ExtendedS3DestinationDescription
$sel:elasticsearchDestinationDescription:DestinationDescription' :: DestinationDescription -> Maybe ElasticsearchDestinationDescription
$sel:amazonopensearchserviceDestinationDescription:DestinationDescription' :: DestinationDescription
-> Maybe AmazonopensearchserviceDestinationDescription
$sel:amazonOpenSearchServerlessDestinationDescription:DestinationDescription' :: DestinationDescription
-> Maybe AmazonOpenSearchServerlessDestinationDescription
..} =
    forall a. NFData a => a -> ()
Prelude.rnf
      Maybe AmazonOpenSearchServerlessDestinationDescription
amazonOpenSearchServerlessDestinationDescription
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe AmazonopensearchserviceDestinationDescription
amazonopensearchserviceDestinationDescription
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ElasticsearchDestinationDescription
elasticsearchDestinationDescription
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ExtendedS3DestinationDescription
extendedS3DestinationDescription
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe HttpEndpointDestinationDescription
httpEndpointDestinationDescription
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe RedshiftDestinationDescription
redshiftDestinationDescription
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe S3DestinationDescription
s3DestinationDescription
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe SplunkDestinationDescription
splunkDestinationDescription
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
destinationId