We announced the upcoming end-of-support for AWS SDK for JavaScript v2.
We recommend that you migrate to AWS SDK for JavaScript v3. For dates, additional details, and information on how to migrate, please refer to the linked announcement.

Class: AWS.SESV2

Inherits:
AWS.Service show all
Identifier:
sesv2
API Version:
2019-09-27
Defined in:
(unknown)

Overview

Constructs a service interface object. Each API operation is exposed as a function on service.

Service Description

Amazon SES is an Amazon Web Services service that you can use to send email messages to your customers.

If you're new to Amazon SES API v2, you might find it helpful to review the Amazon Simple Email Service Developer Guide. The Amazon SES Developer Guide provides information and code samples that demonstrate how to use Amazon SES API v2 features programmatically.

Sending a Request Using SESV2

var sesv2 = new AWS.SESV2();
sesv2.getBlacklistReports(params, function (err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Locking the API Version

In order to ensure that the SESV2 object uses this specific API, you can construct the object by passing the apiVersion option to the constructor:

var sesv2 = new AWS.SESV2({apiVersion: '2019-09-27'});

You can also set the API version globally in AWS.config.apiVersions using the sesv2 service identifier:

AWS.config.apiVersions = {
  sesv2: '2019-09-27',
  // other service API versions
};

var sesv2 = new AWS.SESV2();

Version:

  • 2019-09-27

Constructor Summary collapse

Property Summary collapse

Properties inherited from AWS.Service

apiVersions

Method Summary collapse

Methods inherited from AWS.Service

makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService

Constructor Details

new AWS.SESV2(options = {}) ⇒ Object

Constructs a service object. This object has one method for each API operation.

Examples:

Constructing a SESV2 object

var sesv2 = new AWS.SESV2({apiVersion: '2019-09-27'});

Options Hash (options):

  • params (map)

    An optional map of parameters to bind to every request sent by this service object. For more information on bound parameters, see "Working with Services" in the Getting Started Guide.

  • endpoint (String|AWS.Endpoint)

    The endpoint URI to send requests to. The default endpoint is built from the configured region. The endpoint should be a string like 'https://{service}.{region}.amazonaws.com' or an Endpoint object.

  • accessKeyId (String)

    your AWS access key ID.

  • secretAccessKey (String)

    your AWS secret access key.

  • sessionToken (AWS.Credentials)

    the optional AWS session token to sign requests with.

  • credentials (AWS.Credentials)

    the AWS credentials to sign requests with. You can either specify this object, or specify the accessKeyId and secretAccessKey options directly.

  • credentialProvider (AWS.CredentialProviderChain)

    the provider chain used to resolve credentials if no static credentials property is set.

  • region (String)

    the region to send service requests to. See AWS.SESV2.region for more information.

  • maxRetries (Integer)

    the maximum amount of retries to attempt with a request. See AWS.SESV2.maxRetries for more information.

  • maxRedirects (Integer)

    the maximum amount of redirects to follow with a request. See AWS.SESV2.maxRedirects for more information.

  • sslEnabled (Boolean)

    whether to enable SSL for requests.

  • paramValidation (Boolean|map)

    whether input parameters should be validated against the operation description before sending the request. Defaults to true. Pass a map to enable any of the following specific validation features:

    • min [Boolean] — Validates that a value meets the min constraint. This is enabled by default when paramValidation is set to true.
    • max [Boolean] — Validates that a value meets the max constraint.
    • pattern [Boolean] — Validates that a string value matches a regular expression.
    • enum [Boolean] — Validates that a string value matches one of the allowable enum values.
  • computeChecksums (Boolean)

    whether to compute checksums for payload bodies when the service accepts it (currently supported in S3 only)

  • convertResponseTypes (Boolean)

    whether types are converted when parsing response data. Currently only supported for JSON based services. Turning this off may improve performance on large response payloads. Defaults to true.

  • correctClockSkew (Boolean)

    whether to apply a clock skew correction and retry requests that fail because of an skewed client clock. Defaults to false.

  • s3ForcePathStyle (Boolean)

    whether to force path style URLs for S3 objects.

  • s3BucketEndpoint (Boolean)

    whether the provided endpoint addresses an individual bucket (false if it addresses the root API endpoint). Note that setting this configuration option requires an endpoint to be provided explicitly to the service constructor.

  • s3DisableBodySigning (Boolean)

    whether S3 body signing should be disabled when using signature version v4. Body signing can only be disabled when using https. Defaults to true.

  • s3UsEast1RegionalEndpoint ('legacy'|'regional')

    when region is set to 'us-east-1', whether to send s3 request to global endpoints or 'us-east-1' regional endpoints. This config is only applicable to S3 client. Defaults to legacy

  • s3UseArnRegion (Boolean)

    whether to override the request region with the region inferred from requested resource's ARN. Only available for S3 buckets Defaults to true

  • retryDelayOptions (map)

    A set of options to configure the retry delay on retryable errors. Currently supported options are:

    • base [Integer] — The base number of milliseconds to use in the exponential backoff for operation retries. Defaults to 100 ms for all services except DynamoDB, where it defaults to 50ms.
    • customBackoff [function] — A custom function that accepts a retry count and error and returns the amount of time to delay in milliseconds. If the result is a non-zero negative value, no further retry attempts will be made. The base option will be ignored if this option is supplied. The function is only called for retryable errors.
  • httpOptions (map)

    A set of options to pass to the low-level HTTP request. Currently supported options are:

    • proxy [String] — the URL to proxy requests through
    • agent [http.Agent, https.Agent] — the Agent object to perform HTTP requests with. Used for connection pooling. Defaults to the global agent (http.globalAgent) for non-SSL connections. Note that for SSL connections, a special Agent object is used in order to enable peer certificate verification. This feature is only available in the Node.js environment.
    • connectTimeout [Integer] — Sets the socket to timeout after failing to establish a connection with the server after connectTimeout milliseconds. This timeout has no effect once a socket connection has been established.
    • timeout [Integer] — Sets the socket to timeout after timeout milliseconds of inactivity on the socket. Defaults to two minutes (120000).
    • xhrAsync [Boolean] — Whether the SDK will send asynchronous HTTP requests. Used in the browser environment only. Set to false to send requests synchronously. Defaults to true (async on).
    • xhrWithCredentials [Boolean] — Sets the "withCredentials" property of an XMLHttpRequest object. Used in the browser environment only. Defaults to false.
  • apiVersion (String, Date)

    a String in YYYY-MM-DD format (or a date) that represents the latest possible API version that can be used in all services (unless overridden by apiVersions). Specify 'latest' to use the latest possible version.

  • apiVersions (map<String, String|Date>)

    a map of service identifiers (the lowercase service class name) with the API version to use when instantiating a service. Specify 'latest' for each individual that can use the latest available version.

  • logger (#write, #log)

    an object that responds to .write() (like a stream) or .log() (like the console object) in order to log information about requests

  • systemClockOffset (Number)

    an offset value in milliseconds to apply to all signing times. Use this to compensate for clock skew when your system may be out of sync with the service time. Note that this configuration option can only be applied to the global AWS.config object and cannot be overridden in service-specific configuration. Defaults to 0 milliseconds.

  • signatureVersion (String)

    the signature version to sign requests with (overriding the API configuration). Possible values are: 'v2', 'v3', 'v4'.

  • signatureCache (Boolean)

    whether the signature to sign requests with (overriding the API configuration) is cached. Only applies to the signature version 'v4'. Defaults to true.

  • dynamoDbCrc32 (Boolean)

    whether to validate the CRC32 checksum of HTTP response bodies returned by DynamoDB. Default: true.

  • useAccelerateEndpoint (Boolean)

    Whether to use the S3 Transfer Acceleration endpoint with the S3 service. Default: false.

  • clientSideMonitoring (Boolean)

    whether to collect and publish this client's performance metrics of all its API requests.

  • endpointDiscoveryEnabled (Boolean|undefined)

    whether to call operations with endpoints given by service dynamically. Setting this

  • endpointCacheSize (Number)

    the size of the global cache storing endpoints from endpoint discovery operations. Once endpoint cache is created, updating this setting cannot change existing cache size. Defaults to 1000

  • hostPrefixEnabled (Boolean)

    whether to marshal request parameters to the prefix of hostname. Defaults to true.

  • stsRegionalEndpoints ('legacy'|'regional')

    whether to send sts request to global endpoints or regional endpoints. Defaults to 'legacy'.

  • useFipsEndpoint (Boolean)

    Enables FIPS compatible endpoints. Defaults to false.

  • useDualstackEndpoint (Boolean)

    Enables IPv6 dualstack endpoint. Defaults to false.

Property Details

endpointAWS.Endpoint (readwrite)

Returns an Endpoint object representing the endpoint URL for service requests.

Returns:

  • (AWS.Endpoint)

    an Endpoint object representing the endpoint URL for service requests.

Method Details

batchGetMetricData(params = {}, callback) ⇒ AWS.Request

Retrieves batches of metric data collected based on your sending activity.

You can execute this operation no more than 16 times per second, and with at most 160 queries from the batches per second (cumulative).

Service Reference:

Examples:

Calling the batchGetMetricData operation

var params = {
  Queries: [ /* required */
    {
      EndDate: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, /* required */
      Id: 'STRING_VALUE', /* required */
      Metric: SEND | COMPLAINT | PERMANENT_BOUNCE | TRANSIENT_BOUNCE | OPEN | CLICK | DELIVERY | DELIVERY_OPEN | DELIVERY_CLICK | DELIVERY_COMPLAINT, /* required */
      Namespace: VDM, /* required */
      StartDate: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, /* required */
      Dimensions: {
        '<MetricDimensionName>': 'STRING_VALUE',
        /* '<MetricDimensionName>': ... */
      }
    },
    /* more items */
  ]
};
sesv2.batchGetMetricData(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Queries — (Array<map>)

      A list of queries for metrics to be retrieved.

      • Idrequired — (String)

        The query identifier.

      • Namespacerequired — (String)

        The query namespace - e.g. VDM

        Possible values include:
        • "VDM"
      • Metricrequired — (String)

        The queried metric. This can be one of the following:

        • SEND – Emails sent eligible for tracking in the VDM dashboard. This excludes emails sent to the mailbox simulator and emails addressed to more than one recipient.

        • COMPLAINT – Complaints received for your account. This excludes complaints from the mailbox simulator, those originating from your account-level suppression list (if enabled), and those for emails addressed to more than one recipient

        • PERMANENT_BOUNCE – Permanent bounces - i.e. feedback received for emails sent to non-existent mailboxes. Excludes bounces from the mailbox simulator, those originating from your account-level suppression list (if enabled), and those for emails addressed to more than one recipient.

        • TRANSIENT_BOUNCE – Transient bounces - i.e. feedback received for delivery failures excluding issues with non-existent mailboxes. Excludes bounces from the mailbox simulator, and those for emails addressed to more than one recipient.

        • OPEN – Unique open events for emails including open trackers. Excludes opens for emails addressed to more than one recipient.

        • CLICK – Unique click events for emails including wrapped links. Excludes clicks for emails addressed to more than one recipient.

        • DELIVERY – Successful deliveries for email sending attempts. Excludes deliveries to the mailbox simulator and for emails addressed to more than one recipient.

        • DELIVERY_OPEN – Successful deliveries for email sending attempts. Excludes deliveries to the mailbox simulator, for emails addressed to more than one recipient, and emails without open trackers.

        • DELIVERY_CLICK – Successful deliveries for email sending attempts. Excludes deliveries to the mailbox simulator, for emails addressed to more than one recipient, and emails without click trackers.

        • DELIVERY_COMPLAINT – Successful deliveries for email sending attempts. Excludes deliveries to the mailbox simulator, for emails addressed to more than one recipient, and emails addressed to recipients hosted by ISPs with which Amazon SES does not have a feedback loop agreement.

        Possible values include:
        • "SEND"
        • "COMPLAINT"
        • "PERMANENT_BOUNCE"
        • "TRANSIENT_BOUNCE"
        • "OPEN"
        • "CLICK"
        • "DELIVERY"
        • "DELIVERY_OPEN"
        • "DELIVERY_CLICK"
        • "DELIVERY_COMPLAINT"
      • Dimensions — (map<String>)

        An object that contains mapping between MetricDimensionName and MetricDimensionValue to filter metrics by.

      • StartDaterequired — (Date)

        Represents the start date for the query interval.

      • EndDaterequired — (Date)

        Represents the end date for the query interval.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Results — (Array<map>)

        A list of successfully retrieved MetricDataResult.

        • Id — (String)

          The query identifier.

        • Timestamps — (Array<Date>)

          A list of timestamps for the metric data results.

        • Values — (Array<Integer>)

          A list of values (cumulative / sum) for the metric data results.

      • Errors — (Array<map>)

        A list of MetricDataError encountered while processing your metric data batch request.

        • Id — (String)

          The query identifier.

        • Code — (String)

          The query error code. Can be one of:

          • INTERNAL_FAILURE – Amazon SES has failed to process one of the queries.

          • ACCESS_DENIED – You have insufficient access to retrieve metrics based on the given query.

          Possible values include:
          • "INTERNAL_FAILURE"
          • "ACCESS_DENIED"
        • Message — (String)

          The error message associated with the current query error.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

cancelExportJob(params = {}, callback) ⇒ AWS.Request

Cancels an export job.

Service Reference:

Examples:

Cancel export job


/* Cancels the export job with ID ef28cf62-9d8e-4b60-9283-b09816c99a99 */

 var params = {
  JobId: "ef28cf62-9d8e-4b60-9283-b09816c99a99"
 };
 sesv2.cancelExportJob(params, function(err, data) {
   if (err) console.log(err, err.stack); // an error occurred
   else     console.log(data);           // successful response
   /*
   data = {
   }
   */
 });

Calling the cancelExportJob operation

var params = {
  JobId: 'STRING_VALUE' /* required */
};
sesv2.cancelExportJob(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • JobId — (String)

      The export job ID.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createConfigurationSet(params = {}, callback) ⇒ AWS.Request

Create a configuration set. Configuration sets are groups of rules that you can apply to the emails that you send. You apply a configuration set to an email by specifying the name of the configuration set when you call the Amazon SES API v2. When you apply a configuration set to an email, all of the rules in that configuration set are applied to the email.

Service Reference:

Examples:

Calling the createConfigurationSet operation

var params = {
  ConfigurationSetName: 'STRING_VALUE', /* required */
  DeliveryOptions: {
    SendingPoolName: 'STRING_VALUE',
    TlsPolicy: REQUIRE | OPTIONAL
  },
  ReputationOptions: {
    LastFreshStart: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
    ReputationMetricsEnabled: true || false
  },
  SendingOptions: {
    SendingEnabled: true || false
  },
  SuppressionOptions: {
    SuppressedReasons: [
      BOUNCE | COMPLAINT,
      /* more items */
    ]
  },
  Tags: [
    {
      Key: 'STRING_VALUE', /* required */
      Value: 'STRING_VALUE' /* required */
    },
    /* more items */
  ],
  TrackingOptions: {
    CustomRedirectDomain: 'STRING_VALUE' /* required */
  },
  VdmOptions: {
    DashboardOptions: {
      EngagementMetrics: ENABLED | DISABLED
    },
    GuardianOptions: {
      OptimizedSharedDelivery: ENABLED | DISABLED
    }
  }
};
sesv2.createConfigurationSet(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConfigurationSetName — (String)

      The name of the configuration set. The name can contain up to 64 alphanumeric characters, including letters, numbers, hyphens (-) and underscores (_) only.

    • TrackingOptions — (map)

      An object that defines the open and click tracking options for emails that you send using the configuration set.

      • CustomRedirectDomainrequired — (String)

        The domain to use for tracking open and click events.

    • DeliveryOptions — (map)

      An object that defines the dedicated IP pool that is used to send emails that you send using the configuration set.

      • TlsPolicy — (String)

        Specifies whether messages that use the configuration set are required to use Transport Layer Security (TLS). If the value is Require, messages are only delivered if a TLS connection can be established. If the value is Optional, messages can be delivered in plain text if a TLS connection can't be established.

        Possible values include:
        • "REQUIRE"
        • "OPTIONAL"
      • SendingPoolName — (String)

        The name of the dedicated IP pool to associate with the configuration set.

    • ReputationOptions — (map)

      An object that defines whether or not Amazon SES collects reputation metrics for the emails that you send that use the configuration set.

      • ReputationMetricsEnabled — (Boolean)

        If true, tracking of reputation metrics is enabled for the configuration set. If false, tracking of reputation metrics is disabled for the configuration set.

      • LastFreshStart — (Date)

        The date and time (in Unix time) when the reputation metrics were last given a fresh start. When your account is given a fresh start, your reputation metrics are calculated starting from the date of the fresh start.

    • SendingOptions — (map)

      An object that defines whether or not Amazon SES can send email that you send using the configuration set.

      • SendingEnabled — (Boolean)

        If true, email sending is enabled for the configuration set. If false, email sending is disabled for the configuration set.

    • Tags — (Array<map>)

      An array of objects that define the tags (keys and values) to associate with the configuration set.

      • Keyrequired — (String)

        One part of a key-value pair that defines a tag. The maximum length of a tag key is 128 characters. The minimum length is 1 character.

      • Valuerequired — (String)

        The optional part of a key-value pair that defines a tag. The maximum length of a tag value is 256 characters. The minimum length is 0 characters. If you don't want a resource to have a specific tag value, don't specify a value for this parameter. If you don't specify a value, Amazon SES sets the value to an empty string.

    • SuppressionOptions — (map)

      An object that contains information about the suppression list preferences for your account.

      • SuppressedReasons — (Array<String>)

        A list that contains the reasons that email addresses are automatically added to the suppression list for your account. This list can contain any or all of the following:

        • COMPLAINT – Amazon SES adds an email address to the suppression list for your account when a message sent to that address results in a complaint.

        • BOUNCE – Amazon SES adds an email address to the suppression list for your account when a message sent to that address results in a hard bounce.

    • VdmOptions — (map)

      An object that defines the VDM options for emails that you send using the configuration set.

      • DashboardOptions — (map)

        Specifies additional settings for your VDM configuration as applicable to the Dashboard.

        • EngagementMetrics — (String)

          Specifies the status of your VDM engagement metrics collection. Can be one of the following:

          • ENABLED – Amazon SES enables engagement metrics for the configuration set.

          • DISABLED – Amazon SES disables engagement metrics for the configuration set.

          Possible values include:
          • "ENABLED"
          • "DISABLED"
      • GuardianOptions — (map)

        Specifies additional settings for your VDM configuration as applicable to the Guardian.

        • OptimizedSharedDelivery — (String)

          Specifies the status of your VDM optimized shared delivery. Can be one of the following:

          • ENABLED – Amazon SES enables optimized shared delivery for the configuration set.

          • DISABLED – Amazon SES disables optimized shared delivery for the configuration set.

          Possible values include:
          • "ENABLED"
          • "DISABLED"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createConfigurationSetEventDestination(params = {}, callback) ⇒ AWS.Request

Create an event destination. Events include message sends, deliveries, opens, clicks, bounces, and complaints. Event destinations are places that you can send information about these events to. For example, you can send event data to Amazon SNS to receive notifications when you receive bounces or complaints, or you can use Amazon Kinesis Data Firehose to stream data to Amazon S3 for long-term storage.

A single configuration set can include more than one event destination.

Examples:

Calling the createConfigurationSetEventDestination operation

var params = {
  ConfigurationSetName: 'STRING_VALUE', /* required */
  EventDestination: { /* required */
    CloudWatchDestination: {
      DimensionConfigurations: [ /* required */
        {
          DefaultDimensionValue: 'STRING_VALUE', /* required */
          DimensionName: 'STRING_VALUE', /* required */
          DimensionValueSource: MESSAGE_TAG | EMAIL_HEADER | LINK_TAG /* required */
        },
        /* more items */
      ]
    },
    Enabled: true || false,
    KinesisFirehoseDestination: {
      DeliveryStreamArn: 'STRING_VALUE', /* required */
      IamRoleArn: 'STRING_VALUE' /* required */
    },
    MatchingEventTypes: [
      SEND | REJECT | BOUNCE | COMPLAINT | DELIVERY | OPEN | CLICK | RENDERING_FAILURE | DELIVERY_DELAY | SUBSCRIPTION,
      /* more items */
    ],
    PinpointDestination: {
      ApplicationArn: 'STRING_VALUE'
    },
    SnsDestination: {
      TopicArn: 'STRING_VALUE' /* required */
    }
  },
  EventDestinationName: 'STRING_VALUE' /* required */
};
sesv2.createConfigurationSetEventDestination(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConfigurationSetName — (String)

      The name of the configuration set .

    • EventDestinationName — (String)

      A name that identifies the event destination within the configuration set.

    • EventDestination — (map)

      An object that defines the event destination.

      • Enabled — (Boolean)

        If true, the event destination is enabled. When the event destination is enabled, the specified event types are sent to the destinations in this EventDestinationDefinition.

        If false, the event destination is disabled. When the event destination is disabled, events aren't sent to the specified destinations.

      • MatchingEventTypes — (Array<String>)

        An array that specifies which events the Amazon SES API v2 should send to the destinations in this EventDestinationDefinition.

      • KinesisFirehoseDestination — (map)

        An object that defines an Amazon Kinesis Data Firehose destination for email events. You can use Amazon Kinesis Data Firehose to stream data to other services, such as Amazon S3 and Amazon Redshift.

        • IamRoleArnrequired — (String)

          The Amazon Resource Name (ARN) of the IAM role that the Amazon SES API v2 uses to send email events to the Amazon Kinesis Data Firehose stream.

        • DeliveryStreamArnrequired — (String)

          The Amazon Resource Name (ARN) of the Amazon Kinesis Data Firehose stream that the Amazon SES API v2 sends email events to.

      • CloudWatchDestination — (map)

        An object that defines an Amazon CloudWatch destination for email events. You can use Amazon CloudWatch to monitor and gain insights on your email sending metrics.

        • DimensionConfigurationsrequired — (Array<map>)

          An array of objects that define the dimensions to use when you send email events to Amazon CloudWatch.

          • DimensionNamerequired — (String)

            The name of an Amazon CloudWatch dimension associated with an email sending metric. The name has to meet the following criteria:

            • It can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes (-).

            • It can contain no more than 256 characters.

          • DimensionValueSourcerequired — (String)

            The location where the Amazon SES API v2 finds the value of a dimension to publish to Amazon CloudWatch. To use the message tags that you specify using an X-SES-MESSAGE-TAGS header or a parameter to the SendEmail or SendRawEmail API, choose messageTag. To use your own email headers, choose emailHeader. To use link tags, choose linkTags.

            Possible values include:
            • "MESSAGE_TAG"
            • "EMAIL_HEADER"
            • "LINK_TAG"
          • DefaultDimensionValuerequired — (String)

            The default value of the dimension that is published to Amazon CloudWatch if you don't provide the value of the dimension when you send an email. This value has to meet the following criteria:

            • Can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes (-), at signs (@), and periods (.).

            • It can contain no more than 256 characters.

      • SnsDestination — (map)

        An object that defines an Amazon SNS destination for email events. You can use Amazon SNS to send notification when certain email events occur.

        • TopicArnrequired — (String)

          The Amazon Resource Name (ARN) of the Amazon SNS topic to publish email events to. For more information about Amazon SNS topics, see the Amazon SNS Developer Guide.

      • PinpointDestination — (map)

        An object that defines an Amazon Pinpoint project destination for email events. You can send email event data to a Amazon Pinpoint project to view metrics using the Transactional Messaging dashboards that are built in to Amazon Pinpoint. For more information, see Transactional Messaging Charts in the Amazon Pinpoint User Guide.

        • ApplicationArn — (String)

          The Amazon Resource Name (ARN) of the Amazon Pinpoint project to send email events to.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createContact(params = {}, callback) ⇒ AWS.Request

Creates a contact, which is an end-user who is receiving the email, and adds them to a contact list.

Service Reference:

Examples:

Calling the createContact operation

var params = {
  ContactListName: 'STRING_VALUE', /* required */
  EmailAddress: 'STRING_VALUE', /* required */
  AttributesData: 'STRING_VALUE',
  TopicPreferences: [
    {
      SubscriptionStatus: OPT_IN | OPT_OUT, /* required */
      TopicName: 'STRING_VALUE' /* required */
    },
    /* more items */
  ],
  UnsubscribeAll: true || false
};
sesv2.createContact(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ContactListName — (String)

      The name of the contact list to which the contact should be added.

    • EmailAddress — (String)

      The contact's email address.

    • TopicPreferences — (Array<map>)

      The contact's preferences for being opted-in to or opted-out of topics.

      • TopicNamerequired — (String)

        The name of the topic.

      • SubscriptionStatusrequired — (String)

        The contact's subscription status to a topic which is either OPT_IN or OPT_OUT.

        Possible values include:
        • "OPT_IN"
        • "OPT_OUT"
    • UnsubscribeAll — (Boolean)

      A boolean value status noting if the contact is unsubscribed from all contact list topics.

    • AttributesData — (String)

      The attribute data attached to a contact.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createContactList(params = {}, callback) ⇒ AWS.Request

Creates a contact list.

Service Reference:

Examples:

Calling the createContactList operation

var params = {
  ContactListName: 'STRING_VALUE', /* required */
  Description: 'STRING_VALUE',
  Tags: [
    {
      Key: 'STRING_VALUE', /* required */
      Value: 'STRING_VALUE' /* required */
    },
    /* more items */
  ],
  Topics: [
    {
      DefaultSubscriptionStatus: OPT_IN | OPT_OUT, /* required */
      DisplayName: 'STRING_VALUE', /* required */
      TopicName: 'STRING_VALUE', /* required */
      Description: 'STRING_VALUE'
    },
    /* more items */
  ]
};
sesv2.createContactList(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ContactListName — (String)

      The name of the contact list.

    • Topics — (Array<map>)

      An interest group, theme, or label within a list. A contact list can have multiple topics.

      • TopicNamerequired — (String)

        The name of the topic.

      • DisplayNamerequired — (String)

        The name of the topic the contact will see.

      • Description — (String)

        A description of what the topic is about, which the contact will see.

      • DefaultSubscriptionStatusrequired — (String)

        The default subscription status to be applied to a contact if the contact has not noted their preference for subscribing to a topic.

        Possible values include:
        • "OPT_IN"
        • "OPT_OUT"
    • Description — (String)

      A description of what the contact list is about.

    • Tags — (Array<map>)

      The tags associated with a contact list.

      • Keyrequired — (String)

        One part of a key-value pair that defines a tag. The maximum length of a tag key is 128 characters. The minimum length is 1 character.

      • Valuerequired — (String)

        The optional part of a key-value pair that defines a tag. The maximum length of a tag value is 256 characters. The minimum length is 0 characters. If you don't want a resource to have a specific tag value, don't specify a value for this parameter. If you don't specify a value, Amazon SES sets the value to an empty string.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createCustomVerificationEmailTemplate(params = {}, callback) ⇒ AWS.Request

Creates a new custom verification email template.

For more information about custom verification email templates, see Using custom verification email templates in the Amazon SES Developer Guide.

You can execute this operation no more than once per second.

Examples:

Calling the createCustomVerificationEmailTemplate operation

var params = {
  FailureRedirectionURL: 'STRING_VALUE', /* required */
  FromEmailAddress: 'STRING_VALUE', /* required */
  SuccessRedirectionURL: 'STRING_VALUE', /* required */
  TemplateContent: 'STRING_VALUE', /* required */
  TemplateName: 'STRING_VALUE', /* required */
  TemplateSubject: 'STRING_VALUE' /* required */
};
sesv2.createCustomVerificationEmailTemplate(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • TemplateName — (String)

      The name of the custom verification email template.

    • FromEmailAddress — (String)

      The email address that the custom verification email is sent from.

    • TemplateSubject — (String)

      The subject line of the custom verification email.

    • TemplateContent — (String)

      The content of the custom verification email. The total size of the email must be less than 10 MB. The message body may contain HTML, with some limitations. For more information, see Custom verification email frequently asked questions in the Amazon SES Developer Guide.

    • SuccessRedirectionURL — (String)

      The URL that the recipient of the verification email is sent to if his or her address is successfully verified.

    • FailureRedirectionURL — (String)

      The URL that the recipient of the verification email is sent to if his or her address is not successfully verified.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createDedicatedIpPool(params = {}, callback) ⇒ AWS.Request

Create a new pool of dedicated IP addresses. A pool can include one or more dedicated IP addresses that are associated with your Amazon Web Services account. You can associate a pool with a configuration set. When you send an email that uses that configuration set, the message is sent from one of the addresses in the associated pool.

Service Reference:

Examples:

Calling the createDedicatedIpPool operation

var params = {
  PoolName: 'STRING_VALUE', /* required */
  ScalingMode: STANDARD | MANAGED,
  Tags: [
    {
      Key: 'STRING_VALUE', /* required */
      Value: 'STRING_VALUE' /* required */
    },
    /* more items */
  ]
};
sesv2.createDedicatedIpPool(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • PoolName — (String)

      The name of the dedicated IP pool.

    • Tags — (Array<map>)

      An object that defines the tags (keys and values) that you want to associate with the pool.

      • Keyrequired — (String)

        One part of a key-value pair that defines a tag. The maximum length of a tag key is 128 characters. The minimum length is 1 character.

      • Valuerequired — (String)

        The optional part of a key-value pair that defines a tag. The maximum length of a tag value is 256 characters. The minimum length is 0 characters. If you don't want a resource to have a specific tag value, don't specify a value for this parameter. If you don't specify a value, Amazon SES sets the value to an empty string.

    • ScalingMode — (String)

      The type of scaling mode.

      Possible values include:
      • "STANDARD"
      • "MANAGED"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createDeliverabilityTestReport(params = {}, callback) ⇒ AWS.Request

Create a new predictive inbox placement test. Predictive inbox placement tests can help you predict how your messages will be handled by various email providers around the world. When you perform a predictive inbox placement test, you provide a sample message that contains the content that you plan to send to your customers. Amazon SES then sends that message to special email addresses spread across several major email providers. After about 24 hours, the test is complete, and you can use the GetDeliverabilityTestReport operation to view the results of the test.

Service Reference:

Examples:

Calling the createDeliverabilityTestReport operation

var params = {
  Content: { /* required */
    Raw: {
      Data: Buffer.from('...') || 'STRING_VALUE' /* Strings will be Base-64 encoded on your behalf */ /* required */
    },
    Simple: {
      Body: { /* required */
        Html: {
          Data: 'STRING_VALUE', /* required */
          Charset: 'STRING_VALUE'
        },
        Text: {
          Data: 'STRING_VALUE', /* required */
          Charset: 'STRING_VALUE'
        }
      },
      Subject: { /* required */
        Data: 'STRING_VALUE', /* required */
        Charset: 'STRING_VALUE'
      },
      Headers: [
        {
          Name: 'STRING_VALUE', /* required */
          Value: 'STRING_VALUE' /* required */
        },
        /* more items */
      ]
    },
    Template: {
      Headers: [
        {
          Name: 'STRING_VALUE', /* required */
          Value: 'STRING_VALUE' /* required */
        },
        /* more items */
      ],
      TemplateArn: 'STRING_VALUE',
      TemplateData: 'STRING_VALUE',
      TemplateName: 'STRING_VALUE'
    }
  },
  FromEmailAddress: 'STRING_VALUE', /* required */
  ReportName: 'STRING_VALUE',
  Tags: [
    {
      Key: 'STRING_VALUE', /* required */
      Value: 'STRING_VALUE' /* required */
    },
    /* more items */
  ]
};
sesv2.createDeliverabilityTestReport(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ReportName — (String)

      A unique name that helps you to identify the predictive inbox placement test when you retrieve the results.

    • FromEmailAddress — (String)

      The email address that the predictive inbox placement test email was sent from.

    • Content — (map)

      The HTML body of the message that you sent when you performed the predictive inbox placement test.

      • Simple — (map)

        The simple email message. The message consists of a subject and a message body.

        • Subjectrequired — (map)

          The subject line of the email. The subject line can only contain 7-bit ASCII characters. However, you can specify non-ASCII characters in the subject line by using encoded-word syntax, as described in RFC 2047.

          • Datarequired — (String)

            The content of the message itself.

          • Charset — (String)

            The character set for the content. Because of the constraints of the SMTP protocol, Amazon SES uses 7-bit ASCII by default. If the text includes characters outside of the ASCII range, you have to specify a character set. For example, you could specify UTF-8, ISO-8859-1, or Shift_JIS.

        • Bodyrequired — (map)

          The body of the message. You can specify an HTML version of the message, a text-only version of the message, or both.

          • Text — (map)

            An object that represents the version of the message that is displayed in email clients that don't support HTML, or clients where the recipient has disabled HTML rendering.

            • Datarequired — (String)

              The content of the message itself.

            • Charset — (String)

              The character set for the content. Because of the constraints of the SMTP protocol, Amazon SES uses 7-bit ASCII by default. If the text includes characters outside of the ASCII range, you have to specify a character set. For example, you could specify UTF-8, ISO-8859-1, or Shift_JIS.

          • Html — (map)

            An object that represents the version of the message that is displayed in email clients that support HTML. HTML messages can include formatted text, hyperlinks, images, and more.

            • Datarequired — (String)

              The content of the message itself.

            • Charset — (String)

              The character set for the content. Because of the constraints of the SMTP protocol, Amazon SES uses 7-bit ASCII by default. If the text includes characters outside of the ASCII range, you have to specify a character set. For example, you could specify UTF-8, ISO-8859-1, or Shift_JIS.

        • Headers — (Array<map>)

          The list of message headers that will be added to the email message.

          • Namerequired — (String)

            The name of the message header. The message header name has to meet the following criteria:

            • Can contain any printable ASCII character (33 - 126) except for colon (:).

            • Can contain no more than 126 characters.

          • Valuerequired — (String)

            The value of the message header. The message header value has to meet the following criteria:

            • Can contain any printable ASCII character.

            • Can contain no more than 870 characters.

      • Raw — (map)

        The raw email message. The message has to meet the following criteria:

        • The message has to contain a header and a body, separated by one blank line.

        • All of the required header fields must be present in the message.

        • Each part of a multipart MIME message must be formatted properly.

        • If you include attachments, they must be in a file format that the Amazon SES API v2 supports.

        • The raw data of the message needs to base64-encoded if you are accessing Amazon SES directly through the HTTPS interface. If you are accessing Amazon SES using an Amazon Web Services SDK, the SDK takes care of the base 64-encoding for you.

        • If any of the MIME parts in your message contain content that is outside of the 7-bit ASCII character range, you should encode that content to ensure that recipients' email clients render the message properly.

        • The length of any single line of text in the message can't exceed 1,000 characters. This restriction is defined in RFC 5321.

        • Datarequired — (Buffer, Typed Array, Blob, String)

          The raw email message. The message has to meet the following criteria:

          • The message has to contain a header and a body, separated by one blank line.

          • All of the required header fields must be present in the message.

          • Each part of a multipart MIME message must be formatted properly.

          • Attachments must be in a file format that the Amazon SES supports.

          • The raw data of the message needs to base64-encoded if you are accessing Amazon SES directly through the HTTPS interface. If you are accessing Amazon SES using an Amazon Web Services SDK, the SDK takes care of the base 64-encoding for you.

          • If any of the MIME parts in your message contain content that is outside of the 7-bit ASCII character range, you should encode that content to ensure that recipients' email clients render the message properly.

          • The length of any single line of text in the message can't exceed 1,000 characters. This restriction is defined in RFC 5321.

      • Template — (map)

        The template to use for the email message.

        • TemplateName — (String)

          The name of the template. You will refer to this name when you send email using the SendTemplatedEmail or SendBulkTemplatedEmail operations.

        • TemplateArn — (String)

          The Amazon Resource Name (ARN) of the template.

        • TemplateData — (String)

          An object that defines the values to use for message variables in the template. This object is a set of key-value pairs. Each key defines a message variable in the template. The corresponding value defines the value to use for that variable.

        • Headers — (Array<map>)

          The list of message headers that will be added to the email message.

          • Namerequired — (String)

            The name of the message header. The message header name has to meet the following criteria:

            • Can contain any printable ASCII character (33 - 126) except for colon (:).

            • Can contain no more than 126 characters.

          • Valuerequired — (String)

            The value of the message header. The message header value has to meet the following criteria:

            • Can contain any printable ASCII character.

            • Can contain no more than 870 characters.

    • Tags — (Array<map>)

      An array of objects that define the tags (keys and values) that you want to associate with the predictive inbox placement test.

      • Keyrequired — (String)

        One part of a key-value pair that defines a tag. The maximum length of a tag key is 128 characters. The minimum length is 1 character.

      • Valuerequired — (String)

        The optional part of a key-value pair that defines a tag. The maximum length of a tag value is 256 characters. The minimum length is 0 characters. If you don't want a resource to have a specific tag value, don't specify a value for this parameter. If you don't specify a value, Amazon SES sets the value to an empty string.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ReportId — (String)

        A unique string that identifies the predictive inbox placement test.

      • DeliverabilityTestStatus — (String)

        The status of the predictive inbox placement test. If the status is IN_PROGRESS, then the predictive inbox placement test is currently running. Predictive inbox placement tests are usually complete within 24 hours of creating the test. If the status is COMPLETE, then the test is finished, and you can use the GetDeliverabilityTestReport to view the results of the test.

        Possible values include:
        • "IN_PROGRESS"
        • "COMPLETED"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createEmailIdentity(params = {}, callback) ⇒ AWS.Request

Starts the process of verifying an email identity. An identity is an email address or domain that you use when you send email. Before you can use an identity to send email, you first have to verify it. By verifying an identity, you demonstrate that you're the owner of the identity, and that you've given Amazon SES API v2 permission to send email from the identity.

When you verify an email address, Amazon SES sends an email to the address. Your email address is verified as soon as you follow the link in the verification email.

When you verify a domain without specifying the DkimSigningAttributes object, this operation provides a set of DKIM tokens. You can convert these tokens into CNAME records, which you then add to the DNS configuration for your domain. Your domain is verified when Amazon SES detects these records in the DNS configuration for your domain. This verification method is known as Easy DKIM.

Alternatively, you can perform the verification process by providing your own public-private key pair. This verification method is known as Bring Your Own DKIM (BYODKIM). To use BYODKIM, your call to the CreateEmailIdentity operation has to include the DkimSigningAttributes object. When you specify this object, you provide a selector (a component of the DNS record name that identifies the public key to use for DKIM authentication) and a private key.

When you verify a domain, this operation provides a set of DKIM tokens, which you can convert into CNAME tokens. You add these CNAME tokens to the DNS configuration for your domain. Your domain is verified when Amazon SES detects these records in the DNS configuration for your domain. For some DNS providers, it can take 72 hours or more to complete the domain verification process.

Additionally, you can associate an existing configuration set with the email identity that you're verifying.

Service Reference:

Examples:

Calling the createEmailIdentity operation

var params = {
  EmailIdentity: 'STRING_VALUE', /* required */
  ConfigurationSetName: 'STRING_VALUE',
  DkimSigningAttributes: {
    DomainSigningPrivateKey: 'STRING_VALUE',
    DomainSigningSelector: 'STRING_VALUE',
    NextSigningKeyLength: RSA_1024_BIT | RSA_2048_BIT
  },
  Tags: [
    {
      Key: 'STRING_VALUE', /* required */
      Value: 'STRING_VALUE' /* required */
    },
    /* more items */
  ]
};
sesv2.createEmailIdentity(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • EmailIdentity — (String)

      The email address or domain to verify.

    • Tags — (Array<map>)

      An array of objects that define the tags (keys and values) to associate with the email identity.

      • Keyrequired — (String)

        One part of a key-value pair that defines a tag. The maximum length of a tag key is 128 characters. The minimum length is 1 character.

      • Valuerequired — (String)

        The optional part of a key-value pair that defines a tag. The maximum length of a tag value is 256 characters. The minimum length is 0 characters. If you don't want a resource to have a specific tag value, don't specify a value for this parameter. If you don't specify a value, Amazon SES sets the value to an empty string.

    • DkimSigningAttributes — (map)

      If your request includes this object, Amazon SES configures the identity to use Bring Your Own DKIM (BYODKIM) for DKIM authentication purposes, or, configures the key length to be used for Easy DKIM.

      You can only specify this object if the email identity is a domain, as opposed to an address.

      • DomainSigningSelector — (String)

        [Bring Your Own DKIM] A string that's used to identify a public key in the DNS configuration for a domain.

      • DomainSigningPrivateKey — (String)

        [Bring Your Own DKIM] A private key that's used to generate a DKIM signature.

        The private key must use 1024 or 2048-bit RSA encryption, and must be encoded using base64 encoding.

      • NextSigningKeyLength — (String)

        [Easy DKIM] The key length of the future DKIM key pair to be generated. This can be changed at most once per day.

        Possible values include:
        • "RSA_1024_BIT"
        • "RSA_2048_BIT"
    • ConfigurationSetName — (String)

      The configuration set to use by default when sending from this identity. Note that any configuration set defined in the email sending request takes precedence.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • IdentityType — (String)

        The email identity type. Note: the MANAGED_DOMAIN identity type is not supported.

        Possible values include:
        • "EMAIL_ADDRESS"
        • "DOMAIN"
        • "MANAGED_DOMAIN"
      • VerifiedForSendingStatus — (Boolean)

        Specifies whether or not the identity is verified. You can only send email from verified email addresses or domains. For more information about verifying identities, see the Amazon Pinpoint User Guide.

      • DkimAttributes — (map)

        An object that contains information about the DKIM attributes for the identity.

        • SigningEnabled — (Boolean)

          If the value is true, then the messages that you send from the identity are signed using DKIM. If the value is false, then the messages that you send from the identity aren't DKIM-signed.

        • Status — (String)

          Describes whether or not Amazon SES has successfully located the DKIM records in the DNS records for the domain. The status can be one of the following:

          • PENDING – The verification process was initiated, but Amazon SES hasn't yet detected the DKIM records in the DNS configuration for the domain.

          • SUCCESS – The verification process completed successfully.

          • FAILED – The verification process failed. This typically occurs when Amazon SES fails to find the DKIM records in the DNS configuration of the domain.

          • TEMPORARY_FAILURE – A temporary issue is preventing Amazon SES from determining the DKIM authentication status of the domain.

          • NOT_STARTED – The DKIM verification process hasn't been initiated for the domain.

          Possible values include:
          • "PENDING"
          • "SUCCESS"
          • "FAILED"
          • "TEMPORARY_FAILURE"
          • "NOT_STARTED"
        • Tokens — (Array<String>)

          If you used Easy DKIM to configure DKIM authentication for the domain, then this object contains a set of unique strings that you use to create a set of CNAME records that you add to the DNS configuration for your domain. When Amazon SES detects these records in the DNS configuration for your domain, the DKIM authentication process is complete.

          If you configured DKIM authentication for the domain by providing your own public-private key pair, then this object contains the selector for the public key.

          Regardless of the DKIM authentication method you use, Amazon SES searches for the appropriate records in the DNS configuration of the domain for up to 72 hours.

        • SigningAttributesOrigin — (String)

          A string that indicates how DKIM was configured for the identity. These are the possible values:

          • AWS_SES – Indicates that DKIM was configured for the identity by using Easy DKIM.

          • EXTERNAL – Indicates that DKIM was configured for the identity by using Bring Your Own DKIM (BYODKIM).

          Possible values include:
          • "AWS_SES"
          • "EXTERNAL"
        • NextSigningKeyLength — (String)

          [Easy DKIM] The key length of the future DKIM key pair to be generated. This can be changed at most once per day.

          Possible values include:
          • "RSA_1024_BIT"
          • "RSA_2048_BIT"
        • CurrentSigningKeyLength — (String)

          [Easy DKIM] The key length of the DKIM key pair in use.

          Possible values include:
          • "RSA_1024_BIT"
          • "RSA_2048_BIT"
        • LastKeyGenerationTimestamp — (Date)

          [Easy DKIM] The last time a key pair was generated for this identity.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createEmailIdentityPolicy(params = {}, callback) ⇒ AWS.Request

Creates the specified sending authorization policy for the given identity (an email address or a domain).

Note: This API is for the identity owner only. If you have not verified the identity, this API will return an error.

Sending authorization is a feature that enables an identity owner to authorize other senders to use its identities. For information about using sending authorization, see the Amazon SES Developer Guide.

You can execute this operation no more than once per second.

Service Reference:

Examples:

Calling the createEmailIdentityPolicy operation

var params = {
  EmailIdentity: 'STRING_VALUE', /* required */
  Policy: 'STRING_VALUE', /* required */
  PolicyName: 'STRING_VALUE' /* required */
};
sesv2.createEmailIdentityPolicy(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • EmailIdentity — (String)

      The email identity.

    • PolicyName — (String)

      The name of the policy.

      The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.

    • Policy — (String)

      The text of the policy in JSON format. The policy cannot exceed 4 KB.

      For information about the syntax of sending authorization policies, see the Amazon SES Developer Guide.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createEmailTemplate(params = {}, callback) ⇒ AWS.Request

Creates an email template. Email templates enable you to send personalized email to one or more destinations in a single API operation. For more information, see the Amazon SES Developer Guide.

You can execute this operation no more than once per second.

Service Reference:

Examples:

Calling the createEmailTemplate operation

var params = {
  TemplateContent: { /* required */
    Html: 'STRING_VALUE',
    Subject: 'STRING_VALUE',
    Text: 'STRING_VALUE'
  },
  TemplateName: 'STRING_VALUE' /* required */
};
sesv2.createEmailTemplate(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • TemplateName — (String)

      The name of the template.

    • TemplateContent — (map)

      The content of the email template, composed of a subject line, an HTML part, and a text-only part.

      • Subject — (String)

        The subject line of the email.

      • Text — (String)

        The email body that will be visible to recipients whose email clients do not display HTML.

      • Html — (String)

        The HTML body of the email.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createExportJob(params = {}, callback) ⇒ AWS.Request

Creates an export job for a data source and destination.

You can execute this operation no more than once per second.

Service Reference:

Examples:

Create Metrics export job


/* Creates a new export job for Metrics data */

 var params = {
  ExportDataSource: {
   MetricsDataSource: {
    Dimensions: {
     "ISP": [
         "*"
      ]
    }, 
    EndDate: <Date Representation>, 
    Metrics: [
       {
      Aggregation: "VOLUME", 
      Name: "SEND"
     }, 
       {
      Aggregation: "VOLUME", 
      Name: "COMPLAINT"
     }, 
       {
      Aggregation: "RATE", 
      Name: "COMPLAINT"
     }
    ], 
    Namespace: "VDM", 
    StartDate: <Date Representation>
   }
  }, 
  ExportDestination: {
   DataFormat: "CSV"
  }
 };
 sesv2.createExportJob(params, function(err, data) {
   if (err) console.log(err, err.stack); // an error occurred
   else     console.log(data);           // successful response
   /*
   data = {
    JobId: "ef28cf62-9d8e-4b60-9283-b09816c99a99"
   }
   */
 });

Create Message Insights export job


/* Creates a new export job for Message Insights data */

 var params = {
  ExportDataSource: {
   MessageInsightsDataSource: {
    EndDate: <Date Representation>, 
    Exclude: {
     FromEmailAddress: [
        "hello@example.com"
     ]
    }, 
    Include: {
     Subject: [
        "Hello"
     ]
    }, 
    StartDate: <Date Representation>
   }
  }, 
  ExportDestination: {
   DataFormat: "CSV"
  }
 };
 sesv2.createExportJob(params, function(err, data) {
   if (err) console.log(err, err.stack); // an error occurred
   else     console.log(data);           // successful response
   /*
   data = {
    JobId: "ef28cf62-9d8e-4b60-9283-b09816c99a99"
   }
   */
 });

Calling the createExportJob operation

var params = {
  ExportDataSource: { /* required */
    MessageInsightsDataSource: {
      EndDate: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, /* required */
      StartDate: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, /* required */
      Exclude: {
        Destination: [
          'STRING_VALUE',
          /* more items */
        ],
        FromEmailAddress: [
          'STRING_VALUE',
          /* more items */
        ],
        Isp: [
          'STRING_VALUE',
          /* more items */
        ],
        LastDeliveryEvent: [
          SEND | DELIVERY | TRANSIENT_BOUNCE | PERMANENT_BOUNCE | UNDETERMINED_BOUNCE | COMPLAINT,
          /* more items */
        ],
        LastEngagementEvent: [
          OPEN | CLICK,
          /* more items */
        ],
        Subject: [
          'STRING_VALUE',
          /* more items */
        ]
      },
      Include: {
        Destination: [
          'STRING_VALUE',
          /* more items */
        ],
        FromEmailAddress: [
          'STRING_VALUE',
          /* more items */
        ],
        Isp: [
          'STRING_VALUE',
          /* more items */
        ],
        LastDeliveryEvent: [
          SEND | DELIVERY | TRANSIENT_BOUNCE | PERMANENT_BOUNCE | UNDETERMINED_BOUNCE | COMPLAINT,
          /* more items */
        ],
        LastEngagementEvent: [
          OPEN | CLICK,
          /* more items */
        ],
        Subject: [
          'STRING_VALUE',
          /* more items */
        ]
      },
      MaxResults: 'NUMBER_VALUE'
    },
    MetricsDataSource: {
      Dimensions: { /* required */
        '<MetricDimensionName>': [
          'STRING_VALUE',
          /* more items */
        ],
        /* '<MetricDimensionName>': ... */
      },
      EndDate: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, /* required */
      Metrics: [ /* required */
        {
          Aggregation: RATE | VOLUME,
          Name: SEND | COMPLAINT | PERMANENT_BOUNCE | TRANSIENT_BOUNCE | OPEN | CLICK | DELIVERY | DELIVERY_OPEN | DELIVERY_CLICK | DELIVERY_COMPLAINT
        },
        /* more items */
      ],
      Namespace: VDM, /* required */
      StartDate: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789 /* required */
    }
  },
  ExportDestination: { /* required */
    DataFormat: CSV | JSON, /* required */
    S3Url: 'STRING_VALUE'
  }
};
sesv2.createExportJob(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ExportDataSource — (map)

      The data source for the export job.

      • MetricsDataSource — (map)

        An object that contains details about the data source for the metrics export.

        • Dimensionsrequired — (map<Array<String>>)

          An object that contains a mapping between a MetricDimensionName and MetricDimensionValue to filter metrics by. Must contain a least 1 dimension but no more than 3 unique ones.

        • Namespacerequired — (String)

          The metrics namespace - e.g., VDM.

          Possible values include:
          • "VDM"
        • Metricsrequired — (Array<map>)

          A list of ExportMetric objects to export.

          • Name — (String)

            The metric to export, can be one of the following:

            • SEND - Emails sent eligible for tracking in the VDM dashboard. This excludes emails sent to the mailbox simulator and emails addressed to more than one recipient.

            • COMPLAINT - Complaints received for your account. This excludes complaints from the mailbox simulator, those originating from your account-level suppression list (if enabled), and those for emails addressed to more than one recipient

            • PERMANENT_BOUNCE - Permanent bounces - i.e., feedback received for emails sent to non-existent mailboxes. Excludes bounces from the mailbox simulator, those originating from your account-level suppression list (if enabled), and those for emails addressed to more than one recipient.

            • TRANSIENT_BOUNCE - Transient bounces - i.e., feedback received for delivery failures excluding issues with non-existent mailboxes. Excludes bounces from the mailbox simulator, and those for emails addressed to more than one recipient.

            • OPEN - Unique open events for emails including open trackers. Excludes opens for emails addressed to more than one recipient.

            • CLICK - Unique click events for emails including wrapped links. Excludes clicks for emails addressed to more than one recipient.

            • DELIVERY - Successful deliveries for email sending attempts. Excludes deliveries to the mailbox simulator and for emails addressed to more than one recipient.

            • DELIVERY_OPEN - Successful deliveries for email sending attempts. Excludes deliveries to the mailbox simulator, for emails addressed to more than one recipient, and emails without open trackers.

            • DELIVERY_CLICK - Successful deliveries for email sending attempts. Excludes deliveries to the mailbox simulator, for emails addressed to more than one recipient, and emails without click trackers.

            • DELIVERY_COMPLAINT - Successful deliveries for email sending attempts. Excludes deliveries to the mailbox simulator, for emails addressed to more than one recipient, and emails addressed to recipients hosted by ISPs with which Amazon SES does not have a feedback loop agreement.

            Possible values include:
            • "SEND"
            • "COMPLAINT"
            • "PERMANENT_BOUNCE"
            • "TRANSIENT_BOUNCE"
            • "OPEN"
            • "CLICK"
            • "DELIVERY"
            • "DELIVERY_OPEN"
            • "DELIVERY_CLICK"
            • "DELIVERY_COMPLAINT"
          • Aggregation — (String)

            The aggregation to apply to a metric, can be one of the following:

            • VOLUME - The volume of events for this metric.

            • RATE - The rate for this metric relative to the SEND metric volume.

            Possible values include:
            • "RATE"
            • "VOLUME"
        • StartDaterequired — (Date)

          Represents the start date for the export interval as a timestamp.

        • EndDaterequired — (Date)

          Represents the end date for the export interval as a timestamp.

      • MessageInsightsDataSource — (map)

        An object that contains filters applied when performing the Message Insights export.

        • StartDaterequired — (Date)

          Represents the start date for the export interval as a timestamp. The start date is inclusive.

        • EndDaterequired — (Date)

          Represents the end date for the export interval as a timestamp. The end date is inclusive.

        • Include — (map)

          Filters for results to be included in the export file.

          • FromEmailAddress — (Array<String>)

            The from address used to send the message.

          • Destination — (Array<String>)

            The recipient's email address.

          • Subject — (Array<String>)

            The subject line of the message.

          • Isp — (Array<String>)

            The recipient's ISP (e.g., Gmail, Yahoo, etc.).

          • LastDeliveryEvent — (Array<String>)

            The last delivery-related event for the email, where the ordering is as follows: SEND < BOUNCE < DELIVERY < COMPLAINT.

          • LastEngagementEvent — (Array<String>)

            The last engagement-related event for the email, where the ordering is as follows: OPEN < CLICK.

            Engagement events are only available if Engagement tracking is enabled.

        • Exclude — (map)

          Filters for results to be excluded from the export file.

          • FromEmailAddress — (Array<String>)

            The from address used to send the message.

          • Destination — (Array<String>)

            The recipient's email address.

          • Subject — (Array<String>)

            The subject line of the message.

          • Isp — (Array<String>)

            The recipient's ISP (e.g., Gmail, Yahoo, etc.).

          • LastDeliveryEvent — (Array<String>)

            The last delivery-related event for the email, where the ordering is as follows: SEND < BOUNCE < DELIVERY < COMPLAINT.

          • LastEngagementEvent — (Array<String>)

            The last engagement-related event for the email, where the ordering is as follows: OPEN < CLICK.

            Engagement events are only available if Engagement tracking is enabled.

        • MaxResults — (Integer)

          The maximum number of results.

    • ExportDestination — (map)

      The destination for the export job.

      • DataFormatrequired — (String)

        The data format of the final export job file, can be one of the following:

        • CSV - A comma-separated values file.

        • JSON - A Json file.

        Possible values include:
        • "CSV"
        • "JSON"
      • S3Url — (String)

        An Amazon S3 pre-signed URL that points to the generated export file.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • JobId — (String)

        A string that represents the export job ID.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createImportJob(params = {}, callback) ⇒ AWS.Request

Creates an import job for a data destination.

Service Reference:

Examples:

Calling the createImportJob operation

var params = {
  ImportDataSource: { /* required */
    DataFormat: CSV | JSON, /* required */
    S3Url: 'STRING_VALUE' /* required */
  },
  ImportDestination: { /* required */
    ContactListDestination: {
      ContactListImportAction: DELETE | PUT, /* required */
      ContactListName: 'STRING_VALUE' /* required */
    },
    SuppressionListDestination: {
      SuppressionListImportAction: DELETE | PUT /* required */
    }
  }
};
sesv2.createImportJob(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ImportDestination — (map)

      The destination for the import job.

      • SuppressionListDestination — (map)

        An object that contains the action of the import job towards suppression list.

        • SuppressionListImportActionrequired — (String)

          The type of action to perform on the address. The following are possible values:

          • PUT: add the addresses to the suppression list. If the record already exists, it will override it with the new value.

          • DELETE: remove the addresses from the suppression list.

          Possible values include:
          • "DELETE"
          • "PUT"
      • ContactListDestination — (map)

        An object that contains the action of the import job towards a contact list.

        • ContactListNamerequired — (String)

          The name of the contact list.

        • ContactListImportActionrequired — (String)

          >The type of action to perform on the addresses. The following are the possible values:

          • PUT: add the addresses to the contact list. If the record already exists, it will override it with the new value.

          • DELETE: remove the addresses from the contact list.

          Possible values include:
          • "DELETE"
          • "PUT"
    • ImportDataSource — (map)

      The data source for the import job.

      • S3Urlrequired — (String)

        An Amazon S3 URL in the format s3://<bucket_name>/<object>.

      • DataFormatrequired — (String)

        The data format of the import job's data source.

        Possible values include:
        • "CSV"
        • "JSON"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • JobId — (String)

        A string that represents the import job ID.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteConfigurationSet(params = {}, callback) ⇒ AWS.Request

Delete an existing configuration set.

Configuration sets are groups of rules that you can apply to the emails you send. You apply a configuration set to an email by including a reference to the configuration set in the headers of the email. When you apply a configuration set to an email, all of the rules in that configuration set are applied to the email.

Service Reference:

Examples:

Calling the deleteConfigurationSet operation

var params = {
  ConfigurationSetName: 'STRING_VALUE' /* required */
};
sesv2.deleteConfigurationSet(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConfigurationSetName — (String)

      The name of the configuration set.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteConfigurationSetEventDestination(params = {}, callback) ⇒ AWS.Request

Delete an event destination.

Events include message sends, deliveries, opens, clicks, bounces, and complaints. Event destinations are places that you can send information about these events to. For example, you can send event data to Amazon SNS to receive notifications when you receive bounces or complaints, or you can use Amazon Kinesis Data Firehose to stream data to Amazon S3 for long-term storage.

Examples:

Calling the deleteConfigurationSetEventDestination operation

var params = {
  ConfigurationSetName: 'STRING_VALUE', /* required */
  EventDestinationName: 'STRING_VALUE' /* required */
};
sesv2.deleteConfigurationSetEventDestination(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConfigurationSetName — (String)

      The name of the configuration set that contains the event destination to delete.

    • EventDestinationName — (String)

      The name of the event destination to delete.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteContact(params = {}, callback) ⇒ AWS.Request

Removes a contact from a contact list.

Service Reference:

Examples:

Calling the deleteContact operation

var params = {
  ContactListName: 'STRING_VALUE', /* required */
  EmailAddress: 'STRING_VALUE' /* required */
};
sesv2.deleteContact(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ContactListName — (String)

      The name of the contact list from which the contact should be removed.

    • EmailAddress — (String)

      The contact's email address.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteContactList(params = {}, callback) ⇒ AWS.Request

Deletes a contact list and all of the contacts on that list.

Service Reference:

Examples:

Calling the deleteContactList operation

var params = {
  ContactListName: 'STRING_VALUE' /* required */
};
sesv2.deleteContactList(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ContactListName — (String)

      The name of the contact list.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteCustomVerificationEmailTemplate(params = {}, callback) ⇒ AWS.Request

Deletes an existing custom verification email template.

For more information about custom verification email templates, see Using custom verification email templates in the Amazon SES Developer Guide.

You can execute this operation no more than once per second.

Examples:

Calling the deleteCustomVerificationEmailTemplate operation

var params = {
  TemplateName: 'STRING_VALUE' /* required */
};
sesv2.deleteCustomVerificationEmailTemplate(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • TemplateName — (String)

      The name of the custom verification email template that you want to delete.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteDedicatedIpPool(params = {}, callback) ⇒ AWS.Request

Delete a dedicated IP pool.

Service Reference:

Examples:

Calling the deleteDedicatedIpPool operation

var params = {
  PoolName: 'STRING_VALUE' /* required */
};
sesv2.deleteDedicatedIpPool(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • PoolName — (String)

      The name of the dedicated IP pool that you want to delete.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteEmailIdentity(params = {}, callback) ⇒ AWS.Request

Deletes an email identity. An identity can be either an email address or a domain name.

Service Reference:

Examples:

Calling the deleteEmailIdentity operation

var params = {
  EmailIdentity: 'STRING_VALUE' /* required */
};
sesv2.deleteEmailIdentity(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • EmailIdentity — (String)

      The identity (that is, the email address or domain) to delete.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteEmailIdentityPolicy(params = {}, callback) ⇒ AWS.Request

Deletes the specified sending authorization policy for the given identity (an email address or a domain). This API returns successfully even if a policy with the specified name does not exist.

Note: This API is for the identity owner only. If you have not verified the identity, this API will return an error.

Sending authorization is a feature that enables an identity owner to authorize other senders to use its identities. For information about using sending authorization, see the Amazon SES Developer Guide.

You can execute this operation no more than once per second.

Service Reference:

Examples:

Calling the deleteEmailIdentityPolicy operation

var params = {
  EmailIdentity: 'STRING_VALUE', /* required */
  PolicyName: 'STRING_VALUE' /* required */
};
sesv2.deleteEmailIdentityPolicy(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • EmailIdentity — (String)

      The email identity.

    • PolicyName — (String)

      The name of the policy.

      The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteEmailTemplate(params = {}, callback) ⇒ AWS.Request

Deletes an email template.

You can execute this operation no more than once per second.

Service Reference:

Examples:

Calling the deleteEmailTemplate operation

var params = {
  TemplateName: 'STRING_VALUE' /* required */
};
sesv2.deleteEmailTemplate(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • TemplateName — (String)

      The name of the template to be deleted.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteSuppressedDestination(params = {}, callback) ⇒ AWS.Request

Removes an email address from the suppression list for your account.

Service Reference:

Examples:

Calling the deleteSuppressedDestination operation

var params = {
  EmailAddress: 'STRING_VALUE' /* required */
};
sesv2.deleteSuppressedDestination(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • EmailAddress — (String)

      The suppressed email destination to remove from the account suppression list.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getAccount(params = {}, callback) ⇒ AWS.Request

Obtain information about the email-sending status and capabilities of your Amazon SES account in the current Amazon Web Services Region.

Service Reference:

Examples:

Calling the getAccount operation

var params = {
};
sesv2.getAccount(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • DedicatedIpAutoWarmupEnabled — (Boolean)

        Indicates whether or not the automatic warm-up feature is enabled for dedicated IP addresses that are associated with your account.

      • EnforcementStatus — (String)

        The reputation status of your Amazon SES account. The status can be one of the following:

        • HEALTHY – There are no reputation-related issues that currently impact your account.

        • PROBATION – We've identified potential issues with your Amazon SES account. We're placing your account under review while you work on correcting these issues.

        • SHUTDOWN – Your account's ability to send email is currently paused because of an issue with the email sent from your account. When you correct the issue, you can contact us and request that your account's ability to send email is resumed.

      • ProductionAccessEnabled — (Boolean)

        Indicates whether or not your account has production access in the current Amazon Web Services Region.

        If the value is false, then your account is in the sandbox. When your account is in the sandbox, you can only send email to verified identities.

        If the value is true, then your account has production access. When your account has production access, you can send email to any address. The sending quota and maximum sending rate for your account vary based on your specific use case.

      • SendQuota — (map)

        An object that contains information about the per-day and per-second sending limits for your Amazon SES account in the current Amazon Web Services Region.

        • Max24HourSend — (Float)

          The maximum number of emails that you can send in the current Amazon Web Services Region over a 24-hour period. A value of -1 signifies an unlimited quota. (This value is also referred to as your sending quota.)

        • MaxSendRate — (Float)

          The maximum number of emails that you can send per second in the current Amazon Web Services Region. This value is also called your maximum sending rate or your maximum TPS (transactions per second) rate.

        • SentLast24Hours — (Float)

          The number of emails sent from your Amazon SES account in the current Amazon Web Services Region over the past 24 hours.

      • SendingEnabled — (Boolean)

        Indicates whether or not email sending is enabled for your Amazon SES account in the current Amazon Web Services Region.

      • SuppressionAttributes — (map)

        An object that contains information about the email address suppression preferences for your account in the current Amazon Web Services Region.

        • SuppressedReasons — (Array<String>)

          A list that contains the reasons that email addresses will be automatically added to the suppression list for your account. This list can contain any or all of the following:

          • COMPLAINT – Amazon SES adds an email address to the suppression list for your account when a message sent to that address results in a complaint.

          • BOUNCE – Amazon SES adds an email address to the suppression list for your account when a message sent to that address results in a hard bounce.

      • Details — (map)

        An object that defines your account details.

        • MailType — (String)

          The type of email your account is sending. The mail type can be one of the following:

          • MARKETING – Most of your sending traffic is to keep your customers informed of your latest offering.

          • TRANSACTIONAL – Most of your sending traffic is to communicate during a transaction with a customer.

          Possible values include:
          • "MARKETING"
          • "TRANSACTIONAL"
        • WebsiteURL — (String)

          The URL of your website. This information helps us better understand the type of content that you plan to send.

        • ContactLanguage — (String)

          The language you would prefer for the case. The contact language can be one of ENGLISH or JAPANESE.

          Possible values include:
          • "EN"
          • "JA"
        • UseCaseDescription — (String)

          A description of the types of email that you plan to send.

        • AdditionalContactEmailAddresses — (Array<String>)

          Additional email addresses where updates are sent about your account review process.

        • ReviewDetails — (map)

          Information about the review of the latest details you submitted.

          • Status — (String)

            The status of the latest review of your account. The status can be one of the following:

            • PENDING – We have received your appeal and are in the process of reviewing it.

            • GRANTED – Your appeal has been reviewed and your production access has been granted.

            • DENIED – Your appeal has been reviewed and your production access has been denied.

            • FAILED – An internal error occurred and we didn't receive your appeal. You can submit your appeal again.

            Possible values include:
            • "PENDING"
            • "FAILED"
            • "GRANTED"
            • "DENIED"
          • CaseId — (String)

            The associated support center case ID (if any).

      • VdmAttributes — (map)

        The VDM attributes that apply to your Amazon SES account.

        • VdmEnabledrequired — (String)

          Specifies the status of your VDM configuration. Can be one of the following:

          • ENABLED – Amazon SES enables VDM for your account.

          • DISABLED – Amazon SES disables VDM for your account.

          Possible values include:
          • "ENABLED"
          • "DISABLED"
        • DashboardAttributes — (map)

          Specifies additional settings for your VDM configuration as applicable to the Dashboard.

          • EngagementMetrics — (String)

            Specifies the status of your VDM engagement metrics collection. Can be one of the following:

            • ENABLED – Amazon SES enables engagement metrics for your account.

            • DISABLED – Amazon SES disables engagement metrics for your account.

            Possible values include:
            • "ENABLED"
            • "DISABLED"
        • GuardianAttributes — (map)

          Specifies additional settings for your VDM configuration as applicable to the Guardian.

          • OptimizedSharedDelivery — (String)

            Specifies the status of your VDM optimized shared delivery. Can be one of the following:

            • ENABLED – Amazon SES enables optimized shared delivery for your account.

            • DISABLED – Amazon SES disables optimized shared delivery for your account.

            Possible values include:
            • "ENABLED"
            • "DISABLED"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getBlacklistReports(params = {}, callback) ⇒ AWS.Request

Retrieve a list of the blacklists that your dedicated IP addresses appear on.

Service Reference:

Examples:

Calling the getBlacklistReports operation

var params = {
  BlacklistItemNames: [ /* required */
    'STRING_VALUE',
    /* more items */
  ]
};
sesv2.getBlacklistReports(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • BlacklistItemNames — (Array<String>)

      A list of IP addresses that you want to retrieve blacklist information about. You can only specify the dedicated IP addresses that you use to send email using Amazon SES or Amazon Pinpoint.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • BlacklistReport — (map<Array<map>>)

        An object that contains information about a blacklist that one of your dedicated IP addresses appears on.

        • RblName — (String)

          The name of the blacklist that the IP address appears on.

        • ListingTime — (Date)

          The time when the blacklisting event occurred.

        • Description — (String)

          Additional information about the blacklisting event, as provided by the blacklist maintainer.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getConfigurationSet(params = {}, callback) ⇒ AWS.Request

Get information about an existing configuration set, including the dedicated IP pool that it's associated with, whether or not it's enabled for sending email, and more.

Configuration sets are groups of rules that you can apply to the emails you send. You apply a configuration set to an email by including a reference to the configuration set in the headers of the email. When you apply a configuration set to an email, all of the rules in that configuration set are applied to the email.

Service Reference:

Examples:

Calling the getConfigurationSet operation

var params = {
  ConfigurationSetName: 'STRING_VALUE' /* required */
};
sesv2.getConfigurationSet(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConfigurationSetName — (String)

      The name of the configuration set.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ConfigurationSetName — (String)

        The name of the configuration set.

      • TrackingOptions — (map)

        An object that defines the open and click tracking options for emails that you send using the configuration set.

        • CustomRedirectDomainrequired — (String)

          The domain to use for tracking open and click events.

      • DeliveryOptions — (map)

        An object that defines the dedicated IP pool that is used to send emails that you send using the configuration set.

        • TlsPolicy — (String)

          Specifies whether messages that use the configuration set are required to use Transport Layer Security (TLS). If the value is Require, messages are only delivered if a TLS connection can be established. If the value is Optional, messages can be delivered in plain text if a TLS connection can't be established.

          Possible values include:
          • "REQUIRE"
          • "OPTIONAL"
        • SendingPoolName — (String)

          The name of the dedicated IP pool to associate with the configuration set.

      • ReputationOptions — (map)

        An object that defines whether or not Amazon SES collects reputation metrics for the emails that you send that use the configuration set.

        • ReputationMetricsEnabled — (Boolean)

          If true, tracking of reputation metrics is enabled for the configuration set. If false, tracking of reputation metrics is disabled for the configuration set.

        • LastFreshStart — (Date)

          The date and time (in Unix time) when the reputation metrics were last given a fresh start. When your account is given a fresh start, your reputation metrics are calculated starting from the date of the fresh start.

      • SendingOptions — (map)

        An object that defines whether or not Amazon SES can send email that you send using the configuration set.

        • SendingEnabled — (Boolean)

          If true, email sending is enabled for the configuration set. If false, email sending is disabled for the configuration set.

      • Tags — (Array<map>)

        An array of objects that define the tags (keys and values) that are associated with the configuration set.

        • Keyrequired — (String)

          One part of a key-value pair that defines a tag. The maximum length of a tag key is 128 characters. The minimum length is 1 character.

        • Valuerequired — (String)

          The optional part of a key-value pair that defines a tag. The maximum length of a tag value is 256 characters. The minimum length is 0 characters. If you don't want a resource to have a specific tag value, don't specify a value for this parameter. If you don't specify a value, Amazon SES sets the value to an empty string.

      • SuppressionOptions — (map)

        An object that contains information about the suppression list preferences for your account.

        • SuppressedReasons — (Array<String>)

          A list that contains the reasons that email addresses are automatically added to the suppression list for your account. This list can contain any or all of the following:

          • COMPLAINT – Amazon SES adds an email address to the suppression list for your account when a message sent to that address results in a complaint.

          • BOUNCE – Amazon SES adds an email address to the suppression list for your account when a message sent to that address results in a hard bounce.

      • VdmOptions — (map)

        An object that contains information about the VDM preferences for your configuration set.

        • DashboardOptions — (map)

          Specifies additional settings for your VDM configuration as applicable to the Dashboard.

          • EngagementMetrics — (String)

            Specifies the status of your VDM engagement metrics collection. Can be one of the following:

            • ENABLED – Amazon SES enables engagement metrics for the configuration set.

            • DISABLED – Amazon SES disables engagement metrics for the configuration set.

            Possible values include:
            • "ENABLED"
            • "DISABLED"
        • GuardianOptions — (map)

          Specifies additional settings for your VDM configuration as applicable to the Guardian.

          • OptimizedSharedDelivery — (String)

            Specifies the status of your VDM optimized shared delivery. Can be one of the following:

            • ENABLED – Amazon SES enables optimized shared delivery for the configuration set.

            • DISABLED – Amazon SES disables optimized shared delivery for the configuration set.

            Possible values include:
            • "ENABLED"
            • "DISABLED"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getConfigurationSetEventDestinations(params = {}, callback) ⇒ AWS.Request

Retrieve a list of event destinations that are associated with a configuration set.

Events include message sends, deliveries, opens, clicks, bounces, and complaints. Event destinations are places that you can send information about these events to. For example, you can send event data to Amazon SNS to receive notifications when you receive bounces or complaints, or you can use Amazon Kinesis Data Firehose to stream data to Amazon S3 for long-term storage.

Examples:

Calling the getConfigurationSetEventDestinations operation

var params = {
  ConfigurationSetName: 'STRING_VALUE' /* required */
};
sesv2.getConfigurationSetEventDestinations(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConfigurationSetName — (String)

      The name of the configuration set that contains the event destination.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • EventDestinations — (Array<map>)

        An array that includes all of the events destinations that have been configured for the configuration set.

        • Namerequired — (String)

          A name that identifies the event destination.

        • Enabled — (Boolean)

          If true, the event destination is enabled. When the event destination is enabled, the specified event types are sent to the destinations in this EventDestinationDefinition.

          If false, the event destination is disabled. When the event destination is disabled, events aren't sent to the specified destinations.

        • MatchingEventTypesrequired — (Array<String>)

          The types of events that Amazon SES sends to the specified event destinations.

          • SEND - The send request was successful and SES will attempt to deliver the message to the recipient’s mail server. (If account-level or global suppression is being used, SES will still count it as a send, but delivery is suppressed.)

          • REJECT - SES accepted the email, but determined that it contained a virus and didn’t attempt to deliver it to the recipient’s mail server.

          • BOUNCE - (Hard bounce) The recipient's mail server permanently rejected the email. (Soft bounces are only included when SES fails to deliver the email after retrying for a period of time.)

          • COMPLAINT - The email was successfully delivered to the recipient’s mail server, but the recipient marked it as spam.

          • DELIVERY - SES successfully delivered the email to the recipient's mail server.

          • OPEN - The recipient received the message and opened it in their email client.

          • CLICK - The recipient clicked one or more links in the email.

          • RENDERING_FAILURE - The email wasn't sent because of a template rendering issue. This event type can occur when template data is missing, or when there is a mismatch between template parameters and data. (This event type only occurs when you send email using the SendTemplatedEmail or SendBulkTemplatedEmail API operations.)

          • DELIVERY_DELAY - The email couldn't be delivered to the recipient’s mail server because a temporary issue occurred. Delivery delays can occur, for example, when the recipient's inbox is full, or when the receiving email server experiences a transient issue.

          • SUBSCRIPTION - The email was successfully delivered, but the recipient updated their subscription preferences by clicking on an unsubscribe link as part of your subscription management.

        • KinesisFirehoseDestination — (map)

          An object that defines an Amazon Kinesis Data Firehose destination for email events. You can use Amazon Kinesis Data Firehose to stream data to other services, such as Amazon S3 and Amazon Redshift.

          • IamRoleArnrequired — (String)

            The Amazon Resource Name (ARN) of the IAM role that the Amazon SES API v2 uses to send email events to the Amazon Kinesis Data Firehose stream.

          • DeliveryStreamArnrequired — (String)

            The Amazon Resource Name (ARN) of the Amazon Kinesis Data Firehose stream that the Amazon SES API v2 sends email events to.

        • CloudWatchDestination — (map)

          An object that defines an Amazon CloudWatch destination for email events. You can use Amazon CloudWatch to monitor and gain insights on your email sending metrics.

          • DimensionConfigurationsrequired — (Array<map>)

            An array of objects that define the dimensions to use when you send email events to Amazon CloudWatch.

            • DimensionNamerequired — (String)

              The name of an Amazon CloudWatch dimension associated with an email sending metric. The name has to meet the following criteria:

              • It can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes (-).

              • It can contain no more than 256 characters.

            • DimensionValueSourcerequired — (String)

              The location where the Amazon SES API v2 finds the value of a dimension to publish to Amazon CloudWatch. To use the message tags that you specify using an X-SES-MESSAGE-TAGS header or a parameter to the SendEmail or SendRawEmail API, choose messageTag. To use your own email headers, choose emailHeader. To use link tags, choose linkTags.

              Possible values include:
              • "MESSAGE_TAG"
              • "EMAIL_HEADER"
              • "LINK_TAG"
            • DefaultDimensionValuerequired — (String)

              The default value of the dimension that is published to Amazon CloudWatch if you don't provide the value of the dimension when you send an email. This value has to meet the following criteria:

              • Can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes (-), at signs (@), and periods (.).

              • It can contain no more than 256 characters.

        • SnsDestination — (map)

          An object that defines an Amazon SNS destination for email events. You can use Amazon SNS to send notification when certain email events occur.

          • TopicArnrequired — (String)

            The Amazon Resource Name (ARN) of the Amazon SNS topic to publish email events to. For more information about Amazon SNS topics, see the Amazon SNS Developer Guide.

        • PinpointDestination — (map)

          An object that defines an Amazon Pinpoint project destination for email events. You can send email event data to a Amazon Pinpoint project to view metrics using the Transactional Messaging dashboards that are built in to Amazon Pinpoint. For more information, see Transactional Messaging Charts in the Amazon Pinpoint User Guide.

          • ApplicationArn — (String)

            The Amazon Resource Name (ARN) of the Amazon Pinpoint project to send email events to.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getContact(params = {}, callback) ⇒ AWS.Request

Returns a contact from a contact list.

Service Reference:

Examples:

Calling the getContact operation

var params = {
  ContactListName: 'STRING_VALUE', /* required */
  EmailAddress: 'STRING_VALUE' /* required */
};
sesv2.getContact(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ContactListName — (String)

      The name of the contact list to which the contact belongs.

    • EmailAddress — (String)

      The contact's email address.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ContactListName — (String)

        The name of the contact list to which the contact belongs.

      • EmailAddress — (String)

        The contact's email address.

      • TopicPreferences — (Array<map>)

        The contact's preference for being opted-in to or opted-out of a topic.>

        • TopicNamerequired — (String)

          The name of the topic.

        • SubscriptionStatusrequired — (String)

          The contact's subscription status to a topic which is either OPT_IN or OPT_OUT.

          Possible values include:
          • "OPT_IN"
          • "OPT_OUT"
      • TopicDefaultPreferences — (Array<map>)

        The default topic preferences applied to the contact.

        • TopicNamerequired — (String)

          The name of the topic.

        • SubscriptionStatusrequired — (String)

          The contact's subscription status to a topic which is either OPT_IN or OPT_OUT.

          Possible values include:
          • "OPT_IN"
          • "OPT_OUT"
      • UnsubscribeAll — (Boolean)

        A boolean value status noting if the contact is unsubscribed from all contact list topics.

      • AttributesData — (String)

        The attribute data attached to a contact.

      • CreatedTimestamp — (Date)

        A timestamp noting when the contact was created.

      • LastUpdatedTimestamp — (Date)

        A timestamp noting the last time the contact's information was updated.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getContactList(params = {}, callback) ⇒ AWS.Request

Returns contact list metadata. It does not return any information about the contacts present in the list.

Service Reference:

Examples:

Calling the getContactList operation

var params = {
  ContactListName: 'STRING_VALUE' /* required */
};
sesv2.getContactList(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ContactListName — (String)

      The name of the contact list.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ContactListName — (String)

        The name of the contact list.

      • Topics — (Array<map>)

        An interest group, theme, or label within a list. A contact list can have multiple topics.

        • TopicNamerequired — (String)

          The name of the topic.

        • DisplayNamerequired — (String)

          The name of the topic the contact will see.

        • Description — (String)

          A description of what the topic is about, which the contact will see.

        • DefaultSubscriptionStatusrequired — (String)

          The default subscription status to be applied to a contact if the contact has not noted their preference for subscribing to a topic.

          Possible values include:
          • "OPT_IN"
          • "OPT_OUT"
      • Description — (String)

        A description of what the contact list is about.

      • CreatedTimestamp — (Date)

        A timestamp noting when the contact list was created.

      • LastUpdatedTimestamp — (Date)

        A timestamp noting the last time the contact list was updated.

      • Tags — (Array<map>)

        The tags associated with a contact list.

        • Keyrequired — (String)

          One part of a key-value pair that defines a tag. The maximum length of a tag key is 128 characters. The minimum length is 1 character.

        • Valuerequired — (String)

          The optional part of a key-value pair that defines a tag. The maximum length of a tag value is 256 characters. The minimum length is 0 characters. If you don't want a resource to have a specific tag value, don't specify a value for this parameter. If you don't specify a value, Amazon SES sets the value to an empty string.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getCustomVerificationEmailTemplate(params = {}, callback) ⇒ AWS.Request

Returns the custom email verification template for the template name you specify.

For more information about custom verification email templates, see Using custom verification email templates in the Amazon SES Developer Guide.

You can execute this operation no more than once per second.

Examples:

Calling the getCustomVerificationEmailTemplate operation

var params = {
  TemplateName: 'STRING_VALUE' /* required */
};
sesv2.getCustomVerificationEmailTemplate(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • TemplateName — (String)

      The name of the custom verification email template that you want to retrieve.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • TemplateName — (String)

        The name of the custom verification email template.

      • FromEmailAddress — (String)

        The email address that the custom verification email is sent from.

      • TemplateSubject — (String)

        The subject line of the custom verification email.

      • TemplateContent — (String)

        The content of the custom verification email.

      • SuccessRedirectionURL — (String)

        The URL that the recipient of the verification email is sent to if his or her address is successfully verified.

      • FailureRedirectionURL — (String)

        The URL that the recipient of the verification email is sent to if his or her address is not successfully verified.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getDedicatedIp(params = {}, callback) ⇒ AWS.Request

Get information about a dedicated IP address, including the name of the dedicated IP pool that it's associated with, as well information about the automatic warm-up process for the address.

Service Reference:

Examples:

Calling the getDedicatedIp operation

var params = {
  Ip: 'STRING_VALUE' /* required */
};
sesv2.getDedicatedIp(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Ip — (String)

      The IP address that you want to obtain more information about. The value you specify has to be a dedicated IP address that's assocaited with your Amazon Web Services account.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • DedicatedIp — (map)

        An object that contains information about a dedicated IP address.

        • Iprequired — (String)

          An IPv4 address.

        • WarmupStatusrequired — (String)

          The warm-up status of a dedicated IP address. The status can have one of the following values:

          • IN_PROGRESS – The IP address isn't ready to use because the dedicated IP warm-up process is ongoing.

          • DONE – The dedicated IP warm-up process is complete, and the IP address is ready to use.

          Possible values include:
          • "IN_PROGRESS"
          • "DONE"
        • WarmupPercentagerequired — (Integer)

          Indicates how complete the dedicated IP warm-up process is. When this value equals 1, the address has completed the warm-up process and is ready for use.

        • PoolName — (String)

          The name of the dedicated IP pool that the IP address is associated with.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getDedicatedIpPool(params = {}, callback) ⇒ AWS.Request

Retrieve information about the dedicated pool.

Service Reference:

Examples:

Calling the getDedicatedIpPool operation

var params = {
  PoolName: 'STRING_VALUE' /* required */
};
sesv2.getDedicatedIpPool(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • PoolName — (String)

      The name of the dedicated IP pool to retrieve.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • DedicatedIpPool — (map)

        An object that contains information about a dedicated IP pool.

        • PoolNamerequired — (String)

          The name of the dedicated IP pool.

        • ScalingModerequired — (String)

          The type of the dedicated IP pool.

          • STANDARD – A dedicated IP pool where you can control which IPs are part of the pool.

          • MANAGED – A dedicated IP pool where the reputation and number of IPs are automatically managed by Amazon SES.

          Possible values include:
          • "STANDARD"
          • "MANAGED"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getDedicatedIps(params = {}, callback) ⇒ AWS.Request

List the dedicated IP addresses that are associated with your Amazon Web Services account.

Service Reference:

Examples:

Calling the getDedicatedIps operation

var params = {
  NextToken: 'STRING_VALUE',
  PageSize: 'NUMBER_VALUE',
  PoolName: 'STRING_VALUE'
};
sesv2.getDedicatedIps(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • PoolName — (String)

      The name of the IP pool that the dedicated IP address is associated with.

    • NextToken — (String)

      A token returned from a previous call to GetDedicatedIps to indicate the position of the dedicated IP pool in the list of IP pools.

    • PageSize — (Integer)

      The number of results to show in a single call to GetDedicatedIpsRequest. If the number of results is larger than the number you specified in this parameter, then the response includes a NextToken element, which you can use to obtain additional results.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • DedicatedIps — (Array<map>)

        A list of dedicated IP addresses that are associated with your Amazon Web Services account.

        • Iprequired — (String)

          An IPv4 address.

        • WarmupStatusrequired — (String)

          The warm-up status of a dedicated IP address. The status can have one of the following values:

          • IN_PROGRESS – The IP address isn't ready to use because the dedicated IP warm-up process is ongoing.

          • DONE – The dedicated IP warm-up process is complete, and the IP address is ready to use.

          Possible values include:
          • "IN_PROGRESS"
          • "DONE"
        • WarmupPercentagerequired — (Integer)

          Indicates how complete the dedicated IP warm-up process is. When this value equals 1, the address has completed the warm-up process and is ready for use.

        • PoolName — (String)

          The name of the dedicated IP pool that the IP address is associated with.

      • NextToken — (String)

        A token that indicates that there are additional dedicated IP addresses to list. To view additional addresses, issue another request to GetDedicatedIps, passing this token in the NextToken parameter.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getDeliverabilityDashboardOptions(params = {}, callback) ⇒ AWS.Request

Retrieve information about the status of the Deliverability dashboard for your account. When the Deliverability dashboard is enabled, you gain access to reputation, deliverability, and other metrics for the domains that you use to send email. You also gain the ability to perform predictive inbox placement tests.

When you use the Deliverability dashboard, you pay a monthly subscription charge, in addition to any other fees that you accrue by using Amazon SES and other Amazon Web Services services. For more information about the features and cost of a Deliverability dashboard subscription, see Amazon SES Pricing.

Examples:

Calling the getDeliverabilityDashboardOptions operation

var params = {
};
sesv2.getDeliverabilityDashboardOptions(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • DashboardEnabled — (Boolean)

        Specifies whether the Deliverability dashboard is enabled. If this value is true, the dashboard is enabled.

      • SubscriptionExpiryDate — (Date)

        The date when your current subscription to the Deliverability dashboard is scheduled to expire, if your subscription is scheduled to expire at the end of the current calendar month. This value is null if you have an active subscription that isn’t due to expire at the end of the month.

      • AccountStatus — (String)

        The current status of your Deliverability dashboard subscription. If this value is PENDING_EXPIRATION, your subscription is scheduled to expire at the end of the current calendar month.

        Possible values include:
        • "ACTIVE"
        • "PENDING_EXPIRATION"
        • "DISABLED"
      • ActiveSubscribedDomains — (Array<map>)

        An array of objects, one for each verified domain that you use to send email and currently has an active Deliverability dashboard subscription that isn’t scheduled to expire at the end of the current calendar month.

        • Domain — (String)

          A verified domain that’s associated with your Amazon Web Services account and currently has an active Deliverability dashboard subscription.

        • SubscriptionStartDate — (Date)

          The date when you enabled the Deliverability dashboard for the domain.

        • InboxPlacementTrackingOption — (map)

          An object that contains information about the inbox placement data settings for the domain.

          • Global — (Boolean)

            Specifies whether inbox placement data is being tracked for the domain.

          • TrackedIsps — (Array<String>)

            An array of strings, one for each major email provider that the inbox placement data applies to.

      • PendingExpirationSubscribedDomains — (Array<map>)

        An array of objects, one for each verified domain that you use to send email and currently has an active Deliverability dashboard subscription that's scheduled to expire at the end of the current calendar month.

        • Domain — (String)

          A verified domain that’s associated with your Amazon Web Services account and currently has an active Deliverability dashboard subscription.

        • SubscriptionStartDate — (Date)

          The date when you enabled the Deliverability dashboard for the domain.

        • InboxPlacementTrackingOption — (map)

          An object that contains information about the inbox placement data settings for the domain.

          • Global — (Boolean)

            Specifies whether inbox placement data is being tracked for the domain.

          • TrackedIsps — (Array<String>)

            An array of strings, one for each major email provider that the inbox placement data applies to.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getDeliverabilityTestReport(params = {}, callback) ⇒ AWS.Request

Retrieve the results of a predictive inbox placement test.

Service Reference:

Examples:

Calling the getDeliverabilityTestReport operation

var params = {
  ReportId: 'STRING_VALUE' /* required */
};
sesv2.getDeliverabilityTestReport(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ReportId — (String)

      A unique string that identifies the predictive inbox placement test.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • DeliverabilityTestReport — (map)

        An object that contains the results of the predictive inbox placement test.

        • ReportId — (String)

          A unique string that identifies the predictive inbox placement test.

        • ReportName — (String)

          A name that helps you identify a predictive inbox placement test report.

        • Subject — (String)

          The subject line for an email that you submitted in a predictive inbox placement test.

        • FromEmailAddress — (String)

          The sender address that you specified for the predictive inbox placement test.

        • CreateDate — (Date)

          The date and time when the predictive inbox placement test was created.

        • DeliverabilityTestStatus — (String)

          The status of the predictive inbox placement test. If the status is IN_PROGRESS, then the predictive inbox placement test is currently running. Predictive inbox placement tests are usually complete within 24 hours of creating the test. If the status is COMPLETE, then the test is finished, and you can use the GetDeliverabilityTestReport to view the results of the test.

          Possible values include:
          • "IN_PROGRESS"
          • "COMPLETED"
      • OverallPlacement — (map)

        An object that specifies how many test messages that were sent during the predictive inbox placement test were delivered to recipients' inboxes, how many were sent to recipients' spam folders, and how many weren't delivered.

        • InboxPercentage — (Float)

          The percentage of emails that arrived in recipients' inboxes during the predictive inbox placement test.

        • SpamPercentage — (Float)

          The percentage of emails that arrived in recipients' spam or junk mail folders during the predictive inbox placement test.

        • MissingPercentage — (Float)

          The percentage of emails that didn't arrive in recipients' inboxes at all during the predictive inbox placement test.

        • SpfPercentage — (Float)

          The percentage of emails that were authenticated by using Sender Policy Framework (SPF) during the predictive inbox placement test.

        • DkimPercentage — (Float)

          The percentage of emails that were authenticated by using DomainKeys Identified Mail (DKIM) during the predictive inbox placement test.

      • IspPlacements — (Array<map>)

        An object that describes how the test email was handled by several email providers, including Gmail, Hotmail, Yahoo, AOL, and others.

        • IspName — (String)

          The name of the email provider that the inbox placement data applies to.

        • PlacementStatistics — (map)

          An object that contains inbox placement metrics for a specific email provider.

          • InboxPercentage — (Float)

            The percentage of emails that arrived in recipients' inboxes during the predictive inbox placement test.

          • SpamPercentage — (Float)

            The percentage of emails that arrived in recipients' spam or junk mail folders during the predictive inbox placement test.

          • MissingPercentage — (Float)

            The percentage of emails that didn't arrive in recipients' inboxes at all during the predictive inbox placement test.

          • SpfPercentage — (Float)

            The percentage of emails that were authenticated by using Sender Policy Framework (SPF) during the predictive inbox placement test.

          • DkimPercentage — (Float)

            The percentage of emails that were authenticated by using DomainKeys Identified Mail (DKIM) during the predictive inbox placement test.

      • Message — (String)

        An object that contains the message that you sent when you performed this predictive inbox placement test.

      • Tags — (Array<map>)

        An array of objects that define the tags (keys and values) that are associated with the predictive inbox placement test.

        • Keyrequired — (String)

          One part of a key-value pair that defines a tag. The maximum length of a tag key is 128 characters. The minimum length is 1 character.

        • Valuerequired — (String)

          The optional part of a key-value pair that defines a tag. The maximum length of a tag value is 256 characters. The minimum length is 0 characters. If you don't want a resource to have a specific tag value, don't specify a value for this parameter. If you don't specify a value, Amazon SES sets the value to an empty string.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getDomainDeliverabilityCampaign(params = {}, callback) ⇒ AWS.Request

Retrieve all the deliverability data for a specific campaign. This data is available for a campaign only if the campaign sent email by using a domain that the Deliverability dashboard is enabled for.

Service Reference:

Examples:

Calling the getDomainDeliverabilityCampaign operation

var params = {
  CampaignId: 'STRING_VALUE' /* required */
};
sesv2.getDomainDeliverabilityCampaign(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CampaignId — (String)

      The unique identifier for the campaign. The Deliverability dashboard automatically generates and assigns this identifier to a campaign.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • DomainDeliverabilityCampaign — (map)

        An object that contains the deliverability data for the campaign.

        • CampaignId — (String)

          The unique identifier for the campaign. The Deliverability dashboard automatically generates and assigns this identifier to a campaign.

        • ImageUrl — (String)

          The URL of an image that contains a snapshot of the email message that was sent.

        • Subject — (String)

          The subject line, or title, of the email message.

        • FromAddress — (String)

          The verified email address that the email message was sent from.

        • SendingIps — (Array<String>)

          The IP addresses that were used to send the email message.

        • FirstSeenDateTime — (Date)

          The first time when the email message was delivered to any recipient's inbox. This value can help you determine how long it took for a campaign to deliver an email message.

        • LastSeenDateTime — (Date)

          The last time when the email message was delivered to any recipient's inbox. This value can help you determine how long it took for a campaign to deliver an email message.

        • InboxCount — (Integer)

          The number of email messages that were delivered to recipients’ inboxes.

        • SpamCount — (Integer)

          The number of email messages that were delivered to recipients' spam or junk mail folders.

        • ReadRate — (Float)

          The percentage of email messages that were opened by recipients. Due to technical limitations, this value only includes recipients who opened the message by using an email client that supports images.

        • DeleteRate — (Float)

          The percentage of email messages that were deleted by recipients, without being opened first. Due to technical limitations, this value only includes recipients who opened the message by using an email client that supports images.

        • ReadDeleteRate — (Float)

          The percentage of email messages that were opened and then deleted by recipients. Due to technical limitations, this value only includes recipients who opened the message by using an email client that supports images.

        • ProjectedVolume — (Integer)

          The projected number of recipients that the email message was sent to.

        • Esps — (Array<String>)

          The major email providers who handled the email message.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getDomainStatisticsReport(params = {}, callback) ⇒ AWS.Request

Retrieve inbox placement and engagement rates for the domains that you use to send email.

Service Reference:

Examples:

Calling the getDomainStatisticsReport operation

var params = {
  Domain: 'STRING_VALUE', /* required */
  EndDate: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, /* required */
  StartDate: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789 /* required */
};
sesv2.getDomainStatisticsReport(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Domain — (String)

      The domain that you want to obtain deliverability metrics for.

    • StartDate — (Date)

      The first day (in Unix time) that you want to obtain domain deliverability metrics for.

    • EndDate — (Date)

      The last day (in Unix time) that you want to obtain domain deliverability metrics for. The EndDate that you specify has to be less than or equal to 30 days after the StartDate.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • OverallVolume — (map)

        An object that contains deliverability metrics for the domain that you specified. The data in this object is a summary of all of the data that was collected from the StartDate to the EndDate.

        • VolumeStatistics — (map)

          An object that contains information about the numbers of messages that arrived in recipients' inboxes and junk mail folders.

          • InboxRawCount — (Integer)

            The total number of emails that arrived in recipients' inboxes.

          • SpamRawCount — (Integer)

            The total number of emails that arrived in recipients' spam or junk mail folders.

          • ProjectedInbox — (Integer)

            An estimate of the percentage of emails sent from the current domain that will arrive in recipients' inboxes.

          • ProjectedSpam — (Integer)

            An estimate of the percentage of emails sent from the current domain that will arrive in recipients' spam or junk mail folders.

        • ReadRatePercent — (Float)

          The percentage of emails that were sent from the domain that were read by their recipients.

        • DomainIspPlacements — (Array<map>)

          An object that contains inbox and junk mail placement metrics for individual email providers.

          • IspName — (String)

            The name of the email provider that the inbox placement data applies to.

          • InboxRawCount — (Integer)

            The total number of messages that were sent from the selected domain to the specified email provider that arrived in recipients' inboxes.

          • SpamRawCount — (Integer)

            The total number of messages that were sent from the selected domain to the specified email provider that arrived in recipients' spam or junk mail folders.

          • InboxPercentage — (Float)

            The percentage of messages that were sent from the selected domain to the specified email provider that arrived in recipients' inboxes.

          • SpamPercentage — (Float)

            The percentage of messages that were sent from the selected domain to the specified email provider that arrived in recipients' spam or junk mail folders.

      • DailyVolumes — (Array<map>)

        An object that contains deliverability metrics for the domain that you specified. This object contains data for each day, starting on the StartDate and ending on the EndDate.

        • StartDate — (Date)

          The date that the DailyVolume metrics apply to, in Unix time.

        • VolumeStatistics — (map)

          An object that contains inbox placement metrics for a specific day in the analysis period.

          • InboxRawCount — (Integer)

            The total number of emails that arrived in recipients' inboxes.

          • SpamRawCount — (Integer)

            The total number of emails that arrived in recipients' spam or junk mail folders.

          • ProjectedInbox — (Integer)

            An estimate of the percentage of emails sent from the current domain that will arrive in recipients' inboxes.

          • ProjectedSpam — (Integer)

            An estimate of the percentage of emails sent from the current domain that will arrive in recipients' spam or junk mail folders.

        • DomainIspPlacements — (Array<map>)

          An object that contains inbox placement metrics for a specified day in the analysis period, broken out by the recipient's email provider.

          • IspName — (String)

            The name of the email provider that the inbox placement data applies to.

          • InboxRawCount — (Integer)

            The total number of messages that were sent from the selected domain to the specified email provider that arrived in recipients' inboxes.

          • SpamRawCount — (Integer)

            The total number of messages that were sent from the selected domain to the specified email provider that arrived in recipients' spam or junk mail folders.

          • InboxPercentage — (Float)

            The percentage of messages that were sent from the selected domain to the specified email provider that arrived in recipients' inboxes.

          • SpamPercentage — (Float)

            The percentage of messages that were sent from the selected domain to the specified email provider that arrived in recipients' spam or junk mail folders.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getEmailIdentity(params = {}, callback) ⇒ AWS.Request

Provides information about a specific identity, including the identity's verification status, sending authorization policies, its DKIM authentication status, and its custom Mail-From settings.

Service Reference:

Examples:

Calling the getEmailIdentity operation

var params = {
  EmailIdentity: 'STRING_VALUE' /* required */
};
sesv2.getEmailIdentity(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • EmailIdentity — (String)

      The email identity.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • IdentityType — (String)

        The email identity type. Note: the MANAGED_DOMAIN identity type is not supported.

        Possible values include:
        • "EMAIL_ADDRESS"
        • "DOMAIN"
        • "MANAGED_DOMAIN"
      • FeedbackForwardingStatus — (Boolean)

        The feedback forwarding configuration for the identity.

        If the value is true, you receive email notifications when bounce or complaint events occur. These notifications are sent to the address that you specified in the Return-Path header of the original email.

        You're required to have a method of tracking bounces and complaints. If you haven't set up another mechanism for receiving bounce or complaint notifications (for example, by setting up an event destination), you receive an email notification when these events occur (even if this setting is disabled).

      • VerifiedForSendingStatus — (Boolean)

        Specifies whether or not the identity is verified. You can only send email from verified email addresses or domains. For more information about verifying identities, see the Amazon Pinpoint User Guide.

      • DkimAttributes — (map)

        An object that contains information about the DKIM attributes for the identity.

        • SigningEnabled — (Boolean)

          If the value is true, then the messages that you send from the identity are signed using DKIM. If the value is false, then the messages that you send from the identity aren't DKIM-signed.

        • Status — (String)

          Describes whether or not Amazon SES has successfully located the DKIM records in the DNS records for the domain. The status can be one of the following:

          • PENDING – The verification process was initiated, but Amazon SES hasn't yet detected the DKIM records in the DNS configuration for the domain.

          • SUCCESS – The verification process completed successfully.

          • FAILED – The verification process failed. This typically occurs when Amazon SES fails to find the DKIM records in the DNS configuration of the domain.

          • TEMPORARY_FAILURE – A temporary issue is preventing Amazon SES from determining the DKIM authentication status of the domain.

          • NOT_STARTED – The DKIM verification process hasn't been initiated for the domain.

          Possible values include:
          • "PENDING"
          • "SUCCESS"
          • "FAILED"
          • "TEMPORARY_FAILURE"
          • "NOT_STARTED"
        • Tokens — (Array<String>)

          If you used Easy DKIM to configure DKIM authentication for the domain, then this object contains a set of unique strings that you use to create a set of CNAME records that you add to the DNS configuration for your domain. When Amazon SES detects these records in the DNS configuration for your domain, the DKIM authentication process is complete.

          If you configured DKIM authentication for the domain by providing your own public-private key pair, then this object contains the selector for the public key.

          Regardless of the DKIM authentication method you use, Amazon SES searches for the appropriate records in the DNS configuration of the domain for up to 72 hours.

        • SigningAttributesOrigin — (String)

          A string that indicates how DKIM was configured for the identity. These are the possible values:

          • AWS_SES – Indicates that DKIM was configured for the identity by using Easy DKIM.

          • EXTERNAL – Indicates that DKIM was configured for the identity by using Bring Your Own DKIM (BYODKIM).

          Possible values include:
          • "AWS_SES"
          • "EXTERNAL"
        • NextSigningKeyLength — (String)

          [Easy DKIM] The key length of the future DKIM key pair to be generated. This can be changed at most once per day.

          Possible values include:
          • "RSA_1024_BIT"
          • "RSA_2048_BIT"
        • CurrentSigningKeyLength — (String)

          [Easy DKIM] The key length of the DKIM key pair in use.

          Possible values include:
          • "RSA_1024_BIT"
          • "RSA_2048_BIT"
        • LastKeyGenerationTimestamp — (Date)

          [Easy DKIM] The last time a key pair was generated for this identity.

      • MailFromAttributes — (map)

        An object that contains information about the Mail-From attributes for the email identity.

        • MailFromDomainrequired — (String)

          The name of a domain that an email identity uses as a custom MAIL FROM domain.

        • MailFromDomainStatusrequired — (String)

          The status of the MAIL FROM domain. This status can have the following values:

          • PENDING – Amazon SES hasn't started searching for the MX record yet.

          • SUCCESS – Amazon SES detected the required MX record for the MAIL FROM domain.

          • FAILED – Amazon SES can't find the required MX record, or the record no longer exists.

          • TEMPORARY_FAILURE – A temporary issue occurred, which prevented Amazon SES from determining the status of the MAIL FROM domain.

          Possible values include:
          • "PENDING"
          • "SUCCESS"
          • "FAILED"
          • "TEMPORARY_FAILURE"
        • BehaviorOnMxFailurerequired — (String)

          The action to take if the required MX record can't be found when you send an email. When you set this value to USE_DEFAULT_VALUE, the mail is sent using amazonses.com as the MAIL FROM domain. When you set this value to REJECT_MESSAGE, the Amazon SES API v2 returns a MailFromDomainNotVerified error, and doesn't attempt to deliver the email.

          These behaviors are taken when the custom MAIL FROM domain configuration is in the Pending, Failed, and TemporaryFailure states.

          Possible values include:
          • "USE_DEFAULT_VALUE"
          • "REJECT_MESSAGE"
      • Policies — (map<String>)

        A map of policy names to policies.

      • Tags — (Array<map>)

        An array of objects that define the tags (keys and values) that are associated with the email identity.

        • Keyrequired — (String)

          One part of a key-value pair that defines a tag. The maximum length of a tag key is 128 characters. The minimum length is 1 character.

        • Valuerequired — (String)

          The optional part of a key-value pair that defines a tag. The maximum length of a tag value is 256 characters. The minimum length is 0 characters. If you don't want a resource to have a specific tag value, don't specify a value for this parameter. If you don't specify a value, Amazon SES sets the value to an empty string.

      • ConfigurationSetName — (String)

        The configuration set used by default when sending from this identity.

      • VerificationStatus — (String)

        The verification status of the identity. The status can be one of the following:

        • PENDING – The verification process was initiated, but Amazon SES hasn't yet been able to verify the identity.

        • SUCCESS – The verification process completed successfully.

        • FAILED – The verification process failed.

        • TEMPORARY_FAILURE – A temporary issue is preventing Amazon SES from determining the verification status of the identity.

        • NOT_STARTED – The verification process hasn't been initiated for the identity.

        Possible values include:
        • "PENDING"
        • "SUCCESS"
        • "FAILED"
        • "TEMPORARY_FAILURE"
        • "NOT_STARTED"
      • VerificationInfo — (map)

        An object that contains additional information about the verification status for the identity.

        • LastCheckedTimestamp — (Date)

          The last time a verification attempt was made for this identity.

        • LastSuccessTimestamp — (Date)

          The last time a successful verification was made for this identity.

        • ErrorType — (String)

          Provides the reason for the failure describing why Amazon SES was not able to successfully verify the identity. Below are the possible values:

          • INVALID_VALUE – Amazon SES was able to find the record, but the value contained within the record was invalid. Ensure you have published the correct values for the record.

          • TYPE_NOT_FOUND – The queried hostname exists but does not have the requested type of DNS record. Ensure that you have published the correct type of DNS record.

          • HOST_NOT_FOUND – The queried hostname does not exist or was not reachable at the time of the request. Ensure that you have published the required DNS record(s).

          • SERVICE_ERROR – A temporary issue is preventing Amazon SES from determining the verification status of the domain.

          • DNS_SERVER_ERROR – The DNS server encountered an issue and was unable to complete the request.

          Possible values include:
          • "SERVICE_ERROR"
          • "DNS_SERVER_ERROR"
          • "HOST_NOT_FOUND"
          • "TYPE_NOT_FOUND"
          • "INVALID_VALUE"
        • SOARecord — (map)

          An object that contains information about the start of authority (SOA) record associated with the identity.

          • PrimaryNameServer — (String)

            Primary name server specified in the SOA record.

          • AdminEmail — (String)

            Administrative contact email from the SOA record.

          • SerialNumber — (Integer)

            Serial number from the SOA record.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getEmailIdentityPolicies(params = {}, callback) ⇒ AWS.Request

Returns the requested sending authorization policies for the given identity (an email address or a domain). The policies are returned as a map of policy names to policy contents. You can retrieve a maximum of 20 policies at a time.

Note: This API is for the identity owner only. If you have not verified the identity, this API will return an error.

Sending authorization is a feature that enables an identity owner to authorize other senders to use its identities. For information about using sending authorization, see the Amazon SES Developer Guide.

You can execute this operation no more than once per second.

Service Reference:

Examples:

Calling the getEmailIdentityPolicies operation

var params = {
  EmailIdentity: 'STRING_VALUE' /* required */
};
sesv2.getEmailIdentityPolicies(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • EmailIdentity — (String)

      The email identity.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Policies — (map<String>)

        A map of policy names to policies.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getEmailTemplate(params = {}, callback) ⇒ AWS.Request

Displays the template object (which includes the subject line, HTML part and text part) for the template you specify.

You can execute this operation no more than once per second.

Service Reference:

Examples:

Calling the getEmailTemplate operation

var params = {
  TemplateName: 'STRING_VALUE' /* required */
};
sesv2.getEmailTemplate(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • TemplateName — (String)

      The name of the template.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • TemplateName — (String)

        The name of the template.

      • TemplateContent — (map)

        The content of the email template, composed of a subject line, an HTML part, and a text-only part.

        • Subject — (String)

          The subject line of the email.

        • Text — (String)

          The email body that will be visible to recipients whose email clients do not display HTML.

        • Html — (String)

          The HTML body of the email.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getExportJob(params = {}, callback) ⇒ AWS.Request

Provides information about an export job.

Service Reference:

Examples:

Get export job


/* Gets the export job with ID ef28cf62-9d8e-4b60-9283-b09816c99a99 */

 var params = {
  JobId: "ef28cf62-9d8e-4b60-9283-b09816c99a99"
 };
 sesv2.getExportJob(params, function(err, data) {
   if (err) console.log(err, err.stack); // an error occurred
   else     console.log(data);           // successful response
   /*
   data = {
    CreatedTimestamp: <Date Representation>, 
    ExportDataSource: {
     MetricsDataSource: {
      Dimensions: {
       "ISP": [
           "*"
        ]
      }, 
      EndDate: <Date Representation>, 
      Metrics: [
         {
        Aggregation: "VOLUME", 
        Name: "SEND"
       }, 
         {
        Aggregation: "VOLUME", 
        Name: "COMPLAINT"
       }, 
         {
        Aggregation: "RATE", 
        Name: "COMPLAINT"
       }
      ], 
      Namespace: "VDM", 
      StartDate: <Date Representation>
     }
    }, 
    ExportDestination: {
     DataFormat: "CSV"
    }, 
    ExportSourceType: "METRICS_DATA", 
    JobId: "ef28cf62-9d8e-4b60-9283-b09816c99a99", 
    JobStatus: "PROCESSING", 
    Statistics: {
     ExportedRecordsCount: 5, 
     ProcessedRecordsCount: 5
    }
   }
   */
 });

Calling the getExportJob operation

var params = {
  JobId: 'STRING_VALUE' /* required */
};
sesv2.getExportJob(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • JobId — (String)

      The export job ID.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • JobId — (String)

        The export job ID.

      • ExportSourceType — (String)

        The type of source of the export job.

        Possible values include:
        • "METRICS_DATA"
        • "MESSAGE_INSIGHTS"
      • JobStatus — (String)

        The status of the export job.

        Possible values include:
        • "CREATED"
        • "PROCESSING"
        • "COMPLETED"
        • "FAILED"
        • "CANCELLED"
      • ExportDestination — (map)

        The destination of the export job.

        • DataFormatrequired — (String)

          The data format of the final export job file, can be one of the following:

          • CSV - A comma-separated values file.

          • JSON - A Json file.

          Possible values include:
          • "CSV"
          • "JSON"
        • S3Url — (String)

          An Amazon S3 pre-signed URL that points to the generated export file.

      • ExportDataSource — (map)

        The data source of the export job.

        • MetricsDataSource — (map)

          An object that contains details about the data source for the metrics export.

          • Dimensionsrequired — (map<Array<String>>)

            An object that contains a mapping between a MetricDimensionName and MetricDimensionValue to filter metrics by. Must contain a least 1 dimension but no more than 3 unique ones.

          • Namespacerequired — (String)

            The metrics namespace - e.g., VDM.

            Possible values include:
            • "VDM"
          • Metricsrequired — (Array<map>)

            A list of ExportMetric objects to export.

            • Name — (String)

              The metric to export, can be one of the following:

              • SEND - Emails sent eligible for tracking in the VDM dashboard. This excludes emails sent to the mailbox simulator and emails addressed to more than one recipient.

              • COMPLAINT - Complaints received for your account. This excludes complaints from the mailbox simulator, those originating from your account-level suppression list (if enabled), and those for emails addressed to more than one recipient

              • PERMANENT_BOUNCE - Permanent bounces - i.e., feedback received for emails sent to non-existent mailboxes. Excludes bounces from the mailbox simulator, those originating from your account-level suppression list (if enabled), and those for emails addressed to more than one recipient.

              • TRANSIENT_BOUNCE - Transient bounces - i.e., feedback received for delivery failures excluding issues with non-existent mailboxes. Excludes bounces from the mailbox simulator, and those for emails addressed to more than one recipient.

              • OPEN - Unique open events for emails including open trackers. Excludes opens for emails addressed to more than one recipient.

              • CLICK - Unique click events for emails including wrapped links. Excludes clicks for emails addressed to more than one recipient.

              • DELIVERY - Successful deliveries for email sending attempts. Excludes deliveries to the mailbox simulator and for emails addressed to more than one recipient.

              • DELIVERY_OPEN - Successful deliveries for email sending attempts. Excludes deliveries to the mailbox simulator, for emails addressed to more than one recipient, and emails without open trackers.

              • DELIVERY_CLICK - Successful deliveries for email sending attempts. Excludes deliveries to the mailbox simulator, for emails addressed to more than one recipient, and emails without click trackers.

              • DELIVERY_COMPLAINT - Successful deliveries for email sending attempts. Excludes deliveries to the mailbox simulator, for emails addressed to more than one recipient, and emails addressed to recipients hosted by ISPs with which Amazon SES does not have a feedback loop agreement.

              Possible values include:
              • "SEND"
              • "COMPLAINT"
              • "PERMANENT_BOUNCE"
              • "TRANSIENT_BOUNCE"
              • "OPEN"
              • "CLICK"
              • "DELIVERY"
              • "DELIVERY_OPEN"
              • "DELIVERY_CLICK"
              • "DELIVERY_COMPLAINT"
            • Aggregation — (String)

              The aggregation to apply to a metric, can be one of the following:

              • VOLUME - The volume of events for this metric.

              • RATE - The rate for this metric relative to the SEND metric volume.

              Possible values include:
              • "RATE"
              • "VOLUME"
          • StartDaterequired — (Date)

            Represents the start date for the export interval as a timestamp.

          • EndDaterequired — (Date)

            Represents the end date for the export interval as a timestamp.

        • MessageInsightsDataSource — (map)

          An object that contains filters applied when performing the Message Insights export.

          • StartDaterequired — (Date)

            Represents the start date for the export interval as a timestamp. The start date is inclusive.

          • EndDaterequired — (Date)

            Represents the end date for the export interval as a timestamp. The end date is inclusive.

          • Include — (map)

            Filters for results to be included in the export file.

            • FromEmailAddress — (Array<String>)

              The from address used to send the message.

            • Destination — (Array<String>)

              The recipient's email address.

            • Subject — (Array<String>)

              The subject line of the message.

            • Isp — (Array<String>)

              The recipient's ISP (e.g., Gmail, Yahoo, etc.).

            • LastDeliveryEvent — (Array<String>)

              The last delivery-related event for the email, where the ordering is as follows: SEND < BOUNCE < DELIVERY < COMPLAINT.

            • LastEngagementEvent — (Array<String>)

              The last engagement-related event for the email, where the ordering is as follows: OPEN < CLICK.

              Engagement events are only available if Engagement tracking is enabled.

          • Exclude — (map)

            Filters for results to be excluded from the export file.

            • FromEmailAddress — (Array<String>)

              The from address used to send the message.

            • Destination — (Array<String>)

              The recipient's email address.

            • Subject — (Array<String>)

              The subject line of the message.

            • Isp — (Array<String>)

              The recipient's ISP (e.g., Gmail, Yahoo, etc.).

            • LastDeliveryEvent — (Array<String>)

              The last delivery-related event for the email, where the ordering is as follows: SEND < BOUNCE < DELIVERY < COMPLAINT.

            • LastEngagementEvent — (Array<String>)

              The last engagement-related event for the email, where the ordering is as follows: OPEN < CLICK.

              Engagement events are only available if Engagement tracking is enabled.

          • MaxResults — (Integer)

            The maximum number of results.

      • CreatedTimestamp — (Date)

        The timestamp of when the export job was created.

      • CompletedTimestamp — (Date)

        The timestamp of when the export job was completed.

      • FailureInfo — (map)

        The failure details about an export job.

        • FailedRecordsS3Url — (String)

          An Amazon S3 pre-signed URL that contains all the failed records and related information.

        • ErrorMessage — (String)

          A message about why the job failed.

      • Statistics — (map)

        The statistics about the export job.

        • ProcessedRecordsCount — (Integer)

          The number of records that were processed to generate the final export file.

        • ExportedRecordsCount — (Integer)

          The number of records that were exported to the final export file.

          This value might not be available for all export source types

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getImportJob(params = {}, callback) ⇒ AWS.Request

Provides information about an import job.

Service Reference:

Examples:

Calling the getImportJob operation

var params = {
  JobId: 'STRING_VALUE' /* required */
};
sesv2.getImportJob(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • JobId — (String)

      The ID of the import job.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • JobId — (String)

        A string that represents the import job ID.

      • ImportDestination — (map)

        The destination of the import job.

        • SuppressionListDestination — (map)

          An object that contains the action of the import job towards suppression list.

          • SuppressionListImportActionrequired — (String)

            The type of action to perform on the address. The following are possible values:

            • PUT: add the addresses to the suppression list. If the record already exists, it will override it with the new value.

            • DELETE: remove the addresses from the suppression list.

            Possible values include:
            • "DELETE"
            • "PUT"
        • ContactListDestination — (map)

          An object that contains the action of the import job towards a contact list.

          • ContactListNamerequired — (String)

            The name of the contact list.

          • ContactListImportActionrequired — (String)

            >The type of action to perform on the addresses. The following are the possible values:

            • PUT: add the addresses to the contact list. If the record already exists, it will override it with the new value.

            • DELETE: remove the addresses from the contact list.

            Possible values include:
            • "DELETE"
            • "PUT"
      • ImportDataSource — (map)

        The data source of the import job.

        • S3Urlrequired — (String)

          An Amazon S3 URL in the format s3://<bucket_name>/<object>.

        • DataFormatrequired — (String)

          The data format of the import job's data source.

          Possible values include:
          • "CSV"
          • "JSON"
      • FailureInfo — (map)

        The failure details about an import job.

        • FailedRecordsS3Url — (String)

          An Amazon S3 pre-signed URL that contains all the failed records and related information.

        • ErrorMessage — (String)

          A message about why the job failed.

      • JobStatus — (String)

        The status of the import job.

        Possible values include:
        • "CREATED"
        • "PROCESSING"
        • "COMPLETED"
        • "FAILED"
        • "CANCELLED"
      • CreatedTimestamp — (Date)

        The time stamp of when the import job was created.

      • CompletedTimestamp — (Date)

        The time stamp of when the import job was completed.

      • ProcessedRecordsCount — (Integer)

        The current number of records processed.

      • FailedRecordsCount — (Integer)

        The number of records that failed processing because of invalid input or other reasons.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getMessageInsights(params = {}, callback) ⇒ AWS.Request

Provides information about a specific message, including the from address, the subject, the recipient address, email tags, as well as events associated with the message.

You can execute this operation no more than once per second.

Service Reference:

Examples:

Get Message Insights


/* Provides information about a specific message. */

 var params = {
  MessageId: "000000000000ab00-0a000aa0-1234-0a0a-1234-0a0aaa0aa00a-000000"
 };
 sesv2.getMessageInsights(params, function(err, data) {
   if (err) console.log(err, err.stack); // an error occurred
   else     console.log(data);           // successful response
   /*
   data = {
    EmailTags: [
       {
      Name: "ses:operation", 
      Value: "SendEmail"
     }, 
       {
      Name: "ses:recipient-isp", 
      Value: "UNKNOWN_ISP"
     }, 
       {
      Name: "ses:source-ip", 
      Value: "0.0.0.0"
     }, 
       {
      Name: "ses:from-domain", 
      Value: "example.com"
     }, 
       {
      Name: "ses:sender-identity", 
      Value: "hello@example.com"
     }, 
       {
      Name: "ses:caller-identity", 
      Value: "Identity"
     }
    ], 
    FromEmailAddress: "hello@example.com", 
    Insights: [
       {
      Destination: "recipient@example.com", 
      Events: [
         {
        Timestamp: <Date Representation>, 
        Type: "SEND"
       }, 
         {
        Timestamp: <Date Representation>, 
        Type: "DELIVERY"
       }
      ], 
      Isp: "UNKNOWN_ISP"
     }
    ], 
    MessageId: "000000000000ab00-0a000aa0-1234-0a0a-1234-0a0aaa0aa00a-000000", 
    Subject: "hello"
   }
   */
 });

Calling the getMessageInsights operation

var params = {
  MessageId: 'STRING_VALUE' /* required */
};
sesv2.getMessageInsights(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • MessageId — (String)

      A MessageId is a unique identifier for a message, and is returned when sending emails through Amazon SES.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • MessageId — (String)

        A unique identifier for the message.

      • FromEmailAddress — (String)

        The from address used to send the message.

      • Subject — (String)

        The subject line of the message.

      • EmailTags — (Array<map>)

        A list of tags, in the form of name/value pairs, that were applied to the email you sent, along with Amazon SES Auto-Tags.

        • Namerequired — (String)

          The name of the message tag. The message tag name has to meet the following criteria:

          • It can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes (-).

          • It can contain no more than 256 characters.

        • Valuerequired — (String)

          The value of the message tag. The message tag value has to meet the following criteria:

          • It can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes (-).

          • It can contain no more than 256 characters.

      • Insights — (Array<map>)

        A set of insights associated with the message.

        • Destination — (String)

          The recipient of the email.

        • Isp — (String)

          The recipient's ISP (e.g., Gmail, Yahoo, etc.).

        • Events — (Array<map>)

          A list of events associated with the sent email.

          • Timestamp — (Date)

            The timestamp of the event.

          • Type — (String)

            The type of event:

            • SEND - The send request was successful and SES will attempt to deliver the message to the recipient’s mail server. (If account-level or global suppression is being used, SES will still count it as a send, but delivery is suppressed.)

            • DELIVERY - SES successfully delivered the email to the recipient's mail server. Excludes deliveries to the mailbox simulator, and those from emails addressed to more than one recipient.

            • BOUNCE - Feedback received for delivery failures. Additional details about the bounce are provided in the Details object. Excludes bounces from the mailbox simulator, and those from emails addressed to more than one recipient.

            • COMPLAINT - Complaint received for the email. Additional details about the complaint are provided in the Details object. This excludes complaints from the mailbox simulator, those originating from your account-level suppression list (if enabled), and those from emails addressed to more than one recipient.

            • OPEN - Open event for emails including open trackers. Excludes opens for emails addressed to more than one recipient.

            • CLICK - Click event for emails including wrapped links. Excludes clicks for emails addressed to more than one recipient.

            Possible values include:
            • "SEND"
            • "REJECT"
            • "BOUNCE"
            • "COMPLAINT"
            • "DELIVERY"
            • "OPEN"
            • "CLICK"
            • "RENDERING_FAILURE"
            • "DELIVERY_DELAY"
            • "SUBSCRIPTION"
          • Details — (map)

            Details about bounce or complaint events.

            • Bounce — (map)

              Information about a Bounce event.

              • BounceType — (String)

                The type of the bounce, as determined by SES. Can be one of UNDETERMINED, TRANSIENT, or PERMANENT

                Possible values include:
                • "UNDETERMINED"
                • "TRANSIENT"
                • "PERMANENT"
              • BounceSubType — (String)

                The subtype of the bounce, as determined by SES.

              • DiagnosticCode — (String)

                The status code issued by the reporting Message Transfer Authority (MTA). This field only appears if a delivery status notification (DSN) was attached to the bounce and the Diagnostic-Code was provided in the DSN.

            • Complaint — (map)

              Information about a Complaint event.

              • ComplaintSubType — (String)

                Can either be null or OnAccountSuppressionList. If the value is OnAccountSuppressionList, SES accepted the message, but didn't attempt to send it because it was on the account-level suppression list.

              • ComplaintFeedbackType — (String)

                The value of the Feedback-Type field from the feedback report received from the ISP.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getSuppressedDestination(params = {}, callback) ⇒ AWS.Request

Retrieves information about a specific email address that's on the suppression list for your account.

Service Reference:

Examples:

Calling the getSuppressedDestination operation

var params = {
  EmailAddress: 'STRING_VALUE' /* required */
};
sesv2.getSuppressedDestination(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • EmailAddress — (String)

      The email address that's on the account suppression list.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • SuppressedDestination — (map)

        An object containing information about the suppressed email address.

        • EmailAddressrequired — (String)

          The email address that is on the suppression list for your account.

        • Reasonrequired — (String)

          The reason that the address was added to the suppression list for your account.

          Possible values include:
          • "BOUNCE"
          • "COMPLAINT"
        • LastUpdateTimerequired — (Date)

          The date and time when the suppressed destination was last updated, shown in Unix time format.

        • Attributes — (map)

          An optional value that can contain additional information about the reasons that the address was added to the suppression list for your account.

          • MessageId — (String)

            The unique identifier of the email message that caused the email address to be added to the suppression list for your account.

          • FeedbackId — (String)

            A unique identifier that's generated when an email address is added to the suppression list for your account.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listConfigurationSets(params = {}, callback) ⇒ AWS.Request

List all of the configuration sets associated with your account in the current region.

Configuration sets are groups of rules that you can apply to the emails you send. You apply a configuration set to an email by including a reference to the configuration set in the headers of the email. When you apply a configuration set to an email, all of the rules in that configuration set are applied to the email.

Service Reference:

Examples:

Calling the listConfigurationSets operation

var params = {
  NextToken: 'STRING_VALUE',
  PageSize: 'NUMBER_VALUE'
};
sesv2.listConfigurationSets(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • NextToken — (String)

      A token returned from a previous call to ListConfigurationSets to indicate the position in the list of configuration sets.

    • PageSize — (Integer)

      The number of results to show in a single call to ListConfigurationSets. If the number of results is larger than the number you specified in this parameter, then the response includes a NextToken element, which you can use to obtain additional results.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ConfigurationSets — (Array<String>)

        An array that contains all of the configuration sets in your Amazon SES account in the current Amazon Web Services Region.

      • NextToken — (String)

        A token that indicates that there are additional configuration sets to list. To view additional configuration sets, issue another request to ListConfigurationSets, and pass this token in the NextToken parameter.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listContactLists(params = {}, callback) ⇒ AWS.Request

Lists all of the contact lists available.

Service Reference:

Examples:

Calling the listContactLists operation

var params = {
  NextToken: 'STRING_VALUE',
  PageSize: 'NUMBER_VALUE'
};
sesv2.listContactLists(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • PageSize — (Integer)

      Maximum number of contact lists to return at once. Use this parameter to paginate results. If additional contact lists exist beyond the specified limit, the NextToken element is sent in the response. Use the NextToken value in subsequent requests to retrieve additional lists.

    • NextToken — (String)

      A string token indicating that there might be additional contact lists available to be listed. Use the token provided in the Response to use in the subsequent call to ListContactLists with the same parameters to retrieve the next page of contact lists.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ContactLists — (Array<map>)

        The available contact lists.

        • ContactListName — (String)

          The name of the contact list.

        • LastUpdatedTimestamp — (Date)

          A timestamp noting the last time the contact list was updated.

      • NextToken — (String)

        A string token indicating that there might be additional contact lists available to be listed. Copy this token to a subsequent call to ListContactLists with the same parameters to retrieve the next page of contact lists.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listContacts(params = {}, callback) ⇒ AWS.Request

Lists the contacts present in a specific contact list.

Service Reference:

Examples:

Calling the listContacts operation

var params = {
  ContactListName: 'STRING_VALUE', /* required */
  Filter: {
    FilteredStatus: OPT_IN | OPT_OUT,
    TopicFilter: {
      TopicName: 'STRING_VALUE',
      UseDefaultIfPreferenceUnavailable: true || false
    }
  },
  NextToken: 'STRING_VALUE',
  PageSize: 'NUMBER_VALUE'
};
sesv2.listContacts(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ContactListName — (String)

      The name of the contact list.

    • Filter — (map)

      A filter that can be applied to a list of contacts.

      • FilteredStatus — (String)

        The status by which you are filtering: OPT_IN or OPT_OUT.

        Possible values include:
        • "OPT_IN"
        • "OPT_OUT"
      • TopicFilter — (map)

        Used for filtering by a specific topic preference.

        • TopicName — (String)

          The name of a topic on which you wish to apply the filter.

        • UseDefaultIfPreferenceUnavailable — (Boolean)

          Notes that the default subscription status should be applied to a contact because the contact has not noted their preference for subscribing to a topic.

    • PageSize — (Integer)

      The number of contacts that may be returned at once, which is dependent on if there are more or less contacts than the value of the PageSize. Use this parameter to paginate results. If additional contacts exist beyond the specified limit, the NextToken element is sent in the response. Use the NextToken value in subsequent requests to retrieve additional contacts.

    • NextToken — (String)

      A string token indicating that there might be additional contacts available to be listed. Use the token provided in the Response to use in the subsequent call to ListContacts with the same parameters to retrieve the next page of contacts.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Contacts — (Array<map>)

        The contacts present in a specific contact list.

        • EmailAddress — (String)

          The contact's email address.

        • TopicPreferences — (Array<map>)

          The contact's preference for being opted-in to or opted-out of a topic.

          • TopicNamerequired — (String)

            The name of the topic.

          • SubscriptionStatusrequired — (String)

            The contact's subscription status to a topic which is either OPT_IN or OPT_OUT.

            Possible values include:
            • "OPT_IN"
            • "OPT_OUT"
        • TopicDefaultPreferences — (Array<map>)

          The default topic preferences applied to the contact.

          • TopicNamerequired — (String)

            The name of the topic.

          • SubscriptionStatusrequired — (String)

            The contact's subscription status to a topic which is either OPT_IN or OPT_OUT.

            Possible values include:
            • "OPT_IN"
            • "OPT_OUT"
        • UnsubscribeAll — (Boolean)

          A boolean value status noting if the contact is unsubscribed from all contact list topics.

        • LastUpdatedTimestamp — (Date)

          A timestamp noting the last time the contact's information was updated.

      • NextToken — (String)

        A string token indicating that there might be additional contacts available to be listed. Copy this token to a subsequent call to ListContacts with the same parameters to retrieve the next page of contacts.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listCustomVerificationEmailTemplates(params = {}, callback) ⇒ AWS.Request

Lists the existing custom verification email templates for your account in the current Amazon Web Services Region.

For more information about custom verification email templates, see Using custom verification email templates in the Amazon SES Developer Guide.

You can execute this operation no more than once per second.

Examples:

Calling the listCustomVerificationEmailTemplates operation

var params = {
  NextToken: 'STRING_VALUE',
  PageSize: 'NUMBER_VALUE'
};
sesv2.listCustomVerificationEmailTemplates(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • NextToken — (String)

      A token returned from a previous call to ListCustomVerificationEmailTemplates to indicate the position in the list of custom verification email templates.

    • PageSize — (Integer)

      The number of results to show in a single call to ListCustomVerificationEmailTemplates. If the number of results is larger than the number you specified in this parameter, then the response includes a NextToken element, which you can use to obtain additional results.

      The value you specify has to be at least 1, and can be no more than 50.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • CustomVerificationEmailTemplates — (Array<map>)

        A list of the custom verification email templates that exist in your account.

        • TemplateName — (String)

          The name of the custom verification email template.

        • FromEmailAddress — (String)

          The email address that the custom verification email is sent from.

        • TemplateSubject — (String)

          The subject line of the custom verification email.

        • SuccessRedirectionURL — (String)

          The URL that the recipient of the verification email is sent to if his or her address is successfully verified.

        • FailureRedirectionURL — (String)

          The URL that the recipient of the verification email is sent to if his or her address is not successfully verified.

      • NextToken — (String)

        A token indicating that there are additional custom verification email templates available to be listed. Pass this token to a subsequent call to ListCustomVerificationEmailTemplates to retrieve the next 50 custom verification email templates.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listDedicatedIpPools(params = {}, callback) ⇒ AWS.Request

List all of the dedicated IP pools that exist in your Amazon Web Services account in the current Region.

Service Reference:

Examples:

Calling the listDedicatedIpPools operation

var params = {
  NextToken: 'STRING_VALUE',
  PageSize: 'NUMBER_VALUE'
};
sesv2.listDedicatedIpPools(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • NextToken — (String)

      A token returned from a previous call to ListDedicatedIpPools to indicate the position in the list of dedicated IP pools.

    • PageSize — (Integer)

      The number of results to show in a single call to ListDedicatedIpPools. If the number of results is larger than the number you specified in this parameter, then the response includes a NextToken element, which you can use to obtain additional results.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • DedicatedIpPools — (Array<String>)

        A list of all of the dedicated IP pools that are associated with your Amazon Web Services account in the current Region.

      • NextToken — (String)

        A token that indicates that there are additional IP pools to list. To view additional IP pools, issue another request to ListDedicatedIpPools, passing this token in the NextToken parameter.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listDeliverabilityTestReports(params = {}, callback) ⇒ AWS.Request

Show a list of the predictive inbox placement tests that you've performed, regardless of their statuses. For predictive inbox placement tests that are complete, you can use the GetDeliverabilityTestReport operation to view the results.

Service Reference:

Examples:

Calling the listDeliverabilityTestReports operation

var params = {
  NextToken: 'STRING_VALUE',
  PageSize: 'NUMBER_VALUE'
};
sesv2.listDeliverabilityTestReports(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • NextToken — (String)

      A token returned from a previous call to ListDeliverabilityTestReports to indicate the position in the list of predictive inbox placement tests.

    • PageSize — (Integer)

      The number of results to show in a single call to ListDeliverabilityTestReports. If the number of results is larger than the number you specified in this parameter, then the response includes a NextToken element, which you can use to obtain additional results.

      The value you specify has to be at least 0, and can be no more than 1000.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • DeliverabilityTestReports — (Array<map>)

        An object that contains a lists of predictive inbox placement tests that you've performed.

        • ReportId — (String)

          A unique string that identifies the predictive inbox placement test.

        • ReportName — (String)

          A name that helps you identify a predictive inbox placement test report.

        • Subject — (String)

          The subject line for an email that you submitted in a predictive inbox placement test.

        • FromEmailAddress — (String)

          The sender address that you specified for the predictive inbox placement test.

        • CreateDate — (Date)

          The date and time when the predictive inbox placement test was created.

        • DeliverabilityTestStatus — (String)

          The status of the predictive inbox placement test. If the status is IN_PROGRESS, then the predictive inbox placement test is currently running. Predictive inbox placement tests are usually complete within 24 hours of creating the test. If the status is COMPLETE, then the test is finished, and you can use the GetDeliverabilityTestReport to view the results of the test.

          Possible values include:
          • "IN_PROGRESS"
          • "COMPLETED"
      • NextToken — (String)

        A token that indicates that there are additional predictive inbox placement tests to list. To view additional predictive inbox placement tests, issue another request to ListDeliverabilityTestReports, and pass this token in the NextToken parameter.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listDomainDeliverabilityCampaigns(params = {}, callback) ⇒ AWS.Request

Retrieve deliverability data for all the campaigns that used a specific domain to send email during a specified time range. This data is available for a domain only if you enabled the Deliverability dashboard for the domain.

Examples:

Calling the listDomainDeliverabilityCampaigns operation

var params = {
  EndDate: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, /* required */
  StartDate: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, /* required */
  SubscribedDomain: 'STRING_VALUE', /* required */
  NextToken: 'STRING_VALUE',
  PageSize: 'NUMBER_VALUE'
};
sesv2.listDomainDeliverabilityCampaigns(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • StartDate — (Date)

      The first day that you want to obtain deliverability data for.

    • EndDate — (Date)

      The last day that you want to obtain deliverability data for. This value has to be less than or equal to 30 days after the value of the StartDate parameter.

    • SubscribedDomain — (String)

      The domain to obtain deliverability data for.

    • NextToken — (String)

      A token that’s returned from a previous call to the ListDomainDeliverabilityCampaigns operation. This token indicates the position of a campaign in the list of campaigns.

    • PageSize — (Integer)

      The maximum number of results to include in response to a single call to the ListDomainDeliverabilityCampaigns operation. If the number of results is larger than the number that you specify in this parameter, the response includes a NextToken element, which you can use to obtain additional results.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • DomainDeliverabilityCampaigns — (Array<map>)

        An array of responses, one for each campaign that used the domain to send email during the specified time range.

        • CampaignId — (String)

          The unique identifier for the campaign. The Deliverability dashboard automatically generates and assigns this identifier to a campaign.

        • ImageUrl — (String)

          The URL of an image that contains a snapshot of the email message that was sent.

        • Subject — (String)

          The subject line, or title, of the email message.

        • FromAddress — (String)

          The verified email address that the email message was sent from.

        • SendingIps — (Array<String>)

          The IP addresses that were used to send the email message.

        • FirstSeenDateTime — (Date)

          The first time when the email message was delivered to any recipient's inbox. This value can help you determine how long it took for a campaign to deliver an email message.

        • LastSeenDateTime — (Date)

          The last time when the email message was delivered to any recipient's inbox. This value can help you determine how long it took for a campaign to deliver an email message.

        • InboxCount — (Integer)

          The number of email messages that were delivered to recipients’ inboxes.

        • SpamCount — (Integer)

          The number of email messages that were delivered to recipients' spam or junk mail folders.

        • ReadRate — (Float)

          The percentage of email messages that were opened by recipients. Due to technical limitations, this value only includes recipients who opened the message by using an email client that supports images.

        • DeleteRate — (Float)

          The percentage of email messages that were deleted by recipients, without being opened first. Due to technical limitations, this value only includes recipients who opened the message by using an email client that supports images.

        • ReadDeleteRate — (Float)

          The percentage of email messages that were opened and then deleted by recipients. Due to technical limitations, this value only includes recipients who opened the message by using an email client that supports images.

        • ProjectedVolume — (Integer)

          The projected number of recipients that the email message was sent to.

        • Esps — (Array<String>)

          The major email providers who handled the email message.

      • NextToken — (String)

        A token that’s returned from a previous call to the ListDomainDeliverabilityCampaigns operation. This token indicates the position of the campaign in the list of campaigns.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listEmailIdentities(params = {}, callback) ⇒ AWS.Request

Returns a list of all of the email identities that are associated with your Amazon Web Services account. An identity can be either an email address or a domain. This operation returns identities that are verified as well as those that aren't. This operation returns identities that are associated with Amazon SES and Amazon Pinpoint.

Service Reference:

Examples:

Calling the listEmailIdentities operation

var params = {
  NextToken: 'STRING_VALUE',
  PageSize: 'NUMBER_VALUE'
};
sesv2.listEmailIdentities(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • NextToken — (String)

      A token returned from a previous call to ListEmailIdentities to indicate the position in the list of identities.

    • PageSize — (Integer)

      The number of results to show in a single call to ListEmailIdentities. If the number of results is larger than the number you specified in this parameter, then the response includes a NextToken element, which you can use to obtain additional results.

      The value you specify has to be at least 0, and can be no more than 1000.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • EmailIdentities — (Array<map>)

        An array that includes all of the email identities associated with your Amazon Web Services account.

        • IdentityType — (String)

          The email identity type. Note: the MANAGED_DOMAIN type is not supported for email identity types.

          Possible values include:
          • "EMAIL_ADDRESS"
          • "DOMAIN"
          • "MANAGED_DOMAIN"
        • IdentityName — (String)

          The address or domain of the identity.

        • SendingEnabled — (Boolean)

          Indicates whether or not you can send email from the identity.

          An identity is an email address or domain that you send email from. Before you can send email from an identity, you have to demostrate that you own the identity, and that you authorize Amazon SES to send email from that identity.

        • VerificationStatus — (String)

          The verification status of the identity. The status can be one of the following:

          • PENDING – The verification process was initiated, but Amazon SES hasn't yet been able to verify the identity.

          • SUCCESS – The verification process completed successfully.

          • FAILED – The verification process failed.

          • TEMPORARY_FAILURE – A temporary issue is preventing Amazon SES from determining the verification status of the identity.

          • NOT_STARTED – The verification process hasn't been initiated for the identity.

          Possible values include:
          • "PENDING"
          • "SUCCESS"
          • "FAILED"
          • "TEMPORARY_FAILURE"
          • "NOT_STARTED"
      • NextToken — (String)

        A token that indicates that there are additional configuration sets to list. To view additional configuration sets, issue another request to ListEmailIdentities, and pass this token in the NextToken parameter.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listEmailTemplates(params = {}, callback) ⇒ AWS.Request

Lists the email templates present in your Amazon SES account in the current Amazon Web Services Region.

You can execute this operation no more than once per second.

Service Reference:

Examples:

Calling the listEmailTemplates operation

var params = {
  NextToken: 'STRING_VALUE',
  PageSize: 'NUMBER_VALUE'
};
sesv2.listEmailTemplates(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • NextToken — (String)

      A token returned from a previous call to ListEmailTemplates to indicate the position in the list of email templates.

    • PageSize — (Integer)

      The number of results to show in a single call to ListEmailTemplates. If the number of results is larger than the number you specified in this parameter, then the response includes a NextToken element, which you can use to obtain additional results.

      The value you specify has to be at least 1, and can be no more than 100.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • TemplatesMetadata — (Array<map>)

        An array the contains the name and creation time stamp for each template in your Amazon SES account.

        • TemplateName — (String)

          The name of the template.

        • CreatedTimestamp — (Date)

          The time and date the template was created.

      • NextToken — (String)

        A token indicating that there are additional email templates available to be listed. Pass this token to a subsequent ListEmailTemplates call to retrieve the next 10 email templates.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listExportJobs(params = {}, callback) ⇒ AWS.Request

Lists all of the export jobs.

Service Reference:

Examples:

List export jobs


/* Lists export jobs of type METRICS_DATA and status PROCESSING */

 var params = {
  ExportSourceType: "METRICS_DATA", 
  JobStatus: "PROCESSING", 
  PageSize: 25
 };
 sesv2.listExportJobs(params, function(err, data) {
   if (err) console.log(err, err.stack); // an error occurred
   else     console.log(data);           // successful response
   /*
   data = {
    ExportJobs: [
       {
      CreatedTimestamp: <Date Representation>, 
      ExportSourceType: "METRICS_DATA", 
      JobId: "72de83a0-6b49-47ca-9783-8b812576887a", 
      JobStatus: "PROCESSING"
     }
    ]
   }
   */
 });

Calling the listExportJobs operation

var params = {
  ExportSourceType: METRICS_DATA | MESSAGE_INSIGHTS,
  JobStatus: CREATED | PROCESSING | COMPLETED | FAILED | CANCELLED,
  NextToken: 'STRING_VALUE',
  PageSize: 'NUMBER_VALUE'
};
sesv2.listExportJobs(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • NextToken — (String)

      The pagination token returned from a previous call to ListExportJobs to indicate the position in the list of export jobs.

    • PageSize — (Integer)

      Maximum number of export jobs to return at once. Use this parameter to paginate results. If additional export jobs exist beyond the specified limit, the NextToken element is sent in the response. Use the NextToken value in subsequent calls to ListExportJobs to retrieve additional export jobs.

    • ExportSourceType — (String)

      A value used to list export jobs that have a certain ExportSourceType.

      Possible values include:
      • "METRICS_DATA"
      • "MESSAGE_INSIGHTS"
    • JobStatus — (String)

      A value used to list export jobs that have a certain JobStatus.

      Possible values include:
      • "CREATED"
      • "PROCESSING"
      • "COMPLETED"
      • "FAILED"
      • "CANCELLED"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ExportJobs — (Array<map>)

        A list of the export job summaries.

        • JobId — (String)

          The export job ID.

        • ExportSourceType — (String)

          The source type of the export job.

          Possible values include:
          • "METRICS_DATA"
          • "MESSAGE_INSIGHTS"
        • JobStatus — (String)

          The status of the export job.

          Possible values include:
          • "CREATED"
          • "PROCESSING"
          • "COMPLETED"
          • "FAILED"
          • "CANCELLED"
        • CreatedTimestamp — (Date)

          The timestamp of when the export job was created.

        • CompletedTimestamp — (Date)

          The timestamp of when the export job was completed.

      • NextToken — (String)

        A string token indicating that there might be additional export jobs available to be listed. Use this token to a subsequent call to ListExportJobs with the same parameters to retrieve the next page of export jobs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listImportJobs(params = {}, callback) ⇒ AWS.Request

Lists all of the import jobs.

Service Reference:

Examples:

Calling the listImportJobs operation

var params = {
  ImportDestinationType: SUPPRESSION_LIST | CONTACT_LIST,
  NextToken: 'STRING_VALUE',
  PageSize: 'NUMBER_VALUE'
};
sesv2.listImportJobs(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ImportDestinationType — (String)

      The destination of the import job, which can be used to list import jobs that have a certain ImportDestinationType.

      Possible values include:
      • "SUPPRESSION_LIST"
      • "CONTACT_LIST"
    • NextToken — (String)

      A string token indicating that there might be additional import jobs available to be listed. Copy this token to a subsequent call to ListImportJobs with the same parameters to retrieve the next page of import jobs.

    • PageSize — (Integer)

      Maximum number of import jobs to return at once. Use this parameter to paginate results. If additional import jobs exist beyond the specified limit, the NextToken element is sent in the response. Use the NextToken value in subsequent requests to retrieve additional addresses.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ImportJobs — (Array<map>)

        A list of the import job summaries.

        • JobId — (String)

          A string that represents a job ID.

        • ImportDestination — (map)

          An object that contains details about the resource destination the import job is going to target.

          • SuppressionListDestination — (map)

            An object that contains the action of the import job towards suppression list.

            • SuppressionListImportActionrequired — (String)

              The type of action to perform on the address. The following are possible values:

              • PUT: add the addresses to the suppression list. If the record already exists, it will override it with the new value.

              • DELETE: remove the addresses from the suppression list.

              Possible values include:
              • "DELETE"
              • "PUT"
          • ContactListDestination — (map)

            An object that contains the action of the import job towards a contact list.

            • ContactListNamerequired — (String)

              The name of the contact list.

            • ContactListImportActionrequired — (String)

              >The type of action to perform on the addresses. The following are the possible values:

              • PUT: add the addresses to the contact list. If the record already exists, it will override it with the new value.

              • DELETE: remove the addresses from the contact list.

              Possible values include:
              • "DELETE"
              • "PUT"
        • JobStatus — (String)

          The status of a job.

          • CREATED – Job has just been created.

          • PROCESSING – Job is processing.

          • ERROR – An error occurred during processing.

          • COMPLETED – Job has completed processing successfully.

          Possible values include:
          • "CREATED"
          • "PROCESSING"
          • "COMPLETED"
          • "FAILED"
          • "CANCELLED"
        • CreatedTimestamp — (Date)

          The date and time when the import job was created.

        • ProcessedRecordsCount — (Integer)

          The current number of records processed.

        • FailedRecordsCount — (Integer)

          The number of records that failed processing because of invalid input or other reasons.

      • NextToken — (String)

        A string token indicating that there might be additional import jobs available to be listed. Copy this token to a subsequent call to ListImportJobs with the same parameters to retrieve the next page of import jobs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listRecommendations(params = {}, callback) ⇒ AWS.Request

Lists the recommendations present in your Amazon SES account in the current Amazon Web Services Region.

You can execute this operation no more than once per second.

Service Reference:

Examples:

Calling the listRecommendations operation

var params = {
  Filter: {
    '<ListRecommendationsFilterKey>': 'STRING_VALUE',
    /* '<ListRecommendationsFilterKey>': ... */
  },
  NextToken: 'STRING_VALUE',
  PageSize: 'NUMBER_VALUE'
};
sesv2.listRecommendations(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Filter — (map<String>)

      Filters applied when retrieving recommendations. Can eiter be an individual filter, or combinations of STATUS and IMPACT or STATUS and TYPE

    • NextToken — (String)

      A token returned from a previous call to ListRecommendations to indicate the position in the list of recommendations.

    • PageSize — (Integer)

      The number of results to show in a single call to ListRecommendations. If the number of results is larger than the number you specified in this parameter, then the response includes a NextToken element, which you can use to obtain additional results.

      The value you specify has to be at least 1, and can be no more than 100.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Recommendations — (Array<map>)

        The recommendations applicable to your account.

        • ResourceArn — (String)

          The resource affected by the recommendation, with values like arn:aws:ses:us-east-1:123456789012:identity/example.com.

        • Type — (String)

          The recommendation type, with values like DKIM, SPF, DMARC or BIMI.

          Possible values include:
          • "DKIM"
          • "DMARC"
          • "SPF"
          • "BIMI"
        • Description — (String)

          The recommendation description / disambiguator - e.g. DKIM1 and DKIM2 are different recommendations about your DKIM setup.

        • Status — (String)

          The recommendation status, with values like OPEN or FIXED.

          Possible values include:
          • "OPEN"
          • "FIXED"
        • CreatedTimestamp — (Date)

          The first time this issue was encountered and the recommendation was generated.

        • LastUpdatedTimestamp — (Date)

          The last time the recommendation was updated.

        • Impact — (String)

          The recommendation impact, with values like HIGH or LOW.

          Possible values include:
          • "LOW"
          • "HIGH"
      • NextToken — (String)

        A string token indicating that there might be additional recommendations available to be listed. Use the token provided in the ListRecommendationsResponse to use in the subsequent call to ListRecommendations with the same parameters to retrieve the next page of recommendations.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listSuppressedDestinations(params = {}, callback) ⇒ AWS.Request

Retrieves a list of email addresses that are on the suppression list for your account.

Service Reference:

Examples:

Calling the listSuppressedDestinations operation

var params = {
  EndDate: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
  NextToken: 'STRING_VALUE',
  PageSize: 'NUMBER_VALUE',
  Reasons: [
    BOUNCE | COMPLAINT,
    /* more items */
  ],
  StartDate: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789
};
sesv2.listSuppressedDestinations(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Reasons — (Array<String>)

      The factors that caused the email address to be added to .

    • StartDate — (Date)

      Used to filter the list of suppressed email destinations so that it only includes addresses that were added to the list after a specific date.

    • EndDate — (Date)

      Used to filter the list of suppressed email destinations so that it only includes addresses that were added to the list before a specific date.

    • NextToken — (String)

      A token returned from a previous call to ListSuppressedDestinations to indicate the position in the list of suppressed email addresses.

    • PageSize — (Integer)

      The number of results to show in a single call to ListSuppressedDestinations. If the number of results is larger than the number you specified in this parameter, then the response includes a NextToken element, which you can use to obtain additional results.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • SuppressedDestinationSummaries — (Array<map>)

        A list of summaries, each containing a summary for a suppressed email destination.

        • EmailAddressrequired — (String)

          The email address that's on the suppression list for your account.

        • Reasonrequired — (String)

          The reason that the address was added to the suppression list for your account.

          Possible values include:
          • "BOUNCE"
          • "COMPLAINT"
        • LastUpdateTimerequired — (Date)

          The date and time when the suppressed destination was last updated, shown in Unix time format.

      • NextToken — (String)

        A token that indicates that there are additional email addresses on the suppression list for your account. To view additional suppressed addresses, issue another request to ListSuppressedDestinations, and pass this token in the NextToken parameter.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listTagsForResource(params = {}, callback) ⇒ AWS.Request

Retrieve a list of the tags (keys and values) that are associated with a specified resource. A tag is a label that you optionally define and associate with a resource. Each tag consists of a required tag key and an optional associated tag value. A tag key is a general label that acts as a category for more specific tag values. A tag value acts as a descriptor within a tag key.

Service Reference:

Examples:

Calling the listTagsForResource operation

var params = {
  ResourceArn: 'STRING_VALUE' /* required */
};
sesv2.listTagsForResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResourceArn — (String)

      The Amazon Resource Name (ARN) of the resource that you want to retrieve tag information for.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Tags — (Array<map>)

        An array that lists all the tags that are associated with the resource. Each tag consists of a required tag key (Key) and an associated tag value (Value)

        • Keyrequired — (String)

          One part of a key-value pair that defines a tag. The maximum length of a tag key is 128 characters. The minimum length is 1 character.

        • Valuerequired — (String)

          The optional part of a key-value pair that defines a tag. The maximum length of a tag value is 256 characters. The minimum length is 0 characters. If you don't want a resource to have a specific tag value, don't specify a value for this parameter. If you don't specify a value, Amazon SES sets the value to an empty string.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putAccountDedicatedIpWarmupAttributes(params = {}, callback) ⇒ AWS.Request

Enable or disable the automatic warm-up feature for dedicated IP addresses.

Examples:

Calling the putAccountDedicatedIpWarmupAttributes operation

var params = {
  AutoWarmupEnabled: true || false
};
sesv2.putAccountDedicatedIpWarmupAttributes(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • AutoWarmupEnabled — (Boolean)

      Enables or disables the automatic warm-up feature for dedicated IP addresses that are associated with your Amazon SES account in the current Amazon Web Services Region. Set to true to enable the automatic warm-up feature, or set to false to disable it.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putAccountDetails(params = {}, callback) ⇒ AWS.Request

Update your Amazon SES account details.

Service Reference:

Examples:

Calling the putAccountDetails operation

var params = {
  MailType: MARKETING | TRANSACTIONAL, /* required */
  UseCaseDescription: 'STRING_VALUE', /* required */
  WebsiteURL: 'STRING_VALUE', /* required */
  AdditionalContactEmailAddresses: [
    'STRING_VALUE',
    /* more items */
  ],
  ContactLanguage: EN | JA,
  ProductionAccessEnabled: true || false
};
sesv2.putAccountDetails(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • MailType — (String)

      The type of email your account will send.

      Possible values include:
      • "MARKETING"
      • "TRANSACTIONAL"
    • WebsiteURL — (String)

      The URL of your website. This information helps us better understand the type of content that you plan to send.

    • ContactLanguage — (String)

      The language you would prefer to be contacted with.

      Possible values include:
      • "EN"
      • "JA"
    • UseCaseDescription — (String)

      A description of the types of email that you plan to send.

    • AdditionalContactEmailAddresses — (Array<String>)

      Additional email addresses that you would like to be notified regarding Amazon SES matters.

    • ProductionAccessEnabled — (Boolean)

      Indicates whether or not your account should have production access in the current Amazon Web Services Region.

      If the value is false, then your account is in the sandbox. When your account is in the sandbox, you can only send email to verified identities.

      If the value is true, then your account has production access. When your account has production access, you can send email to any address. The sending quota and maximum sending rate for your account vary based on your specific use case.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putAccountSendingAttributes(params = {}, callback) ⇒ AWS.Request

Enable or disable the ability of your account to send email.

Service Reference:

Examples:

Calling the putAccountSendingAttributes operation

var params = {
  SendingEnabled: true || false
};
sesv2.putAccountSendingAttributes(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • SendingEnabled — (Boolean)

      Enables or disables your account's ability to send email. Set to true to enable email sending, or set to false to disable email sending.

      Note: If Amazon Web Services paused your account's ability to send email, you can't use this operation to resume your account's ability to send email.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putAccountSuppressionAttributes(params = {}, callback) ⇒ AWS.Request

Change the settings for the account-level suppression list.

Service Reference:

Examples:

Calling the putAccountSuppressionAttributes operation

var params = {
  SuppressedReasons: [
    BOUNCE | COMPLAINT,
    /* more items */
  ]
};
sesv2.putAccountSuppressionAttributes(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • SuppressedReasons — (Array<String>)

      A list that contains the reasons that email addresses will be automatically added to the suppression list for your account. This list can contain any or all of the following:

      • COMPLAINT – Amazon SES adds an email address to the suppression list for your account when a message sent to that address results in a complaint.

      • BOUNCE – Amazon SES adds an email address to the suppression list for your account when a message sent to that address results in a hard bounce.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putAccountVdmAttributes(params = {}, callback) ⇒ AWS.Request

Update your Amazon SES account VDM attributes.

You can execute this operation no more than once per second.

Service Reference:

Examples:

Calling the putAccountVdmAttributes operation

var params = {
  VdmAttributes: { /* required */
    VdmEnabled: ENABLED | DISABLED, /* required */
    DashboardAttributes: {
      EngagementMetrics: ENABLED | DISABLED
    },
    GuardianAttributes: {
      OptimizedSharedDelivery: ENABLED | DISABLED
    }
  }
};
sesv2.putAccountVdmAttributes(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • VdmAttributes — (map)

      The VDM attributes that you wish to apply to your Amazon SES account.

      • VdmEnabledrequired — (String)

        Specifies the status of your VDM configuration. Can be one of the following:

        • ENABLED – Amazon SES enables VDM for your account.

        • DISABLED – Amazon SES disables VDM for your account.

        Possible values include:
        • "ENABLED"
        • "DISABLED"
      • DashboardAttributes — (map)

        Specifies additional settings for your VDM configuration as applicable to the Dashboard.

        • EngagementMetrics — (String)

          Specifies the status of your VDM engagement metrics collection. Can be one of the following:

          • ENABLED – Amazon SES enables engagement metrics for your account.

          • DISABLED – Amazon SES disables engagement metrics for your account.

          Possible values include:
          • "ENABLED"
          • "DISABLED"
      • GuardianAttributes — (map)

        Specifies additional settings for your VDM configuration as applicable to the Guardian.

        • OptimizedSharedDelivery — (String)

          Specifies the status of your VDM optimized shared delivery. Can be one of the following:

          • ENABLED – Amazon SES enables optimized shared delivery for your account.

          • DISABLED – Amazon SES disables optimized shared delivery for your account.

          Possible values include:
          • "ENABLED"
          • "DISABLED"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putConfigurationSetDeliveryOptions(params = {}, callback) ⇒ AWS.Request

Associate a configuration set with a dedicated IP pool. You can use dedicated IP pools to create groups of dedicated IP addresses for sending specific types of email.

Examples:

Calling the putConfigurationSetDeliveryOptions operation

var params = {
  ConfigurationSetName: 'STRING_VALUE', /* required */
  SendingPoolName: 'STRING_VALUE',
  TlsPolicy: REQUIRE | OPTIONAL
};
sesv2.putConfigurationSetDeliveryOptions(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConfigurationSetName — (String)

      The name of the configuration set to associate with a dedicated IP pool.

    • TlsPolicy — (String)

      Specifies whether messages that use the configuration set are required to use Transport Layer Security (TLS). If the value is Require, messages are only delivered if a TLS connection can be established. If the value is Optional, messages can be delivered in plain text if a TLS connection can't be established.

      Possible values include:
      • "REQUIRE"
      • "OPTIONAL"
    • SendingPoolName — (String)

      The name of the dedicated IP pool to associate with the configuration set.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putConfigurationSetReputationOptions(params = {}, callback) ⇒ AWS.Request

Enable or disable collection of reputation metrics for emails that you send using a particular configuration set in a specific Amazon Web Services Region.

Examples:

Calling the putConfigurationSetReputationOptions operation

var params = {
  ConfigurationSetName: 'STRING_VALUE', /* required */
  ReputationMetricsEnabled: true || false
};
sesv2.putConfigurationSetReputationOptions(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConfigurationSetName — (String)

      The name of the configuration set.

    • ReputationMetricsEnabled — (Boolean)

      If true, tracking of reputation metrics is enabled for the configuration set. If false, tracking of reputation metrics is disabled for the configuration set.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putConfigurationSetSendingOptions(params = {}, callback) ⇒ AWS.Request

Enable or disable email sending for messages that use a particular configuration set in a specific Amazon Web Services Region.

Examples:

Calling the putConfigurationSetSendingOptions operation

var params = {
  ConfigurationSetName: 'STRING_VALUE', /* required */
  SendingEnabled: true || false
};
sesv2.putConfigurationSetSendingOptions(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConfigurationSetName — (String)

      The name of the configuration set to enable or disable email sending for.

    • SendingEnabled — (Boolean)

      If true, email sending is enabled for the configuration set. If false, email sending is disabled for the configuration set.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putConfigurationSetSuppressionOptions(params = {}, callback) ⇒ AWS.Request

Specify the account suppression list preferences for a configuration set.

Examples:

Calling the putConfigurationSetSuppressionOptions operation

var params = {
  ConfigurationSetName: 'STRING_VALUE', /* required */
  SuppressedReasons: [
    BOUNCE | COMPLAINT,
    /* more items */
  ]
};
sesv2.putConfigurationSetSuppressionOptions(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConfigurationSetName — (String)

      The name of the configuration set to change the suppression list preferences for.

    • SuppressedReasons — (Array<String>)

      A list that contains the reasons that email addresses are automatically added to the suppression list for your account. This list can contain any or all of the following:

      • COMPLAINT – Amazon SES adds an email address to the suppression list for your account when a message sent to that address results in a complaint.

      • BOUNCE – Amazon SES adds an email address to the suppression list for your account when a message sent to that address results in a hard bounce.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putConfigurationSetTrackingOptions(params = {}, callback) ⇒ AWS.Request

Specify a custom domain to use for open and click tracking elements in email that you send.

Examples:

Calling the putConfigurationSetTrackingOptions operation

var params = {
  ConfigurationSetName: 'STRING_VALUE', /* required */
  CustomRedirectDomain: 'STRING_VALUE'
};
sesv2.putConfigurationSetTrackingOptions(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConfigurationSetName — (String)

      The name of the configuration set.

    • CustomRedirectDomain — (String)

      The domain to use to track open and click events.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putConfigurationSetVdmOptions(params = {}, callback) ⇒ AWS.Request

Specify VDM preferences for email that you send using the configuration set.

You can execute this operation no more than once per second.

Service Reference:

Examples:

Calling the putConfigurationSetVdmOptions operation

var params = {
  ConfigurationSetName: 'STRING_VALUE', /* required */
  VdmOptions: {
    DashboardOptions: {
      EngagementMetrics: ENABLED | DISABLED
    },
    GuardianOptions: {
      OptimizedSharedDelivery: ENABLED | DISABLED
    }
  }
};
sesv2.putConfigurationSetVdmOptions(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConfigurationSetName — (String)

      The name of the configuration set.

    • VdmOptions — (map)

      The VDM options to apply to the configuration set.

      • DashboardOptions — (map)

        Specifies additional settings for your VDM configuration as applicable to the Dashboard.

        • EngagementMetrics — (String)

          Specifies the status of your VDM engagement metrics collection. Can be one of the following:

          • ENABLED – Amazon SES enables engagement metrics for the configuration set.

          • DISABLED – Amazon SES disables engagement metrics for the configuration set.

          Possible values include:
          • "ENABLED"
          • "DISABLED"
      • GuardianOptions — (map)

        Specifies additional settings for your VDM configuration as applicable to the Guardian.

        • OptimizedSharedDelivery — (String)

          Specifies the status of your VDM optimized shared delivery. Can be one of the following:

          • ENABLED – Amazon SES enables optimized shared delivery for the configuration set.

          • DISABLED – Amazon SES disables optimized shared delivery for the configuration set.

          Possible values include:
          • "ENABLED"
          • "DISABLED"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putDedicatedIpInPool(params = {}, callback) ⇒ AWS.Request

Move a dedicated IP address to an existing dedicated IP pool.

Note: The dedicated IP address that you specify must already exist, and must be associated with your Amazon Web Services account. The dedicated IP pool you specify must already exist. You can create a new pool by using the CreateDedicatedIpPool operation.

Service Reference:

Examples:

Calling the putDedicatedIpInPool operation

var params = {
  DestinationPoolName: 'STRING_VALUE', /* required */
  Ip: 'STRING_VALUE' /* required */
};
sesv2.putDedicatedIpInPool(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Ip — (String)

      The IP address that you want to move to the dedicated IP pool. The value you specify has to be a dedicated IP address that's associated with your Amazon Web Services account.

    • DestinationPoolName — (String)

      The name of the IP pool that you want to add the dedicated IP address to. You have to specify an IP pool that already exists.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putDedicatedIpPoolScalingAttributes(params = {}, callback) ⇒ AWS.Request

Used to convert a dedicated IP pool to a different scaling mode.

Note: MANAGED pools cannot be converted to STANDARD scaling mode.

Examples:

Used to convert a dedicated IP pool to a different scaling mode.


/* This example converts a dedicated IP pool from STANDARD to MANAGED. */

 var params = {
  PoolName: "sample-ses-pool", 
  ScalingMode: "MANAGED"
 };
 sesv2.putDedicatedIpPoolScalingAttributes(params, function(err, data) {
   if (err) console.log(err, err.stack); // an error occurred
   else     console.log(data);           // successful response
   /*
   data = {
   }
   */
 });

Calling the putDedicatedIpPoolScalingAttributes operation

var params = {
  PoolName: 'STRING_VALUE', /* required */
  ScalingMode: STANDARD | MANAGED /* required */
};
sesv2.putDedicatedIpPoolScalingAttributes(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • PoolName — (String)

      The name of the dedicated IP pool.

    • ScalingMode — (String)

      The scaling mode to apply to the dedicated IP pool.

      Note: Changing the scaling mode from MANAGED to STANDARD is not supported.
      Possible values include:
      • "STANDARD"
      • "MANAGED"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putDedicatedIpWarmupAttributes(params = {}, callback) ⇒ AWS.Request

Service Reference:

Examples:

Calling the putDedicatedIpWarmupAttributes operation

var params = {
  Ip: 'STRING_VALUE', /* required */
  WarmupPercentage: 'NUMBER_VALUE' /* required */
};
sesv2.putDedicatedIpWarmupAttributes(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Ip — (String)

      The dedicated IP address that you want to update the warm-up attributes for.

    • WarmupPercentage — (Integer)

      The warm-up percentage that you want to associate with the dedicated IP address.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putDeliverabilityDashboardOption(params = {}, callback) ⇒ AWS.Request

Enable or disable the Deliverability dashboard. When you enable the Deliverability dashboard, you gain access to reputation, deliverability, and other metrics for the domains that you use to send email. You also gain the ability to perform predictive inbox placement tests.

When you use the Deliverability dashboard, you pay a monthly subscription charge, in addition to any other fees that you accrue by using Amazon SES and other Amazon Web Services services. For more information about the features and cost of a Deliverability dashboard subscription, see Amazon SES Pricing.

Examples:

Calling the putDeliverabilityDashboardOption operation

var params = {
  DashboardEnabled: true || false, /* required */
  SubscribedDomains: [
    {
      Domain: 'STRING_VALUE',
      InboxPlacementTrackingOption: {
        Global: true || false,
        TrackedIsps: [
          'STRING_VALUE',
          /* more items */
        ]
      },
      SubscriptionStartDate: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789
    },
    /* more items */
  ]
};
sesv2.putDeliverabilityDashboardOption(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DashboardEnabled — (Boolean)

      Specifies whether to enable the Deliverability dashboard. To enable the dashboard, set this value to true.

    • SubscribedDomains — (Array<map>)

      An array of objects, one for each verified domain that you use to send email and enabled the Deliverability dashboard for.

      • Domain — (String)

        A verified domain that’s associated with your Amazon Web Services account and currently has an active Deliverability dashboard subscription.

      • SubscriptionStartDate — (Date)

        The date when you enabled the Deliverability dashboard for the domain.

      • InboxPlacementTrackingOption — (map)

        An object that contains information about the inbox placement data settings for the domain.

        • Global — (Boolean)

          Specifies whether inbox placement data is being tracked for the domain.

        • TrackedIsps — (Array<String>)

          An array of strings, one for each major email provider that the inbox placement data applies to.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putEmailIdentityConfigurationSetAttributes(params = {}, callback) ⇒ AWS.Request

Used to associate a configuration set with an email identity.

Examples:

Calling the putEmailIdentityConfigurationSetAttributes operation

var params = {
  EmailIdentity: 'STRING_VALUE', /* required */
  ConfigurationSetName: 'STRING_VALUE'
};
sesv2.putEmailIdentityConfigurationSetAttributes(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • EmailIdentity — (String)

      The email address or domain to associate with a configuration set.

    • ConfigurationSetName — (String)

      The configuration set to associate with an email identity.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putEmailIdentityDkimAttributes(params = {}, callback) ⇒ AWS.Request

Used to enable or disable DKIM authentication for an email identity.

Service Reference:

Examples:

Calling the putEmailIdentityDkimAttributes operation

var params = {
  EmailIdentity: 'STRING_VALUE', /* required */
  SigningEnabled: true || false
};
sesv2.putEmailIdentityDkimAttributes(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • EmailIdentity — (String)

      The email identity.

    • SigningEnabled — (Boolean)

      Sets the DKIM signing configuration for the identity.

      When you set this value true, then the messages that are sent from the identity are signed using DKIM. If you set this value to false, your messages are sent without DKIM signing.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putEmailIdentityDkimSigningAttributes(params = {}, callback) ⇒ AWS.Request

Used to configure or change the DKIM authentication settings for an email domain identity. You can use this operation to do any of the following:

  • Update the signing attributes for an identity that uses Bring Your Own DKIM (BYODKIM).

  • Update the key length that should be used for Easy DKIM.

  • Change from using no DKIM authentication to using Easy DKIM.

  • Change from using no DKIM authentication to using BYODKIM.

  • Change from using Easy DKIM to using BYODKIM.

  • Change from using BYODKIM to using Easy DKIM.

Examples:

Calling the putEmailIdentityDkimSigningAttributes operation

var params = {
  EmailIdentity: 'STRING_VALUE', /* required */
  SigningAttributesOrigin: AWS_SES | EXTERNAL, /* required */
  SigningAttributes: {
    DomainSigningPrivateKey: 'STRING_VALUE',
    DomainSigningSelector: 'STRING_VALUE',
    NextSigningKeyLength: RSA_1024_BIT | RSA_2048_BIT
  }
};
sesv2.putEmailIdentityDkimSigningAttributes(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • EmailIdentity — (String)

      The email identity.

    • SigningAttributesOrigin — (String)

      The method to use to configure DKIM for the identity. There are the following possible values:

      • AWS_SES – Configure DKIM for the identity by using Easy DKIM.

      • EXTERNAL – Configure DKIM for the identity by using Bring Your Own DKIM (BYODKIM).

      Possible values include:
      • "AWS_SES"
      • "EXTERNAL"
    • SigningAttributes — (map)

      An object that contains information about the private key and selector that you want to use to configure DKIM for the identity for Bring Your Own DKIM (BYODKIM) for the identity, or, configures the key length to be used for Easy DKIM.

      • DomainSigningSelector — (String)

        [Bring Your Own DKIM] A string that's used to identify a public key in the DNS configuration for a domain.

      • DomainSigningPrivateKey — (String)

        [Bring Your Own DKIM] A private key that's used to generate a DKIM signature.

        The private key must use 1024 or 2048-bit RSA encryption, and must be encoded using base64 encoding.

      • NextSigningKeyLength — (String)

        [Easy DKIM] The key length of the future DKIM key pair to be generated. This can be changed at most once per day.

        Possible values include:
        • "RSA_1024_BIT"
        • "RSA_2048_BIT"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • DkimStatus — (String)

        The DKIM authentication status of the identity. Amazon SES determines the authentication status by searching for specific records in the DNS configuration for your domain. If you used Easy DKIM to set up DKIM authentication, Amazon SES tries to find three unique CNAME records in the DNS configuration for your domain.

        If you provided a public key to perform DKIM authentication, Amazon SES tries to find a TXT record that uses the selector that you specified. The value of the TXT record must be a public key that's paired with the private key that you specified in the process of creating the identity.

        The status can be one of the following:

        • PENDING – The verification process was initiated, but Amazon SES hasn't yet detected the DKIM records in the DNS configuration for the domain.

        • SUCCESS – The verification process completed successfully.

        • FAILED – The verification process failed. This typically occurs when Amazon SES fails to find the DKIM records in the DNS configuration of the domain.

        • TEMPORARY_FAILURE – A temporary issue is preventing Amazon SES from determining the DKIM authentication status of the domain.

        • NOT_STARTED – The DKIM verification process hasn't been initiated for the domain.

        Possible values include:
        • "PENDING"
        • "SUCCESS"
        • "FAILED"
        • "TEMPORARY_FAILURE"
        • "NOT_STARTED"
      • DkimTokens — (Array<String>)

        If you used Easy DKIM to configure DKIM authentication for the domain, then this object contains a set of unique strings that you use to create a set of CNAME records that you add to the DNS configuration for your domain. When Amazon SES detects these records in the DNS configuration for your domain, the DKIM authentication process is complete.

        If you configured DKIM authentication for the domain by providing your own public-private key pair, then this object contains the selector that's associated with your public key.

        Regardless of the DKIM authentication method you use, Amazon SES searches for the appropriate records in the DNS configuration of the domain for up to 72 hours.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putEmailIdentityFeedbackAttributes(params = {}, callback) ⇒ AWS.Request

Used to enable or disable feedback forwarding for an identity. This setting determines what happens when an identity is used to send an email that results in a bounce or complaint event.

If the value is true, you receive email notifications when bounce or complaint events occur. These notifications are sent to the address that you specified in the Return-Path header of the original email.

You're required to have a method of tracking bounces and complaints. If you haven't set up another mechanism for receiving bounce or complaint notifications (for example, by setting up an event destination), you receive an email notification when these events occur (even if this setting is disabled).

Examples:

Calling the putEmailIdentityFeedbackAttributes operation

var params = {
  EmailIdentity: 'STRING_VALUE', /* required */
  EmailForwardingEnabled: true || false
};
sesv2.putEmailIdentityFeedbackAttributes(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • EmailIdentity — (String)

      The email identity.

    • EmailForwardingEnabled — (Boolean)

      Sets the feedback forwarding configuration for the identity.

      If the value is true, you receive email notifications when bounce or complaint events occur. These notifications are sent to the address that you specified in the Return-Path header of the original email.

      You're required to have a method of tracking bounces and complaints. If you haven't set up another mechanism for receiving bounce or complaint notifications (for example, by setting up an event destination), you receive an email notification when these events occur (even if this setting is disabled).

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putEmailIdentityMailFromAttributes(params = {}, callback) ⇒ AWS.Request

Used to enable or disable the custom Mail-From domain configuration for an email identity.

Examples:

Calling the putEmailIdentityMailFromAttributes operation

var params = {
  EmailIdentity: 'STRING_VALUE', /* required */
  BehaviorOnMxFailure: USE_DEFAULT_VALUE | REJECT_MESSAGE,
  MailFromDomain: 'STRING_VALUE'
};
sesv2.putEmailIdentityMailFromAttributes(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • EmailIdentity — (String)

      The verified email identity.

    • MailFromDomain — (String)

      The custom MAIL FROM domain that you want the verified identity to use. The MAIL FROM domain must meet the following criteria:

      • It has to be a subdomain of the verified identity.

      • It can't be used to receive email.

      • It can't be used in a "From" address if the MAIL FROM domain is a destination for feedback forwarding emails.

    • BehaviorOnMxFailure — (String)

      The action to take if the required MX record isn't found when you send an email. When you set this value to UseDefaultValue, the mail is sent using amazonses.com as the MAIL FROM domain. When you set this value to RejectMessage, the Amazon SES API v2 returns a MailFromDomainNotVerified error, and doesn't attempt to deliver the email.

      These behaviors are taken when the custom MAIL FROM domain configuration is in the Pending, Failed, and TemporaryFailure states.

      Possible values include:
      • "USE_DEFAULT_VALUE"
      • "REJECT_MESSAGE"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putSuppressedDestination(params = {}, callback) ⇒ AWS.Request

Adds an email address to the suppression list for your account.

Service Reference:

Examples:

Calling the putSuppressedDestination operation

var params = {
  EmailAddress: 'STRING_VALUE', /* required */
  Reason: BOUNCE | COMPLAINT /* required */
};
sesv2.putSuppressedDestination(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • EmailAddress — (String)

      The email address that should be added to the suppression list for your account.

    • Reason — (String)

      The factors that should cause the email address to be added to the suppression list for your account.

      Possible values include:
      • "BOUNCE"
      • "COMPLAINT"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

sendBulkEmail(params = {}, callback) ⇒ AWS.Request

Composes an email message to multiple destinations.

Service Reference:

Examples:

Calling the sendBulkEmail operation

var params = {
  BulkEmailEntries: [ /* required */
    {
      Destination: { /* required */
        BccAddresses: [
          'STRING_VALUE',
          /* more items */
        ],
        CcAddresses: [
          'STRING_VALUE',
          /* more items */
        ],
        ToAddresses: [
          'STRING_VALUE',
          /* more items */
        ]
      },
      ReplacementEmailContent: {
        ReplacementTemplate: {
          ReplacementTemplateData: 'STRING_VALUE'
        }
      },
      ReplacementTags: [
        {
          Name: 'STRING_VALUE', /* required */
          Value: 'STRING_VALUE' /* required */
        },
        /* more items */
      ]
    },
    /* more items */
  ],
  DefaultContent: { /* required */
    Template: {
      Headers: [
        {
          Name: 'STRING_VALUE', /* required */
          Value: 'STRING_VALUE' /* required */
        },
        /* more items */
      ],
      TemplateArn: 'STRING_VALUE',
      TemplateData: 'STRING_VALUE',
      TemplateName: 'STRING_VALUE'
    }
  },
  ConfigurationSetName: 'STRING_VALUE',
  DefaultEmailTags: [
    {
      Name: 'STRING_VALUE', /* required */
      Value: 'STRING_VALUE' /* required */
    },
    /* more items */
  ],
  FeedbackForwardingEmailAddress: 'STRING_VALUE',
  FeedbackForwardingEmailAddressIdentityArn: 'STRING_VALUE',
  FromEmailAddress: 'STRING_VALUE',
  FromEmailAddressIdentityArn: 'STRING_VALUE',
  ReplyToAddresses: [
    'STRING_VALUE',
    /* more items */
  ]
};
sesv2.sendBulkEmail(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • FromEmailAddress — (String)

      The email address to use as the "From" address for the email. The address that you specify has to be verified.

    • FromEmailAddressIdentityArn — (String)

      This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the email address specified in the FromEmailAddress parameter.

      For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to use sender@example.com, then you would specify the FromEmailAddressIdentityArn to be arn:aws:ses:us-east-1:123456789012:identity/example.com, and the FromEmailAddress to be sender@example.com.

      For more information about sending authorization, see the Amazon SES Developer Guide.

    • ReplyToAddresses — (Array<String>)

      The "Reply-to" email addresses for the message. When the recipient replies to the message, each Reply-to address receives the reply.

    • FeedbackForwardingEmailAddress — (String)

      The address that you want bounce and complaint notifications to be sent to.

    • FeedbackForwardingEmailAddressIdentityArn — (String)

      This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the email address specified in the FeedbackForwardingEmailAddress parameter.

      For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to use feedback@example.com, then you would specify the FeedbackForwardingEmailAddressIdentityArn to be arn:aws:ses:us-east-1:123456789012:identity/example.com, and the FeedbackForwardingEmailAddress to be feedback@example.com.

      For more information about sending authorization, see the Amazon SES Developer Guide.

    • DefaultEmailTags — (Array<map>)

      A list of tags, in the form of name/value pairs, to apply to an email that you send using the SendEmail operation. Tags correspond to characteristics of the email that you define, so that you can publish email sending events.

      • Namerequired — (String)

        The name of the message tag. The message tag name has to meet the following criteria:

        • It can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes (-).

        • It can contain no more than 256 characters.

      • Valuerequired — (String)

        The value of the message tag. The message tag value has to meet the following criteria:

        • It can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes (-).

        • It can contain no more than 256 characters.

    • DefaultContent — (map)

      An object that contains the body of the message. You can specify a template message.

      • Template — (map)

        The template to use for the bulk email message.

        • TemplateName — (String)

          The name of the template. You will refer to this name when you send email using the SendTemplatedEmail or SendBulkTemplatedEmail operations.

        • TemplateArn — (String)

          The Amazon Resource Name (ARN) of the template.

        • TemplateData — (String)

          An object that defines the values to use for message variables in the template. This object is a set of key-value pairs. Each key defines a message variable in the template. The corresponding value defines the value to use for that variable.

        • Headers — (Array<map>)

          The list of message headers that will be added to the email message.

          • Namerequired — (String)

            The name of the message header. The message header name has to meet the following criteria:

            • Can contain any printable ASCII character (33 - 126) except for colon (:).

            • Can contain no more than 126 characters.

          • Valuerequired — (String)

            The value of the message header. The message header value has to meet the following criteria:

            • Can contain any printable ASCII character.

            • Can contain no more than 870 characters.

    • BulkEmailEntries — (Array<map>)

      The list of bulk email entry objects.

      • Destinationrequired — (map)

        Represents the destination of the message, consisting of To:, CC:, and BCC: fields.

        Note: Amazon SES does not support the SMTPUTF8 extension, as described in RFC6531. For this reason, the local part of a destination email address (the part of the email address that precedes the @ sign) may only contain 7-bit ASCII characters. If the domain part of an address (the part after the @ sign) contains non-ASCII characters, they must be encoded using Punycode, as described in RFC3492.
        • ToAddresses — (Array<String>)

          An array that contains the email addresses of the "To" recipients for the email.

        • CcAddresses — (Array<String>)

          An array that contains the email addresses of the "CC" (carbon copy) recipients for the email.

        • BccAddresses — (Array<String>)

          An array that contains the email addresses of the "BCC" (blind carbon copy) recipients for the email.

      • ReplacementTags — (Array<map>)

        A list of tags, in the form of name/value pairs, to apply to an email that you send using the SendBulkTemplatedEmail operation. Tags correspond to characteristics of the email that you define, so that you can publish email sending events.

        • Namerequired — (String)

          The name of the message tag. The message tag name has to meet the following criteria:

          • It can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes (-).

          • It can contain no more than 256 characters.

        • Valuerequired — (String)

          The value of the message tag. The message tag value has to meet the following criteria:

          • It can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes (-).

          • It can contain no more than 256 characters.

      • ReplacementEmailContent — (map)

        The ReplacementEmailContent associated with a BulkEmailEntry.

        • ReplacementTemplate — (map)

          The ReplacementTemplate associated with ReplacementEmailContent.

          • ReplacementTemplateData — (String)

            A list of replacement values to apply to the template. This parameter is a JSON object, typically consisting of key-value pairs in which the keys correspond to replacement tags in the email template.

    • ConfigurationSetName — (String)

      The name of the configuration set to use when sending the email.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • BulkEmailEntryResults — (Array<map>)

        One object per intended recipient. Check each response object and retry any messages with a failure status.

        • Status — (String)

          The status of a message sent using the SendBulkTemplatedEmail operation.

          Possible values for this parameter include:

          • SUCCESS: Amazon SES accepted the message, and will attempt to deliver it to the recipients.

          • MESSAGE_REJECTED: The message was rejected because it contained a virus.

          • MAIL_FROM_DOMAIN_NOT_VERIFIED: The sender's email address or domain was not verified.

          • CONFIGURATION_SET_DOES_NOT_EXIST: The configuration set you specified does not exist.

          • TEMPLATE_DOES_NOT_EXIST: The template you specified does not exist.

          • ACCOUNT_SUSPENDED: Your account has been shut down because of issues related to your email sending practices.

          • ACCOUNT_THROTTLED: The number of emails you can send has been reduced because your account has exceeded its allocated sending limit.

          • ACCOUNT_DAILY_QUOTA_EXCEEDED: You have reached or exceeded the maximum number of emails you can send from your account in a 24-hour period.

          • INVALID_SENDING_POOL_NAME: The configuration set you specified refers to an IP pool that does not exist.

          • ACCOUNT_SENDING_PAUSED: Email sending for the Amazon SES account was disabled using the UpdateAccountSendingEnabled operation.

          • CONFIGURATION_SET_SENDING_PAUSED: Email sending for this configuration set was disabled using the UpdateConfigurationSetSendingEnabled operation.

          • INVALID_PARAMETER_VALUE: One or more of the parameters you specified when calling this operation was invalid. See the error message for additional information.

          • TRANSIENT_FAILURE: Amazon SES was unable to process your request because of a temporary issue.

          • FAILED: Amazon SES was unable to process your request. See the error message for additional information.

          Possible values include:
          • "SUCCESS"
          • "MESSAGE_REJECTED"
          • "MAIL_FROM_DOMAIN_NOT_VERIFIED"
          • "CONFIGURATION_SET_NOT_FOUND"
          • "TEMPLATE_NOT_FOUND"
          • "ACCOUNT_SUSPENDED"
          • "ACCOUNT_THROTTLED"
          • "ACCOUNT_DAILY_QUOTA_EXCEEDED"
          • "INVALID_SENDING_POOL_NAME"
          • "ACCOUNT_SENDING_PAUSED"
          • "CONFIGURATION_SET_SENDING_PAUSED"
          • "INVALID_PARAMETER"
          • "TRANSIENT_FAILURE"
          • "FAILED"
        • Error — (String)

          A description of an error that prevented a message being sent using the SendBulkTemplatedEmail operation.

        • MessageId — (String)

          The unique message identifier returned from the SendBulkTemplatedEmail operation.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

sendCustomVerificationEmail(params = {}, callback) ⇒ AWS.Request

Adds an email address to the list of identities for your Amazon SES account in the current Amazon Web Services Region and attempts to verify it. As a result of executing this operation, a customized verification email is sent to the specified address.

To use this operation, you must first create a custom verification email template. For more information about creating and using custom verification email templates, see Using custom verification email templates in the Amazon SES Developer Guide.

You can execute this operation no more than once per second.

Service Reference:

Examples:

Calling the sendCustomVerificationEmail operation

var params = {
  EmailAddress: 'STRING_VALUE', /* required */
  TemplateName: 'STRING_VALUE', /* required */
  ConfigurationSetName: 'STRING_VALUE'
};
sesv2.sendCustomVerificationEmail(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • EmailAddress — (String)

      The email address to verify.

    • TemplateName — (String)

      The name of the custom verification email template to use when sending the verification email.

    • ConfigurationSetName — (String)

      Name of a configuration set to use when sending the verification email.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • MessageId — (String)

        The unique message identifier returned from the SendCustomVerificationEmail operation.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

sendEmail(params = {}, callback) ⇒ AWS.Request

Sends an email message. You can use the Amazon SES API v2 to send the following types of messages:

  • Simple – A standard email message. When you create this type of message, you specify the sender, the recipient, and the message body, and Amazon SES assembles the message for you.

  • Raw – A raw, MIME-formatted email message. When you send this type of email, you have to specify all of the message headers, as well as the message body. You can use this message type to send messages that contain attachments. The message that you specify has to be a valid MIME message.

  • Templated – A message that contains personalization tags. When you send this type of email, Amazon SES API v2 automatically replaces the tags with values that you specify.

Service Reference:

Examples:

Calling the sendEmail operation

var params = {
  Content: { /* required */
    Raw: {
      Data: Buffer.from('...') || 'STRING_VALUE' /* Strings will be Base-64 encoded on your behalf */ /* required */
    },
    Simple: {
      Body: { /* required */
        Html: {
          Data: 'STRING_VALUE', /* required */
          Charset: 'STRING_VALUE'
        },
        Text: {
          Data: 'STRING_VALUE', /* required */
          Charset: 'STRING_VALUE'
        }
      },
      Subject: { /* required */
        Data: 'STRING_VALUE', /* required */
        Charset: 'STRING_VALUE'
      },
      Headers: [
        {
          Name: 'STRING_VALUE', /* required */
          Value: 'STRING_VALUE' /* required */
        },
        /* more items */
      ]
    },
    Template: {
      Headers: [
        {
          Name: 'STRING_VALUE', /* required */
          Value: 'STRING_VALUE' /* required */
        },
        /* more items */
      ],
      TemplateArn: 'STRING_VALUE',
      TemplateData: 'STRING_VALUE',
      TemplateName: 'STRING_VALUE'
    }
  },
  ConfigurationSetName: 'STRING_VALUE',
  Destination: {
    BccAddresses: [
      'STRING_VALUE',
      /* more items */
    ],
    CcAddresses: [
      'STRING_VALUE',
      /* more items */
    ],
    ToAddresses: [
      'STRING_VALUE',
      /* more items */
    ]
  },
  EmailTags: [
    {
      Name: 'STRING_VALUE', /* required */
      Value: 'STRING_VALUE' /* required */
    },
    /* more items */
  ],
  FeedbackForwardingEmailAddress: 'STRING_VALUE',
  FeedbackForwardingEmailAddressIdentityArn: 'STRING_VALUE',
  FromEmailAddress: 'STRING_VALUE',
  FromEmailAddressIdentityArn: 'STRING_VALUE',
  ListManagementOptions: {
    ContactListName: 'STRING_VALUE', /* required */
    TopicName: 'STRING_VALUE'
  },
  ReplyToAddresses: [
    'STRING_VALUE',
    /* more items */
  ]
};
sesv2.sendEmail(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • FromEmailAddress — (String)

      The email address to use as the "From" address for the email. The address that you specify has to be verified.

    • FromEmailAddressIdentityArn — (String)

      This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the email address specified in the FromEmailAddress parameter.

      For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to use sender@example.com, then you would specify the FromEmailAddressIdentityArn to be arn:aws:ses:us-east-1:123456789012:identity/example.com, and the FromEmailAddress to be sender@example.com.

      For more information about sending authorization, see the Amazon SES Developer Guide.

      For Raw emails, the FromEmailAddressIdentityArn value overrides the X-SES-SOURCE-ARN and X-SES-FROM-ARN headers specified in raw email message content.

    • Destination — (map)

      An object that contains the recipients of the email message.

      • ToAddresses — (Array<String>)

        An array that contains the email addresses of the "To" recipients for the email.

      • CcAddresses — (Array<String>)

        An array that contains the email addresses of the "CC" (carbon copy) recipients for the email.

      • BccAddresses — (Array<String>)

        An array that contains the email addresses of the "BCC" (blind carbon copy) recipients for the email.

    • ReplyToAddresses — (Array<String>)

      The "Reply-to" email addresses for the message. When the recipient replies to the message, each Reply-to address receives the reply.

    • FeedbackForwardingEmailAddress — (String)

      The address that you want bounce and complaint notifications to be sent to.

    • FeedbackForwardingEmailAddressIdentityArn — (String)

      This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the email address specified in the FeedbackForwardingEmailAddress parameter.

      For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to use feedback@example.com, then you would specify the FeedbackForwardingEmailAddressIdentityArn to be arn:aws:ses:us-east-1:123456789012:identity/example.com, and the FeedbackForwardingEmailAddress to be feedback@example.com.

      For more information about sending authorization, see the Amazon SES Developer Guide.

    • Content — (map)

      An object that contains the body of the message. You can send either a Simple message, Raw message, or a Templated message.

      • Simple — (map)

        The simple email message. The message consists of a subject and a message body.

        • Subjectrequired — (map)

          The subject line of the email. The subject line can only contain 7-bit ASCII characters. However, you can specify non-ASCII characters in the subject line by using encoded-word syntax, as described in RFC 2047.

          • Datarequired — (String)

            The content of the message itself.

          • Charset — (String)

            The character set for the content. Because of the constraints of the SMTP protocol, Amazon SES uses 7-bit ASCII by default. If the text includes characters outside of the ASCII range, you have to specify a character set. For example, you could specify UTF-8, ISO-8859-1, or Shift_JIS.

        • Bodyrequired — (map)

          The body of the message. You can specify an HTML version of the message, a text-only version of the message, or both.

          • Text — (map)

            An object that represents the version of the message that is displayed in email clients that don't support HTML, or clients where the recipient has disabled HTML rendering.

            • Datarequired — (String)

              The content of the message itself.

            • Charset — (String)

              The character set for the content. Because of the constraints of the SMTP protocol, Amazon SES uses 7-bit ASCII by default. If the text includes characters outside of the ASCII range, you have to specify a character set. For example, you could specify UTF-8, ISO-8859-1, or Shift_JIS.

          • Html — (map)

            An object that represents the version of the message that is displayed in email clients that support HTML. HTML messages can include formatted text, hyperlinks, images, and more.

            • Datarequired — (String)

              The content of the message itself.

            • Charset — (String)

              The character set for the content. Because of the constraints of the SMTP protocol, Amazon SES uses 7-bit ASCII by default. If the text includes characters outside of the ASCII range, you have to specify a character set. For example, you could specify UTF-8, ISO-8859-1, or Shift_JIS.

        • Headers — (Array<map>)

          The list of message headers that will be added to the email message.

          • Namerequired — (String)

            The name of the message header. The message header name has to meet the following criteria:

            • Can contain any printable ASCII character (33 - 126) except for colon (:).

            • Can contain no more than 126 characters.

          • Valuerequired — (String)

            The value of the message header. The message header value has to meet the following criteria:

            • Can contain any printable ASCII character.

            • Can contain no more than 870 characters.

      • Raw — (map)

        The raw email message. The message has to meet the following criteria:

        • The message has to contain a header and a body, separated by one blank line.

        • All of the required header fields must be present in the message.

        • Each part of a multipart MIME message must be formatted properly.

        • If you include attachments, they must be in a file format that the Amazon SES API v2 supports.

        • The raw data of the message needs to base64-encoded if you are accessing Amazon SES directly through the HTTPS interface. If you are accessing Amazon SES using an Amazon Web Services SDK, the SDK takes care of the base 64-encoding for you.

        • If any of the MIME parts in your message contain content that is outside of the 7-bit ASCII character range, you should encode that content to ensure that recipients' email clients render the message properly.

        • The length of any single line of text in the message can't exceed 1,000 characters. This restriction is defined in RFC 5321.

        • Datarequired — (Buffer, Typed Array, Blob, String)

          The raw email message. The message has to meet the following criteria:

          • The message has to contain a header and a body, separated by one blank line.

          • All of the required header fields must be present in the message.

          • Each part of a multipart MIME message must be formatted properly.

          • Attachments must be in a file format that the Amazon SES supports.

          • The raw data of the message needs to base64-encoded if you are accessing Amazon SES directly through the HTTPS interface. If you are accessing Amazon SES using an Amazon Web Services SDK, the SDK takes care of the base 64-encoding for you.

          • If any of the MIME parts in your message contain content that is outside of the 7-bit ASCII character range, you should encode that content to ensure that recipients' email clients render the message properly.

          • The length of any single line of text in the message can't exceed 1,000 characters. This restriction is defined in RFC 5321.

      • Template — (map)

        The template to use for the email message.

        • TemplateName — (String)

          The name of the template. You will refer to this name when you send email using the SendTemplatedEmail or SendBulkTemplatedEmail operations.

        • TemplateArn — (String)

          The Amazon Resource Name (ARN) of the template.

        • TemplateData — (String)

          An object that defines the values to use for message variables in the template. This object is a set of key-value pairs. Each key defines a message variable in the template. The corresponding value defines the value to use for that variable.

        • Headers — (Array<map>)

          The list of message headers that will be added to the email message.

          • Namerequired — (String)

            The name of the message header. The message header name has to meet the following criteria:

            • Can contain any printable ASCII character (33 - 126) except for colon (:).

            • Can contain no more than 126 characters.

          • Valuerequired — (String)

            The value of the message header. The message header value has to meet the following criteria:

            • Can contain any printable ASCII character.

            • Can contain no more than 870 characters.

    • EmailTags — (Array<map>)

      A list of tags, in the form of name/value pairs, to apply to an email that you send using the SendEmail operation. Tags correspond to characteristics of the email that you define, so that you can publish email sending events.

      • Namerequired — (String)

        The name of the message tag. The message tag name has to meet the following criteria:

        • It can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes (-).

        • It can contain no more than 256 characters.

      • Valuerequired — (String)

        The value of the message tag. The message tag value has to meet the following criteria:

        • It can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes (-).

        • It can contain no more than 256 characters.

    • ConfigurationSetName — (String)

      The name of the configuration set to use when sending the email.

    • ListManagementOptions — (map)

      An object used to specify a list or topic to which an email belongs, which will be used when a contact chooses to unsubscribe.

      • ContactListNamerequired — (String)

        The name of the contact list.

      • TopicName — (String)

        The name of the topic.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • MessageId — (String)

        A unique identifier for the message that is generated when the message is accepted.

        Note: It's possible for Amazon SES to accept a message without sending it. For example, this can happen when the message that you're trying to send has an attachment that contains a virus, or when you send a templated email that contains invalid personalization content.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

tagResource(params = {}, callback) ⇒ AWS.Request

Add one or more tags (keys and values) to a specified resource. A tag is a label that you optionally define and associate with a resource. Tags can help you categorize and manage resources in different ways, such as by purpose, owner, environment, or other criteria. A resource can have as many as 50 tags.

Each tag consists of a required tag key and an associated tag value, both of which you define. A tag key is a general label that acts as a category for more specific tag values. A tag value acts as a descriptor within a tag key.

Service Reference:

Examples:

Calling the tagResource operation

var params = {
  ResourceArn: 'STRING_VALUE', /* required */
  Tags: [ /* required */
    {
      Key: 'STRING_VALUE', /* required */
      Value: 'STRING_VALUE' /* required */
    },
    /* more items */
  ]
};
sesv2.tagResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResourceArn — (String)

      The Amazon Resource Name (ARN) of the resource that you want to add one or more tags to.

    • Tags — (Array<map>)

      A list of the tags that you want to add to the resource. A tag consists of a required tag key (Key) and an associated tag value (Value). The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters.

      • Keyrequired — (String)

        One part of a key-value pair that defines a tag. The maximum length of a tag key is 128 characters. The minimum length is 1 character.

      • Valuerequired — (String)

        The optional part of a key-value pair that defines a tag. The maximum length of a tag value is 256 characters. The minimum length is 0 characters. If you don't want a resource to have a specific tag value, don't specify a value for this parameter. If you don't specify a value, Amazon SES sets the value to an empty string.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

testRenderEmailTemplate(params = {}, callback) ⇒ AWS.Request

Creates a preview of the MIME content of an email when provided with a template and a set of replacement data.

You can execute this operation no more than once per second.

Service Reference:

Examples:

Calling the testRenderEmailTemplate operation

var params = {
  TemplateData: 'STRING_VALUE', /* required */
  TemplateName: 'STRING_VALUE' /* required */
};
sesv2.testRenderEmailTemplate(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • TemplateName — (String)

      The name of the template.

    • TemplateData — (String)

      A list of replacement values to apply to the template. This parameter is a JSON object, typically consisting of key-value pairs in which the keys correspond to replacement tags in the email template.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • RenderedTemplate — (String)

        The complete MIME message rendered by applying the data in the TemplateData parameter to the template specified in the TemplateName parameter.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

untagResource(params = {}, callback) ⇒ AWS.Request

Remove one or more tags (keys and values) from a specified resource.

Service Reference:

Examples:

Calling the untagResource operation

var params = {
  ResourceArn: 'STRING_VALUE', /* required */
  TagKeys: [ /* required */
    'STRING_VALUE',
    /* more items */
  ]
};
sesv2.untagResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResourceArn — (String)

      The Amazon Resource Name (ARN) of the resource that you want to remove one or more tags from.

    • TagKeys — (Array<String>)

      The tags (tag keys) that you want to remove from the resource. When you specify a tag key, the action removes both that key and its associated tag value.

      To remove more than one tag from the resource, append the TagKeys parameter and argument for each additional tag to remove, separated by an ampersand. For example: /v2/email/tags?ResourceArn=ResourceArn&TagKeys=Key1&TagKeys=Key2

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateConfigurationSetEventDestination(params = {}, callback) ⇒ AWS.Request

Update the configuration of an event destination for a configuration set.

Events include message sends, deliveries, opens, clicks, bounces, and complaints. Event destinations are places that you can send information about these events to. For example, you can send event data to Amazon SNS to receive notifications when you receive bounces or complaints, or you can use Amazon Kinesis Data Firehose to stream data to Amazon S3 for long-term storage.

Examples:

Calling the updateConfigurationSetEventDestination operation

var params = {
  ConfigurationSetName: 'STRING_VALUE', /* required */
  EventDestination: { /* required */
    CloudWatchDestination: {
      DimensionConfigurations: [ /* required */
        {
          DefaultDimensionValue: 'STRING_VALUE', /* required */
          DimensionName: 'STRING_VALUE', /* required */
          DimensionValueSource: MESSAGE_TAG | EMAIL_HEADER | LINK_TAG /* required */
        },
        /* more items */
      ]
    },
    Enabled: true || false,
    KinesisFirehoseDestination: {
      DeliveryStreamArn: 'STRING_VALUE', /* required */
      IamRoleArn: 'STRING_VALUE' /* required */
    },
    MatchingEventTypes: [
      SEND | REJECT | BOUNCE | COMPLAINT | DELIVERY | OPEN | CLICK | RENDERING_FAILURE | DELIVERY_DELAY | SUBSCRIPTION,
      /* more items */
    ],
    PinpointDestination: {
      ApplicationArn: 'STRING_VALUE'
    },
    SnsDestination: {
      TopicArn: 'STRING_VALUE' /* required */
    }
  },
  EventDestinationName: 'STRING_VALUE' /* required */
};
sesv2.updateConfigurationSetEventDestination(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ConfigurationSetName — (String)

      The name of the configuration set that contains the event destination to modify.

    • EventDestinationName — (String)

      The name of the event destination.

    • EventDestination — (map)

      An object that defines the event destination.

      • Enabled — (Boolean)

        If true, the event destination is enabled. When the event destination is enabled, the specified event types are sent to the destinations in this EventDestinationDefinition.

        If false, the event destination is disabled. When the event destination is disabled, events aren't sent to the specified destinations.

      • MatchingEventTypes — (Array<String>)

        An array that specifies which events the Amazon SES API v2 should send to the destinations in this EventDestinationDefinition.

      • KinesisFirehoseDestination — (map)

        An object that defines an Amazon Kinesis Data Firehose destination for email events. You can use Amazon Kinesis Data Firehose to stream data to other services, such as Amazon S3 and Amazon Redshift.

        • IamRoleArnrequired — (String)

          The Amazon Resource Name (ARN) of the IAM role that the Amazon SES API v2 uses to send email events to the Amazon Kinesis Data Firehose stream.

        • DeliveryStreamArnrequired — (String)

          The Amazon Resource Name (ARN) of the Amazon Kinesis Data Firehose stream that the Amazon SES API v2 sends email events to.

      • CloudWatchDestination — (map)

        An object that defines an Amazon CloudWatch destination for email events. You can use Amazon CloudWatch to monitor and gain insights on your email sending metrics.

        • DimensionConfigurationsrequired — (Array<map>)

          An array of objects that define the dimensions to use when you send email events to Amazon CloudWatch.

          • DimensionNamerequired — (String)

            The name of an Amazon CloudWatch dimension associated with an email sending metric. The name has to meet the following criteria:

            • It can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes (-).

            • It can contain no more than 256 characters.

          • DimensionValueSourcerequired — (String)

            The location where the Amazon SES API v2 finds the value of a dimension to publish to Amazon CloudWatch. To use the message tags that you specify using an X-SES-MESSAGE-TAGS header or a parameter to the SendEmail or SendRawEmail API, choose messageTag. To use your own email headers, choose emailHeader. To use link tags, choose linkTags.

            Possible values include:
            • "MESSAGE_TAG"
            • "EMAIL_HEADER"
            • "LINK_TAG"
          • DefaultDimensionValuerequired — (String)

            The default value of the dimension that is published to Amazon CloudWatch if you don't provide the value of the dimension when you send an email. This value has to meet the following criteria:

            • Can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes (-), at signs (@), and periods (.).

            • It can contain no more than 256 characters.

      • SnsDestination — (map)

        An object that defines an Amazon SNS destination for email events. You can use Amazon SNS to send notification when certain email events occur.

        • TopicArnrequired — (String)

          The Amazon Resource Name (ARN) of the Amazon SNS topic to publish email events to. For more information about Amazon SNS topics, see the Amazon SNS Developer Guide.

      • PinpointDestination — (map)

        An object that defines an Amazon Pinpoint project destination for email events. You can send email event data to a Amazon Pinpoint project to view metrics using the Transactional Messaging dashboards that are built in to Amazon Pinpoint. For more information, see Transactional Messaging Charts in the Amazon Pinpoint User Guide.

        • ApplicationArn — (String)

          The Amazon Resource Name (ARN) of the Amazon Pinpoint project to send email events to.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateContact(params = {}, callback) ⇒ AWS.Request

Updates a contact's preferences for a list.

Note: You must specify all existing topic preferences in the TopicPreferences object, not just the ones that need updating; otherwise, all your existing preferences will be removed.

Service Reference:

Examples:

Calling the updateContact operation

var params = {
  ContactListName: 'STRING_VALUE', /* required */
  EmailAddress: 'STRING_VALUE', /* required */
  AttributesData: 'STRING_VALUE',
  TopicPreferences: [
    {
      SubscriptionStatus: OPT_IN | OPT_OUT, /* required */
      TopicName: 'STRING_VALUE' /* required */
    },
    /* more items */
  ],
  UnsubscribeAll: true || false
};
sesv2.updateContact(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ContactListName — (String)

      The name of the contact list.

    • EmailAddress — (String)

      The contact's email address.

    • TopicPreferences — (Array<map>)

      The contact's preference for being opted-in to or opted-out of a topic.

      • TopicNamerequired — (String)

        The name of the topic.

      • SubscriptionStatusrequired — (String)

        The contact's subscription status to a topic which is either OPT_IN or OPT_OUT.

        Possible values include:
        • "OPT_IN"
        • "OPT_OUT"
    • UnsubscribeAll — (Boolean)

      A boolean value status noting if the contact is unsubscribed from all contact list topics.

    • AttributesData — (String)

      The attribute data attached to a contact.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateContactList(params = {}, callback) ⇒ AWS.Request

Updates contact list metadata. This operation does a complete replacement.

Service Reference:

Examples:

Calling the updateContactList operation

var params = {
  ContactListName: 'STRING_VALUE', /* required */
  Description: 'STRING_VALUE',
  Topics: [
    {
      DefaultSubscriptionStatus: OPT_IN | OPT_OUT, /* required */
      DisplayName: 'STRING_VALUE', /* required */
      TopicName: 'STRING_VALUE', /* required */
      Description: 'STRING_VALUE'
    },
    /* more items */
  ]
};
sesv2.updateContactList(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ContactListName — (String)

      The name of the contact list.

    • Topics — (Array<map>)

      An interest group, theme, or label within a list. A contact list can have multiple topics.

      • TopicNamerequired — (String)

        The name of the topic.

      • DisplayNamerequired — (String)

        The name of the topic the contact will see.

      • Description — (String)

        A description of what the topic is about, which the contact will see.

      • DefaultSubscriptionStatusrequired — (String)

        The default subscription status to be applied to a contact if the contact has not noted their preference for subscribing to a topic.

        Possible values include:
        • "OPT_IN"
        • "OPT_OUT"
    • Description — (String)

      A description of what the contact list is about.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateCustomVerificationEmailTemplate(params = {}, callback) ⇒ AWS.Request

Updates an existing custom verification email template.

For more information about custom verification email templates, see Using custom verification email templates in the Amazon SES Developer Guide.

You can execute this operation no more than once per second.

Examples:

Calling the updateCustomVerificationEmailTemplate operation

var params = {
  FailureRedirectionURL: 'STRING_VALUE', /* required */
  FromEmailAddress: 'STRING_VALUE', /* required */
  SuccessRedirectionURL: 'STRING_VALUE', /* required */
  TemplateContent: 'STRING_VALUE', /* required */
  TemplateName: 'STRING_VALUE', /* required */
  TemplateSubject: 'STRING_VALUE' /* required */
};
sesv2.updateCustomVerificationEmailTemplate(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • TemplateName — (String)

      The name of the custom verification email template that you want to update.

    • FromEmailAddress — (String)

      The email address that the custom verification email is sent from.

    • TemplateSubject — (String)

      The subject line of the custom verification email.

    • TemplateContent — (String)

      The content of the custom verification email. The total size of the email must be less than 10 MB. The message body may contain HTML, with some limitations. For more information, see Custom verification email frequently asked questions in the Amazon SES Developer Guide.

    • SuccessRedirectionURL — (String)

      The URL that the recipient of the verification email is sent to if his or her address is successfully verified.

    • FailureRedirectionURL — (String)

      The URL that the recipient of the verification email is sent to if his or her address is not successfully verified.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateEmailIdentityPolicy(params = {}, callback) ⇒ AWS.Request

Updates the specified sending authorization policy for the given identity (an email address or a domain). This API returns successfully even if a policy with the specified name does not exist.

Note: This API is for the identity owner only. If you have not verified the identity, this API will return an error.

Sending authorization is a feature that enables an identity owner to authorize other senders to use its identities. For information about using sending authorization, see the Amazon SES Developer Guide.

You can execute this operation no more than once per second.

Service Reference:

Examples:

Calling the updateEmailIdentityPolicy operation

var params = {
  EmailIdentity: 'STRING_VALUE', /* required */
  Policy: 'STRING_VALUE', /* required */
  PolicyName: 'STRING_VALUE' /* required */
};
sesv2.updateEmailIdentityPolicy(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • EmailIdentity — (String)

      The email identity.

    • PolicyName — (String)

      The name of the policy.

      The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.

    • Policy — (String)

      The text of the policy in JSON format. The policy cannot exceed 4 KB.

      For information about the syntax of sending authorization policies, see the Amazon SES Developer Guide.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateEmailTemplate(params = {}, callback) ⇒ AWS.Request

Updates an email template. Email templates enable you to send personalized email to one or more destinations in a single API operation. For more information, see the Amazon SES Developer Guide.

You can execute this operation no more than once per second.

Service Reference:

Examples:

Calling the updateEmailTemplate operation

var params = {
  TemplateContent: { /* required */
    Html: 'STRING_VALUE',
    Subject: 'STRING_VALUE',
    Text: 'STRING_VALUE'
  },
  TemplateName: 'STRING_VALUE' /* required */
};
sesv2.updateEmailTemplate(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • TemplateName — (String)

      The name of the template.

    • TemplateContent — (map)

      The content of the email template, composed of a subject line, an HTML part, and a text-only part.

      • Subject — (String)

        The subject line of the email.

      • Text — (String)

        The email body that will be visible to recipients whose email clients do not display HTML.

      • Html — (String)

        The HTML body of the email.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.