Skip to main content

registries

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

Overview

Nameregistries
TypeResource
Idaws.schemas.registries

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
descriptionstringThe description of the registry.
registry_arnstringThe ARN of the registry.
registry_namestringThe name of the registry.
tagsobjectTags associated with the registry.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_registryselectregistry_name, regionDescribes the registry.
list_registriesselectregionlimit, nextToken, registryNamePrefix, scopeList the registries.
create_registryinsertregistry_name, regionCreates a registry.
update_registryupdateregistry_name, regionUpdates a registry.
delete_registrydeleteregistry_name, regionDeletes a Registry.
export_schemaexecregistry_name, schema_name, type, regionschemaVersion

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)
registry_namestringThe name of the registry.
schema_namestringThe name of the schema.
typestring
limitinteger
nextTokenstringThe token that specifies the next page of results to return. To request the first page, leave NextToken empty. The token will expire in 24 hours, and cannot be shared with other accounts.
registryNamePrefixstringSpecifying this limits the results to only those registry names that start with the specified prefix.
schemaVersionstringSpecifying this limits the results to only this schema version.
scopestringCan be set to Local or AWS to limit responses to your custom registries, or the ones provided by AWS.

SELECT examples

Describes the registry.

SELECT
description,
registry_arn,
registry_name,
tags
FROM aws.schemas.registries
WHERE registry_name = '{{ registry_name }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a registry.

INSERT INTO aws.schemas.registries (
Description,
Tags,
registry_name,
region
)
SELECT
'{{ Description }}',
'{{ Tags }}',
'{{ registry_name }}',
'{{ region }}'
RETURNING
description,
registry_arn,
registry_name,
tags
;

UPDATE examples

Updates a registry.

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

DELETE examples

Deletes a Registry.

DELETE FROM aws.schemas.registries
WHERE registry_name = '{{ registry_name }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Success

EXEC aws.schemas.registries.export_schema
@registry_name='{{ registry_name }}' --required,
@schema_name='{{ schema_name }}' --required,
@type='{{ type }}' --required,
@region='{{ region }}' --required,
@schemaVersion='{{ schemaVersion }}'
;