create_dataset_export_job
¶
create_dataset_export_job(
job_name: Name,
dataset_arn: Arn,
role_arn: RoleArn,
job_output: DatasetExportJobOutput,
*,
config_overrides: Optional[PersonalizeClientConfig] = None,
ingestion_mode: Optional[IngestionMode] = None,
tags: Optional[Tags] = None,
) -> CreateDatasetExportJobResponse
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.
Parameters:
-
job_name(Name) –The name for the dataset export job.
-
dataset_arn(Arn) –The Amazon Resource Name (ARN) of the dataset that contains the data to export.
-
ingestion_mode(Optional[IngestionMode], default:None) –The data to export, based on how you imported the data. You can choose to export only
BULKdata that you imported using a dataset import job, onlyPUTdata that you imported incrementally (using the console, PutEvents, PutUsers and PutItems operations), orALLfor both types. The default value isPUT. -
role_arn(RoleArn) –The Amazon Resource Name (ARN) of the IAM service role that has permissions to add data to your output Amazon S3 bucket.
-
job_output(DatasetExportJobOutput) –The path to the Amazon S3 bucket where the job's output is stored.
-
tags(Optional[Tags], default:None) –A list of tags to apply to the dataset export job.
Raises:
-
InvalidInputException–Provide a valid value for the field or parameter.
-
LimitExceededException–The limit on the number of requests per second has been exceeded.
-
ResourceAlreadyExistsException–The specified resource already exists.
-
ResourceInUseException–The specified resource is in use.
-
ResourceNotFoundException–Could not find the specified resource.
-
TooManyTagsException–You have exceeded the maximum number of tags you can apply to this resource.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_personalize/_services/personalize.py
747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 | |