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