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 |
Deletes a Kinesis data stream and all its shards and data. You must shut
down any applications that are operating on the stream before you delete
the stream. If an application attempts to operate on a deleted stream,
it receives the exception 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 Kinesis Data Streams completes the deletion.
Note: Kinesis Data Streams 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 five transactions per second per account.
Synopsis
Creating a Request
data DeleteStream Source #
Represents the input for DeleteStream.
See: newDeleteStream
smart constructor.
DeleteStream' | |
|
Instances
Create a value of DeleteStream
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:enforceConsumerDeletion:DeleteStream'
, deleteStream_enforceConsumerDeletion
- If this parameter is unset (null
) or if you set it to false
, and the
stream has registered consumers, the call to DeleteStream
fails with a
ResourceInUseException
.
$sel:streamName:DeleteStream'
, deleteStream_streamName
- The name of the stream to delete.
Request Lenses
deleteStream_enforceConsumerDeletion :: Lens' DeleteStream (Maybe Bool) Source #
If this parameter is unset (null
) or if you set it to false
, and the
stream has registered consumers, the call to DeleteStream
fails with a
ResourceInUseException
.
deleteStream_streamName :: Lens' DeleteStream Text Source #
The name of the stream to delete.
Destructuring the Response
data DeleteStreamResponse Source #
See: newDeleteStreamResponse
smart constructor.
Instances
Eq DeleteStreamResponse Source # | |
Defined in Amazonka.Kinesis.DeleteStream (==) :: DeleteStreamResponse -> DeleteStreamResponse -> Bool # (/=) :: DeleteStreamResponse -> DeleteStreamResponse -> Bool # | |
Read DeleteStreamResponse Source # | |
Show DeleteStreamResponse Source # | |
Defined in Amazonka.Kinesis.DeleteStream showsPrec :: Int -> DeleteStreamResponse -> ShowS # show :: DeleteStreamResponse -> String # showList :: [DeleteStreamResponse] -> ShowS # | |
Generic DeleteStreamResponse Source # | |
Defined in Amazonka.Kinesis.DeleteStream type Rep DeleteStreamResponse :: Type -> Type # from :: DeleteStreamResponse -> Rep DeleteStreamResponse x # to :: Rep DeleteStreamResponse x -> DeleteStreamResponse # | |
NFData DeleteStreamResponse Source # | |
Defined in Amazonka.Kinesis.DeleteStream rnf :: DeleteStreamResponse -> () # | |
type Rep DeleteStreamResponse Source # | |
newDeleteStreamResponse :: DeleteStreamResponse Source #
Create a value of DeleteStreamResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.