AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::Personalize::Dataset

CfnDataset

Creates an empty dataset and adds it to the specified dataset group. Use [CreateDatasetImportJob](https://docs.aws.amazon.com/personalize/latest/dg/API_CreateDatasetImportJob.html) 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](https://docs.aws.amazon.com/personalize/latest/dg/API_DescribeDataset.html) . **Related APIs** - [CreateDatasetGroup](https://docs.aws.amazon.com/personalize/latest/dg/API_CreateDatasetGroup.html) - [ListDatasets](https://docs.aws.amazon.com/personalize/latest/dg/API_ListDatasets.html) - [DescribeDataset](https://docs.aws.amazon.com/personalize/latest/dg/API_DescribeDataset.html) - [DeleteDataset](https://docs.aws.amazon.com/personalize/latest/dg/API_DeleteDataset.html)

Import

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

Or use the module namespace:

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

Properties

Configuration passed to the constructor as CfnDatasetProps.

datasetGroupArnRequired
string

The Amazon Resource Name (ARN) of the dataset group.

datasetTypeRequired
string

One of the following values:. - Interactions - Items - Users > You can't use CloudFormation to create an Action Interactions or Actions dataset.

nameRequired
string

The name of the dataset.

schemaArnRequired
string

The ARN of the associated schema.

datasetImportJobOptional
IResolvable | DatasetImportJobProperty

Describes a job that imports training data from a data source (Amazon S3 bucket) to an Amazon Personalize dataset. If you specify a dataset import job as part of a dataset, all dataset import job fields are required.

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::Dataset
Properties5

Related Constructs

External Links