Skip to main content

form_types

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

Overview

Nameform_types
TypeResource
Idaws.glue.form_types

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe identifier of the form type.
namestringThe name of the form type. (pattern: <code>^[A-Z]\w*$</code>)
schemastringThe Smithy IDL schema of the form type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_form_typeselectregionRetrieves a form type in Glue Data Catalog by its identifier.
list_form_typesselectregionLists the form types defined in Glue Data Catalog.
put_form_typereplaceregionCreates or updates a form type in Glue Data Catalog. A form type defines the schema for structured metadata that can be attached to assets.
delete_form_typedeleteregionDeletes a form type from Glue Data Catalog. A form type cannot be deleted if it is still referenced by an asset type.

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 a form type in Glue Data Catalog by its identifier.

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

REPLACE examples

Creates or updates a form type in Glue Data Catalog. A form type defines the schema for structured metadata that can be attached to assets.

REPLACE aws.glue.form_types
SET
Name = '{{ Name }}',
Schema = '{{ Schema }}',
ClientToken = '{{ ClientToken }}'
WHERE
region = '{{ region }}' --required
RETURNING
id,
name,
schema;

DELETE examples

Deletes a form type from Glue Data Catalog. A form type cannot be deleted if it is still referenced by an asset type.

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