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
Idawscc.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.

For more information, see AWS::EventSchemas::Registry.

Methods

NameResourceAccessible byRequired Params
create_resourceregistriesINSERTregion
delete_resourceregistriesDELETEIdentifier, region
update_resourceregistriesUPDATEIdentifier, PatchDocument, region
list_resourcesregistries_list_onlySELECTregion
get_resourceregistriesSELECTIdentifier, region

SELECT examples

Gets all properties from an individual registry.

SELECT
region,
registry_name,
description,
registry_arn,
tags
FROM awscc.eventschemas.registries
WHERE
region = '{{ region }}' AND
Identifier = '{{ registry_arn }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.eventschemas.registries (
RegistryName,
Description,
Tags,
region
)
SELECT
'{{ registry_name }}',
'{{ description }}',
'{{ tags }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

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

/*+ update */
UPDATE awscc.eventschemas.registries
SET PatchDocument = string('{{ {
"Description": description,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ registry_arn }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.eventschemas.registries
WHERE
Identifier = '{{ registry_arn }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

schemas:DescribeRegistry,
schemas:CreateRegistry,
schemas:TagResource