Skip to content
GitHubXDiscord

Registry

The Registry resource allows you to create and manage AWS EventSchemas Registrys for organizing event schemas in your AWS account.

Create a basic EventSchemas Registry with a description and tags.

import AWS from "alchemy/aws/control";
const basicRegistry = await AWS.EventSchemas.Registry("basic-registry", {
Description: "This is a basic registry for event schemas.",
RegistryName: "BasicEventRegistry",
Tags: [
{ Key: "Environment", Value: "Development" },
{ Key: "Project", Value: "EventProcessing" }
]
});

Configure a registry that enables adoption of existing resources if they already exist.

const advancedRegistry = await AWS.EventSchemas.Registry("advanced-registry", {
Description: "This registry adopts existing resources if present.",
RegistryName: "AdvancedEventRegistry",
adopt: true,
Tags: [
{ Key: "UseCase", Value: "EventManagement" }
]
});

Create a registry without any tags, focusing solely on the name and description.

const noTagsRegistry = await AWS.EventSchemas.Registry("no-tags-registry", {
Description: "Registry created without tags.",
RegistryName: "NoTagsEventRegistry"
});

Establish a registry designed for read-only purposes by not including certain optional properties.

const readOnlyRegistry = await AWS.EventSchemas.Registry("read-only-registry", {
Description: "This registry is intended for read-only access.",
RegistryName: "ReadOnlyEventRegistry"
});