Skip to content

FirehoseClient.put_record

rboto-firehose==0.4.0 · Service index · Types

Model summary (excerpt): Writes a single data record into an Firehose stream. To write multiple data records into a Firehose stream, use PutRecordBatch . Applications using these operations are referred to as producers. By default, each Firehose stream can take in up to 2,000 transactions per second, 5,000 records per second, or 5 MB per second. If you use PutRecord and PutRecordBatch , the limits are an aggregate...

Install and imports

python -m pip install "rboto[firehose]==0.4.0"
from rboto import FirehoseClient
from rboto_firehose.types import (
    PutRecordOutput,
    Record,
)

Signature

async def put_record(
    *,
    delivery_stream_name: str,
    record: Record,
) -> PutRecordOutput: ...

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)
delivery_stream_name Yes The name of the Firehose stream.
record Yes The record.

Output

PutRecordOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
record_id str Always present —
encrypted bool | None Always present —

| 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.

PutRecordOutput, Record

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_firehose.exceptions:

InvalidArgumentError, InvalidKMSResourceError, InvalidSourceError, ResourceNotFoundError, ServiceUnavailableError.

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

Example

Complete, type-checked service example. Replace its placeholders and configure credentials before running it.

import asyncio
import os

from rboto import FirehoseClient


async def main() -> None:
    async with FirehoseClient(region="eu-west-2") as client:
        result = await client.put_record(
            delivery_stream_name=os.environ["FIREHOSE_DELIVERY_STREAM_NAME"],
            record={"data": b'{"order_id": "123", "status": "created"}\n'},
        )
        print(result.record_id)


if __name__ == "__main__":
    asyncio.run(main())

Service guide · Pinned model