Skip to main content

dataset_export_jobs

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

Overview

Namedataset_export_jobs
TypeResource
Idaws.iotsitewise.dataset_export_jobs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
completed_atstring (date-time)The timestamp when the job completed, or null if the job is still running.
destination_s3_uristring<p>An S3 URI identifying an object location, in the form s3:​//bucket/key.</p> (pattern: <code>s3:​//[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]/.+</code>)
error_report_locationobject<p>Contains the location where error reports will be written on failure.</p>
inputobject<p>Input source for processing. Specify exactly one option.</p>
job_idstring<p>The unique identifier for a dataset export job.</p> (pattern: <code>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}</code>)
started_atstring (date-time)The timestamp when the job started processing.
statusstringThe current status of the dataset export job. (SUBMITTED, RUNNING, COMPLETED, COMPLETED_WITH_ERRORS, FAILED)
workspace_namestringThe name of the workspace that contains the dataset export job. (pattern: <code>^[a-zA-Z0-9_-]+$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_dataset_export_jobselectworkspace_name, job_id, regionRetrieves information about a dataset export job.
list_dataset_export_jobsselectworkspace_name, regionfilter, maxResults, nextTokenRetrieves a paginated list of dataset export jobs for a workspace.
create_dataset_export_jobinsertworkspace_name, region, destinationS3Uri, input, errorReportLocationStarts an asynchronous job that exports dataset and time-series data from a workspace to Amazon S3. The operation returns a jobId immediately; poll DescribeDatasetExportJob to track progress and ListDatasetExportJobs to enumerate a workspace's jobs.

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
job_idstringThe unique identifier for the dataset export job.
regionstringAWS region (default: us-east-1)
workspace_namestringThe name of the workspace in which to create the dataset export job.
filterstringThe optional filter that returns only jobs matching the given filter value. Defaults to ALL.
maxResultsintegerThe maximum number of results to return for each paginated request.
nextTokenstringThe token to be used for the next set of paginated results.

SELECT examples

Retrieves information about a dataset export job.

SELECT
completed_at,
destination_s3_uri,
error_report_location,
input,
job_id,
started_at,
status,
workspace_name
FROM aws.iotsitewise.dataset_export_jobs
WHERE workspace_name = '{{ workspace_name }}' -- required
AND job_id = '{{ job_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Starts an asynchronous job that exports dataset and time-series data from a workspace to Amazon S3. The operation returns a jobId immediately; poll DescribeDatasetExportJob to track progress and ListDatasetExportJobs to enumerate a workspace's jobs.

INSERT INTO aws.iotsitewise.dataset_export_jobs (
clientToken,
destinationS3Uri,
input,
errorReportLocation,
workspace_name,
region
)
SELECT
'{{ clientToken }}',
'{{ destinationS3Uri }}' /* required */,
'{{ input }}' /* required */,
'{{ errorReportLocation }}' /* required */,
'{{ workspace_name }}',
'{{ region }}'
RETURNING
job_id,
workspace_name
;