@aws-sdk/client-sesv2 3.199.0 → 3.201.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/README.md +7 -7
- package/dist-cjs/SESv2.js +60 -0
- package/dist-cjs/commands/BatchGetMetricDataCommand.js +46 -0
- package/dist-cjs/commands/ListRecommendationsCommand.js +46 -0
- package/dist-cjs/commands/PutAccountVdmAttributesCommand.js +46 -0
- package/dist-cjs/commands/PutConfigurationSetVdmOptionsCommand.js +46 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/endpoint/EndpointParameters.js +2 -3
- package/dist-cjs/endpoint/ruleset.js +1 -1
- package/dist-cjs/models/models_0.js +173 -32
- package/dist-cjs/pagination/ListRecommendationsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +567 -97
- package/dist-cjs/runtimeConfig.browser.js +16 -16
- package/dist-cjs/runtimeConfig.js +20 -19
- package/dist-cjs/runtimeConfig.native.js +1 -2
- package/dist-cjs/runtimeConfig.shared.js +8 -11
- package/dist-es/SESv2.js +60 -0
- package/dist-es/commands/BatchGetMetricDataCommand.js +42 -0
- package/dist-es/commands/ListRecommendationsCommand.js +42 -0
- package/dist-es/commands/PutAccountVdmAttributesCommand.js +42 -0
- package/dist-es/commands/PutConfigurationSetVdmOptionsCommand.js +42 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/endpoint/ruleset.js +1 -1
- package/dist-es/models/models_0.js +146 -24
- package/dist-es/pagination/ListRecommendationsPaginator.js +32 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +467 -1
- package/dist-types/SESv2.d.ts +33 -0
- package/dist-types/SESv2Client.d.ts +6 -2
- package/dist-types/commands/BatchGetMetricDataCommand.d.ts +39 -0
- package/dist-types/commands/ListRecommendationsCommand.d.ts +38 -0
- package/dist-types/commands/PutAccountVdmAttributesCommand.d.ts +38 -0
- package/dist-types/commands/PutConfigurationSetVdmOptionsCommand.d.ts +38 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +552 -22
- package/dist-types/pagination/ListRecommendationsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +12 -0
- package/dist-types/ts3.4/SESv2.d.ts +68 -0
- package/dist-types/ts3.4/SESv2Client.d.ts +24 -0
- package/dist-types/ts3.4/commands/BatchGetMetricDataCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListRecommendationsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/PutAccountVdmAttributesCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/PutConfigurationSetVdmOptionsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +194 -12
- package/dist-types/ts3.4/pagination/ListRecommendationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +48 -0
- package/package.json +33 -33
|
@@ -53,6 +53,70 @@ export class BadRequestException extends __BaseException {
|
|
|
53
53
|
Object.setPrototypeOf(this, BadRequestException.prototype);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
+
export var MetricDimensionName;
|
|
57
|
+
(function (MetricDimensionName) {
|
|
58
|
+
MetricDimensionName["CONFIGURATION_SET"] = "CONFIGURATION_SET";
|
|
59
|
+
MetricDimensionName["EMAIL_IDENTITY"] = "EMAIL_IDENTITY";
|
|
60
|
+
MetricDimensionName["ISP"] = "ISP";
|
|
61
|
+
})(MetricDimensionName || (MetricDimensionName = {}));
|
|
62
|
+
export var Metric;
|
|
63
|
+
(function (Metric) {
|
|
64
|
+
Metric["CLICK"] = "CLICK";
|
|
65
|
+
Metric["COMPLAINT"] = "COMPLAINT";
|
|
66
|
+
Metric["DELIVERY"] = "DELIVERY";
|
|
67
|
+
Metric["DELIVERY_CLICK"] = "DELIVERY_CLICK";
|
|
68
|
+
Metric["DELIVERY_COMPLAINT"] = "DELIVERY_COMPLAINT";
|
|
69
|
+
Metric["DELIVERY_OPEN"] = "DELIVERY_OPEN";
|
|
70
|
+
Metric["OPEN"] = "OPEN";
|
|
71
|
+
Metric["PERMANENT_BOUNCE"] = "PERMANENT_BOUNCE";
|
|
72
|
+
Metric["SEND"] = "SEND";
|
|
73
|
+
Metric["TRANSIENT_BOUNCE"] = "TRANSIENT_BOUNCE";
|
|
74
|
+
})(Metric || (Metric = {}));
|
|
75
|
+
export var MetricNamespace;
|
|
76
|
+
(function (MetricNamespace) {
|
|
77
|
+
MetricNamespace["VDM"] = "VDM";
|
|
78
|
+
})(MetricNamespace || (MetricNamespace = {}));
|
|
79
|
+
export var QueryErrorCode;
|
|
80
|
+
(function (QueryErrorCode) {
|
|
81
|
+
QueryErrorCode["ACCESS_DENIED"] = "ACCESS_DENIED";
|
|
82
|
+
QueryErrorCode["INTERNAL_FAILURE"] = "INTERNAL_FAILURE";
|
|
83
|
+
})(QueryErrorCode || (QueryErrorCode = {}));
|
|
84
|
+
export class InternalServiceErrorException extends __BaseException {
|
|
85
|
+
constructor(opts) {
|
|
86
|
+
super({
|
|
87
|
+
name: "InternalServiceErrorException",
|
|
88
|
+
$fault: "server",
|
|
89
|
+
...opts,
|
|
90
|
+
});
|
|
91
|
+
this.name = "InternalServiceErrorException";
|
|
92
|
+
this.$fault = "server";
|
|
93
|
+
Object.setPrototypeOf(this, InternalServiceErrorException.prototype);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
export class NotFoundException extends __BaseException {
|
|
97
|
+
constructor(opts) {
|
|
98
|
+
super({
|
|
99
|
+
name: "NotFoundException",
|
|
100
|
+
$fault: "client",
|
|
101
|
+
...opts,
|
|
102
|
+
});
|
|
103
|
+
this.name = "NotFoundException";
|
|
104
|
+
this.$fault = "client";
|
|
105
|
+
Object.setPrototypeOf(this, NotFoundException.prototype);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
export class TooManyRequestsException extends __BaseException {
|
|
109
|
+
constructor(opts) {
|
|
110
|
+
super({
|
|
111
|
+
name: "TooManyRequestsException",
|
|
112
|
+
$fault: "client",
|
|
113
|
+
...opts,
|
|
114
|
+
});
|
|
115
|
+
this.name = "TooManyRequestsException";
|
|
116
|
+
this.$fault = "client";
|
|
117
|
+
Object.setPrototypeOf(this, TooManyRequestsException.prototype);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
56
120
|
export var BehaviorOnMxFailure;
|
|
57
121
|
(function (BehaviorOnMxFailure) {
|
|
58
122
|
BehaviorOnMxFailure["REJECT_MESSAGE"] = "REJECT_MESSAGE";
|
|
@@ -125,6 +189,11 @@ export var SuppressionListReason;
|
|
|
125
189
|
SuppressionListReason["BOUNCE"] = "BOUNCE";
|
|
126
190
|
SuppressionListReason["COMPLAINT"] = "COMPLAINT";
|
|
127
191
|
})(SuppressionListReason || (SuppressionListReason = {}));
|
|
192
|
+
export var FeatureStatus;
|
|
193
|
+
(function (FeatureStatus) {
|
|
194
|
+
FeatureStatus["DISABLED"] = "DISABLED";
|
|
195
|
+
FeatureStatus["ENABLED"] = "ENABLED";
|
|
196
|
+
})(FeatureStatus || (FeatureStatus = {}));
|
|
128
197
|
export class LimitExceededException extends __BaseException {
|
|
129
198
|
constructor(opts) {
|
|
130
199
|
super({
|
|
@@ -137,30 +206,6 @@ export class LimitExceededException extends __BaseException {
|
|
|
137
206
|
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
138
207
|
}
|
|
139
208
|
}
|
|
140
|
-
export class NotFoundException extends __BaseException {
|
|
141
|
-
constructor(opts) {
|
|
142
|
-
super({
|
|
143
|
-
name: "NotFoundException",
|
|
144
|
-
$fault: "client",
|
|
145
|
-
...opts,
|
|
146
|
-
});
|
|
147
|
-
this.name = "NotFoundException";
|
|
148
|
-
this.$fault = "client";
|
|
149
|
-
Object.setPrototypeOf(this, NotFoundException.prototype);
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
export class TooManyRequestsException extends __BaseException {
|
|
153
|
-
constructor(opts) {
|
|
154
|
-
super({
|
|
155
|
-
name: "TooManyRequestsException",
|
|
156
|
-
$fault: "client",
|
|
157
|
-
...opts,
|
|
158
|
-
});
|
|
159
|
-
this.name = "TooManyRequestsException";
|
|
160
|
-
this.$fault = "client";
|
|
161
|
-
Object.setPrototypeOf(this, TooManyRequestsException.prototype);
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
209
|
export var EventType;
|
|
165
210
|
(function (EventType) {
|
|
166
211
|
EventType["BOUNCE"] = "BOUNCE";
|
|
@@ -304,6 +349,29 @@ export class InvalidNextTokenException extends __BaseException {
|
|
|
304
349
|
Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
|
|
305
350
|
}
|
|
306
351
|
}
|
|
352
|
+
export var ListRecommendationsFilterKey;
|
|
353
|
+
(function (ListRecommendationsFilterKey) {
|
|
354
|
+
ListRecommendationsFilterKey["IMPACT"] = "IMPACT";
|
|
355
|
+
ListRecommendationsFilterKey["RESOURCE_ARN"] = "RESOURCE_ARN";
|
|
356
|
+
ListRecommendationsFilterKey["STATUS"] = "STATUS";
|
|
357
|
+
ListRecommendationsFilterKey["TYPE"] = "TYPE";
|
|
358
|
+
})(ListRecommendationsFilterKey || (ListRecommendationsFilterKey = {}));
|
|
359
|
+
export var RecommendationImpact;
|
|
360
|
+
(function (RecommendationImpact) {
|
|
361
|
+
RecommendationImpact["HIGH"] = "HIGH";
|
|
362
|
+
RecommendationImpact["LOW"] = "LOW";
|
|
363
|
+
})(RecommendationImpact || (RecommendationImpact = {}));
|
|
364
|
+
export var RecommendationStatus;
|
|
365
|
+
(function (RecommendationStatus) {
|
|
366
|
+
RecommendationStatus["FIXED"] = "FIXED";
|
|
367
|
+
RecommendationStatus["OPEN"] = "OPEN";
|
|
368
|
+
})(RecommendationStatus || (RecommendationStatus = {}));
|
|
369
|
+
export var RecommendationType;
|
|
370
|
+
(function (RecommendationType) {
|
|
371
|
+
RecommendationType["DKIM"] = "DKIM";
|
|
372
|
+
RecommendationType["DMARC"] = "DMARC";
|
|
373
|
+
RecommendationType["SPF"] = "SPF";
|
|
374
|
+
})(RecommendationType || (RecommendationType = {}));
|
|
307
375
|
export const ReviewDetailsFilterSensitiveLog = (obj) => ({
|
|
308
376
|
...obj,
|
|
309
377
|
});
|
|
@@ -313,6 +381,21 @@ export const AccountDetailsFilterSensitiveLog = (obj) => ({
|
|
|
313
381
|
...(obj.UseCaseDescription && { UseCaseDescription: SENSITIVE_STRING }),
|
|
314
382
|
...(obj.AdditionalContactEmailAddresses && { AdditionalContactEmailAddresses: SENSITIVE_STRING }),
|
|
315
383
|
});
|
|
384
|
+
export const BatchGetMetricDataQueryFilterSensitiveLog = (obj) => ({
|
|
385
|
+
...obj,
|
|
386
|
+
});
|
|
387
|
+
export const BatchGetMetricDataRequestFilterSensitiveLog = (obj) => ({
|
|
388
|
+
...obj,
|
|
389
|
+
});
|
|
390
|
+
export const MetricDataErrorFilterSensitiveLog = (obj) => ({
|
|
391
|
+
...obj,
|
|
392
|
+
});
|
|
393
|
+
export const MetricDataResultFilterSensitiveLog = (obj) => ({
|
|
394
|
+
...obj,
|
|
395
|
+
});
|
|
396
|
+
export const BatchGetMetricDataResponseFilterSensitiveLog = (obj) => ({
|
|
397
|
+
...obj,
|
|
398
|
+
});
|
|
316
399
|
export const BlacklistEntryFilterSensitiveLog = (obj) => ({
|
|
317
400
|
...obj,
|
|
318
401
|
});
|
|
@@ -382,6 +465,15 @@ export const TagFilterSensitiveLog = (obj) => ({
|
|
|
382
465
|
export const TrackingOptionsFilterSensitiveLog = (obj) => ({
|
|
383
466
|
...obj,
|
|
384
467
|
});
|
|
468
|
+
export const DashboardOptionsFilterSensitiveLog = (obj) => ({
|
|
469
|
+
...obj,
|
|
470
|
+
});
|
|
471
|
+
export const GuardianOptionsFilterSensitiveLog = (obj) => ({
|
|
472
|
+
...obj,
|
|
473
|
+
});
|
|
474
|
+
export const VdmOptionsFilterSensitiveLog = (obj) => ({
|
|
475
|
+
...obj,
|
|
476
|
+
});
|
|
385
477
|
export const CreateConfigurationSetRequestFilterSensitiveLog = (obj) => ({
|
|
386
478
|
...obj,
|
|
387
479
|
});
|
|
@@ -506,6 +598,9 @@ export const VolumeStatisticsFilterSensitiveLog = (obj) => ({
|
|
|
506
598
|
export const DailyVolumeFilterSensitiveLog = (obj) => ({
|
|
507
599
|
...obj,
|
|
508
600
|
});
|
|
601
|
+
export const DashboardAttributesFilterSensitiveLog = (obj) => ({
|
|
602
|
+
...obj,
|
|
603
|
+
});
|
|
509
604
|
export const DedicatedIpFilterSensitiveLog = (obj) => ({
|
|
510
605
|
...obj,
|
|
511
606
|
});
|
|
@@ -602,6 +697,12 @@ export const SendQuotaFilterSensitiveLog = (obj) => ({
|
|
|
602
697
|
export const SuppressionAttributesFilterSensitiveLog = (obj) => ({
|
|
603
698
|
...obj,
|
|
604
699
|
});
|
|
700
|
+
export const GuardianAttributesFilterSensitiveLog = (obj) => ({
|
|
701
|
+
...obj,
|
|
702
|
+
});
|
|
703
|
+
export const VdmAttributesFilterSensitiveLog = (obj) => ({
|
|
704
|
+
...obj,
|
|
705
|
+
});
|
|
605
706
|
export const GetAccountResponseFilterSensitiveLog = (obj) => ({
|
|
606
707
|
...obj,
|
|
607
708
|
...(obj.Details && { Details: AccountDetailsFilterSensitiveLog(obj.Details) }),
|
|
@@ -807,6 +908,15 @@ export const ListImportJobsResponseFilterSensitiveLog = (obj) => ({
|
|
|
807
908
|
export const ListManagementOptionsFilterSensitiveLog = (obj) => ({
|
|
808
909
|
...obj,
|
|
809
910
|
});
|
|
911
|
+
export const ListRecommendationsRequestFilterSensitiveLog = (obj) => ({
|
|
912
|
+
...obj,
|
|
913
|
+
});
|
|
914
|
+
export const RecommendationFilterSensitiveLog = (obj) => ({
|
|
915
|
+
...obj,
|
|
916
|
+
});
|
|
917
|
+
export const ListRecommendationsResponseFilterSensitiveLog = (obj) => ({
|
|
918
|
+
...obj,
|
|
919
|
+
});
|
|
810
920
|
export const ListSuppressedDestinationsRequestFilterSensitiveLog = (obj) => ({
|
|
811
921
|
...obj,
|
|
812
922
|
});
|
|
@@ -849,6 +959,12 @@ export const PutAccountSuppressionAttributesRequestFilterSensitiveLog = (obj) =>
|
|
|
849
959
|
export const PutAccountSuppressionAttributesResponseFilterSensitiveLog = (obj) => ({
|
|
850
960
|
...obj,
|
|
851
961
|
});
|
|
962
|
+
export const PutAccountVdmAttributesRequestFilterSensitiveLog = (obj) => ({
|
|
963
|
+
...obj,
|
|
964
|
+
});
|
|
965
|
+
export const PutAccountVdmAttributesResponseFilterSensitiveLog = (obj) => ({
|
|
966
|
+
...obj,
|
|
967
|
+
});
|
|
852
968
|
export const PutConfigurationSetDeliveryOptionsRequestFilterSensitiveLog = (obj) => ({
|
|
853
969
|
...obj,
|
|
854
970
|
});
|
|
@@ -879,6 +995,12 @@ export const PutConfigurationSetTrackingOptionsRequestFilterSensitiveLog = (obj)
|
|
|
879
995
|
export const PutConfigurationSetTrackingOptionsResponseFilterSensitiveLog = (obj) => ({
|
|
880
996
|
...obj,
|
|
881
997
|
});
|
|
998
|
+
export const PutConfigurationSetVdmOptionsRequestFilterSensitiveLog = (obj) => ({
|
|
999
|
+
...obj,
|
|
1000
|
+
});
|
|
1001
|
+
export const PutConfigurationSetVdmOptionsResponseFilterSensitiveLog = (obj) => ({
|
|
1002
|
+
...obj,
|
|
1003
|
+
});
|
|
882
1004
|
export const PutDedicatedIpInPoolRequestFilterSensitiveLog = (obj) => ({
|
|
883
1005
|
...obj,
|
|
884
1006
|
});
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ListRecommendationsCommand, } from "../commands/ListRecommendationsCommand";
|
|
2
|
+
import { SESv2 } from "../SESv2";
|
|
3
|
+
import { SESv2Client } from "../SESv2Client";
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new ListRecommendationsCommand(input), ...args);
|
|
6
|
+
};
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.listRecommendations(input, ...args);
|
|
9
|
+
};
|
|
10
|
+
export async function* paginateListRecommendations(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.NextToken = token;
|
|
16
|
+
input["PageSize"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof SESv2) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof SESv2Client) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected SESv2 | SESv2Client");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.NextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
30
|
+
}
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
@@ -10,4 +10,5 @@ export * from "./ListDomainDeliverabilityCampaignsPaginator";
|
|
|
10
10
|
export * from "./ListEmailIdentitiesPaginator";
|
|
11
11
|
export * from "./ListEmailTemplatesPaginator";
|
|
12
12
|
export * from "./ListImportJobsPaginator";
|
|
13
|
+
export * from "./ListRecommendationsPaginator";
|
|
13
14
|
export * from "./ListSuppressedDestinationsPaginator";
|