Skip to main content

registry_policies

Creates, updates, deletes or gets a registry_policy resource or lists registry_policies in a region

Overview

Nameregistry_policies
TypeResource
DescriptionResource Type definition for AWS::EventSchemas::RegistryPolicy
Idaws.eventschemas.registry_policies

Fields

NameDatatypeDescription
idstring
policyobject
registry_namestring
revision_idstring
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTRegistryName, Policy, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all properties from an individual registry_policy.

SELECT
region,
id,
policy,
registry_name,
revision_id
FROM aws.eventschemas.registry_policies
WHERE region = 'us-east-1' AND data__Identifier = '<Id>';

INSERT example

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

/*+ create */
INSERT INTO aws.eventschemas.registry_policies (
Policy,
RegistryName,
region
)
SELECT
'{{ Policy }}',
'{{ RegistryName }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

schemas:PutResourcePolicy,
schemas:GetResourcePolicy,
schemas:DescribeRegistry

Delete

schemas:DeleteResourcePolicy,
schemas:GetResourcePolicy

Update

schemas:PutResourcePolicy,
schemas:GetResourcePolicy

Read

schemas:GetResourcePolicy