Skip to main content

export_jobs

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

Overview

Nameexport_jobs
TypeResource
Idaws.pinpoint.export_jobs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
application_idstringThe unique identifier for the application that's associated with the export job.
completed_piecesintegerThe number of pieces that were processed successfully (completed) by the export job, as of the time of the request.
completion_datestringThe date, in ISO 8601 format, when the export job was completed.
creation_datestringThe date, in ISO 8601 format, when the export job was created.
definitionobjectThe resource settings that apply to the export job.
failed_piecesintegerThe number of pieces that weren't processed successfully (failed) by the export job, as of the time of the request.
failuresarrayAn array of entries, one for each of the first 100 entries that weren't processed successfully (failed) by the export job, if any.
idstringThe unique identifier for the export job.
job_statusstringThe status of the export job. The job status is FAILED if Amazon Pinpoint wasn't able to process one or more pieces in the job. (CREATED, PREPARING_FOR_INITIALIZATION, INITIALIZING, PROCESSING, PENDING_JOB, COMPLETING, COMPLETED, FAILING, FAILED)
total_failuresintegerThe total number of endpoint definitions that weren't processed successfully (failed) by the export job, typically because an error, such as a syntax error, occurred.
total_piecesintegerThe total number of pieces that must be processed to complete the export job. Each piece consists of an approximately equal portion of the endpoint definitions that are part of the export job.
total_processedintegerThe total number of endpoint definitions that were processed by the export job.
typestringThe job type. This value is EXPORT for export jobs.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_export_jobselectapplication-id, job-id, regionRetrieves information about the status and settings of a specific export job for an application.
get_export_jobsselectapplication-id, regionpage-size, tokenRetrieves information about the status and settings of all the export jobs for an application.
create_export_jobinsertapplication-id, region, ExportJobRequestCreates an export job for an 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 for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
job-idstringThe unique identifier for the job.
regionstringAWS region (default: us-east-1)
page-sizestringThe maximum number of items to include in each page of a paginated response. This parameter is not supported for application, campaign, and journey metrics.
tokenstringThe NextToken string that specifies which page of results to return in a paginated response.

SELECT examples

Retrieves information about the status and settings of a specific export job for an application.

SELECT
application_id,
completed_pieces,
completion_date,
creation_date,
definition,
failed_pieces,
failures,
id,
job_status,
total_failures,
total_pieces,
total_processed,
type
FROM aws.pinpoint.export_jobs
WHERE `application-id` = '{{ application-id }}' -- required
AND `job-id` = '{{ job-id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an export job for an application.

INSERT INTO aws.pinpoint.export_jobs (
ExportJobRequest,
`application-id`,
region
)
SELECT
'{{ ExportJobRequest }}' /* required */,
'{{ application-id }}',
'{{ region }}'
RETURNING
export_job_response
;