{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.Rekognition.DescribeStreamProcessor
(
DescribeStreamProcessor (..),
newDescribeStreamProcessor,
describeStreamProcessor_name,
DescribeStreamProcessorResponse (..),
newDescribeStreamProcessorResponse,
describeStreamProcessorResponse_status,
describeStreamProcessorResponse_settings,
describeStreamProcessorResponse_input,
describeStreamProcessorResponse_output,
describeStreamProcessorResponse_streamProcessorArn,
describeStreamProcessorResponse_statusMessage,
describeStreamProcessorResponse_name,
describeStreamProcessorResponse_creationTimestamp,
describeStreamProcessorResponse_lastUpdateTimestamp,
describeStreamProcessorResponse_roleArn,
describeStreamProcessorResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.Rekognition.Types
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DescribeStreamProcessor = DescribeStreamProcessor'
{
DescribeStreamProcessor -> Text
name :: Prelude.Text
}
deriving (DescribeStreamProcessor -> DescribeStreamProcessor -> Bool
(DescribeStreamProcessor -> DescribeStreamProcessor -> Bool)
-> (DescribeStreamProcessor -> DescribeStreamProcessor -> Bool)
-> Eq DescribeStreamProcessor
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeStreamProcessor -> DescribeStreamProcessor -> Bool
$c/= :: DescribeStreamProcessor -> DescribeStreamProcessor -> Bool
== :: DescribeStreamProcessor -> DescribeStreamProcessor -> Bool
$c== :: DescribeStreamProcessor -> DescribeStreamProcessor -> Bool
Prelude.Eq, ReadPrec [DescribeStreamProcessor]
ReadPrec DescribeStreamProcessor
Int -> ReadS DescribeStreamProcessor
ReadS [DescribeStreamProcessor]
(Int -> ReadS DescribeStreamProcessor)
-> ReadS [DescribeStreamProcessor]
-> ReadPrec DescribeStreamProcessor
-> ReadPrec [DescribeStreamProcessor]
-> Read DescribeStreamProcessor
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeStreamProcessor]
$creadListPrec :: ReadPrec [DescribeStreamProcessor]
readPrec :: ReadPrec DescribeStreamProcessor
$creadPrec :: ReadPrec DescribeStreamProcessor
readList :: ReadS [DescribeStreamProcessor]
$creadList :: ReadS [DescribeStreamProcessor]
readsPrec :: Int -> ReadS DescribeStreamProcessor
$creadsPrec :: Int -> ReadS DescribeStreamProcessor
Prelude.Read, Int -> DescribeStreamProcessor -> ShowS
[DescribeStreamProcessor] -> ShowS
DescribeStreamProcessor -> String
(Int -> DescribeStreamProcessor -> ShowS)
-> (DescribeStreamProcessor -> String)
-> ([DescribeStreamProcessor] -> ShowS)
-> Show DescribeStreamProcessor
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeStreamProcessor] -> ShowS
$cshowList :: [DescribeStreamProcessor] -> ShowS
show :: DescribeStreamProcessor -> String
$cshow :: DescribeStreamProcessor -> String
showsPrec :: Int -> DescribeStreamProcessor -> ShowS
$cshowsPrec :: Int -> DescribeStreamProcessor -> ShowS
Prelude.Show, (forall x.
DescribeStreamProcessor -> Rep DescribeStreamProcessor x)
-> (forall x.
Rep DescribeStreamProcessor x -> DescribeStreamProcessor)
-> Generic DescribeStreamProcessor
forall x. Rep DescribeStreamProcessor x -> DescribeStreamProcessor
forall x. DescribeStreamProcessor -> Rep DescribeStreamProcessor x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeStreamProcessor x -> DescribeStreamProcessor
$cfrom :: forall x. DescribeStreamProcessor -> Rep DescribeStreamProcessor x
Prelude.Generic)
newDescribeStreamProcessor ::
Prelude.Text ->
DescribeStreamProcessor
newDescribeStreamProcessor :: Text -> DescribeStreamProcessor
newDescribeStreamProcessor Text
pName_ =
DescribeStreamProcessor' :: Text -> DescribeStreamProcessor
DescribeStreamProcessor' {$sel:name:DescribeStreamProcessor' :: Text
name = Text
pName_}
describeStreamProcessor_name :: Lens.Lens' DescribeStreamProcessor Prelude.Text
describeStreamProcessor_name :: (Text -> f Text)
-> DescribeStreamProcessor -> f DescribeStreamProcessor
describeStreamProcessor_name = (DescribeStreamProcessor -> Text)
-> (DescribeStreamProcessor -> Text -> DescribeStreamProcessor)
-> Lens DescribeStreamProcessor DescribeStreamProcessor Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeStreamProcessor' {Text
name :: Text
$sel:name:DescribeStreamProcessor' :: DescribeStreamProcessor -> Text
name} -> Text
name) (\s :: DescribeStreamProcessor
s@DescribeStreamProcessor' {} Text
a -> DescribeStreamProcessor
s {$sel:name:DescribeStreamProcessor' :: Text
name = Text
a} :: DescribeStreamProcessor)
instance Core.AWSRequest DescribeStreamProcessor where
type
AWSResponse DescribeStreamProcessor =
DescribeStreamProcessorResponse
request :: DescribeStreamProcessor -> Request DescribeStreamProcessor
request = Service
-> DescribeStreamProcessor -> Request DescribeStreamProcessor
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeStreamProcessor
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeStreamProcessor)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeStreamProcessor))
-> Logger
-> Service
-> Proxy DescribeStreamProcessor
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeStreamProcessor)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe StreamProcessorStatus
-> Maybe StreamProcessorSettings
-> Maybe StreamProcessorInput
-> Maybe StreamProcessorOutput
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeStreamProcessorResponse
DescribeStreamProcessorResponse'
(Maybe StreamProcessorStatus
-> Maybe StreamProcessorSettings
-> Maybe StreamProcessorInput
-> Maybe StreamProcessorOutput
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeStreamProcessorResponse)
-> Either String (Maybe StreamProcessorStatus)
-> Either
String
(Maybe StreamProcessorSettings
-> Maybe StreamProcessorInput
-> Maybe StreamProcessorOutput
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeStreamProcessorResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe StreamProcessorStatus)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Status")
Either
String
(Maybe StreamProcessorSettings
-> Maybe StreamProcessorInput
-> Maybe StreamProcessorOutput
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeStreamProcessorResponse)
-> Either String (Maybe StreamProcessorSettings)
-> Either
String
(Maybe StreamProcessorInput
-> Maybe StreamProcessorOutput
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeStreamProcessorResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe StreamProcessorSettings)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Settings")
Either
String
(Maybe StreamProcessorInput
-> Maybe StreamProcessorOutput
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeStreamProcessorResponse)
-> Either String (Maybe StreamProcessorInput)
-> Either
String
(Maybe StreamProcessorOutput
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeStreamProcessorResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe StreamProcessorInput)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Input")
Either
String
(Maybe StreamProcessorOutput
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeStreamProcessorResponse)
-> Either String (Maybe StreamProcessorOutput)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeStreamProcessorResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe StreamProcessorOutput)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Output")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeStreamProcessorResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeStreamProcessorResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"StreamProcessorArn")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeStreamProcessorResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeStreamProcessorResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"StatusMessage")
Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeStreamProcessorResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeStreamProcessorResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Name")
Either
String
(Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeStreamProcessorResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe POSIX
-> Maybe Text -> Int -> DescribeStreamProcessorResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"CreationTimestamp")
Either
String
(Maybe POSIX
-> Maybe Text -> Int -> DescribeStreamProcessorResponse)
-> Either String (Maybe POSIX)
-> Either
String (Maybe Text -> Int -> DescribeStreamProcessorResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"LastUpdateTimestamp")
Either
String (Maybe Text -> Int -> DescribeStreamProcessorResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeStreamProcessorResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"RoleArn")
Either String (Int -> DescribeStreamProcessorResponse)
-> Either String Int
-> Either String DescribeStreamProcessorResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable DescribeStreamProcessor
instance Prelude.NFData DescribeStreamProcessor
instance Core.ToHeaders DescribeStreamProcessor where
toHeaders :: DescribeStreamProcessor -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeStreamProcessor -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"RekognitionService.DescribeStreamProcessor" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON DescribeStreamProcessor where
toJSON :: DescribeStreamProcessor -> Value
toJSON DescribeStreamProcessor' {Text
name :: Text
$sel:name:DescribeStreamProcessor' :: DescribeStreamProcessor -> 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
"Name" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
name)]
)
instance Core.ToPath DescribeStreamProcessor where
toPath :: DescribeStreamProcessor -> ByteString
toPath = ByteString -> DescribeStreamProcessor -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeStreamProcessor where
toQuery :: DescribeStreamProcessor -> QueryString
toQuery = QueryString -> DescribeStreamProcessor -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeStreamProcessorResponse = DescribeStreamProcessorResponse'
{
DescribeStreamProcessorResponse -> Maybe StreamProcessorStatus
status :: Prelude.Maybe StreamProcessorStatus,
DescribeStreamProcessorResponse -> Maybe StreamProcessorSettings
settings :: Prelude.Maybe StreamProcessorSettings,
DescribeStreamProcessorResponse -> Maybe StreamProcessorInput
input :: Prelude.Maybe StreamProcessorInput,
DescribeStreamProcessorResponse -> Maybe StreamProcessorOutput
output :: Prelude.Maybe StreamProcessorOutput,
DescribeStreamProcessorResponse -> Maybe Text
streamProcessorArn :: Prelude.Maybe Prelude.Text,
DescribeStreamProcessorResponse -> Maybe Text
statusMessage :: Prelude.Maybe Prelude.Text,
DescribeStreamProcessorResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
DescribeStreamProcessorResponse -> Maybe POSIX
creationTimestamp :: Prelude.Maybe Core.POSIX,
DescribeStreamProcessorResponse -> Maybe POSIX
lastUpdateTimestamp :: Prelude.Maybe Core.POSIX,
DescribeStreamProcessorResponse -> Maybe Text
roleArn :: Prelude.Maybe Prelude.Text,
DescribeStreamProcessorResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeStreamProcessorResponse
-> DescribeStreamProcessorResponse -> Bool
(DescribeStreamProcessorResponse
-> DescribeStreamProcessorResponse -> Bool)
-> (DescribeStreamProcessorResponse
-> DescribeStreamProcessorResponse -> Bool)
-> Eq DescribeStreamProcessorResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeStreamProcessorResponse
-> DescribeStreamProcessorResponse -> Bool
$c/= :: DescribeStreamProcessorResponse
-> DescribeStreamProcessorResponse -> Bool
== :: DescribeStreamProcessorResponse
-> DescribeStreamProcessorResponse -> Bool
$c== :: DescribeStreamProcessorResponse
-> DescribeStreamProcessorResponse -> Bool
Prelude.Eq, ReadPrec [DescribeStreamProcessorResponse]
ReadPrec DescribeStreamProcessorResponse
Int -> ReadS DescribeStreamProcessorResponse
ReadS [DescribeStreamProcessorResponse]
(Int -> ReadS DescribeStreamProcessorResponse)
-> ReadS [DescribeStreamProcessorResponse]
-> ReadPrec DescribeStreamProcessorResponse
-> ReadPrec [DescribeStreamProcessorResponse]
-> Read DescribeStreamProcessorResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeStreamProcessorResponse]
$creadListPrec :: ReadPrec [DescribeStreamProcessorResponse]
readPrec :: ReadPrec DescribeStreamProcessorResponse
$creadPrec :: ReadPrec DescribeStreamProcessorResponse
readList :: ReadS [DescribeStreamProcessorResponse]
$creadList :: ReadS [DescribeStreamProcessorResponse]
readsPrec :: Int -> ReadS DescribeStreamProcessorResponse
$creadsPrec :: Int -> ReadS DescribeStreamProcessorResponse
Prelude.Read, Int -> DescribeStreamProcessorResponse -> ShowS
[DescribeStreamProcessorResponse] -> ShowS
DescribeStreamProcessorResponse -> String
(Int -> DescribeStreamProcessorResponse -> ShowS)
-> (DescribeStreamProcessorResponse -> String)
-> ([DescribeStreamProcessorResponse] -> ShowS)
-> Show DescribeStreamProcessorResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeStreamProcessorResponse] -> ShowS
$cshowList :: [DescribeStreamProcessorResponse] -> ShowS
show :: DescribeStreamProcessorResponse -> String
$cshow :: DescribeStreamProcessorResponse -> String
showsPrec :: Int -> DescribeStreamProcessorResponse -> ShowS
$cshowsPrec :: Int -> DescribeStreamProcessorResponse -> ShowS
Prelude.Show, (forall x.
DescribeStreamProcessorResponse
-> Rep DescribeStreamProcessorResponse x)
-> (forall x.
Rep DescribeStreamProcessorResponse x
-> DescribeStreamProcessorResponse)
-> Generic DescribeStreamProcessorResponse
forall x.
Rep DescribeStreamProcessorResponse x
-> DescribeStreamProcessorResponse
forall x.
DescribeStreamProcessorResponse
-> Rep DescribeStreamProcessorResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeStreamProcessorResponse x
-> DescribeStreamProcessorResponse
$cfrom :: forall x.
DescribeStreamProcessorResponse
-> Rep DescribeStreamProcessorResponse x
Prelude.Generic)
newDescribeStreamProcessorResponse ::
Prelude.Int ->
DescribeStreamProcessorResponse
newDescribeStreamProcessorResponse :: Int -> DescribeStreamProcessorResponse
newDescribeStreamProcessorResponse Int
pHttpStatus_ =
DescribeStreamProcessorResponse' :: Maybe StreamProcessorStatus
-> Maybe StreamProcessorSettings
-> Maybe StreamProcessorInput
-> Maybe StreamProcessorOutput
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeStreamProcessorResponse
DescribeStreamProcessorResponse'
{ $sel:status:DescribeStreamProcessorResponse' :: Maybe StreamProcessorStatus
status =
Maybe StreamProcessorStatus
forall a. Maybe a
Prelude.Nothing,
$sel:settings:DescribeStreamProcessorResponse' :: Maybe StreamProcessorSettings
settings = Maybe StreamProcessorSettings
forall a. Maybe a
Prelude.Nothing,
$sel:input:DescribeStreamProcessorResponse' :: Maybe StreamProcessorInput
input = Maybe StreamProcessorInput
forall a. Maybe a
Prelude.Nothing,
$sel:output:DescribeStreamProcessorResponse' :: Maybe StreamProcessorOutput
output = Maybe StreamProcessorOutput
forall a. Maybe a
Prelude.Nothing,
$sel:streamProcessorArn:DescribeStreamProcessorResponse' :: Maybe Text
streamProcessorArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:statusMessage:DescribeStreamProcessorResponse' :: Maybe Text
statusMessage = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:name:DescribeStreamProcessorResponse' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:creationTimestamp:DescribeStreamProcessorResponse' :: Maybe POSIX
creationTimestamp = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:lastUpdateTimestamp:DescribeStreamProcessorResponse' :: Maybe POSIX
lastUpdateTimestamp = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:roleArn:DescribeStreamProcessorResponse' :: Maybe Text
roleArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeStreamProcessorResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeStreamProcessorResponse_status :: Lens.Lens' DescribeStreamProcessorResponse (Prelude.Maybe StreamProcessorStatus)
describeStreamProcessorResponse_status :: (Maybe StreamProcessorStatus -> f (Maybe StreamProcessorStatus))
-> DescribeStreamProcessorResponse
-> f DescribeStreamProcessorResponse
describeStreamProcessorResponse_status = (DescribeStreamProcessorResponse -> Maybe StreamProcessorStatus)
-> (DescribeStreamProcessorResponse
-> Maybe StreamProcessorStatus -> DescribeStreamProcessorResponse)
-> Lens
DescribeStreamProcessorResponse
DescribeStreamProcessorResponse
(Maybe StreamProcessorStatus)
(Maybe StreamProcessorStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeStreamProcessorResponse' {Maybe StreamProcessorStatus
status :: Maybe StreamProcessorStatus
$sel:status:DescribeStreamProcessorResponse' :: DescribeStreamProcessorResponse -> Maybe StreamProcessorStatus
status} -> Maybe StreamProcessorStatus
status) (\s :: DescribeStreamProcessorResponse
s@DescribeStreamProcessorResponse' {} Maybe StreamProcessorStatus
a -> DescribeStreamProcessorResponse
s {$sel:status:DescribeStreamProcessorResponse' :: Maybe StreamProcessorStatus
status = Maybe StreamProcessorStatus
a} :: DescribeStreamProcessorResponse)
describeStreamProcessorResponse_settings :: Lens.Lens' DescribeStreamProcessorResponse (Prelude.Maybe StreamProcessorSettings)
describeStreamProcessorResponse_settings :: (Maybe StreamProcessorSettings
-> f (Maybe StreamProcessorSettings))
-> DescribeStreamProcessorResponse
-> f DescribeStreamProcessorResponse
describeStreamProcessorResponse_settings = (DescribeStreamProcessorResponse -> Maybe StreamProcessorSettings)
-> (DescribeStreamProcessorResponse
-> Maybe StreamProcessorSettings
-> DescribeStreamProcessorResponse)
-> Lens
DescribeStreamProcessorResponse
DescribeStreamProcessorResponse
(Maybe StreamProcessorSettings)
(Maybe StreamProcessorSettings)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeStreamProcessorResponse' {Maybe StreamProcessorSettings
settings :: Maybe StreamProcessorSettings
$sel:settings:DescribeStreamProcessorResponse' :: DescribeStreamProcessorResponse -> Maybe StreamProcessorSettings
settings} -> Maybe StreamProcessorSettings
settings) (\s :: DescribeStreamProcessorResponse
s@DescribeStreamProcessorResponse' {} Maybe StreamProcessorSettings
a -> DescribeStreamProcessorResponse
s {$sel:settings:DescribeStreamProcessorResponse' :: Maybe StreamProcessorSettings
settings = Maybe StreamProcessorSettings
a} :: DescribeStreamProcessorResponse)
describeStreamProcessorResponse_input :: Lens.Lens' DescribeStreamProcessorResponse (Prelude.Maybe StreamProcessorInput)
describeStreamProcessorResponse_input :: (Maybe StreamProcessorInput -> f (Maybe StreamProcessorInput))
-> DescribeStreamProcessorResponse
-> f DescribeStreamProcessorResponse
describeStreamProcessorResponse_input = (DescribeStreamProcessorResponse -> Maybe StreamProcessorInput)
-> (DescribeStreamProcessorResponse
-> Maybe StreamProcessorInput -> DescribeStreamProcessorResponse)
-> Lens
DescribeStreamProcessorResponse
DescribeStreamProcessorResponse
(Maybe StreamProcessorInput)
(Maybe StreamProcessorInput)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeStreamProcessorResponse' {Maybe StreamProcessorInput
input :: Maybe StreamProcessorInput
$sel:input:DescribeStreamProcessorResponse' :: DescribeStreamProcessorResponse -> Maybe StreamProcessorInput
input} -> Maybe StreamProcessorInput
input) (\s :: DescribeStreamProcessorResponse
s@DescribeStreamProcessorResponse' {} Maybe StreamProcessorInput
a -> DescribeStreamProcessorResponse
s {$sel:input:DescribeStreamProcessorResponse' :: Maybe StreamProcessorInput
input = Maybe StreamProcessorInput
a} :: DescribeStreamProcessorResponse)
describeStreamProcessorResponse_output :: Lens.Lens' DescribeStreamProcessorResponse (Prelude.Maybe StreamProcessorOutput)
describeStreamProcessorResponse_output :: (Maybe StreamProcessorOutput -> f (Maybe StreamProcessorOutput))
-> DescribeStreamProcessorResponse
-> f DescribeStreamProcessorResponse
describeStreamProcessorResponse_output = (DescribeStreamProcessorResponse -> Maybe StreamProcessorOutput)
-> (DescribeStreamProcessorResponse
-> Maybe StreamProcessorOutput -> DescribeStreamProcessorResponse)
-> Lens
DescribeStreamProcessorResponse
DescribeStreamProcessorResponse
(Maybe StreamProcessorOutput)
(Maybe StreamProcessorOutput)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeStreamProcessorResponse' {Maybe StreamProcessorOutput
output :: Maybe StreamProcessorOutput
$sel:output:DescribeStreamProcessorResponse' :: DescribeStreamProcessorResponse -> Maybe StreamProcessorOutput
output} -> Maybe StreamProcessorOutput
output) (\s :: DescribeStreamProcessorResponse
s@DescribeStreamProcessorResponse' {} Maybe StreamProcessorOutput
a -> DescribeStreamProcessorResponse
s {$sel:output:DescribeStreamProcessorResponse' :: Maybe StreamProcessorOutput
output = Maybe StreamProcessorOutput
a} :: DescribeStreamProcessorResponse)
describeStreamProcessorResponse_streamProcessorArn :: Lens.Lens' DescribeStreamProcessorResponse (Prelude.Maybe Prelude.Text)
describeStreamProcessorResponse_streamProcessorArn :: (Maybe Text -> f (Maybe Text))
-> DescribeStreamProcessorResponse
-> f DescribeStreamProcessorResponse
describeStreamProcessorResponse_streamProcessorArn = (DescribeStreamProcessorResponse -> Maybe Text)
-> (DescribeStreamProcessorResponse
-> Maybe Text -> DescribeStreamProcessorResponse)
-> Lens
DescribeStreamProcessorResponse
DescribeStreamProcessorResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeStreamProcessorResponse' {Maybe Text
streamProcessorArn :: Maybe Text
$sel:streamProcessorArn:DescribeStreamProcessorResponse' :: DescribeStreamProcessorResponse -> Maybe Text
streamProcessorArn} -> Maybe Text
streamProcessorArn) (\s :: DescribeStreamProcessorResponse
s@DescribeStreamProcessorResponse' {} Maybe Text
a -> DescribeStreamProcessorResponse
s {$sel:streamProcessorArn:DescribeStreamProcessorResponse' :: Maybe Text
streamProcessorArn = Maybe Text
a} :: DescribeStreamProcessorResponse)
describeStreamProcessorResponse_statusMessage :: Lens.Lens' DescribeStreamProcessorResponse (Prelude.Maybe Prelude.Text)
describeStreamProcessorResponse_statusMessage :: (Maybe Text -> f (Maybe Text))
-> DescribeStreamProcessorResponse
-> f DescribeStreamProcessorResponse
describeStreamProcessorResponse_statusMessage = (DescribeStreamProcessorResponse -> Maybe Text)
-> (DescribeStreamProcessorResponse
-> Maybe Text -> DescribeStreamProcessorResponse)
-> Lens
DescribeStreamProcessorResponse
DescribeStreamProcessorResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeStreamProcessorResponse' {Maybe Text
statusMessage :: Maybe Text
$sel:statusMessage:DescribeStreamProcessorResponse' :: DescribeStreamProcessorResponse -> Maybe Text
statusMessage} -> Maybe Text
statusMessage) (\s :: DescribeStreamProcessorResponse
s@DescribeStreamProcessorResponse' {} Maybe Text
a -> DescribeStreamProcessorResponse
s {$sel:statusMessage:DescribeStreamProcessorResponse' :: Maybe Text
statusMessage = Maybe Text
a} :: DescribeStreamProcessorResponse)
describeStreamProcessorResponse_name :: Lens.Lens' DescribeStreamProcessorResponse (Prelude.Maybe Prelude.Text)
describeStreamProcessorResponse_name :: (Maybe Text -> f (Maybe Text))
-> DescribeStreamProcessorResponse
-> f DescribeStreamProcessorResponse
describeStreamProcessorResponse_name = (DescribeStreamProcessorResponse -> Maybe Text)
-> (DescribeStreamProcessorResponse
-> Maybe Text -> DescribeStreamProcessorResponse)
-> Lens
DescribeStreamProcessorResponse
DescribeStreamProcessorResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeStreamProcessorResponse' {Maybe Text
name :: Maybe Text
$sel:name:DescribeStreamProcessorResponse' :: DescribeStreamProcessorResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: DescribeStreamProcessorResponse
s@DescribeStreamProcessorResponse' {} Maybe Text
a -> DescribeStreamProcessorResponse
s {$sel:name:DescribeStreamProcessorResponse' :: Maybe Text
name = Maybe Text
a} :: DescribeStreamProcessorResponse)
describeStreamProcessorResponse_creationTimestamp :: Lens.Lens' DescribeStreamProcessorResponse (Prelude.Maybe Prelude.UTCTime)
describeStreamProcessorResponse_creationTimestamp :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeStreamProcessorResponse
-> f DescribeStreamProcessorResponse
describeStreamProcessorResponse_creationTimestamp = (DescribeStreamProcessorResponse -> Maybe POSIX)
-> (DescribeStreamProcessorResponse
-> Maybe POSIX -> DescribeStreamProcessorResponse)
-> Lens
DescribeStreamProcessorResponse
DescribeStreamProcessorResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeStreamProcessorResponse' {Maybe POSIX
creationTimestamp :: Maybe POSIX
$sel:creationTimestamp:DescribeStreamProcessorResponse' :: DescribeStreamProcessorResponse -> Maybe POSIX
creationTimestamp} -> Maybe POSIX
creationTimestamp) (\s :: DescribeStreamProcessorResponse
s@DescribeStreamProcessorResponse' {} Maybe POSIX
a -> DescribeStreamProcessorResponse
s {$sel:creationTimestamp:DescribeStreamProcessorResponse' :: Maybe POSIX
creationTimestamp = Maybe POSIX
a} :: DescribeStreamProcessorResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> DescribeStreamProcessorResponse
-> f DescribeStreamProcessorResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeStreamProcessorResponse
-> f DescribeStreamProcessorResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
describeStreamProcessorResponse_lastUpdateTimestamp :: Lens.Lens' DescribeStreamProcessorResponse (Prelude.Maybe Prelude.UTCTime)
describeStreamProcessorResponse_lastUpdateTimestamp :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeStreamProcessorResponse
-> f DescribeStreamProcessorResponse
describeStreamProcessorResponse_lastUpdateTimestamp = (DescribeStreamProcessorResponse -> Maybe POSIX)
-> (DescribeStreamProcessorResponse
-> Maybe POSIX -> DescribeStreamProcessorResponse)
-> Lens
DescribeStreamProcessorResponse
DescribeStreamProcessorResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeStreamProcessorResponse' {Maybe POSIX
lastUpdateTimestamp :: Maybe POSIX
$sel:lastUpdateTimestamp:DescribeStreamProcessorResponse' :: DescribeStreamProcessorResponse -> Maybe POSIX
lastUpdateTimestamp} -> Maybe POSIX
lastUpdateTimestamp) (\s :: DescribeStreamProcessorResponse
s@DescribeStreamProcessorResponse' {} Maybe POSIX
a -> DescribeStreamProcessorResponse
s {$sel:lastUpdateTimestamp:DescribeStreamProcessorResponse' :: Maybe POSIX
lastUpdateTimestamp = Maybe POSIX
a} :: DescribeStreamProcessorResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> DescribeStreamProcessorResponse
-> f DescribeStreamProcessorResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeStreamProcessorResponse
-> f DescribeStreamProcessorResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
describeStreamProcessorResponse_roleArn :: Lens.Lens' DescribeStreamProcessorResponse (Prelude.Maybe Prelude.Text)
describeStreamProcessorResponse_roleArn :: (Maybe Text -> f (Maybe Text))
-> DescribeStreamProcessorResponse
-> f DescribeStreamProcessorResponse
describeStreamProcessorResponse_roleArn = (DescribeStreamProcessorResponse -> Maybe Text)
-> (DescribeStreamProcessorResponse
-> Maybe Text -> DescribeStreamProcessorResponse)
-> Lens
DescribeStreamProcessorResponse
DescribeStreamProcessorResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeStreamProcessorResponse' {Maybe Text
roleArn :: Maybe Text
$sel:roleArn:DescribeStreamProcessorResponse' :: DescribeStreamProcessorResponse -> Maybe Text
roleArn} -> Maybe Text
roleArn) (\s :: DescribeStreamProcessorResponse
s@DescribeStreamProcessorResponse' {} Maybe Text
a -> DescribeStreamProcessorResponse
s {$sel:roleArn:DescribeStreamProcessorResponse' :: Maybe Text
roleArn = Maybe Text
a} :: DescribeStreamProcessorResponse)
describeStreamProcessorResponse_httpStatus :: Lens.Lens' DescribeStreamProcessorResponse Prelude.Int
describeStreamProcessorResponse_httpStatus :: (Int -> f Int)
-> DescribeStreamProcessorResponse
-> f DescribeStreamProcessorResponse
describeStreamProcessorResponse_httpStatus = (DescribeStreamProcessorResponse -> Int)
-> (DescribeStreamProcessorResponse
-> Int -> DescribeStreamProcessorResponse)
-> Lens
DescribeStreamProcessorResponse
DescribeStreamProcessorResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeStreamProcessorResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeStreamProcessorResponse' :: DescribeStreamProcessorResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeStreamProcessorResponse
s@DescribeStreamProcessorResponse' {} Int
a -> DescribeStreamProcessorResponse
s {$sel:httpStatus:DescribeStreamProcessorResponse' :: Int
httpStatus = Int
a} :: DescribeStreamProcessorResponse)
instance
Prelude.NFData
DescribeStreamProcessorResponse