CfnSchemaPropsMixin

class aws_cdk.mixins_preview.aws_personalize.mixins.CfnSchemaPropsMixin(props, *, strategy=None)

Bases: Mixin

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 - ListSchemas

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-personalize-schema.html

CloudformationResource:

AWS::Personalize::Schema

Mixin:

true

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview import mixins
from aws_cdk.mixins_preview.aws_personalize import mixins as personalize_mixins

cfn_schema_props_mixin = personalize_mixins.CfnSchemaPropsMixin(personalize_mixins.CfnSchemaMixinProps(
    domain="domain",
    name="name",
    schema="schema"
),
    strategy=mixins.PropertyMergeStrategy.OVERRIDE
)

Create a mixin to apply properties to AWS::Personalize::Schema.

Parameters:
  • props (Union[CfnSchemaMixinProps, Dict[str, Any]]) – L1 properties to apply.

  • strategy (Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

IConstruct

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['domain', 'name', 'schema']

Static Methods

classmethod is_mixin(x)

(experimental) Checks if x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

Stability:

experimental