S3Client.delete_object_annotation
rboto-s3==0.4.0 · Service index · Types
Model summary (excerpt): Deletes a specific annotation from an Amazon S3 object. Use the x-amz-object-if-match header to perform a conditional delete that only succeeds if the object's ETag matches the provided value, preventing race conditions during concurrent updates. Deleting an annotation is permanent. Annotations are not independently versioned, so there is no delete marker or way to recover a deleted...
Install and imports
from rboto import S3Client
from rboto_s3.types import (
DeleteObjectAnnotationOutput,
RequestPayer,
)
Signature
async def delete_object_annotation(
*,
bucket: str,
key: str,
annotation_name: str,
version_id: str | None = None,
request_payer: RequestPayer | None = None,
expected_bucket_owner: str | None = None,
object_if_match: str | None = None,
) -> DeleteObjectAnnotationOutput: ...
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) |
|---|---|---|
bucket |
Yes | The name of the bucket that contains the object. |
key |
Yes | The object key. |
annotation_name |
Yes | The name of the annotation to delete. Annotation names are UTF-8 encoded and cannot start with aws or s3 (case-insensitive). Length Constraints: Minimum length of 1. Maximum length of 512 bytes. |
version_id |
No | The version ID of the object. |
request_payer |
No | |
expected_bucket_owner |
No | The account ID of the expected bucket owner. |
object_if_match |
No | If specified, the operation only succeeds if the object's ETag matches the provided value. |
Output
DeleteObjectAnnotationOutput.
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 |
|---|---|---|---|
object_version_id |
str | None |
Always present | — |
request_charged |
RequestChargedOutput | None |
Always present | RequestChargedOutput |
| 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.
Related types
DeleteObjectAnnotationOutput, RequestPayer
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_s3.exceptions:
NoSuchBucketError, NoSuchKeyError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.