registries
Creates, updates, deletes or gets a registry resource or lists registries in a region
Overview
| Name | registries |
| Type | Resource |
| Description | Resource Type definition for AWS::EventSchemas::Registry |
| Id | awscc.eventschemas.registries |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
registry_name | string | The name of the schema registry. |
description | string | A description of the registry to be created. |
registry_arn | string | The ARN of the registry. |
tags | array | Tags associated with the resource. |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
registry_arn | string | The ARN of the registry. |
region | string | AWS region. |
For more information, see AWS::EventSchemas::Registry.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | registries | INSERT | region |
delete_resource | registries | DELETE | Identifier, region |
update_resource | registries | UPDATE | Identifier, PatchDocument, region |
list_resources | registries_list_only | SELECT | region |
get_resource | registries | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
Gets all properties from an individual registry.
SELECT
region,
registry_name,
description,
registry_arn,
tags
FROM awscc.eventschemas.registries
WHERE
region = 'us-east-1' AND
Identifier = '{{ registry_arn }}';
Lists all registries in a region.
SELECT
region,
registry_arn
FROM awscc.eventschemas.registries_list_only
WHERE
region = 'us-east-1';
INSERT example
Use the following StackQL query and manifest file to create a new registry resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.eventschemas.registries (
RegistryName,
Description,
Tags,
region
)
SELECT
'{{ registry_name }}',
'{{ description }}',
'{{ tags }}',
'{{ region }}';
/*+ create */
INSERT INTO awscc.eventschemas.registries (
RegistryName,
Description,
Tags,
region
)
SELECT
'{{ registry_name }}',
'{{ description }}',
'{{ tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: registry
props:
- name: registry_name
value: '{{ registry_name }}'
- name: description
value: '{{ description }}'
- name: tags
value:
- value: '{{ value }}'
key: '{{ key }}'
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 }}';
DELETE example
/*+ delete */
DELETE FROM awscc.eventschemas.registries
WHERE
Identifier = '{{ registry_arn }}' AND
region = 'us-east-1';
Permissions
To operate on the registries resource, the following permissions are required:
- Create
- Read
- Update
- Delete
- List
schemas:DescribeRegistry,
schemas:CreateRegistry,
schemas:TagResource
schemas:DescribeRegistry
schemas:DescribeRegistry,
schemas:UpdateRegistry,
schemas:TagResource,
schemas:UntagResource,
schemas:ListTagsForResource
schemas:DescribeRegistry,
schemas:DeleteRegistry
schemas:ListRegistries