update_notebook
async
¶
update_notebook(
notebook_id: NotebookId,
payload: Payload,
type: NotebookType,
*,
config_overrides: Optional[AsyncAthenaClientConfig] = None,
session_id: Optional[SessionId] = None,
client_request_token: Optional[ClientRequestToken] = None,
) -> UpdateNotebookOutput
Updates the contents of a Spark notebook.
Parameters:
-
notebook_id(NotebookId) –The ID of the notebook to update.
-
payload(Payload) –The updated content for the notebook.
-
type(NotebookType) –The notebook content type. Currently, the only valid type is
IPYNB. -
session_id(Optional[SessionId], default:None) –The active notebook session ID. Required if the notebook has an active session.
-
client_request_token(Optional[ClientRequestToken], default:None) –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 will fail.
Raises:
-
InternalServerException–Indicates a platform issue, which may be due to a transient condition or outage.
-
InvalidRequestException–Indicates that something is wrong with the input to the request. For example, a required parameter may be missing or out of range.
-
TooManyRequestsException–Indicates that the request was throttled.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_athena/_services/async_athena.py
4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 | |