Skip to main content

upload_jobs

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

Overview

Nameupload_jobs
TypeResource
Idaws.customer_profiles.upload_jobs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
completed_atstring (date-time)The timestamp when the upload job was completed.
created_atstring (date-time)The timestamp when the upload job was created.
data_expiryintegerThe expiry duration for the profiles ingested with the upload job.
display_namestringThe unique name of the upload job. Could be a file name to identify the upload job.
fieldsobjectThe mapping between CSV Columns and Profile Object attributes for the upload job.
job_idstringThe unique identifier of the upload job. (pattern: <code>[a-f0-9]{32}</code>)
results_summaryobjectThe summary of results for the upload job, including the number of updated, created, and failed records.
statusstringThe status describing the status for the upload job. The following are Valid Values: CREATED: The upload job has been created, but has not started processing yet. IN_PROGRESS: The upload job is currently in progress, ingesting and processing the profile data. PARTIALLY_SUCCEEDED: The upload job has successfully completed the ingestion and processing of all profile data. SUCCEEDED: The upload job has successfully completed the ingestion and processing of all profile data. FAILED: The upload job has failed to complete. STOPPED: The upload job has been manually stopped or terminated before completion. (CREATED, IN_PROGRESS, PARTIALLY_SUCCEEDED, SUCCEEDED, FAILED, STOPPED)
status_reasonstringThe reason for the current status of the upload job. Possible reasons: VALIDATION_FAILURE: The upload job has encountered an error or issue and was unable to complete the profile data ingestion. INTERNAL_FAILURE: Failure caused from service side (VALIDATION_FAILURE, INTERNAL_FAILURE)
unique_keystringThe unique key columns used for de-duping the keys in the upload job.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_upload_jobselectdomain_name, job_id, regionThis API retrieves the details of a specific upload job.
list_upload_jobsselectdomain_name, regionmax-results, next-tokenThis API retrieves a list of upload jobs for the specified domain.
create_upload_jobinsertdomain_name, region, DisplayName, UniqueKeyCreates an Upload job to ingest data for segment imports. The metadata is created for the job with the provided field mapping and unique key.

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
domain_namestringThe unique name of the domain. Domain should be exists for the upload job to be created.
job_idstringThe unique identifier of the upload job to retrieve.
regionstringAWS region (default: us-east-1)
max-resultsintegerThe maximum number of upload jobs to return per page.
next-tokenstringThe pagination token from the previous call to retrieve the next page of results.

SELECT examples

This API retrieves the details of a specific upload job.

SELECT
completed_at,
created_at,
data_expiry,
display_name,
fields,
job_id,
results_summary,
status,
status_reason,
unique_key
FROM aws.customer_profiles.upload_jobs
WHERE domain_name = '{{ domain_name }}' -- required
AND job_id = '{{ job_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an Upload job to ingest data for segment imports. The metadata is created for the job with the provided field mapping and unique key.

INSERT INTO aws.customer_profiles.upload_jobs (
DisplayName,
Fields,
UniqueKey,
DataExpiry,
domain_name,
region
)
SELECT
'{{ DisplayName }}' /* required */,
'{{ Fields }}',
'{{ UniqueKey }}' /* required */,
{{ DataExpiry }},
'{{ domain_name }}',
'{{ region }}'
RETURNING
job_id
;