@aws-sdk/client-support 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 (26) hide show
  1. package/dist-cjs/endpoint/endpointResolver.js +6 -2
  2. package/dist-cjs/index.js +16 -48
  3. package/dist-es/commands/AddAttachmentsToSetCommand.js +1 -3
  4. package/dist-es/commands/AddCommunicationToCaseCommand.js +1 -3
  5. package/dist-es/commands/CreateCaseCommand.js +1 -3
  6. package/dist-es/commands/DescribeAttachmentCommand.js +1 -3
  7. package/dist-es/commands/DescribeCasesCommand.js +1 -3
  8. package/dist-es/commands/DescribeCommunicationsCommand.js +1 -3
  9. package/dist-es/commands/DescribeCreateCaseOptionsCommand.js +1 -3
  10. package/dist-es/commands/DescribeServicesCommand.js +1 -3
  11. package/dist-es/commands/DescribeSeverityLevelsCommand.js +1 -3
  12. package/dist-es/commands/DescribeSupportedLanguagesCommand.js +1 -3
  13. package/dist-es/commands/DescribeTrustedAdvisorCheckRefreshStatusesCommand.js +1 -3
  14. package/dist-es/commands/DescribeTrustedAdvisorCheckResultCommand.js +1 -3
  15. package/dist-es/commands/DescribeTrustedAdvisorCheckSummariesCommand.js +1 -3
  16. package/dist-es/commands/DescribeTrustedAdvisorChecksCommand.js +1 -3
  17. package/dist-es/commands/RefreshTrustedAdvisorCheckCommand.js +1 -3
  18. package/dist-es/commands/ResolveCaseCommand.js +1 -3
  19. package/dist-es/endpoint/endpointResolver.js +7 -3
  20. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  21. package/dist-types/runtimeConfig.d.ts +2 -0
  22. package/dist-types/runtimeConfig.native.d.ts +2 -0
  23. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  24. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  25. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  26. package/package.json +35 -35
