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

The dataset import job replaces any existing data in the dataset that you imported in bulk.

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

  • ListDatasetImportJobs
  • DescribeDatasetImportJob
Synopsis

Creating a Request

data CreateDatasetImportJob Source #

See: newCreateDatasetImportJob smart constructor.

Constructors

CreateDatasetImportJob' 

Fields

  • 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
Eq CreateDatasetImportJob Source # 
Instance details

Defined in Amazonka.Personalize.CreateDatasetImportJob

Read CreateDatasetImportJob Source # 
Instance details

Defined in Amazonka.Personalize.CreateDatasetImportJob

Show CreateDatasetImportJob Source # 
Instance details

Defined in Amazonka.Personalize.CreateDatasetImportJob

Generic CreateDatasetImportJob Source # 
Instance details

Defined in Amazonka.Personalize.CreateDatasetImportJob

Associated Types

type Rep CreateDatasetImportJob :: Type -> Type #

NFData CreateDatasetImportJob Source # 
Instance details

Defined in Amazonka.Personalize.CreateDatasetImportJob

Methods

rnf :: CreateDatasetImportJob -> () #

Hashable CreateDatasetImportJob Source # 
Instance details

Defined in Amazonka.Personalize.CreateDatasetImportJob

ToJSON CreateDatasetImportJob Source # 
Instance details

Defined in Amazonka.Personalize.CreateDatasetImportJob

AWSRequest CreateDatasetImportJob Source # 
Instance details

Defined in Amazonka.Personalize.CreateDatasetImportJob

Associated Types

type AWSResponse 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

type Rep CreateDatasetImportJob Source # 
Instance details

Defined in Amazonka.Personalize.CreateDatasetImportJob

type Rep CreateDatasetImportJob = D1 ('MetaData "CreateDatasetImportJob" "Amazonka.Personalize.CreateDatasetImportJob" "libZSservicesZSamazonka-personalizeZSamazonka-personalize" 'False) (C1 ('MetaCons "CreateDatasetImportJob'" 'PrefixI 'True) ((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))))
type AWSResponse CreateDatasetImportJob Source # 
Instance details

Defined in Amazonka.Personalize.CreateDatasetImportJob

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:

$sel:jobName:CreateDatasetImportJob', createDatasetImportJob_jobName - The name for the dataset import job.

$sel:datasetArn:CreateDatasetImportJob', createDatasetImportJob_datasetArn - The ARN of the dataset that receives the imported data.

$sel:dataSource:CreateDatasetImportJob', createDatasetImportJob_dataSource - The Amazon S3 bucket that contains the training data to import.

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

Request Lenses

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
Eq CreateDatasetImportJobResponse Source # 
Instance details

Defined in Amazonka.Personalize.CreateDatasetImportJob

Read CreateDatasetImportJobResponse Source # 
Instance details

Defined in Amazonka.Personalize.CreateDatasetImportJob

Show CreateDatasetImportJobResponse Source # 
Instance details

Defined in Amazonka.Personalize.CreateDatasetImportJob

Generic CreateDatasetImportJobResponse Source # 
Instance details

Defined in Amazonka.Personalize.CreateDatasetImportJob

Associated Types

type Rep CreateDatasetImportJobResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-personalizeZSamazonka-personalize" '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:

$sel:datasetImportJobArn:CreateDatasetImportJobResponse', createDatasetImportJobResponse_datasetImportJobArn - The ARN of the dataset import job.

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

Response Lenses