AWS SDK Version 3 for .NET
API Reference

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.

An HTTP 200 response if the request succeeds, or an error message if the request fails.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceResponse
    Amazon.SimpleEmailV2.Model.CreateExportJobResponse

Namespace: Amazon.SimpleEmailV2.Model
Assembly: AWSSDK.SimpleEmailV2.dll
Version: 3.x.y.z

Syntax

C#
public class CreateExportJobResponse : AmazonWebServiceResponse

The CreateExportJobResponse type exposes the following members

Constructors

NameDescription
Public Method CreateExportJobResponse()

Properties

NameTypeDescription
Public Property ContentLength System.Int64 Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property HttpStatusCode System.Net.HttpStatusCode Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property JobId System.String

Gets and sets the property JobId.

A string that represents the export job ID.

Public Property ResponseMetadata Amazon.Runtime.ResponseMetadata Inherited from Amazon.Runtime.AmazonWebServiceResponse.

Examples

Creates a new export job for Metrics data

Create Metrics export job


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

Create Message Insights export job


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;

            

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer, 3.5