Skip to content

KinesisClient.delete_stream

rboto-kinesis==0.4.0 · Service index · Types

Model summary (excerpt): 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 . When invoking this API, you must use either the StreamARN or the StreamName parameter, or both. It is recommended that you...

Install and imports

python -m pip install "rboto[kinesis]==0.4.0"
from rboto import KinesisClient

Signature

async def delete_stream(
    *,
    stream_name: str | None = None,
    enforce_consumer_deletion: bool | None = None,
    stream_arn: str | None = None,
    stream_id: str | None = None,
) -> None: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
stream_name No The name of the stream to delete.
enforce_consumer_deletion No If this parameter is unset ( null ) or if you set it to false , and the stream has registered enhanced fan-out consumers, the call to DeleteStream fails with a ResourceInUseException . If you set it to true , DeleteStream deletes the stream and every consumer registered with it. This parameter does not apply to queues. A stream that has queues cannot be deleted until every queue on it is...
stream_arn No The ARN of the stream.
stream_id No Not Implemented. Reserved for future use.

Output

None.

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

—

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_kinesis.exceptions:

AccessDeniedError, InvalidArgumentError, LimitExceededError, ResourceInUseError, ResourceNotFoundError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model