Skip to content

AthenaClient.update_notebook

rboto-athena==0.4.0 · Service index · Types

Model summary (excerpt): Updates the contents of a Spark notebook.

Install and imports

python -m pip install "rboto[athena]==0.4.0"
from rboto import AthenaClient
from rboto_athena.types import (
    NotebookType,
    UpdateNotebookOutput,
)

Signature

async def update_notebook(
    *,
    notebook_id: str,
    payload: str,
    type: NotebookType,
    session_id: str | None = None,
    client_request_token: str | None = None,
) -> UpdateNotebookOutput: ...

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)
notebook_id Yes The ID of the notebook to update.
payload Yes The updated content for the notebook.
type Yes The notebook content type. Currently, the only valid type is IPYNB .
session_id No The active notebook session ID. Required if the notebook has an active session.
client_request_token No A unique case-sensitive string used to ensure the request to create the notebook is idempotent (executes only once). This token is listed as not required because Amazon Web Services SDKs (for example the Amazon Web Services SDK for Java) auto-generate the token for you. If you are not using the Amazon Web Services SDK or the Amazon Web Services CLI, you must provide this token or the action...

Output

UpdateNotebookOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

No fields.

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

NotebookType, UpdateNotebookOutput

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

InternalServerError, InvalidRequestError, TooManyRequestsError.

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

Service guide · Pinned model