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
4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 | |