update_notebook
¶
update_notebook(
notebook_id: NotebookId,
payload: Payload,
type: NotebookType,
*,
config_overrides: Optional[AthenaClientConfig] = 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/athena.py
4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 | |