@@ -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;
package/dist-cjs/index.js CHANGED
@@ -999,9 +999,7 @@ function sharedHeaders(operation) {
999
999
  __name(sharedHeaders, "sharedHeaders");
1000
1000
 
1001
1001
  // src/commands/AddAttachmentsToSetCommand.ts
1002
- var _AddAttachmentsToSetCommand = class _AddAttachmentsToSetCommand extends import_smithy_client.Command.classBuilder().ep({
1003
- ...commonParams
1004
- }).m(function(Command, cs, config, o) {
1002
+ var _AddAttachmentsToSetCommand = class _AddAttachmentsToSetCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1005
1003
  return [
1006
1004
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1007
1005
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1015,9 +1013,7 @@ var AddAttachmentsToSetCommand = _AddAttachmentsToSetCommand;
1015
1013
 
1016
1014
 
1017
1015
 
1018
- var _AddCommunicationToCaseCommand = class _AddCommunicationToCaseCommand extends import_smithy_client.Command.classBuilder().ep({
1019
- ...commonParams
1020
- }).m(function(Command, cs, config, o) {
1016
+ var _AddCommunicationToCaseCommand = class _AddCommunicationToCaseCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1021
1017
  return [
1022
1018
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1023
1019
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1031,9 +1027,7 @@ var AddCommunicationToCaseCommand = _AddCommunicationToCaseCommand;
1031
1027
 
1032
1028
 
1033
1029
 
1034
- var _CreateCaseCommand = class _CreateCaseCommand extends import_smithy_client.Command.classBuilder().ep({
1035
- ...commonParams
1036
- }).m(function(Command, cs, config, o) {
1030
+ var _CreateCaseCommand = class _CreateCaseCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1037
1031
  return [
1038
1032
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1039
1033
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1047,9 +1041,7 @@ var CreateCaseCommand = _CreateCaseCommand;
1047
1041
 
1048
1042
 
1049
1043
 
1050
- var _DescribeAttachmentCommand = class _DescribeAttachmentCommand extends import_smithy_client.Command.classBuilder().ep({
1051
- ...commonParams
1052
- }).m(function(Command, cs, config, o) {
1044
+ var _DescribeAttachmentCommand = class _DescribeAttachmentCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1053
1045
  return [
1054
1046
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1055
1047
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1063,9 +1055,7 @@ var DescribeAttachmentCommand = _DescribeAttachmentCommand;
1063
1055
 
1064
1056
 
1065
1057
 
1066
- var _DescribeCasesCommand = class _DescribeCasesCommand extends import_smithy_client.Command.classBuilder().ep({
1067
- ...commonParams
1068
- }).m(function(Command, cs, config, o) {
1058
+ var _DescribeCasesCommand = class _DescribeCasesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1069
1059
  return [
1070
1060
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1071
1061
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1079,9 +1069,7 @@ var DescribeCasesCommand = _DescribeCasesCommand;
1079
1069
 
1080
1070
 
1081
1071
 
1082
- var _DescribeCommunicationsCommand = class _DescribeCommunicationsCommand extends import_smithy_client.Command.classBuilder().ep({
1083
- ...commonParams
1084
- }).m(function(Command, cs, config, o) {
1072
+ var _DescribeCommunicationsCommand = class _DescribeCommunicationsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1085
1073
  return [
1086
1074
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1087
1075
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1095,9 +1083,7 @@ var DescribeCommunicationsCommand = _DescribeCommunicationsCommand;
1095
1083
 
1096
1084
 
1097
1085
 
1098
- var _DescribeCreateCaseOptionsCommand = class _DescribeCreateCaseOptionsCommand extends import_smithy_client.Command.classBuilder().ep({
1099
- ...commonParams
1100
- }).m(function(Command, cs, config, o) {
1086
+ var _DescribeCreateCaseOptionsCommand = class _DescribeCreateCaseOptionsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1101
1087
  return [
1102
1088
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1103
1089
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1111,9 +1097,7 @@ var DescribeCreateCaseOptionsCommand = _DescribeCreateCaseOptionsCommand;
1111
1097
 
1112
1098
 
1113
1099
 
1114
- var _DescribeServicesCommand = class _DescribeServicesCommand extends import_smithy_client.Command.classBuilder().ep({
1115
- ...commonParams
1116
- }).m(function(Command, cs, config, o) {
1100
+ var _DescribeServicesCommand = class _DescribeServicesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1117
1101
  return [
1118
1102
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1119
1103
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1127,9 +1111,7 @@ var DescribeServicesCommand = _DescribeServicesCommand;
1127
1111
 
1128
1112
 
1129
1113
 
1130
- var _DescribeSeverityLevelsCommand = class _DescribeSeverityLevelsCommand extends import_smithy_client.Command.classBuilder().ep({
1131
- ...commonParams
1132
- }).m(function(Command, cs, config, o) {
1114
+ var _DescribeSeverityLevelsCommand = class _DescribeSeverityLevelsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1133
1115
  return [
1134
1116
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1135
1117
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1143,9 +1125,7 @@ var DescribeSeverityLevelsCommand = _DescribeSeverityLevelsCommand;
1143
1125
 
1144
1126
 
1145
1127
 
1146
- var _DescribeSupportedLanguagesCommand = class _DescribeSupportedLanguagesCommand extends import_smithy_client.Command.classBuilder().ep({
1147
- ...commonParams
1148
- }).m(function(Command, cs, config, o) {
1128
+ var _DescribeSupportedLanguagesCommand = class _DescribeSupportedLanguagesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1149
1129
  return [
1150
1130
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1151
1131
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1159,9 +1139,7 @@ var DescribeSupportedLanguagesCommand = _DescribeSupportedLanguagesCommand;
1159
1139
 
1160
1140
 
1161
1141
 
1162
- var _DescribeTrustedAdvisorCheckRefreshStatusesCommand = class _DescribeTrustedAdvisorCheckRefreshStatusesCommand extends import_smithy_client.Command.classBuilder().ep({
1163
- ...commonParams
1164
- }).m(function(Command, cs, config, o) {
1142
+ var _DescribeTrustedAdvisorCheckRefreshStatusesCommand = class _DescribeTrustedAdvisorCheckRefreshStatusesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1165
1143
  return [
1166
1144
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1167
1145
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1175,9 +1153,7 @@ var DescribeTrustedAdvisorCheckRefreshStatusesCommand = _DescribeTrustedAdvisorC
1175
1153
 
1176
1154
 
1177
1155
 
1178
- var _DescribeTrustedAdvisorCheckResultCommand = class _DescribeTrustedAdvisorCheckResultCommand extends import_smithy_client.Command.classBuilder().ep({
1179
- ...commonParams
1180
- }).m(function(Command, cs, config, o) {
1156
+ var _DescribeTrustedAdvisorCheckResultCommand = class _DescribeTrustedAdvisorCheckResultCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1181
1157
  return [
1182
1158
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1183
1159
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1191,9 +1167,7 @@ var DescribeTrustedAdvisorCheckResultCommand = _DescribeTrustedAdvisorCheckResul
1191
1167
 
1192
1168
 
1193
1169
 
1194
- var _DescribeTrustedAdvisorChecksCommand = class _DescribeTrustedAdvisorChecksCommand extends import_smithy_client.Command.classBuilder().ep({
1195
- ...commonParams
1196
- }).m(function(Command, cs, config, o) {
1170
+ var _DescribeTrustedAdvisorChecksCommand = class _DescribeTrustedAdvisorChecksCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1197
1171
  return [
1198
1172
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1199
1173
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1207,9 +1181,7 @@ var DescribeTrustedAdvisorChecksCommand = _DescribeTrustedAdvisorChecksCommand;
1207
1181
 
1208
1182
 
1209
1183
 
1210
- var _DescribeTrustedAdvisorCheckSummariesCommand = class _DescribeTrustedAdvisorCheckSummariesCommand extends import_smithy_client.Command.classBuilder().ep({
1211
- ...commonParams
1212
- }).m(function(Command, cs, config, o) {
1184
+ var _DescribeTrustedAdvisorCheckSummariesCommand = class _DescribeTrustedAdvisorCheckSummariesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1213
1185
  return [
1214
1186
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1215
1187
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1223,9 +1195,7 @@ var DescribeTrustedAdvisorCheckSummariesCommand = _DescribeTrustedAdvisorCheckSu
1223
1195
 
1224
1196
 
1225
1197
 
1226
- var _RefreshTrustedAdvisorCheckCommand = class _RefreshTrustedAdvisorCheckCommand extends import_smithy_client.Command.classBuilder().ep({
1227
- ...commonParams
1228
- }).m(function(Command, cs, config, o) {
1198
+ var _RefreshTrustedAdvisorCheckCommand = class _RefreshTrustedAdvisorCheckCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1229
1199
  return [
1230
1200
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1231
1201
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1239,9 +1209,7 @@ var RefreshTrustedAdvisorCheckCommand = _RefreshTrustedAdvisorCheckCommand;
1239
1209
 
1240
1210
 
1241
1211
 
1242
- var _ResolveCaseCommand = class _ResolveCaseCommand extends import_smithy_client.Command.classBuilder().ep({
1243
- ...commonParams
1244
- }).m(function(Command, cs, config, o) {
1212
+ var _ResolveCaseCommand = class _ResolveCaseCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1245
1213
  return [
1246
1214
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1247
1215
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -6,9 +6,7 @@ import { de_AddAttachmentsToSetCommand, se_AddAttachmentsToSetCommand } from "..
6
6
  export { $Command };
7
7
  export class AddAttachmentsToSetCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_AddCommunicationToCaseCommand, se_AddCommunicationToCaseCommand } fr
6
6
  export { $Command };
7
7
  export class AddCommunicationToCaseCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_CreateCaseCommand, se_CreateCaseCommand } from "../protocols/Aws_jso
6
6
  export { $Command };
7
7
  export class CreateCaseCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_DescribeAttachmentCommand, se_DescribeAttachmentCommand } from "../p
6
6
  export { $Command };
7
7
  export class DescribeAttachmentCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_DescribeCasesCommand, se_DescribeCasesCommand } from "../protocols/A
6
6
  export { $Command };
7
7
  export class DescribeCasesCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_DescribeCommunicationsCommand, se_DescribeCommunicationsCommand } fr
6
6
  export { $Command };
7
7
  export class DescribeCommunicationsCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_DescribeCreateCaseOptionsCommand, se_DescribeCreateCaseOptionsComman
6
6
  export { $Command };
7
7
  export class DescribeCreateCaseOptionsCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_DescribeServicesCommand, se_DescribeServicesCommand } from "../proto
6
6
  export { $Command };
7
7
  export class DescribeServicesCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_DescribeSeverityLevelsCommand, se_DescribeSeverityLevelsCommand } fr
6
6
  export { $Command };
7
7
  export class DescribeSeverityLevelsCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_DescribeSupportedLanguagesCommand, se_DescribeSupportedLanguagesComm
6
6
  export { $Command };
7
7
  export class DescribeSupportedLanguagesCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_DescribeTrustedAdvisorCheckRefreshStatusesCommand, se_DescribeTruste
6
6
  export { $Command };
7
7
  export class DescribeTrustedAdvisorCheckRefreshStatusesCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_DescribeTrustedAdvisorCheckResultCommand, se_DescribeTrustedAdvisorC
6
6
  export { $Command };
7
7
  export class DescribeTrustedAdvisorCheckResultCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_DescribeTrustedAdvisorCheckSummariesCommand, se_DescribeTrustedAdvis
6
6
  export { $Command };
7
7
  export class DescribeTrustedAdvisorCheckSummariesCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_DescribeTrustedAdvisorChecksCommand, se_DescribeTrustedAdvisorChecks
6
6
  export { $Command };
7
7
  export class DescribeTrustedAdvisorChecksCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_RefreshTrustedAdvisorCheckCommand, se_RefreshTrustedAdvisorCheckComm
6
6
  export { $Command };
7
7
  export class RefreshTrustedAdvisorCheckCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -6,9 +6,7 @@ import { de_ResolveCaseCommand, se_ResolveCaseCommand } from "../protocols/Aws_j
6
6
  export { $Command };
7
7
  export class ResolveCaseCommand extends $Command
8
8
  .classBuilder()
9
- .ep({
10
- ...commonParams,
11
- })
9
+ .ep(commonParams)
12
10
  .m(function (Command, cs, config, o) {
13
11
  return [
14
12
  getSerdePlugin(config, this.serialize, this.deserialize),
@@ -1,10 +1,14 @@
1
1
  import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
2
- import { customEndpointFunctions, resolveEndpoint } from "@smithy/util-endpoints";
2
+ import { customEndpointFunctions, EndpointCache, resolveEndpoint } from "@smithy/util-endpoints";
3
3
  import { ruleSet } from "./ruleset";
4
+ const cache = new EndpointCache({
5
+ size: 50,
6
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
7
+ });
4
8
  export const defaultEndpointResolver = (endpointParams, context = {}) => {
5
- return resolveEndpoint(ruleSet, {
9
+ return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
6
10
  endpointParams: endpointParams,
7
11
  logger: context.logger,
8
- });
12
+ }));
9
13
  };
10
14
  customEndpointFunctions.aws = awsEndpointFunctions;
@@ -18,6 +18,7 @@ export declare const getRuntimeConfig: (config: SupportClientConfig) => {
18
18
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
19
19
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
20
20
  apiVersion: string;
21
+ cacheMiddleware?: boolean | undefined;
21
22
  urlParser: import("@smithy/types").UrlParser;
22
23
  base64Decoder: import("@smithy/types").Decoder;
23
24
  base64Encoder: (_input: string | Uint8Array) => string;
@@ -34,6 +35,7 @@ export declare const getRuntimeConfig: (config: SupportClientConfig) => {
34
35
  logger?: import("@smithy/types").Logger | undefined;
35
36
  }) => import("@smithy/types").EndpointV2;
36
37
  tls?: boolean | undefined;
38
+ serviceConfiguredEndpoint?: undefined;
37
39
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
38
40
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SupportHttpAuthSchemeProvider;
39
41
  credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
@@ -18,6 +18,7 @@ export declare const getRuntimeConfig: (config: SupportClientConfig) => {
18
18
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
19
19
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
20
20
  apiVersion: string;
21
+ cacheMiddleware?: boolean | undefined;
21
22
  urlParser: import("@smithy/types").UrlParser;
22
23
  base64Decoder: import("@smithy/types").Decoder;
23
24
  base64Encoder: (_input: string | Uint8Array) => string;
@@ -34,6 +35,7 @@ export declare const getRuntimeConfig: (config: SupportClientConfig) => {
34
35
  logger?: import("@smithy/types").Logger | undefined;
35
36
  }) => import("@smithy/types").EndpointV2;
36
37
  tls?: boolean | undefined;
38
+ serviceConfiguredEndpoint?: undefined;
37
39
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
38
40
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SupportHttpAuthSchemeProvider;
39
41
  credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
@@ -7,6 +7,7 @@ export declare const getRuntimeConfig: (config: SupportClientConfig) => {
7
7
  sha256: import("@smithy/types").HashConstructor;
8
8
  requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
9
9
  apiVersion: string;
10
+ cacheMiddleware?: boolean | undefined;
10
11
  urlParser: import("@smithy/types").UrlParser;
11
12
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
12
13
  streamCollector: import("@smithy/types").StreamCollector;
@@ -33,6 +34,7 @@ export declare const getRuntimeConfig: (config: SupportClientConfig) => {
33
34
  logger?: import("@smithy/types").Logger | undefined;
34
35
  }) => import("@smithy/types").EndpointV2;
35
36
  tls?: boolean | undefined;
37
+ serviceConfiguredEndpoint?: undefined;
36
38
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
37
39
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SupportHttpAuthSchemeProvider;
38
40
  credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
@@ -23,6 +23,7 @@ export declare const getRuntimeConfig: (config: SupportClientConfig) => {
23
23
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
24
24
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
25
25
  apiVersion: string;
26
+ cacheMiddleware?: boolean | undefined;
26
27
  urlParser: import("@smithy/types").UrlParser;
27
28
  base64Decoder: import("@smithy/types").Decoder;
28
29
  base64Encoder: (_input: string | Uint8Array) => string;
@@ -61,6 +62,7 @@ export declare const getRuntimeConfig: (config: SupportClientConfig) => {
61
62
  }
62
63
  ) => import("@smithy/types").EndpointV2;
63
64
  tls?: boolean | undefined;
65
+ serviceConfiguredEndpoint?: undefined;
64
66
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
65
67
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SupportHttpAuthSchemeProvider;
66
68
  credentials?:
@@ -27,6 +27,7 @@ export declare const getRuntimeConfig: (config: SupportClientConfig) => {
27
27
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
28
28
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
29
29
  apiVersion: string;
30
+ cacheMiddleware?: boolean | undefined;
30
31
  urlParser: import("@smithy/types").UrlParser;
31
32
  base64Decoder: import("@smithy/types").Decoder;
32
33
  base64Encoder: (_input: string | Uint8Array) => string;
@@ -65,6 +66,7 @@ export declare const getRuntimeConfig: (config: SupportClientConfig) => {
65
66
  }
66
67
  ) => import("@smithy/types").EndpointV2;
67
68
  tls?: boolean | undefined;
69
+ serviceConfiguredEndpoint?: undefined;
68
70
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
69
71
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SupportHttpAuthSchemeProvider;
70
72
  credentials?:
@@ -9,6 +9,7 @@ export declare const getRuntimeConfig: (config: SupportClientConfig) => {
9
9
  | import("@smithy/protocol-http").HttpHandler<any>
10
10
  | import("@smithy/fetch-http-handler").FetchHttpHandler;
11
11
  apiVersion: string;
12
+ cacheMiddleware?: boolean | undefined;
12
13
  urlParser: import("@smithy/types").UrlParser;
13
14
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
14
15
  streamCollector: import("@smithy/types").StreamCollector;
@@ -55,6 +56,7 @@ export declare const getRuntimeConfig: (config: SupportClientConfig) => {
55
56
  }
56
57
  ) => import("@smithy/types").EndpointV2;
57
58
  tls?: boolean | undefined;
59
+ serviceConfiguredEndpoint?: undefined;
58
60
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
59
61
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SupportHttpAuthSchemeProvider;
60
62
  credentials?:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-support",
3
3
  "description": "AWS SDK for JavaScript Support Client for Node.js, Browser and React Native",
4
- "version": "3.645.0",
4
+ "version": "3.650.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-support",
@@ -20,43 +20,43 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.645.0",
24
- "@aws-sdk/client-sts": "3.645.0",
25
- "@aws-sdk/core": "3.635.0",
26
- "@aws-sdk/credential-provider-node": "3.645.0",
27
- "@aws-sdk/middleware-host-header": "3.620.0",
28
- "@aws-sdk/middleware-logger": "3.609.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.620.0",
30
- "@aws-sdk/middleware-user-agent": "3.645.0",
31
- "@aws-sdk/region-config-resolver": "3.614.0",
32
- "@aws-sdk/types": "3.609.0",
33
- "@aws-sdk/util-endpoints": "3.645.0",
34
- "@aws-sdk/util-user-agent-browser": "3.609.0",
35
- "@aws-sdk/util-user-agent-node": "3.614.0",
36
- "@smithy/config-resolver": "^3.0.5",
37
- "@smithy/core": "^2.4.0",
38
- "@smithy/fetch-http-handler": "^3.2.4",
39
- "@smithy/hash-node": "^3.0.3",
40
- "@smithy/invalid-dependency": "^3.0.3",
41
- "@smithy/middleware-content-length": "^3.0.5",
42
- "@smithy/middleware-endpoint": "^3.1.0",
43
- "@smithy/middleware-retry": "^3.0.15",
44
- "@smithy/middleware-serde": "^3.0.3",
45
- "@smithy/middleware-stack": "^3.0.3",
46
- "@smithy/node-config-provider": "^3.1.4",
47
- "@smithy/node-http-handler": "^3.1.4",
48
- "@smithy/protocol-http": "^4.1.0",
49
- "@smithy/smithy-client": "^3.2.0",
50
- "@smithy/types": "^3.3.0",
51
- "@smithy/url-parser": "^3.0.3",
23
+ "@aws-sdk/client-sso-oidc": "3.650.0",
24
+ "@aws-sdk/client-sts": "3.650.0",
25
+ "@aws-sdk/core": "3.649.0",
26
+ "@aws-sdk/credential-provider-node": "3.650.0",
27
+ "@aws-sdk/middleware-host-header": "3.649.0",
28
+ "@aws-sdk/middleware-logger": "3.649.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.649.0",
30
+ "@aws-sdk/middleware-user-agent": "3.649.0",
31
+ "@aws-sdk/region-config-resolver": "3.649.0",
32
+ "@aws-sdk/types": "3.649.0",
33
+ "@aws-sdk/util-endpoints": "3.649.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.649.0",
35
+ "@aws-sdk/util-user-agent-node": "3.649.0",
36
+ "@smithy/config-resolver": "^3.0.6",
37
+ "@smithy/core": "^2.4.1",
38
+ "@smithy/fetch-http-handler": "^3.2.5",
39
+ "@smithy/hash-node": "^3.0.4",
40
+ "@smithy/invalid-dependency": "^3.0.4",
41
+ "@smithy/middleware-content-length": "^3.0.6",
42
+ "@smithy/middleware-endpoint": "^3.1.1",
43
+ "@smithy/middleware-retry": "^3.0.16",
44
+ "@smithy/middleware-serde": "^3.0.4",
45
+ "@smithy/middleware-stack": "^3.0.4",
46
+ "@smithy/node-config-provider": "^3.1.5",
47
+ "@smithy/node-http-handler": "^3.2.0",
48
+ "@smithy/protocol-http": "^4.1.1",
49
+ "@smithy/smithy-client": "^3.3.0",
50
+ "@smithy/types": "^3.4.0",
51
+ "@smithy/url-parser": "^3.0.4",
52
52
  "@smithy/util-base64": "^3.0.0",
53
53
  "@smithy/util-body-length-browser": "^3.0.0",
54
54
  "@smithy/util-body-length-node": "^3.0.0",
55
- "@smithy/util-defaults-mode-browser": "^3.0.15",
56
- "@smithy/util-defaults-mode-node": "^3.0.15",
57
- "@smithy/util-endpoints": "^2.0.5",
58
- "@smithy/util-middleware": "^3.0.3",
59
- "@smithy/util-retry": "^3.0.3",
55
+ "@smithy/util-defaults-mode-browser": "^3.0.16",
56
+ "@smithy/util-defaults-mode-node": "^3.0.16",
57
+ "@smithy/util-endpoints": "^2.1.0",
58
+ "@smithy/util-middleware": "^3.0.4",
59
+ "@smithy/util-retry": "^3.0.4",
60
60
  "@smithy/util-utf8": "^3.0.0",
61
61
  "tslib": "^2.6.2"
62
62
  },