create_notebook
¶
create_notebook(
work_group: WorkGroupName,
name: NotebookName,
*,
config_overrides: Optional[AthenaClientConfig] = None,
client_request_token: Optional[ClientRequestToken] = None,
) -> CreateNotebookOutput
Creates an empty ipynb file in the specified Apache Spark enabled workgroup. Throws an error if a file in the workgroup with the same name already exists.
Parameters:
-
work_group(WorkGroupName) –The name of the Spark enabled workgroup in which the notebook will be created.
-
name(NotebookName) –The name of the
ipynbfile to be created in the Spark workgroup, without the.ipynbextension. -
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.