Skip to main content

schemata

Creates, updates, deletes or gets a schema resource or lists schemata in a region

Overview

Nameschemata
TypeResource
DescriptionResource schema for AWS::Personalize::Schema.
Idaws.personalize.schemata

Fields

NameDatatypeDescription
namestringName for the schema.
schema_arnstringArn for the schema.
schemastringA schema in Avro JSON format.
domainstringThe domain of a Domain dataset group.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, Schema, region
delete_resourceDELETEdata__Identifier, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all schemata in a region.

SELECT
region,
name,
schema_arn,
schema,
domain
FROM aws.personalize.schemata
WHERE region = 'us-east-1';

Gets all properties from an individual schema.

SELECT
region,
name,
schema_arn,
schema,
domain
FROM aws.personalize.schemata
WHERE region = 'us-east-1' AND data__Identifier = '<SchemaArn>';

INSERT example

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

/*+ create */
INSERT INTO aws.personalize.schemata (
Name,
Schema,
region
)
SELECT
'{{ Name }}',
'{{ Schema }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.personalize.schemata
WHERE data__Identifier = '<SchemaArn>'
AND region = 'us-east-1';

Permissions

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

Create

personalize:CreateSchema,
personalize:DescribeSchema

Read

personalize:DescribeSchema

Delete

personalize:DeleteSchema,
personalize:DescribeSchema

List

personalize:ListSchemas