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 a stream.
Requires permission to access the DescribeStream action.
Synopsis
- data DescribeStream = DescribeStream' {}
- newDescribeStream :: Text -> DescribeStream
- describeStream_streamId :: Lens' DescribeStream Text
- data DescribeStreamResponse = DescribeStreamResponse' {}
- newDescribeStreamResponse :: Int -> DescribeStreamResponse
- describeStreamResponse_streamInfo :: Lens' DescribeStreamResponse (Maybe StreamInfo)
- describeStreamResponse_httpStatus :: Lens' DescribeStreamResponse Int
Creating a Request
data DescribeStream Source #
See: newDescribeStream
smart constructor.
Instances
Create a value of DescribeStream
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:streamId:DescribeStream'
, describeStream_streamId
- The stream ID.
Request Lenses
describeStream_streamId :: Lens' DescribeStream Text Source #
The stream ID.
Destructuring the Response
data DescribeStreamResponse Source #
See: newDescribeStreamResponse
smart constructor.
DescribeStreamResponse' | |
|
Instances
newDescribeStreamResponse Source #
Create a value of DescribeStreamResponse
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:streamInfo:DescribeStreamResponse'
, describeStreamResponse_streamInfo
- Information about the stream.
$sel:httpStatus:DescribeStreamResponse'
, describeStreamResponse_httpStatus
- The response's http status code.
Response Lenses
describeStreamResponse_streamInfo :: Lens' DescribeStreamResponse (Maybe StreamInfo) Source #
Information about the stream.
describeStreamResponse_httpStatus :: Lens' DescribeStreamResponse Int Source #
The response's http status code.