Skip to main content

registries

Creates, updates, deletes or gets a registry resource or lists registries in a region

Overview

Nameregistries
TypeResource
DescriptionResource Type definition for AWS::EventSchemas::Registry
Idaws.eventschemas.registries

Fields

NameDatatypeDescription
registry_namestringThe name of the schema registry.
descriptionstringA description of the registry to be created.
registry_arnstringThe ARN of the registry.
tagsarrayTags associated with the resource.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTregion
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all registries in a region.

SELECT
region,
registry_name,
description,
registry_arn,
tags
FROM aws.eventschemas.registries
WHERE region = 'us-east-1';

Gets all properties from an individual registry.

SELECT
region,
registry_name,
description,
registry_arn,
tags
FROM aws.eventschemas.registries
WHERE region = 'us-east-1' AND data__Identifier = '<RegistryArn>';

INSERT example

Use the following StackQL query and manifest file to create a new registry resource, using stack-deploy.

/*+ create */
INSERT INTO aws.eventschemas.registries (
RegistryName,
Description,
Tags,
region
)
SELECT
'{{ RegistryName }}',
'{{ Description }}',
'{{ Tags }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.eventschemas.registries
WHERE data__Identifier = '<RegistryArn>'
AND region = 'us-east-1';

Permissions

To operate on the registries resource, the following permissions are required:

Create

schemas:DescribeRegistry,
schemas:CreateRegistry,
schemas:TagResource

Read

schemas:DescribeRegistry

Update

schemas:DescribeRegistry,
schemas:UpdateRegistry,
schemas:TagResource,
schemas:UntagResource,
schemas:ListTagsForResource

Delete

schemas:DescribeRegistry,
schemas:DeleteRegistry

List

schemas:ListRegistries