libZSservicesZSamazonka-personalizeZSamazonka-personalize
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Personalize.CreateDataset

Description

Creates an empty dataset and adds it to the specified dataset group. Use CreateDatasetImportJob to import your training data to a dataset.

There are three types of datasets:

  • Interactions
  • Items
  • Users

Each dataset type has an associated schema with required field types. Only the 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
  • ListDatasets
  • DescribeDataset
  • DeleteDataset
Synopsis

Creating a Request

data CreateDataset Source #

See: newCreateDataset smart constructor.

Constructors

CreateDataset' 

Fields

  • name :: Text

    The name for the dataset.

  • schemaArn :: Text

    The ARN of the schema to associate with the dataset. The schema defines the dataset fields.

  • datasetGroupArn :: Text

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

  • datasetType :: Text

    The type of dataset.

    One of the following (case insensitive) values:

    • Interactions
    • Items
    • Users

Instances

Instances details
Eq CreateDataset Source # 
Instance details

Defined in Amazonka.Personalize.CreateDataset

Read CreateDataset Source # 
Instance details

Defined in Amazonka.Personalize.CreateDataset

Show CreateDataset Source # 
Instance details

Defined in Amazonka.Personalize.CreateDataset

Generic CreateDataset Source # 
Instance details

Defined in Amazonka.Personalize.CreateDataset

Associated Types

type Rep CreateDataset :: Type -> Type #

NFData CreateDataset Source # 
Instance details

Defined in Amazonka.Personalize.CreateDataset

Methods

rnf :: CreateDataset -> () #

Hashable CreateDataset Source # 
Instance details

Defined in Amazonka.Personalize.CreateDataset

ToJSON CreateDataset Source # 
Instance details

Defined in Amazonka.Personalize.CreateDataset

AWSRequest CreateDataset Source # 
Instance details

Defined in Amazonka.Personalize.CreateDataset

Associated Types

type AWSResponse CreateDataset #

ToHeaders CreateDataset Source # 
Instance details

Defined in Amazonka.Personalize.CreateDataset

ToPath CreateDataset Source # 
Instance details

Defined in Amazonka.Personalize.CreateDataset

ToQuery CreateDataset Source # 
Instance details

Defined in Amazonka.Personalize.CreateDataset

type Rep CreateDataset Source # 
Instance details

Defined in Amazonka.Personalize.CreateDataset

type Rep CreateDataset = D1 ('MetaData "CreateDataset" "Amazonka.Personalize.CreateDataset" "libZSservicesZSamazonka-personalizeZSamazonka-personalize" 'False) (C1 ('MetaCons "CreateDataset'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "schemaArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "datasetGroupArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "datasetType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse CreateDataset Source # 
Instance details

Defined in Amazonka.Personalize.CreateDataset

newCreateDataset Source #

Create a value of CreateDataset with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:name:CreateDataset', createDataset_name - The name for the dataset.

$sel:schemaArn:CreateDataset', createDataset_schemaArn - The ARN of the schema to associate with the dataset. The schema defines the dataset fields.

$sel:datasetGroupArn:CreateDataset', createDataset_datasetGroupArn - The Amazon Resource Name (ARN) of the dataset group to add the dataset to.

$sel:datasetType:CreateDataset', createDataset_datasetType - The type of dataset.

One of the following (case insensitive) values:

  • Interactions
  • Items
  • Users

Request Lenses

createDataset_name :: Lens' CreateDataset Text Source #

The name for the dataset.

createDataset_schemaArn :: Lens' CreateDataset Text Source #

The ARN of the schema to associate with the dataset. The schema defines the dataset fields.

createDataset_datasetGroupArn :: Lens' CreateDataset Text Source #

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

createDataset_datasetType :: Lens' CreateDataset Text Source #

The type of dataset.

One of the following (case insensitive) values:

  • Interactions
  • Items
  • Users

Destructuring the Response

data CreateDatasetResponse Source #

See: newCreateDatasetResponse smart constructor.

Constructors

CreateDatasetResponse' 

Fields

Instances

Instances details
Eq CreateDatasetResponse Source # 
Instance details

Defined in Amazonka.Personalize.CreateDataset

Read CreateDatasetResponse Source # 
Instance details

Defined in Amazonka.Personalize.CreateDataset

Show CreateDatasetResponse Source # 
Instance details

Defined in Amazonka.Personalize.CreateDataset

Generic CreateDatasetResponse Source # 
Instance details

Defined in Amazonka.Personalize.CreateDataset

Associated Types

type Rep CreateDatasetResponse :: Type -> Type #

NFData CreateDatasetResponse Source # 
Instance details

Defined in Amazonka.Personalize.CreateDataset

Methods

rnf :: CreateDatasetResponse -> () #

type Rep CreateDatasetResponse Source # 
Instance details

Defined in Amazonka.Personalize.CreateDataset

type Rep CreateDatasetResponse = D1 ('MetaData "CreateDatasetResponse" "Amazonka.Personalize.CreateDataset" "libZSservicesZSamazonka-personalizeZSamazonka-personalize" 'False) (C1 ('MetaCons "CreateDatasetResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "datasetArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateDatasetResponse Source #

Create a value of CreateDatasetResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:datasetArn:CreateDatasetResponse', createDatasetResponse_datasetArn - The ARN of the dataset.

$sel:httpStatus:CreateDatasetResponse', createDatasetResponse_httpStatus - The response's http status code.

Response Lenses