{-# 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.KinesisFirehoseOutputDescription where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data KinesisFirehoseOutputDescription = KinesisFirehoseOutputDescription'
{
KinesisFirehoseOutputDescription -> Maybe Text
resourceARN :: Prelude.Maybe Prelude.Text,
KinesisFirehoseOutputDescription -> Maybe Text
roleARN :: Prelude.Maybe Prelude.Text
}
deriving (KinesisFirehoseOutputDescription
-> KinesisFirehoseOutputDescription -> Bool
(KinesisFirehoseOutputDescription
-> KinesisFirehoseOutputDescription -> Bool)
-> (KinesisFirehoseOutputDescription
-> KinesisFirehoseOutputDescription -> Bool)
-> Eq KinesisFirehoseOutputDescription
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: KinesisFirehoseOutputDescription
-> KinesisFirehoseOutputDescription -> Bool
$c/= :: KinesisFirehoseOutputDescription
-> KinesisFirehoseOutputDescription -> Bool
== :: KinesisFirehoseOutputDescription
-> KinesisFirehoseOutputDescription -> Bool
$c== :: KinesisFirehoseOutputDescription
-> KinesisFirehoseOutputDescription -> Bool
Prelude.Eq, ReadPrec [KinesisFirehoseOutputDescription]
ReadPrec KinesisFirehoseOutputDescription
Int -> ReadS KinesisFirehoseOutputDescription
ReadS [KinesisFirehoseOutputDescription]
(Int -> ReadS KinesisFirehoseOutputDescription)
-> ReadS [KinesisFirehoseOutputDescription]
-> ReadPrec KinesisFirehoseOutputDescription
-> ReadPrec [KinesisFirehoseOutputDescription]
-> Read KinesisFirehoseOutputDescription
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [KinesisFirehoseOutputDescription]
$creadListPrec :: ReadPrec [KinesisFirehoseOutputDescription]
readPrec :: ReadPrec KinesisFirehoseOutputDescription
$creadPrec :: ReadPrec KinesisFirehoseOutputDescription
readList :: ReadS [KinesisFirehoseOutputDescription]
$creadList :: ReadS [KinesisFirehoseOutputDescription]
readsPrec :: Int -> ReadS KinesisFirehoseOutputDescription
$creadsPrec :: Int -> ReadS KinesisFirehoseOutputDescription
Prelude.Read, Int -> KinesisFirehoseOutputDescription -> ShowS
[KinesisFirehoseOutputDescription] -> ShowS
KinesisFirehoseOutputDescription -> String
(Int -> KinesisFirehoseOutputDescription -> ShowS)
-> (KinesisFirehoseOutputDescription -> String)
-> ([KinesisFirehoseOutputDescription] -> ShowS)
-> Show KinesisFirehoseOutputDescription
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [KinesisFirehoseOutputDescription] -> ShowS
$cshowList :: [KinesisFirehoseOutputDescription] -> ShowS
show :: KinesisFirehoseOutputDescription -> String
$cshow :: KinesisFirehoseOutputDescription -> String
showsPrec :: Int -> KinesisFirehoseOutputDescription -> ShowS
$cshowsPrec :: Int -> KinesisFirehoseOutputDescription -> ShowS
Prelude.Show, (forall x.
KinesisFirehoseOutputDescription
-> Rep KinesisFirehoseOutputDescription x)
-> (forall x.
Rep KinesisFirehoseOutputDescription x
-> KinesisFirehoseOutputDescription)
-> Generic KinesisFirehoseOutputDescription
forall x.
Rep KinesisFirehoseOutputDescription x
-> KinesisFirehoseOutputDescription
forall x.
KinesisFirehoseOutputDescription
-> Rep KinesisFirehoseOutputDescription x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep KinesisFirehoseOutputDescription x
-> KinesisFirehoseOutputDescription
$cfrom :: forall x.
KinesisFirehoseOutputDescription
-> Rep KinesisFirehoseOutputDescription x
Prelude.Generic)
newKinesisFirehoseOutputDescription ::
KinesisFirehoseOutputDescription
newKinesisFirehoseOutputDescription :: KinesisFirehoseOutputDescription
newKinesisFirehoseOutputDescription =
KinesisFirehoseOutputDescription' :: Maybe Text -> Maybe Text -> KinesisFirehoseOutputDescription
KinesisFirehoseOutputDescription'
{ $sel:resourceARN:KinesisFirehoseOutputDescription' :: Maybe Text
resourceARN =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:roleARN:KinesisFirehoseOutputDescription' :: Maybe Text
roleARN = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
kinesisFirehoseOutputDescription_resourceARN :: Lens.Lens' KinesisFirehoseOutputDescription (Prelude.Maybe Prelude.Text)
kinesisFirehoseOutputDescription_resourceARN :: (Maybe Text -> f (Maybe Text))
-> KinesisFirehoseOutputDescription
-> f KinesisFirehoseOutputDescription
kinesisFirehoseOutputDescription_resourceARN = (KinesisFirehoseOutputDescription -> Maybe Text)
-> (KinesisFirehoseOutputDescription
-> Maybe Text -> KinesisFirehoseOutputDescription)
-> Lens
KinesisFirehoseOutputDescription
KinesisFirehoseOutputDescription
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\KinesisFirehoseOutputDescription' {Maybe Text
resourceARN :: Maybe Text
$sel:resourceARN:KinesisFirehoseOutputDescription' :: KinesisFirehoseOutputDescription -> Maybe Text
resourceARN} -> Maybe Text
resourceARN) (\s :: KinesisFirehoseOutputDescription
s@KinesisFirehoseOutputDescription' {} Maybe Text
a -> KinesisFirehoseOutputDescription
s {$sel:resourceARN:KinesisFirehoseOutputDescription' :: Maybe Text
resourceARN = Maybe Text
a} :: KinesisFirehoseOutputDescription)
kinesisFirehoseOutputDescription_roleARN :: Lens.Lens' KinesisFirehoseOutputDescription (Prelude.Maybe Prelude.Text)
kinesisFirehoseOutputDescription_roleARN :: (Maybe Text -> f (Maybe Text))
-> KinesisFirehoseOutputDescription
-> f KinesisFirehoseOutputDescription
kinesisFirehoseOutputDescription_roleARN = (KinesisFirehoseOutputDescription -> Maybe Text)
-> (KinesisFirehoseOutputDescription
-> Maybe Text -> KinesisFirehoseOutputDescription)
-> Lens
KinesisFirehoseOutputDescription
KinesisFirehoseOutputDescription
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\KinesisFirehoseOutputDescription' {Maybe Text
roleARN :: Maybe Text
$sel:roleARN:KinesisFirehoseOutputDescription' :: KinesisFirehoseOutputDescription -> Maybe Text
roleARN} -> Maybe Text
roleARN) (\s :: KinesisFirehoseOutputDescription
s@KinesisFirehoseOutputDescription' {} Maybe Text
a -> KinesisFirehoseOutputDescription
s {$sel:roleARN:KinesisFirehoseOutputDescription' :: Maybe Text
roleARN = Maybe Text
a} :: KinesisFirehoseOutputDescription)
instance
Core.FromJSON
KinesisFirehoseOutputDescription
where
parseJSON :: Value -> Parser KinesisFirehoseOutputDescription
parseJSON =
String
-> (Object -> Parser KinesisFirehoseOutputDescription)
-> Value
-> Parser KinesisFirehoseOutputDescription
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"KinesisFirehoseOutputDescription"
( \Object
x ->
Maybe Text -> Maybe Text -> KinesisFirehoseOutputDescription
KinesisFirehoseOutputDescription'
(Maybe Text -> Maybe Text -> KinesisFirehoseOutputDescription)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> KinesisFirehoseOutputDescription)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ResourceARN")
Parser (Maybe Text -> KinesisFirehoseOutputDescription)
-> Parser (Maybe Text) -> Parser KinesisFirehoseOutputDescription
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"RoleARN")
)
instance
Prelude.Hashable
KinesisFirehoseOutputDescription
instance
Prelude.NFData
KinesisFirehoseOutputDescription