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 |
Gets metadata on a specified stream.
Synopsis
- data GetStreamSession = GetStreamSession' {
- streamId :: Maybe Text
- channelArn :: Text
- newGetStreamSession :: Text -> GetStreamSession
- getStreamSession_streamId :: Lens' GetStreamSession (Maybe Text)
- getStreamSession_channelArn :: Lens' GetStreamSession Text
- data GetStreamSessionResponse = GetStreamSessionResponse' {}
- newGetStreamSessionResponse :: Int -> GetStreamSessionResponse
- getStreamSessionResponse_streamSession :: Lens' GetStreamSessionResponse (Maybe StreamSession)
- getStreamSessionResponse_httpStatus :: Lens' GetStreamSessionResponse Int
Creating a Request
data GetStreamSession Source #
See: newGetStreamSession
smart constructor.
GetStreamSession' | |
|
Instances
Create a value of GetStreamSession
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:
GetStreamSession
, getStreamSession_streamId
- Unique identifier for a live or previously live stream in the specified
channel. If no streamId
is provided, this returns the most recent
stream session for the channel, if it exists.
GetStreamSession
, getStreamSession_channelArn
- ARN of the channel resource
Request Lenses
getStreamSession_streamId :: Lens' GetStreamSession (Maybe Text) Source #
Unique identifier for a live or previously live stream in the specified
channel. If no streamId
is provided, this returns the most recent
stream session for the channel, if it exists.
getStreamSession_channelArn :: Lens' GetStreamSession Text Source #
ARN of the channel resource
Destructuring the Response
data GetStreamSessionResponse Source #
See: newGetStreamSessionResponse
smart constructor.
GetStreamSessionResponse' | |
|
Instances
newGetStreamSessionResponse Source #
Create a value of GetStreamSessionResponse
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:streamSession:GetStreamSessionResponse'
, getStreamSessionResponse_streamSession
- List of stream details.
$sel:httpStatus:GetStreamSessionResponse'
, getStreamSessionResponse_httpStatus
- The response's http status code.
Response Lenses
getStreamSessionResponse_streamSession :: Lens' GetStreamSessionResponse (Maybe StreamSession) Source #
List of stream details.
getStreamSessionResponse_httpStatus :: Lens' GetStreamSessionResponse Int Source #
The response's http status code.