AWS::Personalize::Schema
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.
For more information on schemas, see Datasets and schemas.
Related APIs
Syntax
To declare this entity in your Amazon CloudFormation template, use the following syntax:
JSON
{ "Type" : "AWS::Personalize::Schema", "Properties" : { "Domain" :String, "Name" :String, "Schema" :String} }
Properties
Domain-
The domain of a schema that you created for a dataset in a Domain dataset group.
Required: No
Type: String
Allowed values:
ECOMMERCE | VIDEO_ON_DEMANDUpdate requires: Replacement
Name-
The name of the schema.
Required: Yes
Type: String
Minimum:
1Maximum:
63Pattern:
^[a-zA-Z0-9][a-zA-Z0-9\-_]*Update requires: Replacement
Schema-
The schema.
Required: Yes
Type: String
Maximum:
10000Update requires: Replacement
Return values
Ref
When you pass the logical ID of this resource to the intrinsic Reffunction, Refreturns the name of the resource.
For more information about using the Reffunction, see Ref.
Fn::GetAtt
The Fn::GetAttintrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.
For more information about using the Fn::GetAttintrinsic function, see Fn::GetAtt.