Skip to main content

export_jobs

Creates, updates, deletes, gets or lists an export_jobs resource.

Overview

Nameexport_jobs
TypeResource
Idaws.sesv2.export_jobs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
completed_timestampstring (date-time)The timestamp of when the export job was completed.
created_timestampstring (date-time)The timestamp of when the export job was created.
export_data_sourceobjectAn object that contains details about the data source of the export job. It can only contain one of MetricsDataSource or MessageInsightsDataSource object.
export_destinationobjectAn object that contains details about the destination of the export job.
export_source_typestringThe type of source of the export job. (METRICS_DATA, MESSAGE_INSIGHTS)
failure_infoobjectThe failure details about an export job.
job_idstringA string that represents a job ID.
job_statusstringThe status of the export job. (CREATED, PROCESSING, COMPLETED, FAILED, CANCELLED)
statisticsobjectThe statistics about the export job.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_export_jobselectjob_id, regionProvides information about an export job.
list_export_jobsselectregionLists all of the export jobs.
create_export_jobinsertregion, ExportDataSource, ExportDestinationCreates an export job for a data source and destination. You can execute this operation no more than once per second.

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 export job ID.
regionstringAWS region (default: us-east-1)

SELECT examples

Provides information about an export job.

SELECT
completed_timestamp,
created_timestamp,
export_data_source,
export_destination,
export_source_type,
failure_info,
job_id,
job_status,
statistics
FROM aws.sesv2.export_jobs
WHERE job_id = '{{ job_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an export job for a data source and destination. You can execute this operation no more than once per second.

INSERT INTO aws.sesv2.export_jobs (
ExportDataSource,
ExportDestination,
region
)
SELECT
'{{ ExportDataSource }}' /* required */,
'{{ ExportDestination }}' /* required */,
'{{ region }}'
RETURNING
job_id
;