AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::Personalize::Schema

CfnSchema

Creates an Amazon Personalize schema from the specified schema string. The schema you create must be in Avro JSON format. Amazon Personalize recognizes three schema variants. Each schema is associated with a dataset type and has a set of required field and keywords. If you are creating a schema for a dataset in a Domain dataset group, you provide the domain of the Domain dataset group. You specify a schema when you call [CreateDataset](https://docs.aws.amazon.com/personalize/latest/dg/API_CreateDataset.html) . For more information on schemas, see [Datasets and schemas](https://docs.aws.amazon.com/personalize/latest/dg/how-it-works-dataset-schema.html) . **Related APIs** - [ListSchemas](https://docs.aws.amazon.com/personalize/latest/dg/API_ListSchemas.html) - [DescribeSchema](https://docs.aws.amazon.com/personalize/latest/dg/API_DescribeSchema.html) - [DeleteSchema](https://docs.aws.amazon.com/personalize/latest/dg/API_DeleteSchema.html)

Import

import { CfnSchema } from 'aws-cdk-lib/aws-personalize';

Or use the module namespace:

import * as personalize from 'aws-cdk-lib/aws-personalize';
// personalize.CfnSchema

Properties

Configuration passed to the constructor as CfnSchemaProps.

nameRequired
string

The name of the schema.

schemaRequired
string

The schema.

domainOptional
string

The domain of a schema that you created for a dataset in a Domain dataset group.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

LevelL1 (CloudFormation)
Moduleaws-personalize
CFN TypeAWS::Personalize::Schema
Properties3

Related Constructs

External Links