@aws-sdk/client-migration-hub 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 (27) hide show
  1. package/dist-cjs/endpoint/endpointResolver.js +6 -2
  2. package/dist-cjs/index.js +17 -51
  3. package/dist-es/commands/AssociateCreatedArtifactCommand.js +1 -3
  4. package/dist-es/commands/AssociateDiscoveredResourceCommand.js +1 -3
  5. package/dist-es/commands/CreateProgressUpdateStreamCommand.js +1 -3
  6. package/dist-es/commands/DeleteProgressUpdateStreamCommand.js +1 -3
  7. package/dist-es/commands/DescribeApplicationStateCommand.js +1 -3
  8. package/dist-es/commands/DescribeMigrationTaskCommand.js +1 -3
  9. package/dist-es/commands/DisassociateCreatedArtifactCommand.js +1 -3
  10. package/dist-es/commands/DisassociateDiscoveredResourceCommand.js +1 -3
  11. package/dist-es/commands/ImportMigrationTaskCommand.js +1 -3
  12. package/dist-es/commands/ListApplicationStatesCommand.js +1 -3
  13. package/dist-es/commands/ListCreatedArtifactsCommand.js +1 -3
  14. package/dist-es/commands/ListDiscoveredResourcesCommand.js +1 -3
  15. package/dist-es/commands/ListMigrationTasksCommand.js +1 -3
  16. package/dist-es/commands/ListProgressUpdateStreamsCommand.js +1 -3
  17. package/dist-es/commands/NotifyApplicationStateCommand.js +1 -3
  18. package/dist-es/commands/NotifyMigrationTaskStateCommand.js +1 -3
  19. package/dist-es/commands/PutResourceAttributesCommand.js +1 -3
  20. package/dist-es/endpoint/endpointResolver.js +7 -3
  21. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  22. package/dist-types/runtimeConfig.d.ts +2 -0
  23. package/dist-types/runtimeConfig.native.d.ts +2 -0
  24. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  25. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  26. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  27. 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
