table_versions
Creates, updates, deletes, gets or lists a table_versions resource.
Overview
| Name | table_versions |
| Type | Resource |
| Id | aws.glue.table_versions |
Fields
The following fields are returned by SELECT queries:
- get_table_version
| Name | Datatype | Description |
|---|---|---|
table | object | The table in question. |
version_id | string | The ID value that identifies this table version. A VersionId is a string representation of an integer. Each version is incremented by 1. (pattern: <code>[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\t]*</code>) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_table_version | select | region | Retrieves a specified version of a table. | |
delete_table_version | delete | region | Deletes a specified version of a table. | |
get_table_versions | exec | region, DatabaseName, TableName | Retrieves a list of strings that identify available versions of a specified table. |
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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_table_version
Retrieves a specified version of a table.
SELECT
table,
version_id
FROM aws.glue.table_versions
WHERE region = '{{ region }}' -- required
;
DELETE examples
- delete_table_version
Deletes a specified version of a table.
DELETE FROM aws.glue.table_versions
WHERE region = '{{ region }}' --required
;
Lifecycle Methods
- get_table_versions
Retrieves a list of strings that identify available versions of a specified table.
EXEC aws.glue.table_versions.get_table_versions
@region='{{ region }}' --required
@@json=
'{
"CatalogId": "{{ CatalogId }}",
"DatabaseName": "{{ DatabaseName }}",
"TableName": "{{ TableName }}",
"NextToken": "{{ NextToken }}",
"MaxResults": {{ MaxResults }},
"AuditContext": "{{ AuditContext }}"
}'
;