Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Gets information about the active (live) stream on a specified channel.
Synopsis
- data GetStream = GetStream' {
- channelArn :: Text
- newGetStream :: Text -> GetStream
- getStream_channelArn :: Lens' GetStream Text
- data GetStreamResponse = GetStreamResponse' {
- stream :: Maybe Stream
- httpStatus :: Int
- newGetStreamResponse :: Int -> GetStreamResponse
- getStreamResponse_stream :: Lens' GetStreamResponse (Maybe Stream)
- getStreamResponse_httpStatus :: Lens' GetStreamResponse Int
Creating a Request
See: newGetStream
smart constructor.
GetStream' | |
|
Instances
Eq GetStream Source # | |
Read GetStream Source # | |
Show GetStream Source # | |
Generic GetStream Source # | |
NFData GetStream Source # | |
Defined in Amazonka.IVS.GetStream | |
Hashable GetStream Source # | |
Defined in Amazonka.IVS.GetStream | |
ToJSON GetStream Source # | |
Defined in Amazonka.IVS.GetStream | |
AWSRequest GetStream Source # | |
Defined in Amazonka.IVS.GetStream type AWSResponse GetStream # request :: GetStream -> Request GetStream # response :: MonadResource m => Logger -> Service -> Proxy GetStream -> ClientResponse ClientBody -> m (Either Error (ClientResponse (AWSResponse GetStream))) # | |
ToHeaders GetStream Source # | |
Defined in Amazonka.IVS.GetStream | |
ToPath GetStream Source # | |
Defined in Amazonka.IVS.GetStream toPath :: GetStream -> ByteString # | |
ToQuery GetStream Source # | |
Defined in Amazonka.IVS.GetStream toQuery :: GetStream -> QueryString # | |
type Rep GetStream Source # | |
Defined in Amazonka.IVS.GetStream | |
type AWSResponse GetStream Source # | |
Defined in Amazonka.IVS.GetStream |
Create a value of GetStream
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:channelArn:GetStream'
, getStream_channelArn
- Channel ARN for stream to be accessed.
Request Lenses
Destructuring the Response
data GetStreamResponse Source #
See: newGetStreamResponse
smart constructor.
GetStreamResponse' | |
|
Instances
Create a value of GetStreamResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:stream:GetStreamResponse'
, getStreamResponse_stream
-
$sel:httpStatus:GetStreamResponse'
, getStreamResponse_httpStatus
- The response's http status code.
Response Lenses
getStreamResponse_httpStatus :: Lens' GetStreamResponse Int Source #
The response's http status code.