

# GetExportJob
<a name="API_GetExportJob"></a>

Provides information about an export job.

## Request Syntax
<a name="API_GetExportJob_RequestSyntax"></a>

```
GET /v2/email/export-jobs/JobId HTTP/1.1
```

## URI Request Parameters
<a name="API_GetExportJob_RequestParameters"></a>

The request uses the following URI parameters.

 ** [JobId](#API_GetExportJob_RequestSyntax) **   <a name="SES-GetExportJob-request-uri-JobId"></a>
The export job ID.  
Length Constraints: Minimum length of 1.  
Required: Yes

## Request Body
<a name="API_GetExportJob_RequestBody"></a>

The request does not have a request body.

## Response Syntax
<a name="API_GetExportJob_ResponseSyntax"></a>

```
HTTP/1.1 200
Content-type: application/json

{
   "CompletedTimestamp": number,
   "CreatedTimestamp": number,
   "ExportDataSource": { 
      "MessageInsightsDataSource": { 
         "EndDate": number,
         "Exclude": { 
            "Destination": [ "string" ],
            "FromEmailAddress": [ "string" ],
            "Isp": [ "string" ],
            "LastDeliveryEvent": [ "string" ],
            "LastEngagementEvent": [ "string" ],
            "Subject": [ "string" ]
         },
         "Include": { 
            "Destination": [ "string" ],
            "FromEmailAddress": [ "string" ],
            "Isp": [ "string" ],
            "LastDeliveryEvent": [ "string" ],
            "LastEngagementEvent": [ "string" ],
            "Subject": [ "string" ]
         },
         "MaxResults": number,
         "StartDate": number
      },
      "MetricsDataSource": { 
         "Dimensions": { 
            "string" : [ "string" ]
         },
         "EndDate": number,
         "Metrics": [ 
            { 
               "Aggregation": "string",
               "Name": "string"
            }
         ],
         "Namespace": "string",
         "StartDate": number
      }
   },
   "ExportDestination": { 
      "DataFormat": "string",
      "S3Url": "string"
   },
   "ExportSourceType": "string",
   "FailureInfo": { 
      "ErrorMessage": "string",
      "FailedRecordsS3Url": "string"
   },
   "JobId": "string",
   "JobStatus": "string",
   "Statistics": { 
      "ExportedRecordsCount": number,
      "ProcessedRecordsCount": number
   }
}
```

## Response Elements
<a name="API_GetExportJob_ResponseElements"></a>

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

 ** [CompletedTimestamp](#API_GetExportJob_ResponseSyntax) **   <a name="SES-GetExportJob-response-CompletedTimestamp"></a>
The timestamp of when the export job was completed.  
Type: Timestamp

 ** [CreatedTimestamp](#API_GetExportJob_ResponseSyntax) **   <a name="SES-GetExportJob-response-CreatedTimestamp"></a>
The timestamp of when the export job was created.  
Type: Timestamp

 ** [ExportDataSource](#API_GetExportJob_ResponseSyntax) **   <a name="SES-GetExportJob-response-ExportDataSource"></a>
The data source of the export job.  
Type: [ExportDataSource](API_ExportDataSource.md) object

 ** [ExportDestination](#API_GetExportJob_ResponseSyntax) **   <a name="SES-GetExportJob-response-ExportDestination"></a>
The destination of the export job.  
Type: [ExportDestination](API_ExportDestination.md) object

 ** [ExportSourceType](#API_GetExportJob_ResponseSyntax) **   <a name="SES-GetExportJob-response-ExportSourceType"></a>
The type of source of the export job.  
Type: String  
Valid Values: `METRICS_DATA | MESSAGE_INSIGHTS` 

 ** [FailureInfo](#API_GetExportJob_ResponseSyntax) **   <a name="SES-GetExportJob-response-FailureInfo"></a>
The failure details about an export job.  
Type: [FailureInfo](API_FailureInfo.md) object

 ** [JobId](#API_GetExportJob_ResponseSyntax) **   <a name="SES-GetExportJob-response-JobId"></a>
The export job ID.  
Type: String  
Length Constraints: Minimum length of 1.

 ** [JobStatus](#API_GetExportJob_ResponseSyntax) **   <a name="SES-GetExportJob-response-JobStatus"></a>
The status of the export job.  
Type: String  
Valid Values: `CREATED | PROCESSING | COMPLETED | FAILED | CANCELLED` 

 ** [Statistics](#API_GetExportJob_ResponseSyntax) **   <a name="SES-GetExportJob-response-Statistics"></a>
The statistics about the export job.  
Type: [ExportStatistics](API_ExportStatistics.md) object

## Errors
<a name="API_GetExportJob_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** BadRequestException **   
The input you provided is invalid.  
HTTP Status Code: 400

 ** NotFoundException **   
The resource you attempted to access doesn't exist.  
HTTP Status Code: 404

 ** TooManyRequestsException **   
Too many requests have been made to the operation.  
HTTP Status Code: 429

## See Also
<a name="API_GetExportJob_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/sesv2-2019-09-27/GetExportJob) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/sesv2-2019-09-27/GetExportJob) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/sesv2-2019-09-27/GetExportJob) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/sesv2-2019-09-27/GetExportJob) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/sesv2-2019-09-27/GetExportJob) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/sesv2-2019-09-27/GetExportJob) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/sesv2-2019-09-27/GetExportJob) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/sesv2-2019-09-27/GetExportJob) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/sesv2-2019-09-27/GetExportJob) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/sesv2-2019-09-27/GetExportJob) 