Skip to content

GlueClient.put_asset

rboto-glue==0.4.0 · Service index · Types

Model summary (excerpt): Creates or updates an asset in Glue Data Catalog. If the asset already exists, this operation updates it; otherwise, a new asset is created.

Install and imports

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

Signature

async def put_asset(
    *,
    identifier: str,
    name: str,
    forms: dict[str, AssetFormInput],
    asset_type_identifier: str | None = None,
    description: str | None = None,
    client_token: str | None = None,
) -> PutAssetOutput: ...

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)
identifier Yes The unique identifier of the asset. If an asset with this identifier already exists, it is updated.
name Yes The name of the asset.
forms Yes The forms to set on the asset, keyed by form name. Each entry specifies the form type and its JSON content.
asset_type_identifier No The identifier of the asset type for the asset. This field is required.
description No The description of the asset.
client_token No A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

Output

PutAssetOutput.

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
id str Always present —
name str Always present —
description str | None Always present —
asset_type_id str Always present —
created_at str | None Always present —
forms dict[str, AssetFormEntryOutput] | None Always present AssetFormEntryOutput

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

AssetFormInput, PutAssetOutput

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