@@ -1006,9 +1006,7 @@ function sharedHeaders(operation) {
1006
1006
  __name(sharedHeaders, "sharedHeaders");
1007
1007
 
1008
1008
  // src/commands/AssociateCreatedArtifactCommand.ts
1009
- var _AssociateCreatedArtifactCommand = class _AssociateCreatedArtifactCommand extends import_smithy_client.Command.classBuilder().ep({
1010
- ...commonParams
1011
- }).m(function(Command, cs, config, o) {
1009
+ var _AssociateCreatedArtifactCommand = class _AssociateCreatedArtifactCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1012
1010
  return [
1013
1011
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1014
1012
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1022,9 +1020,7 @@ var AssociateCreatedArtifactCommand = _AssociateCreatedArtifactCommand;
1022
1020
 
1023
1021
 
1024
1022
 
1025
- var _AssociateDiscoveredResourceCommand = class _AssociateDiscoveredResourceCommand extends import_smithy_client.Command.classBuilder().ep({
1026
- ...commonParams
1027
- }).m(function(Command, cs, config, o) {
1023
+ var _AssociateDiscoveredResourceCommand = class _AssociateDiscoveredResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1028
1024
  return [
1029
1025
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1030
1026
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1038,9 +1034,7 @@ var AssociateDiscoveredResourceCommand = _AssociateDiscoveredResourceCommand;
1038
1034
 
1039
1035
 
1040
1036
 
1041
- var _CreateProgressUpdateStreamCommand = class _CreateProgressUpdateStreamCommand extends import_smithy_client.Command.classBuilder().ep({
1042
- ...commonParams
1043
- }).m(function(Command, cs, config, o) {
1037
+ var _CreateProgressUpdateStreamCommand = class _CreateProgressUpdateStreamCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1044
1038
  return [
1045
1039
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1046
1040
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1054,9 +1048,7 @@ var CreateProgressUpdateStreamCommand = _CreateProgressUpdateStreamCommand;
1054
1048
 
1055
1049
 
1056
1050
 
1057
- var _DeleteProgressUpdateStreamCommand = class _DeleteProgressUpdateStreamCommand extends import_smithy_client.Command.classBuilder().ep({
1058
- ...commonParams
1059
- }).m(function(Command, cs, config, o) {
1051
+ var _DeleteProgressUpdateStreamCommand = class _DeleteProgressUpdateStreamCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1060
1052
  return [
1061
1053
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1062
1054
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1070,9 +1062,7 @@ var DeleteProgressUpdateStreamCommand = _DeleteProgressUpdateStreamCommand;
1070
1062
 
1071
1063
 
1072
1064
 
1073
- var _DescribeApplicationStateCommand = class _DescribeApplicationStateCommand extends import_smithy_client.Command.classBuilder().ep({
1074
- ...commonParams
1075
- }).m(function(Command, cs, config, o) {
1065
+ var _DescribeApplicationStateCommand = class _DescribeApplicationStateCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1076
1066
  return [
1077
1067
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1078
1068
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1086,9 +1076,7 @@ var DescribeApplicationStateCommand = _DescribeApplicationStateCommand;
1086
1076
 
1087
1077
 
1088
1078
 
1089
- var _DescribeMigrationTaskCommand = class _DescribeMigrationTaskCommand extends import_smithy_client.Command.classBuilder().ep({
1090
- ...commonParams
1091
- }).m(function(Command, cs, config, o) {
1079
+ var _DescribeMigrationTaskCommand = class _DescribeMigrationTaskCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1092
1080
  return [
1093
1081
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1094
1082
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1102,9 +1090,7 @@ var DescribeMigrationTaskCommand = _DescribeMigrationTaskCommand;
1102
1090
 
1103
1091
 
1104
1092
 
1105
- var _DisassociateCreatedArtifactCommand = class _DisassociateCreatedArtifactCommand extends import_smithy_client.Command.classBuilder().ep({
1106
- ...commonParams
1107
- }).m(function(Command, cs, config, o) {
1093
+ var _DisassociateCreatedArtifactCommand = class _DisassociateCreatedArtifactCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1108
1094
  return [
1109
1095
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1110
1096
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1118,9 +1104,7 @@ var DisassociateCreatedArtifactCommand = _DisassociateCreatedArtifactCommand;
1118
1104
 
1119
1105
 
1120
1106
 
1121
- var _DisassociateDiscoveredResourceCommand = class _DisassociateDiscoveredResourceCommand extends import_smithy_client.Command.classBuilder().ep({
1122
- ...commonParams
1123
- }).m(function(Command, cs, config, o) {
1107
+ var _DisassociateDiscoveredResourceCommand = class _DisassociateDiscoveredResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1124
1108
  return [
1125
1109
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1126
1110
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1134,9 +1118,7 @@ var DisassociateDiscoveredResourceCommand = _DisassociateDiscoveredResourceComma
1134
1118
 
1135
1119
 
1136
1120
 
1137
- var _ImportMigrationTaskCommand = class _ImportMigrationTaskCommand extends import_smithy_client.Command.classBuilder().ep({
1138
- ...commonParams
1139
- }).m(function(Command, cs, config, o) {
1121
+ var _ImportMigrationTaskCommand = class _ImportMigrationTaskCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1140
1122
  return [
1141
1123
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1142
1124
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1150,9 +1132,7 @@ var ImportMigrationTaskCommand = _ImportMigrationTaskCommand;
1150
1132
 
1151
1133
 
1152
1134
 
1153
- var _ListApplicationStatesCommand = class _ListApplicationStatesCommand extends import_smithy_client.Command.classBuilder().ep({
1154
- ...commonParams
1155
- }).m(function(Command, cs, config, o) {
1135
+ var _ListApplicationStatesCommand = class _ListApplicationStatesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1156
1136
  return [
1157
1137
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1158
1138
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1166,9 +1146,7 @@ var ListApplicationStatesCommand = _ListApplicationStatesCommand;
1166
1146
 
1167
1147
 
1168
1148
 
1169
- var _ListCreatedArtifactsCommand = class _ListCreatedArtifactsCommand extends import_smithy_client.Command.classBuilder().ep({
1170
- ...commonParams
1171
- }).m(function(Command, cs, config, o) {
1149
+ var _ListCreatedArtifactsCommand = class _ListCreatedArtifactsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1172
1150
  return [
1173
1151
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1174
1152
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1182,9 +1160,7 @@ var ListCreatedArtifactsCommand = _ListCreatedArtifactsCommand;
1182
1160
 
1183
1161
 
1184
1162
 
1185
- var _ListDiscoveredResourcesCommand = class _ListDiscoveredResourcesCommand extends import_smithy_client.Command.classBuilder().ep({
1186
- ...commonParams
1187
- }).m(function(Command, cs, config, o) {
1163
+ var _ListDiscoveredResourcesCommand = class _ListDiscoveredResourcesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1188
1164
  return [
1189
1165
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1190
1166
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1198,9 +1174,7 @@ var ListDiscoveredResourcesCommand = _ListDiscoveredResourcesCommand;
1198
1174
 
1199
1175
 
1200
1176
 
1201
- var _ListMigrationTasksCommand = class _ListMigrationTasksCommand extends import_smithy_client.Command.classBuilder().ep({
1202
- ...commonParams
1203
- }).m(function(Command, cs, config, o) {
1177
+ var _ListMigrationTasksCommand = class _ListMigrationTasksCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1204
1178
  return [
1205
1179
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1206
1180
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1214,9 +1188,7 @@ var ListMigrationTasksCommand = _ListMigrationTasksCommand;
1214
1188
 
1215
1189
 
1216
1190
 
1217
- var _ListProgressUpdateStreamsCommand = class _ListProgressUpdateStreamsCommand extends import_smithy_client.Command.classBuilder().ep({
1218
- ...commonParams
1219
- }).m(function(Command, cs, config, o) {
1191
+ var _ListProgressUpdateStreamsCommand = class _ListProgressUpdateStreamsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1220
1192
  return [
1221
1193
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1222
1194
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1230,9 +1202,7 @@ var ListProgressUpdateStreamsCommand = _ListProgressUpdateStreamsCommand;
1230
1202
 
1231
1203
 
1232
1204
 
1233
- var _NotifyApplicationStateCommand = class _NotifyApplicationStateCommand extends import_smithy_client.Command.classBuilder().ep({
1234
- ...commonParams
1235
- }).m(function(Command, cs, config, o) {
1205
+ var _NotifyApplicationStateCommand = class _NotifyApplicationStateCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1236
1206
  return [
1237
1207
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1238
1208
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1246,9 +1216,7 @@ var NotifyApplicationStateCommand = _NotifyApplicationStateCommand;
1246
1216
 
1247
1217
 
1248
1218
 
1249
- var _NotifyMigrationTaskStateCommand = class _NotifyMigrationTaskStateCommand extends import_smithy_client.Command.classBuilder().ep({
1250
- ...commonParams
1251
- }).m(function(Command, cs, config, o) {
1219
+ var _NotifyMigrationTaskStateCommand = class _NotifyMigrationTaskStateCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1252
1220
  return [
1253
1221
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1254
1222
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -1262,9 +1230,7 @@ var NotifyMigrationTaskStateCommand = _NotifyMigrationTaskStateCommand;
1262
1230
 
1263
1231
 
1264
1232
 
1265
- var _PutResourceAttributesCommand = class _PutResourceAttributesCommand extends import_smithy_client.Command.classBuilder().ep({
1266
- ...commonParams
1267
- }).m(function(Command, cs, config, o) {
1233
+ var _PutResourceAttributesCommand = class _PutResourceAttributesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1268
1234
  return [
1269
1235
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1270
1236
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
@@ -6,9 +6,7 @@ import { de_AssociateCreatedArtifactCommand, se_AssociateCreatedArtifactCommand
6
6
  export { $Command };
7
7
  export class AssociateCreatedArtifactCommand 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_AssociateDiscoveredResourceCommand, se_AssociateDiscoveredResourceCo
6
6
  export { $Command };
7
7
  export class AssociateDiscoveredResourceCommand 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_CreateProgressUpdateStreamCommand, se_CreateProgressUpdateStreamComm
6
6
  export { $Command };
7
7
  export class CreateProgressUpdateStreamCommand 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_DeleteProgressUpdateStreamCommand, se_DeleteProgressUpdateStreamComm
6
6
  export { $Command };
7
7
  export class DeleteProgressUpdateStreamCommand 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_DescribeApplicationStateCommand, se_DescribeApplicationStateCommand
6
6
  export { $Command };
7
7
  export class DescribeApplicationStateCommand 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_DescribeMigrationTaskCommand, se_DescribeMigrationTaskCommand } from
6
6
  export { $Command };
7
7
  export class DescribeMigrationTaskCommand 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_DisassociateCreatedArtifactCommand, se_DisassociateCreatedArtifactCo
6
6
  export { $Command };
7
7
  export class DisassociateCreatedArtifactCommand 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_DisassociateDiscoveredResourceCommand, se_DisassociateDiscoveredReso
6
6
  export { $Command };
7
7
  export class DisassociateDiscoveredResourceCommand 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_ImportMigrationTaskCommand, se_ImportMigrationTaskCommand } from "..
6
6
  export { $Command };
7
7
  export class ImportMigrationTaskCommand 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_ListApplicationStatesCommand, se_ListApplicationStatesCommand } from
6
6
  export { $Command };
7
7
  export class ListApplicationStatesCommand 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_ListCreatedArtifactsCommand, se_ListCreatedArtifactsCommand } from "
6
6
  export { $Command };
7
7
  export class ListCreatedArtifactsCommand 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_ListDiscoveredResourcesCommand, se_ListDiscoveredResourcesCommand }
6
6
  export { $Command };
7
7
  export class ListDiscoveredResourcesCommand 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_ListMigrationTasksCommand, se_ListMigrationTasksCommand } from "../p
6
6
  export { $Command };
7
7
  export class ListMigrationTasksCommand 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_ListProgressUpdateStreamsCommand, se_ListProgressUpdateStreamsComman
6
6
  export { $Command };
7
7
  export class ListProgressUpdateStreamsCommand 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_NotifyApplicationStateCommand, se_NotifyApplicationStateCommand } fr
6
6
  export { $Command };
7
7
  export class NotifyApplicationStateCommand 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_NotifyMigrationTaskStateCommand, se_NotifyMigrationTaskStateCommand
6
6
  export { $Command };
7
7
  export class NotifyMigrationTaskStateCommand 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_PutResourceAttributesCommand, se_PutResourceAttributesCommand } from
6
6
  export { $Command };
7
7
  export class PutResourceAttributesCommand 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: MigrationHubClientConfig) => {
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: MigrationHubClientConfig) => {
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").MigrationHubHttpAuthSchemeProvider;
39
41
  credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
@@ -18,6 +18,7 @@ export declare const getRuntimeConfig: (config: MigrationHubClientConfig) => {
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: MigrationHubClientConfig) => {
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").MigrationHubHttpAuthSchemeProvider;
39
41
  credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
@@ -7,6 +7,7 @@ export declare const getRuntimeConfig: (config: MigrationHubClientConfig) => {
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: MigrationHubClientConfig) => {
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").MigrationHubHttpAuthSchemeProvider;
38
40
  credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
@@ -23,6 +23,7 @@ export declare const getRuntimeConfig: (config: MigrationHubClientConfig) => {
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: MigrationHubClientConfig) => {
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").MigrationHubHttpAuthSchemeProvider;
66
68
  credentials?:
@@ -27,6 +27,7 @@ export declare const getRuntimeConfig: (config: MigrationHubClientConfig) => {
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: MigrationHubClientConfig) => {
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").MigrationHubHttpAuthSchemeProvider;
70
72
  credentials?:
@@ -9,6 +9,7 @@ export declare const getRuntimeConfig: (config: MigrationHubClientConfig) => {
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: MigrationHubClientConfig) => {
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").MigrationHubHttpAuthSchemeProvider;
60
62
  credentials?:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-migration-hub",
3
3
  "description": "AWS SDK for JavaScript Migration Hub 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-migration-hub",
@@ -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
  },