Skip to content

GlueClient.put_attachment

rboto-glue==0.4.0 · Service index · Types

Model summary (excerpt): Attaches a form to an asset or an iterable form item in Glue Data Catalog. If an attachment with the same name already exists, it is overwritten.

Install and imports

python -m pip install "rboto[glue]==0.4.0"
from rboto import GlueClient
from rboto_glue.types import (
    PutAttachmentOutput,
)

Signature

async def put_attachment(
    *,
    asset_identifier: str,
    attachment_name: str,
    content: str,
    iterable_form_name: str | None = None,
    item_identifier: str | None = None,
    form_type_identifier: str | None = None,
    client_token: str | None = None,
) -> PutAttachmentOutput: ...

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)
asset_identifier Yes The unique identifier of the asset to attach the form to.
attachment_name Yes The name of the attachment.
content Yes The JSON content of the form, conforming to the schema of the specified form type.
iterable_form_name No The name of the iterable form. When specified along with itemIdentifier , the attachment targets an item within the iterable form rather than the asset itself.
item_identifier No The identifier of the item within the iterable form. Required when iterableFormName is specified.
form_type_identifier No The identifier of the form type for this attachment. This field is required.
client_token No A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

Output

PutAttachmentOutput.

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
asset_id str | None Always present —
iterable_form_name str | None Always present —
item_id str | None Always present —
attachment_name str | None Always present —
form_type_id str | 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.

PutAttachmentOutput

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

AccessDeniedError, ConcurrentModificationError, EntityNotFoundError, InternalServiceError, InvalidInputError, ThrottlingError.

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

Service guide · Pinned model