amazonka-personalize-2.0: Amazon Personalize SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Personalize.CreateDatasetImportJob

Description

Creates a job that imports training data from your data source (an Amazon S3 bucket) to an Amazon Personalize dataset. To allow Amazon Personalize to import the training data, you must specify an IAM service role that has permission to read from the data source, as Amazon Personalize makes a copy of your data and processes it internally. For information on granting access to your Amazon S3 bucket, see Giving Amazon Personalize Access to Amazon S3 Resources.

By default, a dataset import job replaces any existing data in the dataset that you imported in bulk. To add new records without replacing existing data, specify INCREMENTAL for the import mode in the CreateDatasetImportJob operation.

Status

A dataset import job can be in one of the following states:

  • CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED

To get the status of the import job, call DescribeDatasetImportJob, providing the Amazon Resource Name (ARN) of the dataset import job. The dataset import is complete when the status shows as ACTIVE. If the status shows as CREATE FAILED, the response includes a failureReason key, which describes why the job failed.

Importing takes time. You must wait until the status shows as ACTIVE before training a model using the dataset.

Related APIs

Synopsis

Creating a Request

data CreateDatasetImportJob Source #

See: newCreateDatasetImportJob smart constructor.

Constructors

CreateDatasetImportJob' 

Fields

  • importMode :: Maybe ImportMode

    Specify how to add the new records to an existing dataset. The default import mode is FULL. If you haven't imported bulk records into the dataset previously, you can only specify FULL.

    • Specify FULL to overwrite all existing bulk data in your dataset. Data you imported individually is not replaced.
    • Specify INCREMENTAL to append the new records to the existing data in your dataset. Amazon Personalize replaces any record with the same ID with the new one.
  • publishAttributionMetricsToS3 :: Maybe Bool

    If you created a metric attribution, specify whether to publish metrics for this import job to Amazon S3

  • tags :: Maybe [Tag]

    A list of tags to apply to the dataset import job.

  • jobName :: Text

    The name for the dataset import job.

  • datasetArn :: Text

    The ARN of the dataset that receives the imported data.

  • dataSource :: DataSource

    The Amazon S3 bucket that contains the training data to import.

  • roleArn :: Text

    The ARN of the IAM role that has permissions to read from the Amazon S3 data source.

Instances

Instances details
ToJSON CreateDatasetImportJob Source # 
Instance details

Defined in Amazonka.Personalize.CreateDatasetImportJob

ToHeaders CreateDatasetImportJob Source # 
Instance details

Defined in Amazonka.Personalize.CreateDatasetImportJob

ToPath CreateDatasetImportJob Source # 
Instance details

Defined in Amazonka.Personalize.CreateDatasetImportJob

ToQuery CreateDatasetImportJob Source # 
Instance details

Defined in Amazonka.Personalize.CreateDatasetImportJob

AWSRequest CreateDatasetImportJob Source # 
Instance details

Defined in Amazonka.Personalize.CreateDatasetImportJob

Associated Types

type AWSResponse CreateDatasetImportJob #

Generic CreateDatasetImportJob Source # 
Instance details

Defined in Amazonka.Personalize.CreateDatasetImportJob

Associated Types

type Rep CreateDatasetImportJob :: Type -> Type #

Read CreateDatasetImportJob Source # 
Instance details

Defined in Amazonka.Personalize.CreateDatasetImportJob

Show CreateDatasetImportJob Source # 
Instance details

Defined in Amazonka.Personalize.CreateDatasetImportJob

NFData CreateDatasetImportJob Source # 
Instance details

Defined in Amazonka.Personalize.CreateDatasetImportJob

Methods

rnf :: CreateDatasetImportJob -> () #

Eq CreateDatasetImportJob Source # 
Instance details

Defined in Amazonka.Personalize.CreateDatasetImportJob

Hashable CreateDatasetImportJob Source # 
Instance details

Defined in Amazonka.Personalize.CreateDatasetImportJob

type AWSResponse CreateDatasetImportJob Source # 
Instance details

Defined in Amazonka.Personalize.CreateDatasetImportJob

type Rep CreateDatasetImportJob Source # 
Instance details

Defined in Amazonka.Personalize.CreateDatasetImportJob

