{-# 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.KinesisAnalyticsV2.Types.KinesisFirehoseOutputUpdate where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data KinesisFirehoseOutputUpdate = KinesisFirehoseOutputUpdate'
{
KinesisFirehoseOutputUpdate -> Text
resourceARNUpdate :: Prelude.Text
}
deriving (KinesisFirehoseOutputUpdate -> KinesisFirehoseOutputUpdate -> Bool
(KinesisFirehoseOutputUpdate
-> KinesisFirehoseOutputUpdate -> Bool)
-> (KinesisFirehoseOutputUpdate
-> KinesisFirehoseOutputUpdate -> Bool)
-> Eq KinesisFirehoseOutputUpdate
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: KinesisFirehoseOutputUpdate -> KinesisFirehoseOutputUpdate -> Bool
$c/= :: KinesisFirehoseOutputUpdate -> KinesisFirehoseOutputUpdate -> Bool
== :: KinesisFirehoseOutputUpdate -> KinesisFirehoseOutputUpdate -> Bool
$c== :: KinesisFirehoseOutputUpdate -> KinesisFirehoseOutputUpdate -> Bool
Prelude.Eq, ReadPrec [KinesisFirehoseOutputUpdate]
ReadPrec KinesisFirehoseOutputUpdate
Int -> ReadS KinesisFirehoseOutputUpdate
ReadS [KinesisFirehoseOutputUpdate]
(Int -> ReadS KinesisFirehoseOutputUpdate)
-> ReadS [KinesisFirehoseOutputUpdate]
-> ReadPrec KinesisFirehoseOutputUpdate
-> ReadPrec [KinesisFirehoseOutputUpdate]
-> Read KinesisFirehoseOutputUpdate
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [KinesisFirehoseOutputUpdate]
$creadListPrec :: ReadPrec [KinesisFirehoseOutputUpdate]
readPrec :: ReadPrec KinesisFirehoseOutputUpdate
$creadPrec :: ReadPrec KinesisFirehoseOutputUpdate
readList :: ReadS [KinesisFirehoseOutputUpdate]
$creadList :: ReadS [KinesisFirehoseOutputUpdate]
readsPrec :: Int -> ReadS KinesisFirehoseOutputUpdate
$creadsPrec :: Int -> ReadS KinesisFirehoseOutputUpdate
Prelude.Read, Int -> KinesisFirehoseOutputUpdate -> ShowS
[KinesisFirehoseOutputUpdate] -> ShowS
KinesisFirehoseOutputUpdate -> String
(Int -> KinesisFirehoseOutputUpdate -> ShowS)
-> (KinesisFirehoseOutputUpdate -> String)
-> ([KinesisFirehoseOutputUpdate] -> ShowS)
-> Show KinesisFirehoseOutputUpdate
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [KinesisFirehoseOutputUpdate] -> ShowS
$cshowList :: [KinesisFirehoseOutputUpdate] -> ShowS
show :: KinesisFirehoseOutputUpdate -> String
$cshow :: KinesisFirehoseOutputUpdate -> String
showsPrec :: Int -> KinesisFirehoseOutputUpdate -> ShowS
$cshowsPrec :: Int -> KinesisFirehoseOutputUpdate -> ShowS
Prelude.Show, (forall x.
KinesisFirehoseOutputUpdate -> Rep KinesisFirehoseOutputUpdate x)
-> (forall x.
Rep KinesisFirehoseOutputUpdate x -> KinesisFirehoseOutputUpdate)
-> Generic KinesisFirehoseOutputUpdate
forall x.
Rep KinesisFirehoseOutputUpdate x -> KinesisFirehoseOutputUpdate
forall x.
KinesisFirehoseOutputUpdate -> Rep KinesisFirehoseOutputUpdate x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep KinesisFirehoseOutputUpdate x -> KinesisFirehoseOutputUpdate
$cfrom :: forall x.
KinesisFirehoseOutputUpdate -> Rep KinesisFirehoseOutputUpdate x
Prelude.Generic)
newKinesisFirehoseOutputUpdate ::
Prelude.Text ->
KinesisFirehoseOutputUpdate
newKinesisFirehoseOutputUpdate :: Text -> KinesisFirehoseOutputUpdate
newKinesisFirehoseOutputUpdate Text
pResourceARNUpdate_ =
KinesisFirehoseOutputUpdate' :: Text -> KinesisFirehoseOutputUpdate
KinesisFirehoseOutputUpdate'
{ $sel:resourceARNUpdate:KinesisFirehoseOutputUpdate' :: Text
resourceARNUpdate =
Text
pResourceARNUpdate_
}
kinesisFirehoseOutputUpdate_resourceARNUpdate :: Lens.Lens' KinesisFirehoseOutputUpdate Prelude.Text
kinesisFirehoseOutputUpdate_resourceARNUpdate :: (Text -> f Text)
-> KinesisFirehoseOutputUpdate -> f KinesisFirehoseOutputUpdate
kinesisFirehoseOutputUpdate_resourceARNUpdate = (KinesisFirehoseOutputUpdate -> Text)
-> (KinesisFirehoseOutputUpdate
-> Text -> KinesisFirehoseOutputUpdate)
-> Lens
KinesisFirehoseOutputUpdate KinesisFirehoseOutputUpdate Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\KinesisFirehoseOutputUpdate' {Text
resourceARNUpdate :: Text
$sel:resourceARNUpdate:KinesisFirehoseOutputUpdate' :: KinesisFirehoseOutputUpdate -> Text
resourceARNUpdate} -> Text
resourceARNUpdate) (\s :: KinesisFirehoseOutputUpdate
s@KinesisFirehoseOutputUpdate' {} Text
a -> KinesisFirehoseOutputUpdate
s {$sel:resourceARNUpdate:KinesisFirehoseOutputUpdate' :: Text
resourceARNUpdate = Text
a} :: KinesisFirehoseOutputUpdate)
instance Prelude.Hashable KinesisFirehoseOutputUpdate
instance Prelude.NFData KinesisFirehoseOutputUpdate
instance Core.ToJSON KinesisFirehoseOutputUpdate where
toJSON :: KinesisFirehoseOutputUpdate -> Value
toJSON KinesisFirehoseOutputUpdate' {Text
resourceARNUpdate :: Text
$sel:resourceARNUpdate:KinesisFirehoseOutputUpdate' :: KinesisFirehoseOutputUpdate -> Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"ResourceARNUpdate" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
resourceARNUpdate)
]
)