@aws-sdk/client-sesv2 3.199.0 → 3.200.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 +11 -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/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 +478 -4
- 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 +28 -28
package/dist-es/SESv2.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BatchGetMetricDataCommand, } from "./commands/BatchGetMetricDataCommand";
|
|
1
2
|
import { CreateConfigurationSetCommand, } from "./commands/CreateConfigurationSetCommand";
|
|
2
3
|
import { CreateConfigurationSetEventDestinationCommand, } from "./commands/CreateConfigurationSetEventDestinationCommand";
|
|
3
4
|
import { CreateContactCommand, } from "./commands/CreateContactCommand";
|
|
@@ -48,17 +49,20 @@ import { ListDomainDeliverabilityCampaignsCommand, } from "./commands/ListDomain
|
|
|
48
49
|
import { ListEmailIdentitiesCommand, } from "./commands/ListEmailIdentitiesCommand";
|
|
49
50
|
import { ListEmailTemplatesCommand, } from "./commands/ListEmailTemplatesCommand";
|
|
50
51
|
import { ListImportJobsCommand, } from "./commands/ListImportJobsCommand";
|
|
52
|
+
import { ListRecommendationsCommand, } from "./commands/ListRecommendationsCommand";
|
|
51
53
|
import { ListSuppressedDestinationsCommand, } from "./commands/ListSuppressedDestinationsCommand";
|
|
52
54
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
53
55
|
import { PutAccountDedicatedIpWarmupAttributesCommand, } from "./commands/PutAccountDedicatedIpWarmupAttributesCommand";
|
|
54
56
|
import { PutAccountDetailsCommand, } from "./commands/PutAccountDetailsCommand";
|
|
55
57
|
import { PutAccountSendingAttributesCommand, } from "./commands/PutAccountSendingAttributesCommand";
|
|
56
58
|
import { PutAccountSuppressionAttributesCommand, } from "./commands/PutAccountSuppressionAttributesCommand";
|
|
59
|
+
import { PutAccountVdmAttributesCommand, } from "./commands/PutAccountVdmAttributesCommand";
|
|
57
60
|
import { PutConfigurationSetDeliveryOptionsCommand, } from "./commands/PutConfigurationSetDeliveryOptionsCommand";
|
|
58
61
|
import { PutConfigurationSetReputationOptionsCommand, } from "./commands/PutConfigurationSetReputationOptionsCommand";
|
|
59
62
|
import { PutConfigurationSetSendingOptionsCommand, } from "./commands/PutConfigurationSetSendingOptionsCommand";
|
|
60
63
|
import { PutConfigurationSetSuppressionOptionsCommand, } from "./commands/PutConfigurationSetSuppressionOptionsCommand";
|
|
61
64
|
import { PutConfigurationSetTrackingOptionsCommand, } from "./commands/PutConfigurationSetTrackingOptionsCommand";
|
|
65
|
+
import { PutConfigurationSetVdmOptionsCommand, } from "./commands/PutConfigurationSetVdmOptionsCommand";
|
|
62
66
|
import { PutDedicatedIpInPoolCommand, } from "./commands/PutDedicatedIpInPoolCommand";
|
|
63
67
|
import { PutDedicatedIpWarmupAttributesCommand, } from "./commands/PutDedicatedIpWarmupAttributesCommand";
|
|
64
68
|
import { PutDeliverabilityDashboardOptionCommand, } from "./commands/PutDeliverabilityDashboardOptionCommand";
|
|
@@ -82,6 +86,20 @@ import { UpdateEmailIdentityPolicyCommand, } from "./commands/UpdateEmailIdentit
|
|
|
82
86
|
import { UpdateEmailTemplateCommand, } from "./commands/UpdateEmailTemplateCommand";
|
|
83
87
|
import { SESv2Client } from "./SESv2Client";
|
|
84
88
|
export class SESv2 extends SESv2Client {
|
|
89
|
+
batchGetMetricData(args, optionsOrCb, cb) {
|
|
90
|
+
const command = new BatchGetMetricDataCommand(args);
|
|
91
|
+
if (typeof optionsOrCb === "function") {
|
|
92
|
+
this.send(command, optionsOrCb);
|
|
93
|
+
}
|
|
94
|
+
else if (typeof cb === "function") {
|
|
95
|
+
if (typeof optionsOrCb !== "object")
|
|
96
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
97
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
return this.send(command, optionsOrCb);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
85
103
|
createConfigurationSet(args, optionsOrCb, cb) {
|
|
86
104
|
const command = new CreateConfigurationSetCommand(args);
|
|
87
105
|
if (typeof optionsOrCb === "function") {
|
|
@@ -782,6 +800,20 @@ export class SESv2 extends SESv2Client {
|
|
|
782
800
|
return this.send(command, optionsOrCb);
|
|
783
801
|
}
|
|
784
802
|
}
|
|
803
|
+
listRecommendations(args, optionsOrCb, cb) {
|
|
804
|
+
const command = new ListRecommendationsCommand(args);
|
|
805
|
+
if (typeof optionsOrCb === "function") {
|
|
806
|
+
this.send(command, optionsOrCb);
|
|
807
|
+
}
|
|
808
|
+
else if (typeof cb === "function") {
|
|
809
|
+
if (typeof optionsOrCb !== "object")
|
|
810
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
811
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
812
|
+
}
|
|
813
|
+
else {
|
|
814
|
+
return this.send(command, optionsOrCb);
|
|
815
|
+
}
|
|
816
|
+
}
|
|
785
817
|
listSuppressedDestinations(args, optionsOrCb, cb) {
|
|
786
818
|
const command = new ListSuppressedDestinationsCommand(args);
|
|
787
819
|
if (typeof optionsOrCb === "function") {
|
|
@@ -866,6 +898,20 @@ export class SESv2 extends SESv2Client {
|
|
|
866
898
|
return this.send(command, optionsOrCb);
|
|
867
899
|
}
|
|
868
900
|
}
|
|
901
|
+
putAccountVdmAttributes(args, optionsOrCb, cb) {
|
|
902
|
+
const command = new PutAccountVdmAttributesCommand(args);
|
|
903
|
+
if (typeof optionsOrCb === "function") {
|
|
904
|
+
this.send(command, optionsOrCb);
|
|
905
|
+
}
|
|
906
|
+
else if (typeof cb === "function") {
|
|
907
|
+
if (typeof optionsOrCb !== "object")
|
|
908
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
909
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
910
|
+
}
|
|
911
|
+
else {
|
|
912
|
+
return this.send(command, optionsOrCb);
|
|
913
|
+
}
|
|
914
|
+
}
|
|
869
915
|
putConfigurationSetDeliveryOptions(args, optionsOrCb, cb) {
|
|
870
916
|
const command = new PutConfigurationSetDeliveryOptionsCommand(args);
|
|
871
917
|
if (typeof optionsOrCb === "function") {
|
|
@@ -936,6 +982,20 @@ export class SESv2 extends SESv2Client {
|
|
|
936
982
|
return this.send(command, optionsOrCb);
|
|
937
983
|
}
|
|
938
984
|
}
|
|
985
|
+
putConfigurationSetVdmOptions(args, optionsOrCb, cb) {
|
|
986
|
+
const command = new PutConfigurationSetVdmOptionsCommand(args);
|
|
987
|
+
if (typeof optionsOrCb === "function") {
|
|
988
|
+
this.send(command, optionsOrCb);
|
|
989
|
+
}
|
|
990
|
+
else if (typeof cb === "function") {
|
|
991
|
+
if (typeof optionsOrCb !== "object")
|
|
992
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
993
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
994
|
+
}
|
|
995
|
+
else {
|
|
996
|
+
return this.send(command, optionsOrCb);
|
|
997
|
+
}
|
|
998
|
+
}
|
|
939
999
|
putDedicatedIpInPool(args, optionsOrCb, cb) {
|
|
940
1000
|
const command = new PutDedicatedIpInPoolCommand(args);
|
|
941
1001
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { BatchGetMetricDataRequestFilterSensitiveLog, BatchGetMetricDataResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1BatchGetMetricDataCommand, serializeAws_restJson1BatchGetMetricDataCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class BatchGetMetricDataCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, BatchGetMetricDataCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "SESv2Client";
|
|
25
|
+
const commandName = "BatchGetMetricDataCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: BatchGetMetricDataRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: BatchGetMetricDataResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1BatchGetMetricDataCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1BatchGetMetricDataCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ListRecommendationsRequestFilterSensitiveLog, ListRecommendationsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1ListRecommendationsCommand, serializeAws_restJson1ListRecommendationsCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class ListRecommendationsCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListRecommendationsCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "SESv2Client";
|
|
25
|
+
const commandName = "ListRecommendationsCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: ListRecommendationsRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: ListRecommendationsResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1ListRecommendationsCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1ListRecommendationsCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { PutAccountVdmAttributesRequestFilterSensitiveLog, PutAccountVdmAttributesResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1PutAccountVdmAttributesCommand, serializeAws_restJson1PutAccountVdmAttributesCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class PutAccountVdmAttributesCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, PutAccountVdmAttributesCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "SESv2Client";
|
|
25
|
+
const commandName = "PutAccountVdmAttributesCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: PutAccountVdmAttributesRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: PutAccountVdmAttributesResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1PutAccountVdmAttributesCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1PutAccountVdmAttributesCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { PutConfigurationSetVdmOptionsRequestFilterSensitiveLog, PutConfigurationSetVdmOptionsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1PutConfigurationSetVdmOptionsCommand, serializeAws_restJson1PutConfigurationSetVdmOptionsCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class PutConfigurationSetVdmOptionsCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, PutConfigurationSetVdmOptionsCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "SESv2Client";
|
|
25
|
+
const commandName = "PutConfigurationSetVdmOptionsCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: PutConfigurationSetVdmOptionsRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: PutConfigurationSetVdmOptionsResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1PutConfigurationSetVdmOptionsCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1PutConfigurationSetVdmOptionsCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from "./BatchGetMetricDataCommand";
|
|
1
2
|
export * from "./CreateConfigurationSetCommand";
|
|
2
3
|
export * from "./CreateConfigurationSetEventDestinationCommand";
|
|
3
4
|
export * from "./CreateContactCommand";
|
|
@@ -48,17 +49,20 @@ export * from "./ListDomainDeliverabilityCampaignsCommand";
|
|
|
48
49
|
export * from "./ListEmailIdentitiesCommand";
|
|
49
50
|
export * from "./ListEmailTemplatesCommand";
|
|
50
51
|
export * from "./ListImportJobsCommand";
|
|
52
|
+
export * from "./ListRecommendationsCommand";
|
|
51
53
|
export * from "./ListSuppressedDestinationsCommand";
|
|
52
54
|
export * from "./ListTagsForResourceCommand";
|
|
53
55
|
export * from "./PutAccountDedicatedIpWarmupAttributesCommand";
|
|
54
56
|
export * from "./PutAccountDetailsCommand";
|
|
55
57
|
export * from "./PutAccountSendingAttributesCommand";
|
|
56
58
|
export * from "./PutAccountSuppressionAttributesCommand";
|
|
59
|
+
export * from "./PutAccountVdmAttributesCommand";
|
|
57
60
|
export * from "./PutConfigurationSetDeliveryOptionsCommand";
|
|
58
61
|
export * from "./PutConfigurationSetReputationOptionsCommand";
|
|
59
62
|
export * from "./PutConfigurationSetSendingOptionsCommand";
|
|
60
63
|
export * from "./PutConfigurationSetSuppressionOptionsCommand";
|
|
61
64
|
export * from "./PutConfigurationSetTrackingOptionsCommand";
|
|
65
|
+
export * from "./PutConfigurationSetVdmOptionsCommand";
|
|
62
66
|
export * from "./PutDedicatedIpInPoolCommand";
|
|
63
67
|
export * from "./PutDedicatedIpWarmupAttributesCommand";
|
|
64
68
|
export * from "./PutDeliverabilityDashboardOptionCommand";
|
|
@@ -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";
|