AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Creates an export job for a data source and destination.
You can execute this operation no more than once per second.
For .NET Core this operation is only available in asynchronous form. Please refer to CreateExportJobAsync.
Namespace: Amazon.SimpleEmailV2
Assembly: AWSSDK.SimpleEmailV2.dll
Version: 3.x.y.z
public abstract CreateExportJobResponse CreateExportJob( CreateExportJobRequest request )
Container for the necessary parameters to execute the CreateExportJob service method.
Exception | Condition |
---|---|
BadRequestException | The input you provided is invalid. |
LimitExceededException | There are too many instances of the specified resource type. |
NotFoundException | The resource you attempted to access doesn't exist. |
TooManyRequestsException | Too many requests have been made to the operation. |
Creates a new export job for Metrics data
var client = new AmazonSimpleEmailServiceV2Client(); var response = client.CreateExportJob(new CreateExportJobRequest { ExportDataSource = new ExportDataSource { MetricsDataSource = new MetricsDataSource { Dimensions = new Dictionary<string, List<string>> { { "ISP", new List<string> { "*" } } }, EndDate = new DateTime(2023, 7, 2, 12, 0, 0, DateTimeKind.Utc), Metrics = new List<ExportMetric> { new ExportMetric { Aggregation = "VOLUME", Name = "SEND" }, new ExportMetric { Aggregation = "VOLUME", Name = "COMPLAINT" }, new ExportMetric { Aggregation = "RATE", Name = "COMPLAINT" } }, Namespace = "VDM", StartDate = new DateTime(2023, 7, 1, 12, 0, 0, DateTimeKind.Utc) } }, ExportDestination = new ExportDestination { DataFormat = "CSV" } }); string jobId = response.JobId;
Creates a new export job for Message Insights data
var client = new AmazonSimpleEmailServiceV2Client(); var response = client.CreateExportJob(new CreateExportJobRequest { ExportDataSource = new ExportDataSource { MessageInsightsDataSource = new MessageInsightsDataSource { EndDate = new DateTime(2023, 7, 2, 12, 0, 0, DateTimeKind.Utc), Exclude = new MessageInsightsFilters { FromEmailAddress = new List<string> { "hello@example.com" } }, Include = new MessageInsightsFilters { Subject = new List<string> { "Hello" } }, StartDate = new DateTime(2023, 7, 1, 12, 0, 0, DateTimeKind.Utc) } }, ExportDestination = new ExportDestination { DataFormat = "CSV" } }); string jobId = response.JobId;
.NET Framework:
Supported in: 4.5 and newer, 3.5