| 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.DynamoDBStreams.DescribeStream
Description
Returns information about a stream, including the current status of the stream, its Amazon Resource Name (ARN), the composition of its shards, and its corresponding DynamoDB table.
You can call DescribeStream at a maximum rate of 10 times per second.
Each shard in the stream has a SequenceNumberRange associated with it.
If the SequenceNumberRange has a StartingSequenceNumber but no
EndingSequenceNumber, then the shard is still open (able to receive
more stream records). If both StartingSequenceNumber and
EndingSequenceNumber are present, then that shard is closed and can no
longer receive more data.
Synopsis
- data DescribeStream = DescribeStream' {}
- newDescribeStream :: Text -> DescribeStream
- describeStream_exclusiveStartShardId :: Lens' DescribeStream (Maybe Text)
- describeStream_limit :: Lens' DescribeStream (Maybe Natural)
- describeStream_streamArn :: Lens' DescribeStream Text
- data DescribeStreamResponse = DescribeStreamResponse' {}
- newDescribeStreamResponse :: Int -> DescribeStreamResponse
- describeStreamResponse_streamDescription :: Lens' DescribeStreamResponse (Maybe StreamDescription)
- describeStreamResponse_httpStatus :: Lens' DescribeStreamResponse Int
Creating a Request
data DescribeStream Source #
Represents the input of a DescribeStream operation.
See: newDescribeStream smart constructor.
Constructors
| DescribeStream' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> DescribeStream |
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:exclusiveStartShardId:DescribeStream', describeStream_exclusiveStartShardId - The shard ID of the first item that this operation will evaluate. Use
the value that was returned for LastEvaluatedShardId in the previous
operation.
$sel:limit:DescribeStream', describeStream_limit - The maximum number of shard objects to return. The upper limit is 100.
DescribeStream, describeStream_streamArn - The Amazon Resource Name (ARN) for the stream.
Request Lenses
describeStream_exclusiveStartShardId :: Lens' DescribeStream (Maybe Text) Source #
The shard ID of the first item that this operation will evaluate. Use
the value that was returned for LastEvaluatedShardId in the previous
operation.
describeStream_limit :: Lens' DescribeStream (Maybe Natural) Source #
The maximum number of shard objects to return. The upper limit is 100.
describeStream_streamArn :: Lens' DescribeStream Text Source #
The Amazon Resource Name (ARN) for the stream.
Destructuring the Response
data DescribeStreamResponse Source #
Represents the output of a DescribeStream operation.
See: newDescribeStreamResponse smart constructor.
Constructors
| DescribeStreamResponse' | |
Fields
| |
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:streamDescription:DescribeStreamResponse', describeStreamResponse_streamDescription - A complete description of the stream, including its creation date and
time, the DynamoDB table associated with the stream, the shard IDs
within the stream, and the beginning and ending sequence numbers of
stream records within the shards.
$sel:httpStatus:DescribeStreamResponse', describeStreamResponse_httpStatus - The response's http status code.
Response Lenses
describeStreamResponse_streamDescription :: Lens' DescribeStreamResponse (Maybe StreamDescription) Source #
A complete description of the stream, including its creation date and time, the DynamoDB table associated with the stream, the shard IDs within the stream, and the beginning and ending sequence numbers of stream records within the shards.
describeStreamResponse_httpStatus :: Lens' DescribeStreamResponse Int Source #
The response's http status code.