{-# 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.KinesisFirehoseOutputUpdate where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
data KinesisFirehoseOutputUpdate = KinesisFirehoseOutputUpdate'
{
KinesisFirehoseOutputUpdate -> Maybe Text
resourceARNUpdate :: Prelude.Maybe Prelude.Text,
KinesisFirehoseOutputUpdate -> Maybe Text
roleARNUpdate :: Prelude.Maybe Prelude.Text
}
deriving (KinesisFirehoseOutputUpdate -> KinesisFirehoseOutputUpdate -> Bool
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]
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
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.
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 ::
KinesisFirehoseOutputUpdate
newKinesisFirehoseOutputUpdate :: KinesisFirehoseOutputUpdate
newKinesisFirehoseOutputUpdate =
KinesisFirehoseOutputUpdate'
{ $sel:resourceARNUpdate:KinesisFirehoseOutputUpdate' :: Maybe Text
resourceARNUpdate =
forall a. Maybe a
Prelude.Nothing,
$sel:roleARNUpdate:KinesisFirehoseOutputUpdate' :: Maybe Text
roleARNUpdate = forall a. Maybe a
Prelude.Nothing
}
kinesisFirehoseOutputUpdate_resourceARNUpdate :: Lens.Lens' KinesisFirehoseOutputUpdate (Prelude.Maybe Prelude.Text)
kinesisFirehoseOutputUpdate_resourceARNUpdate :: Lens' KinesisFirehoseOutputUpdate (Maybe Text)
kinesisFirehoseOutputUpdate_resourceARNUpdate = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\KinesisFirehoseOutputUpdate' {Maybe Text
resourceARNUpdate :: Maybe Text
$sel:resourceARNUpdate:KinesisFirehoseOutputUpdate' :: KinesisFirehoseOutputUpdate -> Maybe Text
resourceARNUpdate} -> Maybe Text
resourceARNUpdate) (\s :: KinesisFirehoseOutputUpdate
s@KinesisFirehoseOutputUpdate' {} Maybe Text
a -> KinesisFirehoseOutputUpdate
s {$sel:resourceARNUpdate:KinesisFirehoseOutputUpdate' :: Maybe Text
resourceARNUpdate = Maybe Text
a} :: KinesisFirehoseOutputUpdate)
kinesisFirehoseOutputUpdate_roleARNUpdate :: Lens.Lens' KinesisFirehoseOutputUpdate (Prelude.Maybe Prelude.Text)
kinesisFirehoseOutputUpdate_roleARNUpdate :: Lens' KinesisFirehoseOutputUpdate (Maybe Text)
kinesisFirehoseOutputUpdate_roleARNUpdate = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\KinesisFirehoseOutputUpdate' {Maybe Text
roleARNUpdate :: Maybe Text
$sel:roleARNUpdate:KinesisFirehoseOutputUpdate' :: KinesisFirehoseOutputUpdate -> Maybe Text
roleARNUpdate} -> Maybe Text
roleARNUpdate) (\s :: KinesisFirehoseOutputUpdate
s@KinesisFirehoseOutputUpdate' {} Maybe Text
a -> KinesisFirehoseOutputUpdate
s {$sel:roleARNUpdate:KinesisFirehoseOutputUpdate' :: Maybe Text
roleARNUpdate = Maybe Text
a} :: KinesisFirehoseOutputUpdate)
instance Prelude.Hashable KinesisFirehoseOutputUpdate where
hashWithSalt :: Int -> KinesisFirehoseOutputUpdate -> Int
hashWithSalt Int
_salt KinesisFirehoseOutputUpdate' {Maybe Text
roleARNUpdate :: Maybe Text
resourceARNUpdate :: Maybe Text
$sel:roleARNUpdate:KinesisFirehoseOutputUpdate' :: KinesisFirehoseOutputUpdate -> Maybe Text
$sel:resourceARNUpdate:KinesisFirehoseOutputUpdate' :: KinesisFirehoseOutputUpdate -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
resourceARNUpdate
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
roleARNUpdate
instance Prelude.NFData KinesisFirehoseOutputUpdate where
rnf :: KinesisFirehoseOutputUpdate -> ()
rnf KinesisFirehoseOutputUpdate' {Maybe Text
roleARNUpdate :: Maybe Text
resourceARNUpdate :: Maybe Text
$sel:roleARNUpdate:KinesisFirehoseOutputUpdate' :: KinesisFirehoseOutputUpdate -> Maybe Text
$sel:resourceARNUpdate:KinesisFirehoseOutputUpdate' :: KinesisFirehoseOutputUpdate -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
resourceARNUpdate
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
roleARNUpdate
instance Data.ToJSON KinesisFirehoseOutputUpdate where
toJSON :: KinesisFirehoseOutputUpdate -> Value
toJSON KinesisFirehoseOutputUpdate' {Maybe Text
roleARNUpdate :: Maybe Text
resourceARNUpdate :: Maybe Text
$sel:roleARNUpdate:KinesisFirehoseOutputUpdate' :: KinesisFirehoseOutputUpdate -> Maybe Text
$sel:resourceARNUpdate:KinesisFirehoseOutputUpdate' :: KinesisFirehoseOutputUpdate -> Maybe Text
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"ResourceARNUpdate" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
resourceARNUpdate,
(Key
"RoleARNUpdate" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
roleARNUpdate
]
)