get_import_job
(**kwargs)¶Provides information about an import job.
See also: AWS API Documentation
Request Syntax
response = client.get_import_job(
JobId='string'
)
[REQUIRED]
The ID of the import job.
{
'JobId': 'string',
'ImportDestination': {
'SuppressionListDestination': {
'SuppressionListImportAction': 'DELETE'|'PUT'
},
'ContactListDestination': {
'ContactListName': 'string',
'ContactListImportAction': 'DELETE'|'PUT'
}
},
'ImportDataSource': {
'S3Url': 'string',
'DataFormat': 'CSV'|'JSON'
},
'FailureInfo': {
'FailedRecordsS3Url': 'string',
'ErrorMessage': 'string'
},
'JobStatus': 'CREATED'|'PROCESSING'|'COMPLETED'|'FAILED',
'CreatedTimestamp': datetime(2015, 1, 1),
'CompletedTimestamp': datetime(2015, 1, 1),
'ProcessedRecordsCount': 123,
'FailedRecordsCount': 123
}
Response Structure
An HTTP 200 response if the request succeeds, or an error message if the request fails.
A string that represents the import job ID.
The destination of the import job.
An object that contains the action of the import job towards suppression list.
The type of action to perform on the address. The following are possible values:
An object that contains the action of the import job towards a contact list.
The name of the contact list.
>The type of action to perform on the addresses. The following are the possible values:
The data source of the import job.
An Amazon S3 URL in the format s3://<bucket_name> /<object> .
The data format of the import job's data source.
The failure details about an import job.
An Amazon S3 presigned URL that contains all the failed records and related information.
A message about why the import job failed.
The status of the import job.
The time stamp of when the import job was created.
The time stamp of when the import job was completed.
The current number of records processed.
The number of records that failed processing because of invalid input or other reasons.
Exceptions
SESV2.Client.exceptions.BadRequestException
SESV2.Client.exceptions.NotFoundException
SESV2.Client.exceptions.TooManyRequestsException