Skip to main content

dataset_export_jobs

Creates, updates, deletes, gets or lists a dataset_export_jobs resource.

Overview

Namedataset_export_jobs
TypeResource
Idaws.personalize.dataset_export_jobs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
creation_date_timestring (date-time)The creation date and time (in Unix time) of the dataset export job.
dataset_arnstringThe Amazon Resource Name (ARN) of the dataset to export. (pattern: <code>arn:([a-z\d-]+):personalize:.:.:.+</code>)
dataset_export_job_arnstringThe Amazon Resource Name (ARN) of the dataset export job. (pattern: <code>arn:([a-z\d-]+):personalize:.:.:.+</code>)
failure_reasonstringIf a dataset export job fails, provides the reason why.
ingestion_modestringThe data to export, based on how you imported the data. You can choose to export BULK data that you imported using a dataset import job, PUT data that you imported incrementally (using the console, PutEvents, PutUsers and PutItems operations), or ALL for both types. The default value is PUT. (BULK, PUT, ALL)
job_namestringThe name of the export job. (pattern: <code>^[a-zA-Z0-9][a-zA-Z0-9-_]*</code>)
job_outputobjectThe path to the Amazon S3 bucket where the job's output is stored. For example: s3:​//bucket-name/folder-name/
last_updated_date_timestring (date-time)The date and time (in Unix time) the status of the dataset export job was last updated.
role_arnstringThe Amazon Resource Name (ARN) of the IAM service role that has permissions to add data to your output Amazon S3 bucket. (pattern: <code>arn:([a-z\d-]+):personalize:.:.:.+</code>)
statusstringThe status of the dataset export job. A dataset export job can be in one of the following states: CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_dataset_export_jobselectregionDescribes the dataset export job created by CreateDatasetExportJob, including the export job status.
list_dataset_export_jobsselectregionReturns a list of dataset export jobs that use the given dataset. When a dataset is not specified, all the dataset export jobs associated with the account are listed. The response provides the properties for each dataset export job, including the Amazon Resource Name (ARN). For more information on dataset export jobs, see CreateDatasetExportJob. For more information on datasets, see CreateDataset.
create_dataset_export_jobinsertregion, jobName, datasetArn, roleArn, jobOutputCreates a job that exports data from your dataset to an Amazon S3 bucket. To allow Amazon Personalize to export the training data, you must specify an service-linked IAM role that gives Amazon Personalize PutObject permissions for your Amazon S3 bucket. For information, see Exporting a dataset in the Amazon Personalize developer guide. Status A dataset export job can be in one of the following states: CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED To get the status of the export job, call DescribeDatasetExportJob, and specify the Amazon Resource Name (ARN) of the dataset export job. The dataset export 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.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Describes the dataset export job created by CreateDatasetExportJob, including the export job status.

SELECT
creation_date_time,
dataset_arn,
dataset_export_job_arn,
failure_reason,
ingestion_mode,
job_name,
job_output,
last_updated_date_time,
role_arn,
status
FROM aws.personalize.dataset_export_jobs
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a job that exports data from your dataset to an Amazon S3 bucket. To allow Amazon Personalize to export the training data, you must specify an service-linked IAM role that gives Amazon Personalize PutObject permissions for your Amazon S3 bucket. For information, see Exporting a dataset in the Amazon Personalize developer guide. Status A dataset export job can be in one of the following states: CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED To get the status of the export job, call DescribeDatasetExportJob, and specify the Amazon Resource Name (ARN) of the dataset export job. The dataset export 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.

INSERT INTO aws.personalize.dataset_export_jobs (
jobName,
datasetArn,
ingestionMode,
roleArn,
jobOutput,
tags,
region
)
SELECT
'{{ jobName }}' /* required */,
'{{ datasetArn }}' /* required */,
'{{ ingestionMode }}',
'{{ roleArn }}' /* required */,
'{{ jobOutput }}' /* required */,
'{{ tags }}',
'{{ region }}'
RETURNING
dataset_export_job_arn
;