Amazon Pinpoint
REST API Reference

Export Job

The Export Job resource represents a job that exports endpoint definitions to an Amazon Simple Storage Service (Amazon S3) bucket. An endpoint uniquely identifies a mobile device, email address, or phone number that can receive a message.

You can use the Export Job resource to retrieve information about the status and settings of a specific export job for an application. To create or update an export job for an application or to retrieve information about all the export jobs for an application, use the Export Jobs resource.

URI

/v1/apps/application-id/jobs/export/job-id

HTTP Methods

GET

Operation ID: GetExportJob

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

Path Parameters

Name Type Required Description
application-id String True

The unique identifier for the application.

job-id String True

The unique identifier for the job.

Header Parameters

Name Type Required Description
accept String False

Indicates which content types, expressed as MIME types, the client understands.

Responses

Status Code Response Model Description
200 ExportJobResponse

The request succeeded.

400 MessageBody

The request contains a syntax error (BadRequestException).

403 MessageBody

The request was denied because access to the specified resource is forbidden (ForbiddenException).

404 MessageBody

The request failed because the specified resource was not found (NotFoundException).

405 MessageBody

The request failed because the method is not allowed for the specified resource (MethodNotAllowedException).

429 MessageBody

The request failed because too many requests were sent during a certain amount of time (TooManyRequestsException).

500 MessageBody

The request failed due to an unknown internal server error, exception, or failure (InternalServerErrorException).

OPTIONS

Retrieves information about the communication requirements and options that are available for the Export Job resource.

Responses

Status Code Response Model Description
200 None

The request succeeded.

Schemas

Response Bodies

Example ExportJobResponse

{ "ApplicationId": "string", "Id": "string", "JobStatus": enum, "CompletedPieces": integer, "FailedPieces": integer, "TotalPieces": integer, "CreationDate": "string", "CompletionDate": "string", "Type": "string", "TotalFailures": integer, "TotalProcessed": integer, "Failures": [ "string" ], "Definition": { "SegmentId": "string", "SegmentVersion": integer, "S3UrlPrefix": "string", "RoleArn": "string" } }

Example MessageBody

{ "RequestID": "string", "Message": "string" }

Properties

ExportJobResource

Property Type Required Description
SegmentId

string

False

The identifier for the segment that the endpoint definitions were exported from. If this value isn't present, Amazon Pinpoint exported definitions for all the endpoints that are associated with the application.

SegmentVersion

integer

False

The version of the segment that the endpoint definitions were exported from.

S3UrlPrefix

string

True

The URL of the location in an Amazon Simple Storage Service (Amazon S3) bucket where the endpoint definitions were exported to. This location is typically a folder that contains multiple files. The URL should be in the following format: s3://bucket-name/folder-name/.

RoleArn

string

True

The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that authorized Amazon Pinpoint to access the Amazon S3 location where the endpoint definitions were exported to.

ExportJobResponse

Property Type Required Description
ApplicationId

string

True

The unique identifier for the application that's associated with the export job.

Id

string

True

The unique identifier for the export job.

JobStatus

string

Values: CREATED | INITIALIZING | PENDING_JOB | PROCESSING | COMPLETING | COMPLETED | FAILING | FAILED

True

The 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.

CompletedPieces

integer

False

The number of pieces that were processed successfully (completed) by the export job, as of the time of the request.

FailedPieces

integer

False

The number of pieces that weren't processed successfully (failed) by the export job, as of the time of the request.

TotalPieces

integer

False

The 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.

CreationDate

string

True

The date, in ISO 8601 format, when the export job was created.

CompletionDate

string

False

The date, in ISO 8601 format, when the export job was completed.

Type

string

True

The job type. This value is EXPORT for export jobs.

TotalFailures

integer

False

The 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.

TotalProcessed

integer

False

The total number of endpoint definitions that were processed by the export job.

Failures

Array of type string

False

An array of entries, one for each of the first 100 entries that weren't processed successfully (failed) by the export job, if any.

Definition

ExportJobResource

True

The resource settings that apply to the export job.

MessageBody

Property Type Required Description
RequestID

string

False

The unique identifier for the request or response.

Message

string

False

The message that's returned from the API.

See Also

For more information about using this API in one of the language-specific AWS SDKs and references, see the following:

GetExportJob