{-# 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.ElastiCache.Types.KinesisFirehoseDestinationDetails where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data KinesisFirehoseDestinationDetails = KinesisFirehoseDestinationDetails'
{
KinesisFirehoseDestinationDetails -> Maybe Text
deliveryStream :: Prelude.Maybe Prelude.Text
}
deriving (KinesisFirehoseDestinationDetails
-> KinesisFirehoseDestinationDetails -> Bool
(KinesisFirehoseDestinationDetails
-> KinesisFirehoseDestinationDetails -> Bool)
-> (KinesisFirehoseDestinationDetails
-> KinesisFirehoseDestinationDetails -> Bool)
-> Eq KinesisFirehoseDestinationDetails
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: KinesisFirehoseDestinationDetails
-> KinesisFirehoseDestinationDetails -> Bool
$c/= :: KinesisFirehoseDestinationDetails
-> KinesisFirehoseDestinationDetails -> Bool
== :: KinesisFirehoseDestinationDetails
-> KinesisFirehoseDestinationDetails -> Bool
$c== :: KinesisFirehoseDestinationDetails
-> KinesisFirehoseDestinationDetails -> Bool
Prelude.Eq, ReadPrec [KinesisFirehoseDestinationDetails]
ReadPrec KinesisFirehoseDestinationDetails
Int -> ReadS KinesisFirehoseDestinationDetails
ReadS [KinesisFirehoseDestinationDetails]
(Int -> ReadS KinesisFirehoseDestinationDetails)
-> ReadS [KinesisFirehoseDestinationDetails]
-> ReadPrec KinesisFirehoseDestinationDetails
-> ReadPrec [KinesisFirehoseDestinationDetails]
-> Read KinesisFirehoseDestinationDetails
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [KinesisFirehoseDestinationDetails]
$creadListPrec :: ReadPrec [KinesisFirehoseDestinationDetails]
readPrec :: ReadPrec KinesisFirehoseDestinationDetails
$creadPrec :: ReadPrec KinesisFirehoseDestinationDetails
readList :: ReadS [KinesisFirehoseDestinationDetails]
$creadList :: ReadS [KinesisFirehoseDestinationDetails]
readsPrec :: Int -> ReadS KinesisFirehoseDestinationDetails
$creadsPrec :: Int -> ReadS KinesisFirehoseDestinationDetails
Prelude.Read, Int -> KinesisFirehoseDestinationDetails -> ShowS
[KinesisFirehoseDestinationDetails] -> ShowS
KinesisFirehoseDestinationDetails -> String
(Int -> KinesisFirehoseDestinationDetails -> ShowS)
-> (KinesisFirehoseDestinationDetails -> String)
-> ([KinesisFirehoseDestinationDetails] -> ShowS)
-> Show KinesisFirehoseDestinationDetails
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [KinesisFirehoseDestinationDetails] -> ShowS
$cshowList :: [KinesisFirehoseDestinationDetails] -> ShowS
show :: KinesisFirehoseDestinationDetails -> String
$cshow :: KinesisFirehoseDestinationDetails -> String
showsPrec :: Int -> KinesisFirehoseDestinationDetails -> ShowS
$cshowsPrec :: Int -> KinesisFirehoseDestinationDetails -> ShowS
Prelude.Show, (forall x.
KinesisFirehoseDestinationDetails
-> Rep KinesisFirehoseDestinationDetails x)
-> (forall x.
Rep KinesisFirehoseDestinationDetails x
-> KinesisFirehoseDestinationDetails)
-> Generic KinesisFirehoseDestinationDetails
forall x.
Rep KinesisFirehoseDestinationDetails x
-> KinesisFirehoseDestinationDetails
forall x.
KinesisFirehoseDestinationDetails
-> Rep KinesisFirehoseDestinationDetails x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep KinesisFirehoseDestinationDetails x
-> KinesisFirehoseDestinationDetails
$cfrom :: forall x.
KinesisFirehoseDestinationDetails
-> Rep KinesisFirehoseDestinationDetails x
Prelude.Generic)
newKinesisFirehoseDestinationDetails ::
KinesisFirehoseDestinationDetails
newKinesisFirehoseDestinationDetails :: KinesisFirehoseDestinationDetails
newKinesisFirehoseDestinationDetails =
KinesisFirehoseDestinationDetails' :: Maybe Text -> KinesisFirehoseDestinationDetails
KinesisFirehoseDestinationDetails'
{ $sel:deliveryStream:KinesisFirehoseDestinationDetails' :: Maybe Text
deliveryStream =
Maybe Text
forall a. Maybe a
Prelude.Nothing
}
kinesisFirehoseDestinationDetails_deliveryStream :: Lens.Lens' KinesisFirehoseDestinationDetails (Prelude.Maybe Prelude.Text)
kinesisFirehoseDestinationDetails_deliveryStream :: (Maybe Text -> f (Maybe Text))
-> KinesisFirehoseDestinationDetails
-> f KinesisFirehoseDestinationDetails
kinesisFirehoseDestinationDetails_deliveryStream = (KinesisFirehoseDestinationDetails -> Maybe Text)
-> (KinesisFirehoseDestinationDetails
-> Maybe Text -> KinesisFirehoseDestinationDetails)
-> Lens
KinesisFirehoseDestinationDetails
KinesisFirehoseDestinationDetails
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\KinesisFirehoseDestinationDetails' {Maybe Text
deliveryStream :: Maybe Text
$sel:deliveryStream:KinesisFirehoseDestinationDetails' :: KinesisFirehoseDestinationDetails -> Maybe Text
deliveryStream} -> Maybe Text
deliveryStream) (\s :: KinesisFirehoseDestinationDetails
s@KinesisFirehoseDestinationDetails' {} Maybe Text
a -> KinesisFirehoseDestinationDetails
s {$sel:deliveryStream:KinesisFirehoseDestinationDetails' :: Maybe Text
deliveryStream = Maybe Text
a} :: KinesisFirehoseDestinationDetails)
instance
Core.FromXML
KinesisFirehoseDestinationDetails
where
parseXML :: [Node] -> Either String KinesisFirehoseDestinationDetails
parseXML [Node]
x =
Maybe Text -> KinesisFirehoseDestinationDetails
KinesisFirehoseDestinationDetails'
(Maybe Text -> KinesisFirehoseDestinationDetails)
-> Either String (Maybe Text)
-> Either String KinesisFirehoseDestinationDetails
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"DeliveryStream")
instance
Prelude.Hashable
KinesisFirehoseDestinationDetails
instance
Prelude.NFData
KinesisFirehoseDestinationDetails
instance
Core.ToQuery
KinesisFirehoseDestinationDetails
where
toQuery :: KinesisFirehoseDestinationDetails -> QueryString
toQuery KinesisFirehoseDestinationDetails' {Maybe Text
deliveryStream :: Maybe Text
$sel:deliveryStream:KinesisFirehoseDestinationDetails' :: KinesisFirehoseDestinationDetails -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"DeliveryStream" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
deliveryStream]