AthenaClient.create_notebook
rboto-athena==0.4.0 · Service index · Types
Model summary (excerpt): 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.
Install and imports
Signature
async def create_notebook(
*,
work_group: str,
name: str,
client_request_token: str | None = None,
) -> CreateNotebookOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
work_group |
Yes | The name of the Spark enabled workgroup in which the notebook will be created. |
name |
Yes | The name of the ipynb file to be created in the Spark workgroup, without the .ipynb extension. |
client_request_token |
No | 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... |
Output
CreateNotebookOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
notebook_id |
str | None |
Always present | — |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_athena.exceptions:
InternalServerError, InvalidRequestError, TooManyRequestsError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.