Skip to content

PutRowsRequest

Source code in docs_src/capo_s3tables/types/put_rows_request.py
class PutRowsRequest(TypedDict, closed=True):
    table_arn: "capo_s3tables.types.table_arn.TableARN"
    """<p>The Amazon Resource Name (ARN) of the table to write rows to.</p>"""
    channel_id: NotRequired["capo_s3tables.types.channel_id.ChannelId"]
    """<p>The identifier of the channel to write rows to. If you don't specify a channel, the operation uses <code>default</code>. Only <code>default</code> is supported.</p>"""
    payload: "bytes"
    """<p>The rows to write, encoded in the format that you specify in <code>payloadFormat</code>. The maximum payload size is 50 MiB (52,428,800 bytes), and the maximum number of rows is 500,000.</p>"""
    payload_format: "capo_s3tables.types.payload_format.PayloadFormat"
    """<p>Specifies the format of the rows in <code>payload</code>. The following values are valid:</p> <ul> <li> <p> <code>JSON</code> – Newline-delimited JSON: each row is one JSON object on its own line.</p> </li> <li> <p> <code>AVRO</code> – Apache Avro data in the Object Container File (OCF) format. Other Avro encodings, such as single-object encoding or Avro data without the container, aren't accepted. Each field of the writer schema must match a column of the table.</p> </li> </ul>"""
    checksum_algorithm: NotRequired[
        "capo_s3tables.types.checksum_algorithm.ChecksumAlgorithm"
    ]
    """<p>(Optional) The algorithm to use to calculate the checksum of the payload. Each <code>PutRows</code> request must include a payload checksum. If you use an AWS SDK, the SDK calculates the checksum for you. If the checksum doesn't match the payload, the request fails with a <code>BadRequestException</code> error.</p>"""

channel_id instance-attribute

channel_id: NotRequired[ChannelId]

The identifier of the channel to write rows to. If you don't specify a channel, the operation uses default. Only default is supported.

checksum_algorithm instance-attribute

checksum_algorithm: NotRequired[ChecksumAlgorithm]

(Optional) The algorithm to use to calculate the checksum of the payload. Each PutRows request must include a payload checksum. If you use an AWS SDK, the SDK calculates the checksum for you. If the checksum doesn't match the payload, the request fails with a BadRequestException error.

payload instance-attribute

payload: bytes

The rows to write, encoded in the format that you specify in payloadFormat. The maximum payload size is 50 MiB (52,428,800 bytes), and the maximum number of rows is 500,000.

payload_format instance-attribute

payload_format: PayloadFormat

Specifies the format of the rows in payload. The following values are valid:

  • JSON – Newline-delimited JSON: each row is one JSON object on its own line.

  • AVRO – Apache Avro data in the Object Container File (OCF) format. Other Avro encodings, such as single-object encoding or Avro data without the container, aren't accepted. Each field of the writer schema must match a column of the table.

table_arn instance-attribute

table_arn: TableARN

The Amazon Resource Name (ARN) of the table to write rows to.