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
4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 | |