asset_types
Creates, updates, deletes, gets or lists an asset_types resource.
Overview
| Name | asset_types |
| Type | Resource |
| Id | aws.glue.asset_types |
Fields
The following fields are returned by SELECT queries:
- get_asset_type
- list_asset_types
| Name | Datatype | Description |
|---|---|---|
forms | object | The forms that make up the asset type, keyed by form name. |
id | string | The identifier of the asset type. |
name | string | The name of the asset type. (pattern: <code>^(?![0-9_])\w+$|^_\w*[a-zA-Z0-9]\w*$</code>) |
| Name | Datatype | Description |
|---|---|---|
id | string | The identifier of the asset type. |
name | string | The name of the asset type. (pattern: <code>^(?![0-9_])\w+$|^_\w*[a-zA-Z0-9]\w*$</code>) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_asset_type | select | region | Retrieves an asset type in Glue Data Catalog by its identifier. | |
list_asset_types | select | region | Lists the asset types defined in Glue Data Catalog. | |
put_asset_type | replace | region | Creates or updates an asset type in Glue Data Catalog. An asset type defines the structure of assets by specifying which forms they include. If an asset type with the given name already exists, it is updated. | |
delete_asset_type | delete | region | Deletes an asset type from Glue Data Catalog. |
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_asset_type
- list_asset_types
Retrieves an asset type in Glue Data Catalog by its identifier.
SELECT
forms,
id,
name
FROM aws.glue.asset_types
WHERE region = '{{ region }}' -- required
;
Lists the asset types defined in Glue Data Catalog.
SELECT
id,
name
FROM aws.glue.asset_types
WHERE region = '{{ region }}' -- required
;
REPLACE examples
- put_asset_type
Creates or updates an asset type in Glue Data Catalog. An asset type defines the structure of assets by specifying which forms they include. If an asset type with the given name already exists, it is updated.
REPLACE aws.glue.asset_types
SET
Name = '{{ Name }}',
Forms = '{{ Forms }}',
ClientToken = '{{ ClientToken }}'
WHERE
region = '{{ region }}' --required
RETURNING
forms,
id,
name;
DELETE examples
- delete_asset_type
Deletes an asset type from Glue Data Catalog.
DELETE FROM aws.glue.asset_types
WHERE region = '{{ region }}' --required
;