@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
|
@@ -16,7 +16,6 @@ const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
|
16
16
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
17
17
|
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
18
18
|
const getRuntimeConfig = (config) => {
|
|
19
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
19
|
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
21
20
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
21
|
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
@@ -25,21 +24,22 @@ const getRuntimeConfig = (config) => {
|
|
|
25
24
|
...config,
|
|
26
25
|
runtime: "browser",
|
|
27
26
|
defaultsMode,
|
|
28
|
-
base64Decoder:
|
|
29
|
-
base64Encoder:
|
|
30
|
-
bodyLengthChecker:
|
|
31
|
-
credentialDefaultProvider:
|
|
32
|
-
defaultUserAgentProvider:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
27
|
+
base64Decoder: config?.base64Decoder ?? util_base64_browser_1.fromBase64,
|
|
28
|
+
base64Encoder: config?.base64Encoder ?? util_base64_browser_1.toBase64,
|
|
29
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
|
|
30
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
31
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
32
|
+
(0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
33
|
+
maxAttempts: config?.maxAttempts ?? middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
34
|
+
region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
35
|
+
requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
37
|
+
sha256: config?.sha256 ?? sha256_browser_1.Sha256,
|
|
38
|
+
streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
|
|
39
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
40
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
|
|
41
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_browser_1.fromUtf8,
|
|
42
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_browser_1.toUtf8,
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
45
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -19,7 +19,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
19
19
|
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
20
20
|
const smithy_client_2 = require("@aws-sdk/smithy-client");
|
|
21
21
|
const getRuntimeConfig = (config) => {
|
|
22
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
23
22
|
(0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
|
|
24
23
|
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
25
24
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
@@ -29,24 +28,26 @@ const getRuntimeConfig = (config) => {
|
|
|
29
28
|
...config,
|
|
30
29
|
runtime: "node",
|
|
31
30
|
defaultsMode,
|
|
32
|
-
base64Decoder:
|
|
33
|
-
base64Encoder:
|
|
34
|
-
bodyLengthChecker:
|
|
35
|
-
credentialDefaultProvider:
|
|
36
|
-
defaultUserAgentProvider:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
31
|
+
base64Decoder: config?.base64Decoder ?? util_base64_node_1.fromBase64,
|
|
32
|
+
base64Encoder: config?.base64Encoder ?? util_base64_node_1.toBase64,
|
|
33
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
34
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
|
|
35
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
36
|
+
(0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
37
|
+
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
38
|
+
region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
39
|
+
requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
40
|
+
retryMode: config?.retryMode ??
|
|
41
|
+
(0, node_config_provider_1.loadConfig)({
|
|
42
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
43
|
+
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
44
|
+
}),
|
|
45
|
+
sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
|
|
46
|
+
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
|
|
47
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
48
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
49
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_node_1.fromUtf8,
|
|
50
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_node_1.toUtf8,
|
|
50
51
|
};
|
|
51
52
|
};
|
|
52
53
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -4,13 +4,12 @@ exports.getRuntimeConfig = void 0;
|
|
|
4
4
|
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
5
|
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
6
|
const getRuntimeConfig = (config) => {
|
|
7
|
-
var _a;
|
|
8
7
|
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
9
8
|
return {
|
|
10
9
|
...browserDefaults,
|
|
11
10
|
...config,
|
|
12
11
|
runtime: "react-native",
|
|
13
|
-
sha256:
|
|
12
|
+
sha256: config?.sha256 ?? sha256_js_1.Sha256,
|
|
14
13
|
};
|
|
15
14
|
};
|
|
16
15
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -3,15 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
5
5
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
6
|
-
const getRuntimeConfig = (config) => {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl,
|
|
15
|
-
});
|
|
16
|
-
};
|
|
6
|
+
const getRuntimeConfig = (config) => ({
|
|
7
|
+
apiVersion: "2019-09-27",
|
|
8
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
9
|
+
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
10
|
+
logger: config?.logger ?? {},
|
|
11
|
+
serviceId: config?.serviceId ?? "SESv2",
|
|
12
|
+
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
13
|
+
});
|
|
17
14
|
exports.getRuntimeConfig = getRuntimeConfig;
|
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";
|