Athena / Client / export_notebook

export_notebook#

Athena.Client.export_notebook(**kwargs)#

Exports the specified notebook and its metadata.

See also: AWS API Documentation

Request Syntax

response = client.export_notebook(
    NotebookId='string'
)
Parameters:

NotebookId (string) –

[REQUIRED]

The ID of the notebook to export.

Return type:

dict

Returns:

Response Syntax

{
    'NotebookMetadata': {
        'NotebookId': 'string',
        'Name': 'string',
        'WorkGroup': 'string',
        'CreationTime': datetime(2015, 1, 1),
        'Type': 'IPYNB',
        'LastModifiedTime': datetime(2015, 1, 1)
    },
    'Payload': 'string'
}

Response Structure

  • (dict) –

    • NotebookMetadata (dict) –

      The notebook metadata, including notebook ID, notebook name, and workgroup name.

      • NotebookId (string) –

        The notebook ID.

      • Name (string) –

        The name of the notebook.

      • WorkGroup (string) –

        The name of the Spark enabled workgroup to which the notebook belongs.

      • CreationTime (datetime) –

        The time when the notebook was created.

      • Type (string) –

        The type of notebook. Currently, the only valid type is IPYNB.

      • LastModifiedTime (datetime) –

        The time when the notebook was last modified.

    • Payload (string) –

      The content of the exported notebook.

Exceptions

  • Athena.Client.exceptions.InternalServerException

  • Athena.Client.exceptions.InvalidRequestException

  • Athena.Client.exceptions.TooManyRequestsException