2024/01/19 - Amazon Athena - 1 updated api methods
Changes Introducing new NotebookS3LocationUri parameter to Athena ImportNotebook API. Payload is no longer required and either Payload or NotebookS3LocationUri needs to be provided (not both) for a successful ImportNotebook API call. If both are provided, an InvalidRequestException will be thrown.
{'NotebookS3LocationUri': 'string'}
Imports a single ipynb file to a Spark enabled workgroup. To import the notebook, the request must specify a value for either Payload or NoteBookS3LocationUri. If neither is specified or both are specified, an InvalidRequestException occurs. The maximum file size that can be imported is 10 megabytes. If an ipynb file with the same name already exists in the workgroup, throws an error.
See also: AWS API Documentation
Request Syntax
client.import_notebook( WorkGroup='string', Name='string', Payload='string', Type='IPYNB', NotebookS3LocationUri='string', ClientRequestToken='string' )
string
[REQUIRED]
The name of the Spark enabled workgroup to import the notebook to.
string
[REQUIRED]
The name of the notebook to import.
string
The notebook content to be imported. The payload must be in ipynb format.
string
[REQUIRED]
The notebook content type. Currently, the only valid type is IPYNB.
string
A URI that specifies the Amazon S3 location of a notebook file in ipynb format.
string
A unique case-sensitive string used to ensure the request to import the notebook is idempotent (executes only once).
dict
Response Syntax
{ 'NotebookId': 'string' }
Response Structure
(dict) --
NotebookId (string) --
The ID assigned to the imported notebook.