Skip to main content

data_set_export_tasks

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

Overview

Namedata_set_export_tasks
TypeResource
Idaws.m2.data_set_export_tasks

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
kms_key_arnstringThe identifier of a customer managed key used for exported data set encryption.
statusstringThe status of the task. (Creating, Running, Completed, Failed)
status_reasonstringIf dataset export failed, the failure reason will show here.
summaryobjectA summary of the status of the task.
task_idstringThe task identifier. (pattern: <code>^\S{1,80}$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_data_set_export_taskselectapplication_id, task_id, regionGets the status of a data set import task initiated with the CreateDataSetExportTask operation.
create_data_set_export_taskinsertapplication_id, region, exportConfigStarts a data set export task for a specific application.

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
application_idstringThe unique identifier of the application for which you want to export data sets.
regionstringAWS region (default: us-east-1)
task_idstringThe task identifier returned by the CreateDataSetExportTask operation.

SELECT examples

Gets the status of a data set import task initiated with the CreateDataSetExportTask operation.

SELECT
kms_key_arn,
status,
status_reason,
summary,
task_id
FROM aws.m2.data_set_export_tasks
WHERE application_id = '{{ application_id }}' -- required
AND task_id = '{{ task_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Starts a data set export task for a specific application.

INSERT INTO aws.m2.data_set_export_tasks (
clientToken,
exportConfig,
kmsKeyId,
application_id,
region
)
SELECT
'{{ clientToken }}',
'{{ exportConfig }}' /* required */,
'{{ kmsKeyId }}',
'{{ application_id }}',
'{{ region }}'
RETURNING
task_id
;