Skip to main content

assets

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

Overview

Nameassets
TypeResource
Idaws.glue.assets

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
asset_type_idstringThe identifier of the asset type for this asset.
attachmentsobjectAdditional attachments on the asset for more context, keyed by attachment name.
created_atstring (date-time)The timestamp at which the asset was created.
descriptionstringThe description of the asset.
formsobjectThe forms on the asset, keyed by form name.
glossary_termsarrayThe identifiers of the glossary terms associated with the asset.
idstringThe unique identifier of the asset. (pattern: <code>[a-zA-Z0-9-:/._*]+</code>)
iterable_formsobjectThe iterable forms available on the asset, keyed by form name (for example, columns). Use the form name with ListIterableForms or BatchGetIterableForms to retrieve the form's items.
namestringThe name of the asset.
updated_atstring (date-time)The timestamp at which the asset was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_assetselectregionRetrieves the metadata for an asset in Glue Data Catalog, including its forms, additional attachments, and associated glossary terms.
search_assetsselectregionSearches for assets in Glue Data Catalog using full-text search, filters, sorting, and aggregations. Returns matching assets with relevance-ranked results.
update_assetupdateregion, IdentifierUpdates the name and description of an existing asset in Glue Data Catalog. Only the fields that you provide are updated.
put_attachmentreplaceregion, AssetIdentifier, AttachmentName, Content, FormTypeIdAttaches a form to an asset or an iterable form item in Glue Data Catalog. If an attachment with the same name already exists, it is overwritten.
put_assetreplaceregion, AssetTypeId, IdentifierCreates or updates an asset in Glue Data Catalog. If the asset already exists, this operation updates it; otherwise, a new asset is created.
delete_attachmentdeleteregionDeletes a form attachment from an asset in Glue Data Catalog.
delete_assetdeleteregionDeletes an asset 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 the metadata for an asset in Glue Data Catalog, including its forms, additional attachments, and associated glossary terms.

SELECT
asset_type_id,
attachments,
created_at,
description,
forms,
glossary_terms,
id,
iterable_forms,
name,
updated_at
FROM aws.glue.assets
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Updates the name and description of an existing asset in Glue Data Catalog. Only the fields that you provide are updated.

UPDATE aws.glue.assets
SET
Identifier = '{{ Identifier }}',
Name = '{{ Name }}',
Description = '{{ Description }}',
ClientToken = '{{ ClientToken }}'
WHERE
region = '{{ region }}' --required
AND Identifier = '{{ Identifier }}' --required
RETURNING
description,
id,
name,
updated_at;

REPLACE examples

Attaches a form to an asset or an iterable form item in Glue Data Catalog. If an attachment with the same name already exists, it is overwritten.

REPLACE aws.glue.assets
SET
AssetIdentifier = '{{ AssetIdentifier }}',
IterableFormName = '{{ IterableFormName }}',
ItemIdentifier = '{{ ItemIdentifier }}',
AttachmentName = '{{ AttachmentName }}',
Content = '{{ Content }}',
FormTypeId = '{{ FormTypeId }}',
ClientToken = '{{ ClientToken }}'
WHERE
region = '{{ region }}' --required
AND AssetIdentifier = '{{ AssetIdentifier }}' --required
AND AttachmentName = '{{ AttachmentName }}' --required
AND Content = '{{ Content }}' --required
AND FormTypeId = '{{ FormTypeId }}' --required
RETURNING
asset_identifier,
attachment_name,
form_type_id,
item_identifier,
iterable_form_name;

DELETE examples

Deletes a form attachment from an asset in Glue Data Catalog.

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