Skip to main content

import_jobs

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

Overview

Nameimport_jobs
TypeResource
Idaws.pinpoint.import_jobs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
application_idstringThe unique identifier for the application that's associated with the import job.
completed_piecesintegerThe number of pieces that were processed successfully (completed) by the import job, as of the time of the request.
completion_datestringThe date, in ISO 8601 format, when the import job was completed.
creation_datestringThe date, in ISO 8601 format, when the import job was created.
definitionobjectThe resource settings that apply to the import job.
failed_piecesintegerThe number of pieces that weren't processed successfully (failed) by the import 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 import job, if any.
idstringThe unique identifier for the import job.
job_statusstringThe status of the import 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 import job, typically because an error, such as a syntax error, occurred.
total_piecesintegerThe total number of pieces that must be processed to complete the import job. Each piece consists of an approximately equal portion of the endpoint definitions that are part of the import job.
total_processedintegerThe total number of endpoint definitions that were processed by the import job.
typestringThe job type. This value is IMPORT for import jobs.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_import_jobselectapplication-id, job-id, regionRetrieves information about the status and settings of a specific import job for an application.
get_import_jobsselectapplication-id, regionpage-size, tokenRetrieves information about the status and settings of all the import jobs for an application.
create_import_jobinsertapplication-id, region, ImportJobRequestCreates an import 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 import 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.import_jobs
WHERE `application-id` = '{{ application-id }}' -- required
AND `job-id` = '{{ job-id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an import job for an application.

INSERT INTO aws.pinpoint.import_jobs (
ImportJobRequest,
`application-id`,
region
)
SELECT
'{{ ImportJobRequest }}' /* required */,
'{{ application-id }}',
'{{ region }}'
RETURNING
import_job_response
;