@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.
Files changed (54) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +7 -7
  3. package/dist-cjs/SESv2.js +60 -0
  4. package/dist-cjs/commands/BatchGetMetricDataCommand.js +46 -0
  5. package/dist-cjs/commands/ListRecommendationsCommand.js +46 -0
  6. package/dist-cjs/commands/PutAccountVdmAttributesCommand.js +46 -0
  7. package/dist-cjs/commands/PutConfigurationSetVdmOptionsCommand.js +46 -0
  8. package/dist-cjs/commands/index.js +4 -0
  9. package/dist-cjs/endpoint/EndpointParameters.js +2 -3
  10. package/dist-cjs/endpoint/ruleset.js +1 -1
  11. package/dist-cjs/models/models_0.js +173 -32
  12. package/dist-cjs/pagination/ListRecommendationsPaginator.js +36 -0
  13. package/dist-cjs/pagination/index.js +1 -0
  14. package/dist-cjs/protocols/Aws_restJson1.js +567 -97
  15. package/dist-cjs/runtimeConfig.browser.js +16 -16
  16. package/dist-cjs/runtimeConfig.js +20 -19
  17. package/dist-cjs/runtimeConfig.native.js +1 -2
  18. package/dist-cjs/runtimeConfig.shared.js +8 -11
  19. package/dist-es/SESv2.js +60 -0
  20. package/dist-es/commands/BatchGetMetricDataCommand.js +42 -0
  21. package/dist-es/commands/ListRecommendationsCommand.js +42 -0
  22. package/dist-es/commands/PutAccountVdmAttributesCommand.js +42 -0
  23. package/dist-es/commands/PutConfigurationSetVdmOptionsCommand.js +42 -0
  24. package/dist-es/commands/index.js +4 -0
  25. package/dist-es/endpoint/ruleset.js +1 -1
  26. package/dist-es/models/models_0.js +146 -24
  27. package/dist-es/pagination/ListRecommendationsPaginator.js +32 -0
  28. package/dist-es/pagination/index.js +1 -0
  29. package/dist-es/protocols/Aws_restJson1.js +467 -1
  30. package/dist-types/SESv2.d.ts +33 -0
  31. package/dist-types/SESv2Client.d.ts +6 -2
  32. package/dist-types/commands/BatchGetMetricDataCommand.d.ts +39 -0
  33. package/dist-types/commands/ListRecommendationsCommand.d.ts +38 -0
  34. package/dist-types/commands/PutAccountVdmAttributesCommand.d.ts +38 -0
  35. package/dist-types/commands/PutConfigurationSetVdmOptionsCommand.d.ts +38 -0
  36. package/dist-types/commands/index.d.ts +4 -0
  37. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  38. package/dist-types/models/models_0.d.ts +552 -22
  39. package/dist-types/pagination/ListRecommendationsPaginator.d.ts +4 -0
  40. package/dist-types/pagination/index.d.ts +1 -0
  41. package/dist-types/protocols/Aws_restJson1.d.ts +12 -0
  42. package/dist-types/ts3.4/SESv2.d.ts +68 -0
  43. package/dist-types/ts3.4/SESv2Client.d.ts +24 -0
  44. package/dist-types/ts3.4/commands/BatchGetMetricDataCommand.d.ts +38 -0
  45. package/dist-types/ts3.4/commands/ListRecommendationsCommand.d.ts +38 -0
  46. package/dist-types/ts3.4/commands/PutAccountVdmAttributesCommand.d.ts +41 -0
  47. package/dist-types/ts3.4/commands/PutConfigurationSetVdmOptionsCommand.d.ts +41 -0
  48. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  49. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  50. package/dist-types/ts3.4/models/models_0.d.ts +194 -12
  51. package/dist-types/ts3.4/pagination/ListRecommendationsPaginator.d.ts +11 -0
  52. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  53. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +48 -0
  54. 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: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
29
- base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
30
- bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
31
- credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
32
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
33
- maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
34
- region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
35
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
37
- sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
38
- streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
39
- useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
40
- useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
41
- utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_browser_1.fromUtf8,
42
- utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_browser_1.toUtf8,
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: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
33
- base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
34
- bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
35
- credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
36
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
37
- maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
38
- region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
39
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
40
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({
41
- ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
42
- default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
43
- }),
44
- sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
45
- streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
46
- useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
47
- useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
48
- utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
49
- utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
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: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : sha256_js_1.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
- var _a, _b, _c, _d, _e;
8
- return ({
9
- apiVersion: "2019-09-27",
10
- disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
11
- endpointProvider: (_b = config === null || config === void 0 ? void 0 : config.endpointProvider) !== null && _b !== void 0 ? _b : endpointResolver_1.defaultEndpointResolver,
12
- logger: (_c = config === null || config === void 0 ? void 0 : config.logger) !== null && _c !== void 0 ? _c : {},
13
- serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "SESv2",
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";
@@ -3,7 +3,7 @@ export const ruleSet = {
3
3
  parameters: {
4
4
  Region: {
5
5
  builtIn: "AWS::Region",
6
- required: true,
6
+ required: false,
7
7
  documentation: "The AWS region used to dispatch the request.",
8
8
  type: "String",
9
9
  },