Skip to main content

notebook_metadatas

Creates, updates, deletes, gets or lists a notebook_metadatas resource.

Overview

Namenotebook_metadatas
TypeResource
Idaws.athena.notebook_metadatas

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
creation_timestring (date-time)The time when the notebook was created.
last_modified_timestring (date-time)The time when the notebook was last modified.
namestringThe name of the notebook. (pattern: <code>(?!.*[/:\])[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\t]+</code>)
notebook_idstringThe notebook ID. (pattern: <code>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}</code>)
typestringThe type of notebook. Currently, the only valid type is IPYNB. (IPYNB)
work_groupstringThe name of the Spark enabled workgroup to which the notebook belongs. (pattern: <code>[a-zA-Z0-9._-]{1,128}</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_notebook_metadataselectregionRetrieves notebook metadata for the specified notebook ID.
list_notebook_metadataselectregionDisplays the notebook files for the specified workgroup in paginated format.
update_notebook_metadataupdateregion, NotebookId, NameUpdates the metadata for a notebook.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves notebook metadata for the specified notebook ID.

SELECT
creation_time,
last_modified_time,
name,
notebook_id,
type,
work_group
FROM aws.athena.notebook_metadatas
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Updates the metadata for a notebook.

UPDATE aws.athena.notebook_metadatas
SET
NotebookId = '{{ NotebookId }}',
ClientRequestToken = '{{ ClientRequestToken }}',
Name = '{{ Name }}'
WHERE
region = '{{ region }}' --required
AND NotebookId = '{{ NotebookId }}' --required
AND Name = '{{ Name }}' --required;