Skip to content

S3Client.write_get_object_response

rboto-s3==0.4.0 · Service index · Types

Model summary (excerpt): This operation is not supported for directory buckets. Passes transformed objects to a GetObject operation when using Object Lambda access points. For information about Object Lambda access points, see Transforming objects with Object Lambda access points in the Amazon S3 User Guide . This operation supports metadata that can be returned by GetObject , in addition to RequestRoute ,...

Install and imports

python -m pip install "rboto[s3]==0.4.0"
from rboto import S3Client
from collections.abc import AsyncIterator
from rboto_s3.types import (
    ObjectLockLegalHoldStatus,
    ObjectLockMode,
    ReplicationStatus,
    RequestCharged,
    ServerSideEncryption,
    StorageClass,
)

Signature

async def write_get_object_response(
    *,
    request_route: str,
    request_token: str,
    body: bytes | _FileBody | AsyncIterator[bytes] | None = None,
    status_code: int | None = None,
    error_code: str | None = None,
    error_message: str | None = None,
    accept_ranges: str | None = None,
    cache_control: str | None = None,
    content_disposition: str | None = None,
    content_encoding: str | None = None,
    content_language: str | None = None,
    content_length: int | None = None,
    content_range: str | None = None,
    content_type: str | None = None,
    checksum_crc32: str | None = None,
    checksum_crc32_c: str | None = None,
    checksum_crc64_nvme: str | None = None,
    checksum_sha1: str | None = None,
    checksum_sha256: str | None = None,
    checksum_sha512: str | None = None,
    checksum_md5: str | None = None,
    checksum_xxhash64: str | None = None,
    checksum_xxhash3: str | None = None,
    checksum_xxhash128: str | None = None,
    delete_marker: bool | None = None,
    e_tag: str | None = None,
    expires: str | None = None,
    expiration: str | None = None,
    last_modified: str | None = None,
    missing_meta: int | None = None,
    metadata: dict[str, str] | None = None,
    object_lock_mode: ObjectLockMode | None = None,
    object_lock_legal_hold_status: ObjectLockLegalHoldStatus | None = None,
    object_lock_retain_until_date: str | None = None,
    parts_count: int | None = None,
    replication_status: ReplicationStatus | None = None,
    request_charged: RequestCharged | None = None,
    restore: str | None = None,
    server_side_encryption: ServerSideEncryption | None = None,
    sse_customer_algorithm: str | None = None,
    ssekms_key_id: str | None = None,
    sse_customer_key_md5: str | None = None,
    storage_class: StorageClass | None = None,
    tag_count: int | None = None,
    version_id: str | None = None,
    bucket_key_enabled: bool | 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)
