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