Skip to content

Commit

Permalink
This release includes support for interacting with the Virtual Delive…
Browse files Browse the repository at this point in the history
…rability Manager, allowing you to opt in/out of the feature and to retrieve recommendations and metric data.
  • Loading branch information
aws-sdk-dotnet-automation committed Oct 31, 2022
1 parent a3a6f3c commit 5043e19
Show file tree
Hide file tree
Showing 69 changed files with 7,806 additions and 8 deletions.
343 changes: 340 additions & 3 deletions generator/ServiceModels/sesv2/sesv2-2019-09-27.api.json

Large diffs are not rendered by default.

268 changes: 267 additions & 1 deletion generator/ServiceModels/sesv2/sesv2-2019-09-27.docs.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"parameters": {
"Region": {
"builtIn": "AWS::Region",
"required": true,
"required": false,
"documentation": "The AWS region used to dispatch the request.",
"type": "String"
},
Expand Down
488 changes: 487 additions & 1 deletion generator/ServiceModels/sesv2/sesv2-2019-09-27.normal.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@
"output_token": "NextToken",
"limit_key": "PageSize"
},
"ListRecommendations": {
"input_token": "NextToken",
"output_token": "NextToken",
"limit_key": "PageSize"
},
"ListSuppressedDestinations": {
"input_token": "NextToken",
"output_token": "NextToken",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,11 @@
<max>1000</max>
<pattern>^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?</pattern>
</property-value-rule>
<property-value-rule>
<property>Amazon.SimpleEmailV2.Model.BatchGetMetricDataQuery.Id</property>
<min>1</min>
<max>255</max>
</property-value-rule>
<property-value-rule>
<property>Amazon.SimpleEmailV2.Model.CustomVerificationEmailTemplateMetadata.TemplateName</property>
<min>1</min>
Expand Down Expand Up @@ -197,6 +202,16 @@
<property>Amazon.SimpleEmailV2.Model.ImportJobSummary.JobId</property>
<min>1</min>
</property-value-rule>
<property-value-rule>
<property>Amazon.SimpleEmailV2.Model.MetricDataError.Id</property>
<min>1</min>
<max>255</max>
</property-value-rule>
<property-value-rule>
<property>Amazon.SimpleEmailV2.Model.MetricDataResult.Id</property>
<min>1</min>
<max>255</max>
</property-value-rule>
<property-value-rule>
<property>Amazon.SimpleEmailV2.Model.ReplacementTemplate.ReplacementTemplateData</property>
<max>262144</max>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ public Endpoint ResolveEndpoint(EndpointParameters parameters)
if (parameters == null)
throw new ArgumentNullException("parameters");

if (parameters["Region"] == null)
throw new AmazonClientException("Region parameter must be set for endpoint resolution");
if (parameters["UseDualStack"] == null)
throw new AmazonClientException("UseDualStack parameter must be set for endpoint resolution");
if (parameters["UseFIPS"] == null)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,219 @@
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/

/*
* Do not modify this file. This file is generated from the sesv2-2019-09-27.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;

using Amazon.Runtime;
using Amazon.Runtime.Internal;

namespace Amazon.SimpleEmailV2.Model
{
/// <summary>
/// Represents a single metric data query to include in a batch.
/// </summary>
public partial class BatchGetMetricDataQuery
{
private Dictionary<string, string> _dimensions = new Dictionary<string, string>();
private DateTime? _endDate;
private string _id;
private Metric _metric;
private MetricNamespace _awsNamespace;
private DateTime? _startDate;

/// <summary>
/// Gets and sets the property Dimensions.
/// <para>
/// An object that contains mapping between <code>MetricDimensionName</code> and <code>MetricDimensionValue</code>
/// to filter metrics by.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=3)]
public Dictionary<string, string> Dimensions
{
get { return this._dimensions; }
set { this._dimensions = value; }
}

// Check to see if Dimensions property is set
internal bool IsSetDimensions()
{
return this._dimensions != null && this._dimensions.Count > 0;
}

/// <summary>
/// Gets and sets the property EndDate.
/// <para>
/// Represents the end date for the query interval.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public DateTime EndDate
{
get { return this._endDate.GetValueOrDefault(); }
set { this._endDate = value; }
}

// Check to see if EndDate property is set
internal bool IsSetEndDate()
{
return this._endDate.HasValue;
}

/// <summary>
/// Gets and sets the property Id.
/// <para>
/// The query identifier.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string Id
{
get { return this._id; }
set { this._id = value; }
}

// Check to see if Id property is set
internal bool IsSetId()
{
return this._id != null;
}

/// <summary>
/// Gets and sets the property Metric.
/// <para>
/// The queried metric. This can be one of the following:
/// </para>
/// <ul> <li>
/// <para>
/// <code>SEND</code> – 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.
/// </para>
/// </li> <li>
/// <para>
/// <code>COMPLAINT</code> – 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
/// </para>
/// </li> <li>
/// <para>
/// <code>PERMANENT_BOUNCE</code> – 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.
/// </para>
/// </li> <li>
/// <para>
/// <code>TRANSIENT_BOUNCE</code> – 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.
/// </para>
/// </li> <li>
/// <para>
/// <code>OPEN</code> – Unique open events for emails including open trackers. Excludes
/// opens for emails addressed to more than one recipient.
/// </para>
/// </li> <li>
/// <para>
/// <code>CLICK</code> – Unique click events for emails including wrapped links. Excludes
/// clicks for emails addressed to more than one recipient.
/// </para>
/// </li> <li>
/// <para>
/// <code>DELIVERY</code> – Successful deliveries for email sending attempts. Excludes
/// deliveries to the mailbox simulator and for emails addressed to more than one recipient.
/// </para>
/// </li> <li>
/// <para>
/// <code>DELIVERY_OPEN</code> – 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.
/// </para>
/// </li> <li>
/// <para>
/// <code>DELIVERY_CLICK</code> – 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.
/// </para>
/// </li> <li>
/// <para>
/// <code>DELIVERY_COMPLAINT</code> – 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.
/// </para>
/// </li> </ul>
/// </summary>
[AWSProperty(Required=true)]
public Metric Metric
{
get { return this._metric; }
set { this._metric = value; }
}

// Check to see if Metric property is set
internal bool IsSetMetric()
{
return this._metric != null;
}

/// <summary>
/// Gets and sets the property Namespace.
/// <para>
/// The query namespace - e.g. <code>VDM</code>
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public MetricNamespace Namespace
{
get { return this._awsNamespace; }
set { this._awsNamespace = value; }
}

// Check to see if Namespace property is set
internal bool IsSetNamespace()
{
return this._awsNamespace != null;
}

/// <summary>
/// Gets and sets the property StartDate.
/// <para>
/// Represents the start date for the query interval.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public DateTime StartDate
{
get { return this._startDate.GetValueOrDefault(); }
set { this._startDate = value; }
}

// Check to see if StartDate property is set
internal bool IsSetStartDate()
{
return this._startDate.HasValue;
}

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/

/*
* Do not modify this file. This file is generated from the sesv2-2019-09-27.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;

using Amazon.Runtime;
using Amazon.Runtime.Internal;

namespace Amazon.SimpleEmailV2.Model
{
/// <summary>
/// Container for the parameters to the BatchGetMetricData operation.
/// Retrieves batches of metric data collected based on your sending activity.
///
///
/// <para>
/// You can execute this operation no more than 16 times per second, and with at most
/// 160 queries from the batches per second (cumulative).
/// </para>
/// </summary>
public partial class BatchGetMetricDataRequest : AmazonSimpleEmailServiceV2Request
{
private List<BatchGetMetricDataQuery> _queries = new List<BatchGetMetricDataQuery>();

/// <summary>
/// Gets and sets the property Queries.
/// <para>
/// A list of queries for metrics to be retrieved.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=10)]
public List<BatchGetMetricDataQuery> Queries
{
get { return this._queries; }
set { this._queries = value; }
}

// Check to see if Queries property is set
internal bool IsSetQueries()
{
return this._queries != null && this._queries.Count > 0;
}

}
}
Loading

0 comments on commit 5043e19

Please sign in to comment.