{-# 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.DestinationDescription where
import qualified Amazonka.Core as Core
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.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data DestinationDescription = DestinationDescription'
{
DestinationDescription -> Maybe SplunkDestinationDescription
splunkDestinationDescription :: Prelude.Maybe SplunkDestinationDescription,
DestinationDescription
-> Maybe AmazonopensearchserviceDestinationDescription
amazonopensearchserviceDestinationDescription :: Prelude.Maybe AmazonopensearchserviceDestinationDescription,
DestinationDescription -> Maybe HttpEndpointDestinationDescription
httpEndpointDestinationDescription :: Prelude.Maybe HttpEndpointDestinationDescription,
DestinationDescription -> Maybe S3DestinationDescription
s3DestinationDescription :: Prelude.Maybe S3DestinationDescription,
DestinationDescription -> Maybe ExtendedS3DestinationDescription
extendedS3DestinationDescription :: Prelude.Maybe ExtendedS3DestinationDescription,
DestinationDescription -> Maybe ElasticsearchDestinationDescription
elasticsearchDestinationDescription :: Prelude.Maybe ElasticsearchDestinationDescription,
DestinationDescription -> Maybe RedshiftDestinationDescription
redshiftDestinationDescription :: Prelude.Maybe RedshiftDestinationDescription,
DestinationDescription -> Text
destinationId :: Prelude.Text
}
deriving (DestinationDescription -> DestinationDescription -> Bool
(DestinationDescription -> DestinationDescription -> Bool)
-> (DestinationDescription -> DestinationDescription -> Bool)
-> Eq DestinationDescription
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
(Int -> DestinationDescription -> ShowS)
-> (DestinationDescription -> String)
-> ([DestinationDescription] -> ShowS)
-> Show DestinationDescription
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. DestinationDescription -> Rep DestinationDescription x)
-> (forall x.
Rep DestinationDescription x -> DestinationDescription)
-> Generic DestinationDescription
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)
newDestinationDescription ::
Prelude.Text ->
DestinationDescription
newDestinationDescription :: Text -> DestinationDescription
newDestinationDescription Text
pDestinationId_ =
DestinationDescription' :: Maybe SplunkDestinationDescription
-> Maybe AmazonopensearchserviceDestinationDescription
-> Maybe HttpEndpointDestinationDescription
-> Maybe S3DestinationDescription
-> Maybe ExtendedS3DestinationDescription
-> Maybe ElasticsearchDestinationDescription
-> Maybe RedshiftDestinationDescription
-> Text
-> DestinationDescription
DestinationDescription'
{ $sel:splunkDestinationDescription:DestinationDescription' :: Maybe SplunkDestinationDescription
splunkDestinationDescription =
Maybe SplunkDestinationDescription
forall a. Maybe a
Prelude.Nothing,
$sel:amazonopensearchserviceDestinationDescription:DestinationDescription' :: Maybe AmazonopensearchserviceDestinationDescription
amazonopensearchserviceDestinationDescription =
Maybe AmazonopensearchserviceDestinationDescription
forall a. Maybe a
Prelude.Nothing,
$sel:httpEndpointDestinationDescription:DestinationDescription' :: Maybe HttpEndpointDestinationDescription
httpEndpointDestinationDescription =
Maybe HttpEndpointDestinationDescription
forall a. Maybe a
Prelude.Nothing,
$sel:s3DestinationDescription:DestinationDescription' :: Maybe S3DestinationDescription
s3DestinationDescription = Maybe S3DestinationDescription
forall a. Maybe a
Prelude.Nothing,
$sel:extendedS3DestinationDescription:DestinationDescription' :: Maybe ExtendedS3DestinationDescription
extendedS3DestinationDescription = Maybe ExtendedS3DestinationDescription
forall a. Maybe a
Prelude.Nothing,
$sel:elasticsearchDestinationDescription:DestinationDescription' :: Maybe ElasticsearchDestinationDescription
elasticsearchDestinationDescription =
Maybe ElasticsearchDestinationDescription
forall a. Maybe a
Prelude.Nothing,
$sel:redshiftDestinationDescription:DestinationDescription' :: Maybe RedshiftDestinationDescription
redshiftDestinationDescription = Maybe RedshiftDestinationDescription
forall a. Maybe a
Prelude.Nothing,
$sel:destinationId:DestinationDescription' :: Text
destinationId = Text
pDestinationId_
}
destinationDescription_splunkDestinationDescription :: Lens.Lens' DestinationDescription (Prelude.Maybe SplunkDestinationDescription)
destinationDescription_splunkDestinationDescription :: (Maybe SplunkDestinationDescription
-> f (Maybe SplunkDestinationDescription))
-> DestinationDescription -> f DestinationDescription
destinationDescription_splunkDestinationDescription = (DestinationDescription -> Maybe SplunkDestinationDescription)
-> (DestinationDescription
-> Maybe SplunkDestinationDescription -> DestinationDescription)
-> Lens
DestinationDescription
DestinationDescription
(Maybe SplunkDestinationDescription)
(Maybe 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)
destinationDescription_amazonopensearchserviceDestinationDescription :: Lens.Lens' DestinationDescription (Prelude.Maybe AmazonopensearchserviceDestinationDescription)
destinationDescription_amazonopensearchserviceDestinationDescription :: (Maybe AmazonopensearchserviceDestinationDescription
-> f (Maybe AmazonopensearchserviceDestinationDescription))
-> DestinationDescription -> f DestinationDescription
destinationDescription_amazonopensearchserviceDestinationDescription = (DestinationDescription
-> Maybe AmazonopensearchserviceDestinationDescription)
-> (DestinationDescription
-> Maybe AmazonopensearchserviceDestinationDescription
-> DestinationDescription)
-> Lens
DestinationDescription
DestinationDescription
(Maybe AmazonopensearchserviceDestinationDescription)
(Maybe 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)
destinationDescription_httpEndpointDestinationDescription :: Lens.Lens' DestinationDescription (Prelude.Maybe HttpEndpointDestinationDescription)
destinationDescription_httpEndpointDestinationDescription :: (Maybe HttpEndpointDestinationDescription
-> f (Maybe HttpEndpointDestinationDescription))
-> DestinationDescription -> f DestinationDescription
destinationDescription_httpEndpointDestinationDescription = (DestinationDescription
-> Maybe HttpEndpointDestinationDescription)
-> (DestinationDescription
-> Maybe HttpEndpointDestinationDescription
-> DestinationDescription)
-> Lens
DestinationDescription
DestinationDescription
(Maybe HttpEndpointDestinationDescription)
(Maybe 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)
destinationDescription_s3DestinationDescription :: Lens.Lens' DestinationDescription (Prelude.Maybe S3DestinationDescription)
destinationDescription_s3DestinationDescription :: (Maybe S3DestinationDescription
-> f (Maybe S3DestinationDescription))
-> DestinationDescription -> f DestinationDescription
destinationDescription_s3DestinationDescription = (DestinationDescription -> Maybe S3DestinationDescription)
-> (DestinationDescription
-> Maybe S3DestinationDescription -> DestinationDescription)
-> Lens
DestinationDescription
DestinationDescription
(Maybe S3DestinationDescription)
(Maybe 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)
destinationDescription_extendedS3DestinationDescription :: Lens.Lens' DestinationDescription (Prelude.Maybe ExtendedS3DestinationDescription)
destinationDescription_extendedS3DestinationDescription :: (Maybe ExtendedS3DestinationDescription
-> f (Maybe ExtendedS3DestinationDescription))
-> DestinationDescription -> f DestinationDescription
destinationDescription_extendedS3DestinationDescription = (DestinationDescription -> Maybe ExtendedS3DestinationDescription)
-> (DestinationDescription
-> Maybe ExtendedS3DestinationDescription
-> DestinationDescription)
-> Lens
DestinationDescription
DestinationDescription
(Maybe ExtendedS3DestinationDescription)
(Maybe 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)
destinationDescription_elasticsearchDestinationDescription :: Lens.Lens' DestinationDescription (Prelude.Maybe ElasticsearchDestinationDescription)
destinationDescription_elasticsearchDestinationDescription :: (Maybe ElasticsearchDestinationDescription
-> f (Maybe ElasticsearchDestinationDescription))
-> DestinationDescription -> f DestinationDescription
destinationDescription_elasticsearchDestinationDescription = (DestinationDescription
-> Maybe ElasticsearchDestinationDescription)
-> (DestinationDescription
-> Maybe ElasticsearchDestinationDescription
-> DestinationDescription)
-> Lens
DestinationDescription
DestinationDescription
(Maybe ElasticsearchDestinationDescription)
(Maybe 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)
destinationDescription_redshiftDestinationDescription :: Lens.Lens' DestinationDescription (Prelude.Maybe RedshiftDestinationDescription)
destinationDescription_redshiftDestinationDescription :: (Maybe RedshiftDestinationDescription
-> f (Maybe RedshiftDestinationDescription))
-> DestinationDescription -> f DestinationDescription
destinationDescription_redshiftDestinationDescription = (DestinationDescription -> Maybe RedshiftDestinationDescription)
-> (DestinationDescription
-> Maybe RedshiftDestinationDescription -> DestinationDescription)
-> Lens
DestinationDescription
DestinationDescription
(Maybe RedshiftDestinationDescription)
(Maybe 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)
destinationDescription_destinationId :: Lens.Lens' DestinationDescription Prelude.Text
destinationDescription_destinationId :: (Text -> f Text)
-> DestinationDescription -> f DestinationDescription
destinationDescription_destinationId = (DestinationDescription -> Text)
-> (DestinationDescription -> Text -> DestinationDescription)
-> Lens DestinationDescription DestinationDescription Text Text
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 Core.FromJSON DestinationDescription where
parseJSON :: Value -> Parser DestinationDescription
parseJSON =
String
-> (Object -> Parser DestinationDescription)
-> Value
-> Parser DestinationDescription
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"DestinationDescription"
( \Object
x ->
Maybe SplunkDestinationDescription
-> Maybe AmazonopensearchserviceDestinationDescription
-> Maybe HttpEndpointDestinationDescription
-> Maybe S3DestinationDescription
-> Maybe ExtendedS3DestinationDescription
-> Maybe ElasticsearchDestinationDescription
-> Maybe RedshiftDestinationDescription
-> Text
-> DestinationDescription
DestinationDescription'
(Maybe SplunkDestinationDescription
-> Maybe AmazonopensearchserviceDestinationDescription
-> Maybe HttpEndpointDestinationDescription
-> Maybe S3DestinationDescription
-> Maybe ExtendedS3DestinationDescription
-> Maybe ElasticsearchDestinationDescription
-> Maybe RedshiftDestinationDescription
-> Text
-> DestinationDescription)
-> Parser (Maybe SplunkDestinationDescription)
-> Parser
(Maybe AmazonopensearchserviceDestinationDescription
-> Maybe HttpEndpointDestinationDescription
-> Maybe S3DestinationDescription
-> Maybe ExtendedS3DestinationDescription
-> Maybe ElasticsearchDestinationDescription
-> Maybe RedshiftDestinationDescription
-> Text
-> DestinationDescription)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe SplunkDestinationDescription)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"SplunkDestinationDescription")
Parser
(Maybe AmazonopensearchserviceDestinationDescription
-> Maybe HttpEndpointDestinationDescription
-> Maybe S3DestinationDescription
-> Maybe ExtendedS3DestinationDescription
-> Maybe ElasticsearchDestinationDescription
-> Maybe RedshiftDestinationDescription
-> Text
-> DestinationDescription)
-> Parser (Maybe AmazonopensearchserviceDestinationDescription)
-> Parser
(Maybe HttpEndpointDestinationDescription
-> Maybe S3DestinationDescription
-> Maybe ExtendedS3DestinationDescription
-> Maybe ElasticsearchDestinationDescription
-> Maybe RedshiftDestinationDescription
-> Text
-> DestinationDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
Object
-> Text
-> Parser (Maybe AmazonopensearchserviceDestinationDescription)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"AmazonopensearchserviceDestinationDescription"
)
Parser
(Maybe HttpEndpointDestinationDescription
-> Maybe S3DestinationDescription
-> Maybe ExtendedS3DestinationDescription
-> Maybe ElasticsearchDestinationDescription
-> Maybe RedshiftDestinationDescription
-> Text
-> DestinationDescription)
-> Parser (Maybe HttpEndpointDestinationDescription)
-> Parser
(Maybe S3DestinationDescription
-> Maybe ExtendedS3DestinationDescription
-> Maybe ElasticsearchDestinationDescription
-> Maybe RedshiftDestinationDescription
-> Text
-> DestinationDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe HttpEndpointDestinationDescription)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"HttpEndpointDestinationDescription")
Parser
(Maybe S3DestinationDescription
-> Maybe ExtendedS3DestinationDescription
-> Maybe ElasticsearchDestinationDescription
-> Maybe RedshiftDestinationDescription
-> Text
-> DestinationDescription)
-> Parser (Maybe S3DestinationDescription)
-> Parser
(Maybe ExtendedS3DestinationDescription
-> Maybe ElasticsearchDestinationDescription
-> Maybe RedshiftDestinationDescription
-> Text
-> DestinationDescription)
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 ExtendedS3DestinationDescription
-> Maybe ElasticsearchDestinationDescription
-> Maybe RedshiftDestinationDescription
-> Text
-> DestinationDescription)
-> Parser (Maybe ExtendedS3DestinationDescription)
-> Parser
(Maybe ElasticsearchDestinationDescription
-> Maybe RedshiftDestinationDescription
-> Text
-> DestinationDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ExtendedS3DestinationDescription)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ExtendedS3DestinationDescription")
Parser
(Maybe ElasticsearchDestinationDescription
-> Maybe RedshiftDestinationDescription
-> Text
-> DestinationDescription)
-> Parser (Maybe ElasticsearchDestinationDescription)
-> Parser
(Maybe RedshiftDestinationDescription
-> Text -> DestinationDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Parser (Maybe ElasticsearchDestinationDescription)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ElasticsearchDestinationDescription")
Parser
(Maybe RedshiftDestinationDescription
-> Text -> DestinationDescription)
-> Parser (Maybe RedshiftDestinationDescription)
-> Parser (Text -> DestinationDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe RedshiftDestinationDescription)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"RedshiftDestinationDescription")
Parser (Text -> DestinationDescription)
-> Parser Text -> Parser DestinationDescription
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"DestinationId")
)
instance Prelude.Hashable DestinationDescription
instance Prelude.NFData DestinationDescription