| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.IVS.GetStream
Description
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.
Constructors
| GetStream' | |
Fields
| |
Instances
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:
GetStream, getStream_channelArn - Channel ARN for stream to be accessed.
Request Lenses
Destructuring the Response
data GetStreamResponse Source #
See: newGetStreamResponse smart constructor.
Constructors
| GetStreamResponse' | |
Fields
| |
Instances
Arguments
| :: Int | |
| -> GetStreamResponse |
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.