@aws-sdk/client-ses 3.645.0 → 3.650.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 (81) hide show
  1. package/dist-cjs/endpoint/endpointResolver.js +6 -2
  2. package/dist-cjs/index.js +71 -213
  3. package/dist-es/commands/CloneReceiptRuleSetCommand.js +1 -3
  4. package/dist-es/commands/CreateConfigurationSetCommand.js +1 -3
  5. package/dist-es/commands/CreateConfigurationSetEventDestinationCommand.js +1 -3
  6. package/dist-es/commands/CreateConfigurationSetTrackingOptionsCommand.js +1 -3
  7. package/dist-es/commands/CreateCustomVerificationEmailTemplateCommand.js +1 -3
  8. package/dist-es/commands/CreateReceiptFilterCommand.js +1 -3
  9. package/dist-es/commands/CreateReceiptRuleCommand.js +1 -3
  10. package/dist-es/commands/CreateReceiptRuleSetCommand.js +1 -3
  11. package/dist-es/commands/CreateTemplateCommand.js +1 -3
  12. package/dist-es/commands/DeleteConfigurationSetCommand.js +1 -3
  13. package/dist-es/commands/DeleteConfigurationSetEventDestinationCommand.js +1 -3
  14. package/dist-es/commands/DeleteConfigurationSetTrackingOptionsCommand.js +1 -3
  15. package/dist-es/commands/DeleteCustomVerificationEmailTemplateCommand.js +1 -3
  16. package/dist-es/commands/DeleteIdentityCommand.js +1 -3
  17. package/dist-es/commands/DeleteIdentityPolicyCommand.js +1 -3
  18. package/dist-es/commands/DeleteReceiptFilterCommand.js +1 -3
  19. package/dist-es/commands/DeleteReceiptRuleCommand.js +1 -3
  20. package/dist-es/commands/DeleteReceiptRuleSetCommand.js +1 -3
  21. package/dist-es/commands/DeleteTemplateCommand.js +1 -3
  22. package/dist-es/commands/DeleteVerifiedEmailAddressCommand.js +1 -3
  23. package/dist-es/commands/DescribeActiveReceiptRuleSetCommand.js +1 -3
  24. package/dist-es/commands/DescribeConfigurationSetCommand.js +1 -3
  25. package/dist-es/commands/DescribeReceiptRuleCommand.js +1 -3
  26. package/dist-es/commands/DescribeReceiptRuleSetCommand.js +1 -3
  27. package/dist-es/commands/GetAccountSendingEnabledCommand.js +1 -3
  28. package/dist-es/commands/GetCustomVerificationEmailTemplateCommand.js +1 -3
  29. package/dist-es/commands/GetIdentityDkimAttributesCommand.js +1 -3
  30. package/dist-es/commands/GetIdentityMailFromDomainAttributesCommand.js +1 -3
  31. package/dist-es/commands/GetIdentityNotificationAttributesCommand.js +1 -3
  32. package/dist-es/commands/GetIdentityPoliciesCommand.js +1 -3
  33. package/dist-es/commands/GetIdentityVerificationAttributesCommand.js +1 -3
  34. package/dist-es/commands/GetSendQuotaCommand.js +1 -3
  35. package/dist-es/commands/GetSendStatisticsCommand.js +1 -3
  36. package/dist-es/commands/GetTemplateCommand.js +1 -3
  37. package/dist-es/commands/ListConfigurationSetsCommand.js +1 -3
  38. package/dist-es/commands/ListCustomVerificationEmailTemplatesCommand.js +1 -3
  39. package/dist-es/commands/ListIdentitiesCommand.js +1 -3
  40. package/dist-es/commands/ListIdentityPoliciesCommand.js +1 -3
  41. package/dist-es/commands/ListReceiptFiltersCommand.js +1 -3
  42. package/dist-es/commands/ListReceiptRuleSetsCommand.js +1 -3
  43. package/dist-es/commands/ListTemplatesCommand.js +1 -3
  44. package/dist-es/commands/ListVerifiedEmailAddressesCommand.js +1 -3
  45. package/dist-es/commands/PutConfigurationSetDeliveryOptionsCommand.js +1 -3
  46. package/dist-es/commands/PutIdentityPolicyCommand.js +1 -3
  47. package/dist-es/commands/ReorderReceiptRuleSetCommand.js +1 -3
  48. package/dist-es/commands/SendBounceCommand.js +1 -3
  49. package/dist-es/commands/SendBulkTemplatedEmailCommand.js +1 -3
  50. package/dist-es/commands/SendCustomVerificationEmailCommand.js +1 -3
  51. package/dist-es/commands/SendEmailCommand.js +1 -3
  52. package/dist-es/commands/SendRawEmailCommand.js +1 -3
  53. package/dist-es/commands/SendTemplatedEmailCommand.js +1 -3
  54. package/dist-es/commands/SetActiveReceiptRuleSetCommand.js +1 -3
  55. package/dist-es/commands/SetIdentityDkimEnabledCommand.js +1 -3
  56. package/dist-es/commands/SetIdentityFeedbackForwardingEnabledCommand.js +1 -3
  57. package/dist-es/commands/SetIdentityHeadersInNotificationsEnabledCommand.js +1 -3
  58. package/dist-es/commands/SetIdentityMailFromDomainCommand.js +1 -3
  59. package/dist-es/commands/SetIdentityNotificationTopicCommand.js +1 -3
  60. package/dist-es/commands/SetReceiptRulePositionCommand.js +1 -3
  61. package/dist-es/commands/TestRenderTemplateCommand.js +1 -3
  62. package/dist-es/commands/UpdateAccountSendingEnabledCommand.js +1 -3
  63. package/dist-es/commands/UpdateConfigurationSetEventDestinationCommand.js +1 -3
  64. package/dist-es/commands/UpdateConfigurationSetReputationMetricsEnabledCommand.js +1 -3
  65. package/dist-es/commands/UpdateConfigurationSetSendingEnabledCommand.js +1 -3
  66. package/dist-es/commands/UpdateConfigurationSetTrackingOptionsCommand.js +1 -3
  67. package/dist-es/commands/UpdateCustomVerificationEmailTemplateCommand.js +1 -3
  68. package/dist-es/commands/UpdateReceiptRuleCommand.js +1 -3
  69. package/dist-es/commands/UpdateTemplateCommand.js +1 -3
  70. package/dist-es/commands/VerifyDomainDkimCommand.js +1 -3
  71. package/dist-es/commands/VerifyDomainIdentityCommand.js +1 -3
  72. package/dist-es/commands/VerifyEmailAddressCommand.js +1 -3
  73. package/dist-es/commands/VerifyEmailIdentityCommand.js +1 -3
  74. package/dist-es/endpoint/endpointResolver.js +7 -3
  75. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  76. package/dist-types/runtimeConfig.d.ts +2 -0
  77. package/dist-types/runtimeConfig.native.d.ts +2 -0
  78. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  79. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  80. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  81. package/package.json +36 -36
@@ -4,11 +4,15 @@ exports.defaultEndpointResolver = void 0;
4
4
  const util_endpoints_1 = require("@aws-sdk/util-endpoints");
5
5
  const util_endpoints_2 = require("@smithy/util-endpoints");
6
6
  const ruleset_1 = require("./ruleset");
7
+ const cache = new util_endpoints_2.EndpointCache({
8
+ size: 50,
9
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
10
+ });
7
11
  const defaultEndpointResolver = (endpointParams, context = {}) => {
8
- return (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
12
+ return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
9
13
  endpointParams: endpointParams,
10
14
  logger: context.logger,
11
- });
15
+ }));
12
16
  };
13
17
  exports.defaultEndpointResolver = defaultEndpointResolver;
14
18
  util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;