v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1460298233.0 KB

Imports a single <code>ipynb</code> file to a Spark enabled workgroup. The maximum file size that can be imported is 10 megabytes. If an <code>ipynb</code> file with the same name already exists in the workgroup, throws an error.

post/#X-Amz-Target=AmazonAthena.ImportNotebook

Headers

X-Amz-Target'AmazonAthena.ImportNotebook' required

Request body

WorkGroupstring required

The name of the Spark enabled workgroup to import the notebook to.

Namestring required

The name of the notebook to import.

Payloadstring required

The notebook content to be imported.

Type'IPYNB' required

The notebook content type. Currently, the only valid type is <code>IPYNB</code>.

ClientRequestTokenstring
<p>A unique case-sensitive string used to ensure the request to import the notebook is idempotent (executes only once).</p> <important> <p>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.</p> </important>

Response

Success

NotebookIdstring

The ID assigned to the imported notebook.