request_route Yes Route prefix to the HTTP URL generated.
request_token Yes A single use encrypted token that maps WriteGetObjectResponse to the end user GetObject request.
body No The object data.
status_code No The integer status code for an HTTP response of a corresponding GetObject request. The following is a list of status codes. 200 - OK 206 - Partial Content 304 - Not Modified 400 - Bad Request 401 - Unauthorized 403 - Forbidden 404 - Not Found 405 - Method Not Allowed 409 - Conflict 411 - Length Required 412 - Precondition Failed 416 - Range Not Satisfiable 500 - Internal Server Error 503 -...
error_code No A string that uniquely identifies an error condition. Returned in the tag of the error XML response for a corresponding GetObject call. Cannot be used with a successful StatusCode header or when the transformed object is provided in the body. All error codes from S3 are sentence-cased. The regular expression (regex) value is "^[A-Z][a-zA-Z]+$" .
error_message No Contains a generic description of the error condition. Returned in the tag of the error XML response for a corresponding GetObject call. Cannot be used with a successful StatusCode header or when the transformed object is provided in body.
accept_ranges No Indicates that a range of bytes was specified.
cache_control No Specifies caching behavior along the request/reply chain.
content_disposition No Specifies presentational information for the object.
content_encoding No Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field.
content_language No The language the content is in.
content_length No The size of the content body in bytes.
content_range No The portion of the object returned in the response.
content_type No A standard MIME type describing the format of the object data.
checksum_crc32 No This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the Base64 encoded, 32-bit CRC32 checksum of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject...
checksum_crc32_c No This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the Base64 encoded, 32-bit CRC32C checksum of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject...
checksum_crc64_nvme No This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC64NVME checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide .
checksum_sha1 No This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the Base64 encoded, 160-bit SHA1 digest of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject...
checksum_sha256 No This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the Base64 encoded, 256-bit SHA256 digest of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject...
checksum_sha512 No This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 512-bit SHA512 digest of the part. For more information, see Checking object integrity in the Amazon S3 User Guide .
checksum_md5 No This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 128-bit MD5 digest of the part. For more information, see Checking object integrity in the Amazon S3 User Guide .
checksum_xxhash64 No This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit XXHASH64 checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide .
checksum_xxhash3 No This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit XXHASH3 checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide .
checksum_xxhash128 No This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 128-bit XXHASH128 checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide .
delete_marker No Specifies whether an object stored in Amazon S3 is ( true ) or is not ( false ) a delete marker. To learn more about delete markers, see Working with delete markers .
e_tag No An opaque identifier assigned by a web server to a specific version of a resource found at a URL.
expires No The date and time at which the object is no longer cacheable.
expiration No If the object expiration is configured (see PUT Bucket lifecycle), the response includes this header. It includes the expiry-date and rule-id key-value pairs that provide the object expiration information. The value of the rule-id is URL-encoded.
last_modified No The date and time that the object was last modified.
missing_meta No Set to the number of metadata entries not returned in x-amz-meta headers. This can happen if you create metadata using an API like SOAP that supports more flexible metadata than the REST API. For example, using SOAP, you can create metadata whose values are not legal HTTP headers.
metadata No A map of metadata to store with the object in S3.
object_lock_mode No Indicates whether an object stored in Amazon S3 has Object Lock enabled. For more information about S3 Object Lock, see Object Lock .
object_lock_legal_hold_status No Indicates whether an object stored in Amazon S3 has an active legal hold.
object_lock_retain_until_date No The date and time when Object Lock is configured to expire.
parts_count No The count of parts this object has.
replication_status No Indicates if request involves bucket that is either a source or destination in a Replication rule. For more information about S3 Replication, see Replication .
request_charged No
restore No Provides information about object restoration operation and expiration time of the restored object copy.
server_side_encryption No The server-side encryption algorithm used when storing requested object in Amazon S3 or Amazon FSx. When accessing data stored in Amazon FSx file systems using S3 access points, the only valid server side encryption option is aws:fsx .
sse_customer_algorithm No Encryption algorithm used if server-side encryption with a customer-provided encryption key was specified for object stored in Amazon S3.
ssekms_key_id No If present, specifies the ID (Key ID, Key ARN, or Key Alias) of the Amazon Web Services Key Management Service (Amazon Web Services KMS) symmetric encryption customer managed key that was used for stored in Amazon S3 object.
sse_customer_key_md5 No 128-bit MD5 digest of customer-provided encryption key used in Amazon S3 to encrypt data stored in S3. For more information, see Protecting data using server-side encryption with customer-provided encryption keys (SSE-C) .
storage_class No Provides storage class information of the object. Amazon S3 returns this header for all objects except for S3 Standard storage class objects. For more information, see Storage Classes .
tag_count No The number of tags, if any, on the object.
version_id No An ID used to reference a specific version of the object.
bucket_key_enabled No Indicates whether the object stored in Amazon S3 uses an S3 bucket key for server-side encryption with Amazon Web Services KMS (SSE-KMS).

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.

ObjectLockLegalHoldStatus, ObjectLockMode, ReplicationStatus, RequestCharged, ServerSideEncryption, StorageClass

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.

Input event streams accept the declared AsyncIterator of typed events.

Request byte bodies use bytes; they do not accept file objects or iterators.

Errors

No modeled service errors for this operation.

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

Service guide · Pinned model