Skip to main content

registries

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

Overview

Nameregistries
TypeResource
Idaws.glue.registries

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_timestringThe date and time the registry was created.
descriptionstringA description of the registry. (pattern: <code>[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*</code>)
registry_arnstringThe Amazon Resource Name (ARN) of the registry. (pattern: <code>arn:aws(-(cn|us-gov|iso(-[bef])?))?:glue:.*</code>)
registry_namestringThe name of the registry. (pattern: <code>[a-zA-Z0-9-_$#.]+</code>)
statusstringThe status of the registry. (AVAILABLE, DELETING)
updated_timestringThe date and time the registry was updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_registryselectregionDescribes the specified registry in detail.
list_registriesselectregionReturns a list of registries that you have created, with minimal registry information. Registries in the Deleting status will not be included in the results. Empty results will be returned if there are no registries available.
create_registryinsertregion, RegistryNameCreates a new registry which may be used to hold a collection of schemas.
update_registryupdateregion, RegistryIdUpdates an existing registry which is used to hold a collection of schemas. The updated properties relate to the registry, and do not modify any of the schemas within the registry.
delete_registrydeleteregionDelete the entire registry including schema and all of its versions. To get the status of the delete operation, you can call the GetRegistry API after the asynchronous call. Deleting a registry will deactivate all online operations for the registry such as the UpdateRegistry, CreateSchema, UpdateSchema, and RegisterSchemaVersion APIs.

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

Describes the specified registry in detail.

SELECT
created_time,
description,
registry_arn,
registry_name,
status,
updated_time
FROM aws.glue.registries
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a new registry which may be used to hold a collection of schemas.

INSERT INTO aws.glue.registries (
RegistryName,
Description,
Tags,
region
)
SELECT
'{{ RegistryName }}' /* required */,
'{{ Description }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
description,
registry_arn,
registry_name,
tags
;

UPDATE examples

Updates an existing registry which is used to hold a collection of schemas. The updated properties relate to the registry, and do not modify any of the schemas within the registry.

UPDATE aws.glue.registries
SET
RegistryId = '{{ RegistryId }}',
Description = '{{ Description }}'
WHERE
region = '{{ region }}' --required
AND RegistryId = '{{ RegistryId }}' --required
RETURNING
registry_arn,
registry_name;

DELETE examples

Delete the entire registry including schema and all of its versions. To get the status of the delete operation, you can call the GetRegistry API after the asynchronous call. Deleting a registry will deactivate all online operations for the registry such as the UpdateRegistry, CreateSchema, UpdateSchema, and RegisterSchemaVersion APIs.

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