AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
ResourceNotFoundException
.
If the stream is in the ACTIVE
state, you can delete it. After a DeleteStream
request, the specified stream is in the DELETING
state until Amazon Kinesis
completes the deletion.
Note: Amazon Kinesis might continue to accept data read and write operations,
such as PutRecord, PutRecords, and GetRecords, on a stream in
the DELETING
state until the stream deletion is complete.
When you delete a stream, any shards in that stream are also deleted, and any tags are dissociated from the stream.
You can use the DescribeStream operation to check the state of the stream,
which is returned in StreamStatus
.
DeleteStream has a limit of 5 transactions per second per account.
Namespace: Amazon.Kinesis
Assembly: AWSSDK.dll
Version: (assembly version)
public abstract DeleteStreamResponse DeleteStream( DeleteStreamRequest request )
Container for the necessary parameters to execute the DeleteStream service method.
Exception | Condition |
---|---|
LimitExceededException | The requested resource exceeds the maximum number allowed, or the number of concurrent stream requests exceeds the maximum number allowed (5). |
ResourceNotFoundException | The requested resource could not be found. The stream might not be specified correctly, or it might not be in the ACTIVE state if the operation requires it. |
.NET Framework:
Supported in: 4.5, 4.0, 3.5