create_import_job
(**kwargs)¶Creates an import job for a data destination.
See also: AWS API Documentation
Request Syntax
response = client.create_import_job(
ImportDestination={
'SuppressionListDestination': {
'SuppressionListImportAction': 'DELETE'|'PUT'
},
'ContactListDestination': {
'ContactListName': 'string',
'ContactListImportAction': 'DELETE'|'PUT'
}
},
ImportDataSource={
'S3Url': 'string',
'DataFormat': 'CSV'|'JSON'
}
)
[REQUIRED]
The destination for 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:
[REQUIRED]
The data source for the import job.
An Amazon S3 URL in the format s3://<bucket_name> /<object> .
The data format of the import job's data source.
dict
Response Syntax
{
'JobId': 'string'
}
Response Structure
(dict) --
An HTTP 200 response if the request succeeds, or an error message if the request fails.
JobId (string) --
A string that represents the import job ID.
Exceptions
SESV2.Client.exceptions.BadRequestException
SESV2.Client.exceptions.LimitExceededException
SESV2.Client.exceptions.TooManyRequestsException