{-# 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.Nimble.CreateStreamingSessionStream
(
CreateStreamingSessionStream (..),
newCreateStreamingSessionStream,
createStreamingSessionStream_expirationInSeconds,
createStreamingSessionStream_clientToken,
createStreamingSessionStream_studioId,
createStreamingSessionStream_sessionId,
CreateStreamingSessionStreamResponse (..),
newCreateStreamingSessionStreamResponse,
createStreamingSessionStreamResponse_stream,
createStreamingSessionStreamResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.Nimble.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data CreateStreamingSessionStream = CreateStreamingSessionStream'
{
CreateStreamingSessionStream -> Maybe Natural
expirationInSeconds :: Prelude.Maybe Prelude.Natural,
CreateStreamingSessionStream -> Maybe Text
clientToken :: Prelude.Maybe Prelude.Text,
CreateStreamingSessionStream -> Text
studioId :: Prelude.Text,
CreateStreamingSessionStream -> Text
sessionId :: Prelude.Text
}
deriving (CreateStreamingSessionStream
-> CreateStreamingSessionStream -> Bool
(CreateStreamingSessionStream
-> CreateStreamingSessionStream -> Bool)
-> (CreateStreamingSessionStream
-> CreateStreamingSessionStream -> Bool)
-> Eq CreateStreamingSessionStream
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateStreamingSessionStream
-> CreateStreamingSessionStream -> Bool
$c/= :: CreateStreamingSessionStream
-> CreateStreamingSessionStream -> Bool
== :: CreateStreamingSessionStream
-> CreateStreamingSessionStream -> Bool
$c== :: CreateStreamingSessionStream
-> CreateStreamingSessionStream -> Bool
Prelude.Eq, ReadPrec [CreateStreamingSessionStream]
ReadPrec CreateStreamingSessionStream
Int -> ReadS CreateStreamingSessionStream
ReadS [CreateStreamingSessionStream]
(Int -> ReadS CreateStreamingSessionStream)
-> ReadS [CreateStreamingSessionStream]
-> ReadPrec CreateStreamingSessionStream
-> ReadPrec [CreateStreamingSessionStream]
-> Read CreateStreamingSessionStream
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateStreamingSessionStream]
$creadListPrec :: ReadPrec [CreateStreamingSessionStream]
readPrec :: ReadPrec CreateStreamingSessionStream
$creadPrec :: ReadPrec CreateStreamingSessionStream
readList :: ReadS [CreateStreamingSessionStream]
$creadList :: ReadS [CreateStreamingSessionStream]
readsPrec :: Int -> ReadS CreateStreamingSessionStream
$creadsPrec :: Int -> ReadS CreateStreamingSessionStream
Prelude.Read, Int -> CreateStreamingSessionStream -> ShowS
[CreateStreamingSessionStream] -> ShowS
CreateStreamingSessionStream -> String
(Int -> CreateStreamingSessionStream -> ShowS)
-> (CreateStreamingSessionStream -> String)
-> ([CreateStreamingSessionStream] -> ShowS)
-> Show CreateStreamingSessionStream
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateStreamingSessionStream] -> ShowS
$cshowList :: [CreateStreamingSessionStream] -> ShowS
show :: CreateStreamingSessionStream -> String
$cshow :: CreateStreamingSessionStream -> String
showsPrec :: Int -> CreateStreamingSessionStream -> ShowS
$cshowsPrec :: Int -> CreateStreamingSessionStream -> ShowS
Prelude.Show, (forall x.
CreateStreamingSessionStream -> Rep CreateStreamingSessionStream x)
-> (forall x.
Rep CreateStreamingSessionStream x -> CreateStreamingSessionStream)
-> Generic CreateStreamingSessionStream
forall x.
Rep CreateStreamingSessionStream x -> CreateStreamingSessionStream
forall x.
CreateStreamingSessionStream -> Rep CreateStreamingSessionStream x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateStreamingSessionStream x -> CreateStreamingSessionStream
$cfrom :: forall x.
CreateStreamingSessionStream -> Rep CreateStreamingSessionStream x
Prelude.Generic)
newCreateStreamingSessionStream ::
Prelude.Text ->
Prelude.Text ->
CreateStreamingSessionStream
newCreateStreamingSessionStream :: Text -> Text -> CreateStreamingSessionStream
newCreateStreamingSessionStream
Text
pStudioId_
Text
pSessionId_ =
CreateStreamingSessionStream' :: Maybe Natural
-> Maybe Text -> Text -> Text -> CreateStreamingSessionStream
CreateStreamingSessionStream'
{ $sel:expirationInSeconds:CreateStreamingSessionStream' :: Maybe Natural
expirationInSeconds =
Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:clientToken:CreateStreamingSessionStream' :: Maybe Text
clientToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:studioId:CreateStreamingSessionStream' :: Text
studioId = Text
pStudioId_,
$sel:sessionId:CreateStreamingSessionStream' :: Text
sessionId = Text
pSessionId_
}
createStreamingSessionStream_expirationInSeconds :: Lens.Lens' CreateStreamingSessionStream (Prelude.Maybe Prelude.Natural)
createStreamingSessionStream_expirationInSeconds :: (Maybe Natural -> f (Maybe Natural))
-> CreateStreamingSessionStream -> f CreateStreamingSessionStream
createStreamingSessionStream_expirationInSeconds = (CreateStreamingSessionStream -> Maybe Natural)
-> (CreateStreamingSessionStream
-> Maybe Natural -> CreateStreamingSessionStream)
-> Lens
CreateStreamingSessionStream
CreateStreamingSessionStream
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStreamingSessionStream' {Maybe Natural
expirationInSeconds :: Maybe Natural
$sel:expirationInSeconds:CreateStreamingSessionStream' :: CreateStreamingSessionStream -> Maybe Natural
expirationInSeconds} -> Maybe Natural
expirationInSeconds) (\s :: CreateStreamingSessionStream
s@CreateStreamingSessionStream' {} Maybe Natural
a -> CreateStreamingSessionStream
s {$sel:expirationInSeconds:CreateStreamingSessionStream' :: Maybe Natural
expirationInSeconds = Maybe Natural
a} :: CreateStreamingSessionStream)
createStreamingSessionStream_clientToken :: Lens.Lens' CreateStreamingSessionStream (Prelude.Maybe Prelude.Text)
createStreamingSessionStream_clientToken :: (Maybe Text -> f (Maybe Text))
-> CreateStreamingSessionStream -> f CreateStreamingSessionStream
createStreamingSessionStream_clientToken = (CreateStreamingSessionStream -> Maybe Text)
-> (CreateStreamingSessionStream
-> Maybe Text -> CreateStreamingSessionStream)
-> Lens
CreateStreamingSessionStream
CreateStreamingSessionStream
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStreamingSessionStream' {Maybe Text
clientToken :: Maybe Text
$sel:clientToken:CreateStreamingSessionStream' :: CreateStreamingSessionStream -> Maybe Text
clientToken} -> Maybe Text
clientToken) (\s :: CreateStreamingSessionStream
s@CreateStreamingSessionStream' {} Maybe Text
a -> CreateStreamingSessionStream
s {$sel:clientToken:CreateStreamingSessionStream' :: Maybe Text
clientToken = Maybe Text
a} :: CreateStreamingSessionStream)
createStreamingSessionStream_studioId :: Lens.Lens' CreateStreamingSessionStream Prelude.Text
createStreamingSessionStream_studioId :: (Text -> f Text)
-> CreateStreamingSessionStream -> f CreateStreamingSessionStream
createStreamingSessionStream_studioId = (CreateStreamingSessionStream -> Text)
-> (CreateStreamingSessionStream
-> Text -> CreateStreamingSessionStream)
-> Lens
CreateStreamingSessionStream CreateStreamingSessionStream Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStreamingSessionStream' {Text
studioId :: Text
$sel:studioId:CreateStreamingSessionStream' :: CreateStreamingSessionStream -> Text
studioId} -> Text
studioId) (\s :: CreateStreamingSessionStream
s@CreateStreamingSessionStream' {} Text
a -> CreateStreamingSessionStream
s {$sel:studioId:CreateStreamingSessionStream' :: Text
studioId = Text
a} :: CreateStreamingSessionStream)
createStreamingSessionStream_sessionId :: Lens.Lens' CreateStreamingSessionStream Prelude.Text
createStreamingSessionStream_sessionId :: (Text -> f Text)
-> CreateStreamingSessionStream -> f CreateStreamingSessionStream
createStreamingSessionStream_sessionId = (CreateStreamingSessionStream -> Text)
-> (CreateStreamingSessionStream
-> Text -> CreateStreamingSessionStream)
-> Lens
CreateStreamingSessionStream CreateStreamingSessionStream Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStreamingSessionStream' {Text
sessionId :: Text
$sel:sessionId:CreateStreamingSessionStream' :: CreateStreamingSessionStream -> Text
sessionId} -> Text
sessionId) (\s :: CreateStreamingSessionStream
s@CreateStreamingSessionStream' {} Text
a -> CreateStreamingSessionStream
s {$sel:sessionId:CreateStreamingSessionStream' :: Text
sessionId = Text
a} :: CreateStreamingSessionStream)
instance Core.AWSRequest CreateStreamingSessionStream where
type
AWSResponse CreateStreamingSessionStream =
CreateStreamingSessionStreamResponse
request :: CreateStreamingSessionStream
-> Request CreateStreamingSessionStream
request = Service
-> CreateStreamingSessionStream
-> Request CreateStreamingSessionStream
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateStreamingSessionStream
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateStreamingSessionStream)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateStreamingSessionStream))
-> Logger
-> Service
-> Proxy CreateStreamingSessionStream
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateStreamingSessionStream)))
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 StreamingSessionStream
-> Int -> CreateStreamingSessionStreamResponse
CreateStreamingSessionStreamResponse'
(Maybe StreamingSessionStream
-> Int -> CreateStreamingSessionStreamResponse)
-> Either String (Maybe StreamingSessionStream)
-> Either String (Int -> CreateStreamingSessionStreamResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe StreamingSessionStream)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"stream")
Either String (Int -> CreateStreamingSessionStreamResponse)
-> Either String Int
-> Either String CreateStreamingSessionStreamResponse
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
CreateStreamingSessionStream
instance Prelude.NFData CreateStreamingSessionStream
instance Core.ToHeaders CreateStreamingSessionStream where
toHeaders :: CreateStreamingSessionStream -> ResponseHeaders
toHeaders CreateStreamingSessionStream' {Maybe Natural
Maybe Text
Text
sessionId :: Text
studioId :: Text
clientToken :: Maybe Text
expirationInSeconds :: Maybe Natural
$sel:sessionId:CreateStreamingSessionStream' :: CreateStreamingSessionStream -> Text
$sel:studioId:CreateStreamingSessionStream' :: CreateStreamingSessionStream -> Text
$sel:clientToken:CreateStreamingSessionStream' :: CreateStreamingSessionStream -> Maybe Text
$sel:expirationInSeconds:CreateStreamingSessionStream' :: CreateStreamingSessionStream -> Maybe Natural
..} =
[ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Client-Token" HeaderName -> Maybe Text -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe Text
clientToken,
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 CreateStreamingSessionStream where
toJSON :: CreateStreamingSessionStream -> Value
toJSON CreateStreamingSessionStream' {Maybe Natural
Maybe Text
Text
sessionId :: Text
studioId :: Text
clientToken :: Maybe Text
expirationInSeconds :: Maybe Natural
$sel:sessionId:CreateStreamingSessionStream' :: CreateStreamingSessionStream -> Text
$sel:studioId:CreateStreamingSessionStream' :: CreateStreamingSessionStream -> Text
$sel:clientToken:CreateStreamingSessionStream' :: CreateStreamingSessionStream -> Maybe Text
$sel:expirationInSeconds:CreateStreamingSessionStream' :: CreateStreamingSessionStream -> Maybe Natural
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"expirationInSeconds" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
expirationInSeconds
]
)
instance Core.ToPath CreateStreamingSessionStream where
toPath :: CreateStreamingSessionStream -> ByteString
toPath CreateStreamingSessionStream' {Maybe Natural
Maybe Text
Text
sessionId :: Text
studioId :: Text
clientToken :: Maybe Text
expirationInSeconds :: Maybe Natural
$sel:sessionId:CreateStreamingSessionStream' :: CreateStreamingSessionStream -> Text
$sel:studioId:CreateStreamingSessionStream' :: CreateStreamingSessionStream -> Text
$sel:clientToken:CreateStreamingSessionStream' :: CreateStreamingSessionStream -> Maybe Text
$sel:expirationInSeconds:CreateStreamingSessionStream' :: CreateStreamingSessionStream -> Maybe Natural
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/2020-08-01/studios/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
studioId,
ByteString
"/streaming-sessions/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
sessionId,
ByteString
"/streams"
]
instance Core.ToQuery CreateStreamingSessionStream where
toQuery :: CreateStreamingSessionStream -> QueryString
toQuery = QueryString -> CreateStreamingSessionStream -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateStreamingSessionStreamResponse = CreateStreamingSessionStreamResponse'
{
CreateStreamingSessionStreamResponse
-> Maybe StreamingSessionStream
stream :: Prelude.Maybe StreamingSessionStream,
CreateStreamingSessionStreamResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateStreamingSessionStreamResponse
-> CreateStreamingSessionStreamResponse -> Bool
(CreateStreamingSessionStreamResponse
-> CreateStreamingSessionStreamResponse -> Bool)
-> (CreateStreamingSessionStreamResponse
-> CreateStreamingSessionStreamResponse -> Bool)
-> Eq CreateStreamingSessionStreamResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateStreamingSessionStreamResponse
-> CreateStreamingSessionStreamResponse -> Bool
$c/= :: CreateStreamingSessionStreamResponse
-> CreateStreamingSessionStreamResponse -> Bool
== :: CreateStreamingSessionStreamResponse
-> CreateStreamingSessionStreamResponse -> Bool
$c== :: CreateStreamingSessionStreamResponse
-> CreateStreamingSessionStreamResponse -> Bool
Prelude.Eq, ReadPrec [CreateStreamingSessionStreamResponse]
ReadPrec CreateStreamingSessionStreamResponse
Int -> ReadS CreateStreamingSessionStreamResponse
ReadS [CreateStreamingSessionStreamResponse]
(Int -> ReadS CreateStreamingSessionStreamResponse)
-> ReadS [CreateStreamingSessionStreamResponse]
-> ReadPrec CreateStreamingSessionStreamResponse
-> ReadPrec [CreateStreamingSessionStreamResponse]
-> Read CreateStreamingSessionStreamResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateStreamingSessionStreamResponse]
$creadListPrec :: ReadPrec [CreateStreamingSessionStreamResponse]
readPrec :: ReadPrec CreateStreamingSessionStreamResponse
$creadPrec :: ReadPrec CreateStreamingSessionStreamResponse
readList :: ReadS [CreateStreamingSessionStreamResponse]
$creadList :: ReadS [CreateStreamingSessionStreamResponse]
readsPrec :: Int -> ReadS CreateStreamingSessionStreamResponse
$creadsPrec :: Int -> ReadS CreateStreamingSessionStreamResponse
Prelude.Read, Int -> CreateStreamingSessionStreamResponse -> ShowS
[CreateStreamingSessionStreamResponse] -> ShowS
CreateStreamingSessionStreamResponse -> String
(Int -> CreateStreamingSessionStreamResponse -> ShowS)
-> (CreateStreamingSessionStreamResponse -> String)
-> ([CreateStreamingSessionStreamResponse] -> ShowS)
-> Show CreateStreamingSessionStreamResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateStreamingSessionStreamResponse] -> ShowS
$cshowList :: [CreateStreamingSessionStreamResponse] -> ShowS
show :: CreateStreamingSessionStreamResponse -> String
$cshow :: CreateStreamingSessionStreamResponse -> String
showsPrec :: Int -> CreateStreamingSessionStreamResponse -> ShowS
$cshowsPrec :: Int -> CreateStreamingSessionStreamResponse -> ShowS
Prelude.Show, (forall x.
CreateStreamingSessionStreamResponse
-> Rep CreateStreamingSessionStreamResponse x)
-> (forall x.
Rep CreateStreamingSessionStreamResponse x
-> CreateStreamingSessionStreamResponse)
-> Generic CreateStreamingSessionStreamResponse
forall x.
Rep CreateStreamingSessionStreamResponse x
-> CreateStreamingSessionStreamResponse
forall x.
CreateStreamingSessionStreamResponse
-> Rep CreateStreamingSessionStreamResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateStreamingSessionStreamResponse x
-> CreateStreamingSessionStreamResponse
$cfrom :: forall x.
CreateStreamingSessionStreamResponse
-> Rep CreateStreamingSessionStreamResponse x
Prelude.Generic)
newCreateStreamingSessionStreamResponse ::
Prelude.Int ->
CreateStreamingSessionStreamResponse
newCreateStreamingSessionStreamResponse :: Int -> CreateStreamingSessionStreamResponse
newCreateStreamingSessionStreamResponse Int
pHttpStatus_ =
CreateStreamingSessionStreamResponse' :: Maybe StreamingSessionStream
-> Int -> CreateStreamingSessionStreamResponse
CreateStreamingSessionStreamResponse'
{ $sel:stream:CreateStreamingSessionStreamResponse' :: Maybe StreamingSessionStream
stream =
Maybe StreamingSessionStream
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateStreamingSessionStreamResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createStreamingSessionStreamResponse_stream :: Lens.Lens' CreateStreamingSessionStreamResponse (Prelude.Maybe StreamingSessionStream)
createStreamingSessionStreamResponse_stream :: (Maybe StreamingSessionStream -> f (Maybe StreamingSessionStream))
-> CreateStreamingSessionStreamResponse
-> f CreateStreamingSessionStreamResponse
createStreamingSessionStreamResponse_stream = (CreateStreamingSessionStreamResponse
-> Maybe StreamingSessionStream)
-> (CreateStreamingSessionStreamResponse
-> Maybe StreamingSessionStream
-> CreateStreamingSessionStreamResponse)
-> Lens
CreateStreamingSessionStreamResponse
CreateStreamingSessionStreamResponse
(Maybe StreamingSessionStream)
(Maybe StreamingSessionStream)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStreamingSessionStreamResponse' {Maybe StreamingSessionStream
stream :: Maybe StreamingSessionStream
$sel:stream:CreateStreamingSessionStreamResponse' :: CreateStreamingSessionStreamResponse
-> Maybe StreamingSessionStream
stream} -> Maybe StreamingSessionStream
stream) (\s :: CreateStreamingSessionStreamResponse
s@CreateStreamingSessionStreamResponse' {} Maybe StreamingSessionStream
a -> CreateStreamingSessionStreamResponse
s {$sel:stream:CreateStreamingSessionStreamResponse' :: Maybe StreamingSessionStream
stream = Maybe StreamingSessionStream
a} :: CreateStreamingSessionStreamResponse)
createStreamingSessionStreamResponse_httpStatus :: Lens.Lens' CreateStreamingSessionStreamResponse Prelude.Int
createStreamingSessionStreamResponse_httpStatus :: (Int -> f Int)
-> CreateStreamingSessionStreamResponse
-> f CreateStreamingSessionStreamResponse
createStreamingSessionStreamResponse_httpStatus = (CreateStreamingSessionStreamResponse -> Int)
-> (CreateStreamingSessionStreamResponse
-> Int -> CreateStreamingSessionStreamResponse)
-> Lens
CreateStreamingSessionStreamResponse
CreateStreamingSessionStreamResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStreamingSessionStreamResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateStreamingSessionStreamResponse' :: CreateStreamingSessionStreamResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateStreamingSessionStreamResponse
s@CreateStreamingSessionStreamResponse' {} Int
a -> CreateStreamingSessionStreamResponse
s {$sel:httpStatus:CreateStreamingSessionStreamResponse' :: Int
httpStatus = Int
a} :: CreateStreamingSessionStreamResponse)
instance
Prelude.NFData
CreateStreamingSessionStreamResponse