Skip to main content

asset_types

Creates, updates, deletes, gets or lists an asset_types resource.

Overview

Nameasset_types
TypeResource
Idaws.glue.asset_types

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
formsobjectThe forms that make up the asset type, keyed by form name.
idstringThe identifier of the asset type.
namestringThe 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:

NameAccessible byRequired ParamsOptional ParamsDescription
get_asset_typeselectregionRetrieves an asset type in Glue Data Catalog by its identifier.
list_asset_typesselectregionLists the asset types defined in Glue Data Catalog.
put_asset_typereplaceregionCreates 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_typedeleteregionDeletes 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.

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

SELECT examples

Retrieves an asset type in Glue Data Catalog by its identifier.

SELECT
forms,
id,
name
FROM aws.glue.asset_types
WHERE region = '{{ region }}' -- required
;

REPLACE examples

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

Deletes an asset type from Glue Data Catalog.

DELETE FROM aws.glue.asset_types
WHERE region = '{{ region }}' --required
;