type Rep CreateDatasetImportJob = D1 ('MetaData "CreateDatasetImportJob" "Amazonka.Personalize.CreateDatasetImportJob" "amazonka-personalize-2.0-9kdbGNMxU7zEIoXPqEwwTg" 'False) (C1 ('MetaCons "CreateDatasetImportJob'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "importMode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ImportMode)) :*: (S1 ('MetaSel ('Just "publishAttributionMetricsToS3") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])))) :*: ((S1 ('MetaSel ('Just "jobName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "datasetArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "dataSource") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 DataSource) :*: S1 ('MetaSel ('Just "roleArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newCreateDatasetImportJob Source #

Create a value of CreateDatasetImportJob 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:

CreateDatasetImportJob, createDatasetImportJob_importMode - Specify how to add the new records to an existing dataset. The default import mode is FULL. If you haven't imported bulk records into the dataset previously, you can only specify FULL.

  • Specify FULL to overwrite all existing bulk data in your dataset. Data you imported individually is not replaced.
  • Specify INCREMENTAL to append the new records to the existing data in your dataset. Amazon Personalize replaces any record with the same ID with the new one.

CreateDatasetImportJob, createDatasetImportJob_publishAttributionMetricsToS3 - If you created a metric attribution, specify whether to publish metrics for this import job to Amazon S3

$sel:tags:CreateDatasetImportJob', createDatasetImportJob_tags - A list of tags to apply to the dataset import job.

CreateDatasetImportJob, createDatasetImportJob_jobName - The name for the dataset import job.

CreateDatasetImportJob, createDatasetImportJob_datasetArn - The ARN of the dataset that receives the imported data.

CreateDatasetImportJob, createDatasetImportJob_dataSource - The Amazon S3 bucket that contains the training data to import.

CreateDatasetImportJob, createDatasetImportJob_roleArn - The ARN of the IAM role that has permissions to read from the Amazon S3 data source.

Request Lenses

createDatasetImportJob_importMode :: Lens' CreateDatasetImportJob (Maybe ImportMode) Source #

Specify how to add the new records to an existing dataset. The default import mode is FULL. If you haven't imported bulk records into the dataset previously, you can only specify FULL.

  • Specify FULL to overwrite all existing bulk data in your dataset. Data you imported individually is not replaced.
  • Specify INCREMENTAL to append the new records to the existing data in your dataset. Amazon Personalize replaces any record with the same ID with the new one.

createDatasetImportJob_publishAttributionMetricsToS3 :: Lens' CreateDatasetImportJob (Maybe Bool) Source #

If you created a metric attribution, specify whether to publish metrics for this import job to Amazon S3

createDatasetImportJob_tags :: Lens' CreateDatasetImportJob (Maybe [Tag]) Source #

A list of tags to apply to the dataset import job.

createDatasetImportJob_datasetArn :: Lens' CreateDatasetImportJob Text Source #

The ARN of the dataset that receives the imported data.

createDatasetImportJob_dataSource :: Lens' CreateDatasetImportJob DataSource Source #

The Amazon S3 bucket that contains the training data to import.

createDatasetImportJob_roleArn :: Lens' CreateDatasetImportJob Text Source #

The ARN of the IAM role that has permissions to read from the Amazon S3 data source.

Destructuring the Response

data CreateDatasetImportJobResponse Source #

See: newCreateDatasetImportJobResponse smart constructor.

Constructors

CreateDatasetImportJobResponse' 

Fields

Instances

Instances details
Generic CreateDatasetImportJobResponse Source # 
Instance details

Defined in Amazonka.Personalize.CreateDatasetImportJob

Associated Types

type Rep CreateDatasetImportJobResponse :: Type -> Type #

Read CreateDatasetImportJobResponse Source # 
Instance details

Defined in Amazonka.Personalize.CreateDatasetImportJob

Show CreateDatasetImportJobResponse Source # 
Instance details

Defined in Amazonka.Personalize.CreateDatasetImportJob

NFData CreateDatasetImportJobResponse Source # 
Instance details

Defined in Amazonka.Personalize.CreateDatasetImportJob

Eq CreateDatasetImportJobResponse Source # 
Instance details

Defined in Amazonka.Personalize.CreateDatasetImportJob

type Rep CreateDatasetImportJobResponse Source # 
Instance details

Defined in Amazonka.Personalize.CreateDatasetImportJob

type Rep CreateDatasetImportJobResponse = D1 ('MetaData "CreateDatasetImportJobResponse" "Amazonka.Personalize.CreateDatasetImportJob" "amazonka-personalize-2.0-9kdbGNMxU7zEIoXPqEwwTg" 'False) (C1 ('MetaCons "CreateDatasetImportJobResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "datasetImportJobArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateDatasetImportJobResponse Source #

Create a value of CreateDatasetImportJobResponse 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:

CreateDatasetImportJobResponse, createDatasetImportJobResponse_datasetImportJobArn - The ARN of the dataset import job.

$sel:httpStatus:CreateDatasetImportJobResponse', createDatasetImportJobResponse_httpStatus - The response's http status code.

Response Lenses