class CfnDatasetPropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Personalize.Mixins.CfnDatasetPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awspersonalize/mixins#CfnDatasetPropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.personalize.mixins.CfnDatasetPropsMixin |
Python | aws_cdk.mixins_preview.aws_personalize.mixins.CfnDatasetPropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_personalize » mixins » CfnDatasetPropsMixin |
Implements
IMixin
Extends
Mixin
Creates an empty dataset and adds it to the specified dataset group.
Use CreateDatasetImportJob to import your training data to a dataset.
There are 5 types of datasets:
- Item interactions
- Items
- Users
- Action interactions (you can't use CloudFormation to create an Action interactions dataset)
- Actions (you can't use CloudFormation to create an Actions dataset)
Each dataset type has an associated schema with required field types. Only the Item interactions dataset is required in order to train a model (also referred to as creating a solution).
A dataset can be in one of the following states:
- CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
- DELETE PENDING > DELETE IN_PROGRESS
To get the status of the dataset, call DescribeDataset .
Related APIs - CreateDatasetGroup
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-personalize-dataset.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins } from '@aws-cdk/mixins-preview';
import { mixins as personalize_mixins } from '@aws-cdk/mixins-preview/aws-personalize';
declare const dataSource: any;
const cfnDatasetPropsMixin = new personalize_mixins.CfnDatasetPropsMixin({
datasetGroupArn: 'datasetGroupArn',
datasetImportJob: {
datasetArn: 'datasetArn',
datasetImportJobArn: 'datasetImportJobArn',
dataSource: dataSource,
jobName: 'jobName',
roleArn: 'roleArn',
},
datasetType: 'datasetType',
name: 'name',
schemaArn: 'schemaArn',
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnDatasetPropsMixin(props: CfnDatasetMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Dataset Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::Personalize::Dataset.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript