Skip to content

KinesisClient.put_records

rboto-kinesis==0.4.0 · Service index · Types

Model summary (excerpt): Writes multiple data records into a Kinesis data stream in a single call (also referred to as a PutRecords request). Use this operation to send data into the stream for data ingestion and processing. When invoking this API, you must use either the StreamARN or the StreamName parameter, or both. It is recommended that you use the StreamARN input parameter when you invoke this API. Each...

Install and imports

python -m pip install "rboto[kinesis]==0.4.0"
from rboto import KinesisClient
from collections.abc import Sequence
from rboto_kinesis.types import (
    PutRecordsOutput,
    PutRecordsRequestEntry,
)

Signature

async def put_records(
    *,
    records: Sequence[PutRecordsRequestEntry],
    stream_name: str | None = None,
    stream_arn: str | None = None,
    stream_id: str | None = None,
    dry_run: bool | None = None,
) -> PutRecordsOutput: ...

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)
records Yes The records associated with the request.
stream_name No The stream name associated with the request.
stream_arn No The ARN of the stream.
stream_id No Not Implemented. Reserved for future use.
dry_run No Checks if your request will succeed. DryRun is an optional parameter.

Output

PutRecordsOutput.

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
failed_record_count int | None Always present —
records list[PutRecordsResultEntryOutput] Always present PutRecordsResultEntryOutput
encryption_type EncryptionTypeOutput | None Always present EncryptionTypeOutput

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

PutRecordsOutput, PutRecordsRequestEntry

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, DryRunOperationError, InternalFailureError, InvalidArgumentError, KMSAccessDeniedError, KMSDisabledError, KMSInvalidStateError, KMSNotFoundError, KMSOptInRequiredError, KMSThrottlingError, ProvisionedThroughputExceededError, ResourceNotFoundError.

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

Service guide · Pinned model