@aws-sdk/client-trustedadvisor 3.721.0 → 3.726.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -165,7 +165,14 @@ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions
165
165
  }, "resolveRuntimeExtensions");
166
166
 
167
167
  // src/TrustedAdvisorClient.ts
168
- var _TrustedAdvisorClient = class _TrustedAdvisorClient extends import_smithy_client.Client {
168
+ var TrustedAdvisorClient = class extends import_smithy_client.Client {
169
+ static {
170
+ __name(this, "TrustedAdvisorClient");
171
+ }
172
+ /**
173
+ * The resolved configuration of TrustedAdvisorClient class. This is resolved and normalized from the {@link TrustedAdvisorClientConfig | constructor configuration interface}.
174
+ */
175
+ config;
169
176
  constructor(...[configuration]) {
170
177
  const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
171
178
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -175,7 +182,7 @@ var _TrustedAdvisorClient = class _TrustedAdvisorClient extends import_smithy_cl
175
182
  const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
176
183
  const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
177
184
  const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
178
- const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
185
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
179
186
  super(_config_8);
180
187
  this.config = _config_8;
181
188
  this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
@@ -203,8 +210,6 @@ var _TrustedAdvisorClient = class _TrustedAdvisorClient extends import_smithy_cl
203
210
  super.destroy();
204
211
  }
205
212
  };
206
- __name(_TrustedAdvisorClient, "TrustedAdvisorClient");
207
- var TrustedAdvisorClient = _TrustedAdvisorClient;
208
213
 
209
214
  // src/TrustedAdvisor.ts
210
215
 
@@ -224,7 +229,10 @@ var import_core2 = require("@aws-sdk/core");
224
229
 
225
230
  // src/models/TrustedAdvisorServiceException.ts
226
231
 
227
- var _TrustedAdvisorServiceException = class _TrustedAdvisorServiceException extends import_smithy_client.ServiceException {
232
+ var TrustedAdvisorServiceException = class _TrustedAdvisorServiceException extends import_smithy_client.ServiceException {
233
+ static {
234
+ __name(this, "TrustedAdvisorServiceException");
235
+ }
228
236
  /**
229
237
  * @internal
230
238
  */
@@ -233,11 +241,14 @@ var _TrustedAdvisorServiceException = class _TrustedAdvisorServiceException exte
233
241
  Object.setPrototypeOf(this, _TrustedAdvisorServiceException.prototype);
234
242
  }
235
243
  };
236
- __name(_TrustedAdvisorServiceException, "TrustedAdvisorServiceException");
237
- var TrustedAdvisorServiceException = _TrustedAdvisorServiceException;
238
244
 
239
245
  // src/models/models_0.ts
240
- var _AccessDeniedException = class _AccessDeniedException extends TrustedAdvisorServiceException {
246
+ var AccessDeniedException = class _AccessDeniedException extends TrustedAdvisorServiceException {
247
+ static {
248
+ __name(this, "AccessDeniedException");
249
+ }
250
+ name = "AccessDeniedException";
251
+ $fault = "client";
241
252
  /**
242
253
  * @internal
243
254
  */
@@ -247,13 +258,9 @@ var _AccessDeniedException = class _AccessDeniedException extends TrustedAdvisor
247
258
  $fault: "client",
248
259
  ...opts
249
260
  });
250
- this.name = "AccessDeniedException";
251
- this.$fault = "client";
252
261
  Object.setPrototypeOf(this, _AccessDeniedException.prototype);
253
262
  }
254
263
  };
255
- __name(_AccessDeniedException, "AccessDeniedException");
256
- var AccessDeniedException = _AccessDeniedException;
257
264
  var RecommendationLifecycleStage = {
258
265
  DISMISSED: "dismissed",
259
266
  IN_PROGRESS: "in_progress",
@@ -269,7 +276,12 @@ var UpdateRecommendationLifecycleStageReasonCode = {
269
276
  TEMPORARY_ACCOUNT: "temporary_account",
270
277
  VALID_BUSINESS_CASE: "valid_business_case"
271
278
  };
272
- var _ConflictException = class _ConflictException extends TrustedAdvisorServiceException {
279
+ var ConflictException = class _ConflictException extends TrustedAdvisorServiceException {
280
+ static {
281
+ __name(this, "ConflictException");
282
+ }
283
+ name = "ConflictException";
284
+ $fault = "client";
273
285
  /**
274
286
  * @internal
275
287
  */
@@ -279,14 +291,16 @@ var _ConflictException = class _ConflictException extends TrustedAdvisorServiceE
279
291
  $fault: "client",
280
292
  ...opts
281
293
  });
282
- this.name = "ConflictException";
283
- this.$fault = "client";
284
294
  Object.setPrototypeOf(this, _ConflictException.prototype);
285
295
  }
286
296
  };
287
- __name(_ConflictException, "ConflictException");
288
- var ConflictException = _ConflictException;
289
- var _InternalServerException = class _InternalServerException extends TrustedAdvisorServiceException {
297
+ var InternalServerException = class _InternalServerException extends TrustedAdvisorServiceException {
298
+ static {
299
+ __name(this, "InternalServerException");
300
+ }
301
+ name = "InternalServerException";
302
+ $fault = "server";
303
+ $retryable = {};
290
304
  /**
291
305
  * @internal
292
306
  */
@@ -296,15 +310,18 @@ var _InternalServerException = class _InternalServerException extends TrustedAdv
296
310
  $fault: "server",
297
311
  ...opts
298
312
  });
299
- this.name = "InternalServerException";
300
- this.$fault = "server";
301
- this.$retryable = {};
302
313
  Object.setPrototypeOf(this, _InternalServerException.prototype);
303
314
  }
304
315
  };
305
- __name(_InternalServerException, "InternalServerException");
306
- var InternalServerException = _InternalServerException;
307
- var _ThrottlingException = class _ThrottlingException extends TrustedAdvisorServiceException {
316
+ var ThrottlingException = class _ThrottlingException extends TrustedAdvisorServiceException {
317
+ static {
318
+ __name(this, "ThrottlingException");
319
+ }
320
+ name = "ThrottlingException";
321
+ $fault = "client";
322
+ $retryable = {
323
+ throttling: true
324
+ };
308
325
  /**
309
326
  * @internal
310
327
  */
@@ -314,17 +331,15 @@ var _ThrottlingException = class _ThrottlingException extends TrustedAdvisorServ
314
331
  $fault: "client",
315
332
  ...opts
316
333
  });
317
- this.name = "ThrottlingException";
318
- this.$fault = "client";
319
- this.$retryable = {
320
- throttling: true
321
- };
322
334
  Object.setPrototypeOf(this, _ThrottlingException.prototype);
323
335
  }
324
336
  };
325
- __name(_ThrottlingException, "ThrottlingException");
326
- var ThrottlingException = _ThrottlingException;
327
- var _ValidationException = class _ValidationException extends TrustedAdvisorServiceException {
337
+ var ValidationException = class _ValidationException extends TrustedAdvisorServiceException {
338
+ static {
339
+ __name(this, "ValidationException");
340
+ }
341
+ name = "ValidationException";
342
+ $fault = "client";
328
343
  /**
329
344
  * @internal
330
345
  */
@@ -334,13 +349,9 @@ var _ValidationException = class _ValidationException extends TrustedAdvisorServ
334
349
  $fault: "client",
335
350
  ...opts
336
351
  });
337
- this.name = "ValidationException";
338
- this.$fault = "client";
339
352
  Object.setPrototypeOf(this, _ValidationException.prototype);
340
353
  }
341
354
  };
342
- __name(_ValidationException, "ValidationException");
343
- var ValidationException = _ValidationException;
344
355
  var RecommendationPillar = {
345
356
  COST_OPTIMIZING: "cost_optimizing",
346
357
  FAULT_TOLERANCE: "fault_tolerance",
@@ -377,7 +388,12 @@ var RecommendationType = {
377
388
  PRIORITY: "priority",
378
389
  STANDARD: "standard"
379
390
  };
380
- var _ResourceNotFoundException = class _ResourceNotFoundException extends TrustedAdvisorServiceException {
391
+ var ResourceNotFoundException = class _ResourceNotFoundException extends TrustedAdvisorServiceException {
392
+ static {
393
+ __name(this, "ResourceNotFoundException");
394
+ }
395
+ name = "ResourceNotFoundException";
396
+ $fault = "client";
381
397
  /**
382
398
  * @internal
383
399
  */
@@ -387,13 +403,9 @@ var _ResourceNotFoundException = class _ResourceNotFoundException extends Truste
387
403
  $fault: "client",
388
404
  ...opts
389
405
  });
390
- this.name = "ResourceNotFoundException";
391
- this.$fault = "client";
392
406
  Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
393
407
  }
394
408
  };
395
- __name(_ResourceNotFoundException, "ResourceNotFoundException");
396
- var ResourceNotFoundException = _ResourceNotFoundException;
397
409
  var RecommendationLanguage = {
398
410
  BAHASA_INDONESIA: "id",
399
411
  BRAZILIAN_PORTUGUESE: "pt_BR",
@@ -1103,155 +1115,166 @@ var _st = "status";
1103
1115
  var _t = "type";
1104
1116
 
1105
1117
  // src/commands/BatchUpdateRecommendationResourceExclusionCommand.ts
1106
- var _BatchUpdateRecommendationResourceExclusionCommand = class _BatchUpdateRecommendationResourceExclusionCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1118
+ var BatchUpdateRecommendationResourceExclusionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1107
1119
  return [
1108
1120
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1109
1121
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1110
1122
  ];
1111
1123
  }).s("TrustedAdvisor", "BatchUpdateRecommendationResourceExclusion", {}).n("TrustedAdvisorClient", "BatchUpdateRecommendationResourceExclusionCommand").f(void 0, void 0).ser(se_BatchUpdateRecommendationResourceExclusionCommand).de(de_BatchUpdateRecommendationResourceExclusionCommand).build() {
1124
+ static {
1125
+ __name(this, "BatchUpdateRecommendationResourceExclusionCommand");
1126
+ }
1112
1127
  };
1113
- __name(_BatchUpdateRecommendationResourceExclusionCommand, "BatchUpdateRecommendationResourceExclusionCommand");
1114
- var BatchUpdateRecommendationResourceExclusionCommand = _BatchUpdateRecommendationResourceExclusionCommand;
1115
1128
 
1116
1129
  // src/commands/GetOrganizationRecommendationCommand.ts
1117
1130
 
1118
1131
 
1119
1132
 
1120
- var _GetOrganizationRecommendationCommand = class _GetOrganizationRecommendationCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1133
+ var GetOrganizationRecommendationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1121
1134
  return [
1122
1135
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1123
1136
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1124
1137
  ];
1125
1138
  }).s("TrustedAdvisor", "GetOrganizationRecommendation", {}).n("TrustedAdvisorClient", "GetOrganizationRecommendationCommand").f(void 0, GetOrganizationRecommendationResponseFilterSensitiveLog).ser(se_GetOrganizationRecommendationCommand).de(de_GetOrganizationRecommendationCommand).build() {
1139
+ static {
1140
+ __name(this, "GetOrganizationRecommendationCommand");
1141
+ }
1126
1142
  };
1127
- __name(_GetOrganizationRecommendationCommand, "GetOrganizationRecommendationCommand");
1128
- var GetOrganizationRecommendationCommand = _GetOrganizationRecommendationCommand;
1129
1143
 
1130
1144
  // src/commands/GetRecommendationCommand.ts
1131
1145
 
1132
1146
 
1133
1147
 
1134
- var _GetRecommendationCommand = class _GetRecommendationCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1148
+ var GetRecommendationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1135
1149
  return [
1136
1150
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1137
1151
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1138
1152
  ];
1139
1153
  }).s("TrustedAdvisor", "GetRecommendation", {}).n("TrustedAdvisorClient", "GetRecommendationCommand").f(void 0, GetRecommendationResponseFilterSensitiveLog).ser(se_GetRecommendationCommand).de(de_GetRecommendationCommand).build() {
1154
+ static {
1155
+ __name(this, "GetRecommendationCommand");
1156
+ }
1140
1157
  };
1141
- __name(_GetRecommendationCommand, "GetRecommendationCommand");
1142
- var GetRecommendationCommand = _GetRecommendationCommand;
1143
1158
 
1144
1159
  // src/commands/ListChecksCommand.ts
1145
1160
 
1146
1161
 
1147
1162
 
1148
- var _ListChecksCommand = class _ListChecksCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1163
+ var ListChecksCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1149
1164
  return [
1150
1165
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1151
1166
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1152
1167
  ];
1153
1168
  }).s("TrustedAdvisor", "ListChecks", {}).n("TrustedAdvisorClient", "ListChecksCommand").f(void 0, void 0).ser(se_ListChecksCommand).de(de_ListChecksCommand).build() {
1169
+ static {
1170
+ __name(this, "ListChecksCommand");
1171
+ }
1154
1172
  };
1155
- __name(_ListChecksCommand, "ListChecksCommand");
1156
- var ListChecksCommand = _ListChecksCommand;
1157
1173
 
1158
1174
  // src/commands/ListOrganizationRecommendationAccountsCommand.ts
1159
1175
 
1160
1176
 
1161
1177
 
1162
- var _ListOrganizationRecommendationAccountsCommand = class _ListOrganizationRecommendationAccountsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1178
+ var ListOrganizationRecommendationAccountsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1163
1179
  return [
1164
1180
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1165
1181
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1166
1182
  ];
1167
1183
  }).s("TrustedAdvisor", "ListOrganizationRecommendationAccounts", {}).n("TrustedAdvisorClient", "ListOrganizationRecommendationAccountsCommand").f(void 0, ListOrganizationRecommendationAccountsResponseFilterSensitiveLog).ser(se_ListOrganizationRecommendationAccountsCommand).de(de_ListOrganizationRecommendationAccountsCommand).build() {
1184
+ static {
1185
+ __name(this, "ListOrganizationRecommendationAccountsCommand");
1186
+ }
1168
1187
  };
1169
- __name(_ListOrganizationRecommendationAccountsCommand, "ListOrganizationRecommendationAccountsCommand");
1170
- var ListOrganizationRecommendationAccountsCommand = _ListOrganizationRecommendationAccountsCommand;
1171
1188
 
1172
1189
  // src/commands/ListOrganizationRecommendationResourcesCommand.ts
1173
1190
 
1174
1191
 
1175
1192
 
1176
- var _ListOrganizationRecommendationResourcesCommand = class _ListOrganizationRecommendationResourcesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1193
+ var ListOrganizationRecommendationResourcesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1177
1194
  return [
1178
1195
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1179
1196
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1180
1197
  ];
1181
1198
  }).s("TrustedAdvisor", "ListOrganizationRecommendationResources", {}).n("TrustedAdvisorClient", "ListOrganizationRecommendationResourcesCommand").f(void 0, void 0).ser(se_ListOrganizationRecommendationResourcesCommand).de(de_ListOrganizationRecommendationResourcesCommand).build() {
1199
+ static {
1200
+ __name(this, "ListOrganizationRecommendationResourcesCommand");
1201
+ }
1182
1202
  };
1183
- __name(_ListOrganizationRecommendationResourcesCommand, "ListOrganizationRecommendationResourcesCommand");
1184
- var ListOrganizationRecommendationResourcesCommand = _ListOrganizationRecommendationResourcesCommand;
1185
1203
 
1186
1204
  // src/commands/ListOrganizationRecommendationsCommand.ts
1187
1205
 
1188
1206
 
1189
1207
 
1190
- var _ListOrganizationRecommendationsCommand = class _ListOrganizationRecommendationsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1208
+ var ListOrganizationRecommendationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1191
1209
  return [
1192
1210
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1193
1211
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1194
1212
  ];
1195
1213
  }).s("TrustedAdvisor", "ListOrganizationRecommendations", {}).n("TrustedAdvisorClient", "ListOrganizationRecommendationsCommand").f(void 0, void 0).ser(se_ListOrganizationRecommendationsCommand).de(de_ListOrganizationRecommendationsCommand).build() {
1214
+ static {
1215
+ __name(this, "ListOrganizationRecommendationsCommand");
1216
+ }
1196
1217
  };
1197
- __name(_ListOrganizationRecommendationsCommand, "ListOrganizationRecommendationsCommand");
1198
- var ListOrganizationRecommendationsCommand = _ListOrganizationRecommendationsCommand;
1199
1218
 
1200
1219
  // src/commands/ListRecommendationResourcesCommand.ts
1201
1220
 
1202
1221
 
1203
1222
 
1204
- var _ListRecommendationResourcesCommand = class _ListRecommendationResourcesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1223
+ var ListRecommendationResourcesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1205
1224
  return [
1206
1225
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1207
1226
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1208
1227
  ];
1209
1228
  }).s("TrustedAdvisor", "ListRecommendationResources", {}).n("TrustedAdvisorClient", "ListRecommendationResourcesCommand").f(void 0, void 0).ser(se_ListRecommendationResourcesCommand).de(de_ListRecommendationResourcesCommand).build() {
1229
+ static {
1230
+ __name(this, "ListRecommendationResourcesCommand");
1231
+ }
1210
1232
  };
1211
- __name(_ListRecommendationResourcesCommand, "ListRecommendationResourcesCommand");
1212
- var ListRecommendationResourcesCommand = _ListRecommendationResourcesCommand;
1213
1233
 
1214
1234
  // src/commands/ListRecommendationsCommand.ts
1215
1235
 
1216
1236
 
1217
1237
 
1218
- var _ListRecommendationsCommand = class _ListRecommendationsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1238
+ var ListRecommendationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1219
1239
  return [
1220
1240
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1221
1241
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1222
1242
  ];
1223
1243
  }).s("TrustedAdvisor", "ListRecommendations", {}).n("TrustedAdvisorClient", "ListRecommendationsCommand").f(void 0, void 0).ser(se_ListRecommendationsCommand).de(de_ListRecommendationsCommand).build() {
1244
+ static {
1245
+ __name(this, "ListRecommendationsCommand");
1246
+ }
1224
1247
  };
1225
- __name(_ListRecommendationsCommand, "ListRecommendationsCommand");
1226
- var ListRecommendationsCommand = _ListRecommendationsCommand;
1227
1248
 
1228
1249
  // src/commands/UpdateOrganizationRecommendationLifecycleCommand.ts
1229
1250
 
1230
1251
 
1231
1252
 
1232
- var _UpdateOrganizationRecommendationLifecycleCommand = class _UpdateOrganizationRecommendationLifecycleCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1253
+ var UpdateOrganizationRecommendationLifecycleCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1233
1254
  return [
1234
1255
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1235
1256
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1236
1257
  ];
1237
1258
  }).s("TrustedAdvisor", "UpdateOrganizationRecommendationLifecycle", {}).n("TrustedAdvisorClient", "UpdateOrganizationRecommendationLifecycleCommand").f(UpdateOrganizationRecommendationLifecycleRequestFilterSensitiveLog, void 0).ser(se_UpdateOrganizationRecommendationLifecycleCommand).de(de_UpdateOrganizationRecommendationLifecycleCommand).build() {
1259
+ static {
1260
+ __name(this, "UpdateOrganizationRecommendationLifecycleCommand");
1261
+ }
1238
1262
  };
1239
- __name(_UpdateOrganizationRecommendationLifecycleCommand, "UpdateOrganizationRecommendationLifecycleCommand");
1240
- var UpdateOrganizationRecommendationLifecycleCommand = _UpdateOrganizationRecommendationLifecycleCommand;
1241
1263
 
1242
1264
  // src/commands/UpdateRecommendationLifecycleCommand.ts
1243
1265
 
1244
1266
 
1245
1267
 
1246
- var _UpdateRecommendationLifecycleCommand = class _UpdateRecommendationLifecycleCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1268
+ var UpdateRecommendationLifecycleCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1247
1269
  return [
1248
1270
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1249
1271
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1250
1272
  ];
1251
1273
  }).s("TrustedAdvisor", "UpdateRecommendationLifecycle", {}).n("TrustedAdvisorClient", "UpdateRecommendationLifecycleCommand").f(UpdateRecommendationLifecycleRequestFilterSensitiveLog, void 0).ser(se_UpdateRecommendationLifecycleCommand).de(de_UpdateRecommendationLifecycleCommand).build() {
1274
+ static {
1275
+ __name(this, "UpdateRecommendationLifecycleCommand");
1276
+ }
1252
1277
  };
1253
- __name(_UpdateRecommendationLifecycleCommand, "UpdateRecommendationLifecycleCommand");
1254
- var UpdateRecommendationLifecycleCommand = _UpdateRecommendationLifecycleCommand;
1255
1278
 
1256
1279
  // src/TrustedAdvisor.ts
1257
1280
  var commands = {
@@ -1267,10 +1290,11 @@ var commands = {
1267
1290
  UpdateOrganizationRecommendationLifecycleCommand,
1268
1291
  UpdateRecommendationLifecycleCommand
1269
1292
  };
1270
- var _TrustedAdvisor = class _TrustedAdvisor extends TrustedAdvisorClient {
1293
+ var TrustedAdvisor = class extends TrustedAdvisorClient {
1294
+ static {
1295
+ __name(this, "TrustedAdvisor");
1296
+ }
1271
1297
  };
1272
- __name(_TrustedAdvisor, "TrustedAdvisor");
1273
- var TrustedAdvisor = _TrustedAdvisor;
1274
1298
  (0, import_smithy_client.createAggregatedClient)(commands, TrustedAdvisor);
1275
1299
 
1276
1300
  // src/pagination/ListChecksPaginator.ts
@@ -14,6 +14,7 @@ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
14
14
  import { resolveRuntimeExtensions } from "./runtimeExtensions";
15
15
  export { __Client };
16
16
  export class TrustedAdvisorClient extends __Client {
17
+ config;
17
18
  constructor(...[configuration]) {
18
19
  const _config_0 = __getRuntimeConfig(configuration || {});
19
20
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -1,14 +1,14 @@
1
1
  import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
2
  import { TrustedAdvisorServiceException as __BaseException } from "./TrustedAdvisorServiceException";
3
3
  export class AccessDeniedException extends __BaseException {
4
+ name = "AccessDeniedException";
5
+ $fault = "client";
4
6
  constructor(opts) {
5
7
  super({
6
8
  name: "AccessDeniedException",
7
9
  $fault: "client",
8
10
  ...opts,
9
11
  });
10
- this.name = "AccessDeniedException";
11
- this.$fault = "client";
12
12
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
13
13
  }
14
14
  }
@@ -28,54 +28,54 @@ export const UpdateRecommendationLifecycleStageReasonCode = {
28
28
  VALID_BUSINESS_CASE: "valid_business_case",
29
29
  };
30
30
  export class ConflictException extends __BaseException {
31
+ name = "ConflictException";
32
+ $fault = "client";
31
33
  constructor(opts) {
32
34
  super({
33
35
  name: "ConflictException",
34
36
  $fault: "client",
35
37
  ...opts,
36
38
  });
37
- this.name = "ConflictException";
38
- this.$fault = "client";
39
39
  Object.setPrototypeOf(this, ConflictException.prototype);
40
40
  }
41
41
  }
42
42
  export class InternalServerException extends __BaseException {
43
+ name = "InternalServerException";
44
+ $fault = "server";
45
+ $retryable = {};
43
46
  constructor(opts) {
44
47
  super({
45
48
  name: "InternalServerException",
46
49
  $fault: "server",
47
50
  ...opts,
48
51
  });
49
- this.name = "InternalServerException";
50
- this.$fault = "server";
51
- this.$retryable = {};
52
52
  Object.setPrototypeOf(this, InternalServerException.prototype);
53
53
  }
54
54
  }
55
55
  export class ThrottlingException extends __BaseException {
56
+ name = "ThrottlingException";
57
+ $fault = "client";
58
+ $retryable = {
59
+ throttling: true,
60
+ };
56
61
  constructor(opts) {
57
62
  super({
58
63
  name: "ThrottlingException",
59
64
  $fault: "client",
60
65
  ...opts,
61
66
  });
62
- this.name = "ThrottlingException";
63
- this.$fault = "client";
64
- this.$retryable = {
65
- throttling: true,
66
- };
67
67
  Object.setPrototypeOf(this, ThrottlingException.prototype);
68
68
  }
69
69
  }
70
70
  export class ValidationException extends __BaseException {
71
+ name = "ValidationException";
72
+ $fault = "client";
71
73
  constructor(opts) {
72
74
  super({
73
75
  name: "ValidationException",
74
76
  $fault: "client",
75
77
  ...opts,
76
78
  });
77
- this.name = "ValidationException";
78
- this.$fault = "client";
79
79
  Object.setPrototypeOf(this, ValidationException.prototype);
80
80
  }
81
81
  }
@@ -116,14 +116,14 @@ export const RecommendationType = {
116
116
  STANDARD: "standard",
117
117
  };
118
118
  export class ResourceNotFoundException extends __BaseException {
119
+ name = "ResourceNotFoundException";
120
+ $fault = "client";
119
121
  constructor(opts) {
120
122
  super({
121
123
  name: "ResourceNotFoundException",
122
124
  $fault: "client",
123
125
  ...opts,
124
126
  });
125
- this.name = "ResourceNotFoundException";
126
- this.$fault = "client";
127
127
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
128
128
  }
129
129
  }
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: TrustedAdvisorClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
10
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
11
11
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<any>;
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: TrustedAdvisorClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- credentialDefaultProvider: (init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>;
10
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>);
11
11
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<string>;
@@ -22,7 +22,7 @@ export declare const getRuntimeConfig: (config: TrustedAdvisorClientConfig) => {
22
22
  region: string | import("@smithy/types").Provider<any>;
23
23
  profile?: string | undefined;
24
24
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
25
- credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
25
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
26
26
  maxAttempts: number | import("@smithy/types").Provider<number>;
27
27
  retryMode: string | import("@smithy/types").Provider<string>;
28
28
  logger: import("@smithy/types").Logger;
@@ -31,7 +31,7 @@ export declare const getRuntimeConfig: (config: TrustedAdvisorClientConfig) => {
31
31
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
32
32
  userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
33
33
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
34
- endpoint?: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2> | undefined;
34
+ endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
35
35
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
36
36
  logger?: import("@smithy/types").Logger | undefined;
37
37
  }) => import("@smithy/types").EndpointV2;
@@ -6,9 +6,11 @@ export declare const getRuntimeConfig: (config: TrustedAdvisorClientConfig) => {
6
6
  import("@smithy/smithy-client").ResolvedDefaultsMode
7
7
  >;
8
8
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
9
- credentialDefaultProvider: (
10
- input: any
11
- ) => import("@smithy/types").AwsCredentialIdentityProvider;
9
+ credentialDefaultProvider:
10
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
11
+ | ((
12
+ _: unknown
13
+ ) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
12
14
  defaultUserAgentProvider: (
13
15
  config?:
14
16
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
@@ -6,13 +6,15 @@ export declare const getRuntimeConfig: (config: TrustedAdvisorClientConfig) => {
6
6
  import("@smithy/smithy-client").ResolvedDefaultsMode
7
7
  >;
8
8
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
9
- credentialDefaultProvider: (
10
- init?:
11
- | import("@aws-sdk/credential-provider-node").DefaultProviderInit
12
- | undefined
13
- ) => import("@smithy/types").MemoizedProvider<
14
- import("@smithy/types").AwsCredentialIdentity
15
- >;
9
+ credentialDefaultProvider:
10
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
11
+ | ((
12
+ init?:
13
+ | import("@aws-sdk/credential-provider-node").DefaultProviderInit
14
+ | undefined
15
+ ) => import("@smithy/types").MemoizedProvider<
16
+ import("@smithy/types").AwsCredentialIdentity
17
+ >);
16
18
  defaultUserAgentProvider: (
17
19
  config?:
18
20
  | import("@aws-sdk/util-user-agent-node").PreviouslyResolved
@@ -28,9 +28,11 @@ export declare const getRuntimeConfig: (config: TrustedAdvisorClientConfig) => {
28
28
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
29
29
  | undefined
30
30
  ) => Promise<import("@smithy/types").UserAgent>;
31
- credentialDefaultProvider: (
32
- input: any
33
- ) => import("@smithy/types").AwsCredentialIdentityProvider;
31
+ credentialDefaultProvider:
32
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
33
+ | ((
34
+ _: unknown
35
+ ) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
34
36
  maxAttempts: number | import("@smithy/types").Provider<number>;
35
37
  retryMode: string | import("@smithy/types").Provider<string>;
36
38
  logger: import("@smithy/types").Logger;
@@ -50,11 +52,21 @@ export declare const getRuntimeConfig: (config: TrustedAdvisorClientConfig) => {
50
52
  | import("@smithy/types").RetryStrategyV2
51
53
  | undefined;
52
54
  endpoint?:
53
- | string
54
- | import("@smithy/types").Endpoint
55
- | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
56
- | import("@smithy/types").EndpointV2
57
- | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
55
+ | ((
56
+ | string
57
+ | import("@smithy/types").Endpoint
58
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
59
+ | import("@smithy/types").EndpointV2
60
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
61
+ ) &
62
+ (
63
+ | string
64
+ | import("@smithy/types").Provider<string>
65
+ | import("@smithy/types").Endpoint
66
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
67
+ | import("@smithy/types").EndpointV2
68
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
69
+ ))
58
70
  | undefined;
59
71
  endpointProvider: (
60
72
  endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-trustedadvisor",
3
3
  "description": "AWS SDK for JavaScript Trustedadvisor Client for Node.js, Browser and React Native",
4
- "version": "3.721.0",
4
+ "version": "3.726.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-trustedadvisor",
@@ -20,56 +20,56 @@
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.721.0",
24
- "@aws-sdk/client-sts": "3.721.0",
25
- "@aws-sdk/core": "3.716.0",
26
- "@aws-sdk/credential-provider-node": "3.721.0",
27
- "@aws-sdk/middleware-host-header": "3.714.0",
28
- "@aws-sdk/middleware-logger": "3.714.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.714.0",
30
- "@aws-sdk/middleware-user-agent": "3.721.0",
31
- "@aws-sdk/region-config-resolver": "3.714.0",
32
- "@aws-sdk/types": "3.714.0",
33
- "@aws-sdk/util-endpoints": "3.714.0",
34
- "@aws-sdk/util-user-agent-browser": "3.714.0",
35
- "@aws-sdk/util-user-agent-node": "3.721.0",
36
- "@smithy/config-resolver": "^3.0.13",
37
- "@smithy/core": "^2.5.5",
38
- "@smithy/fetch-http-handler": "^4.1.2",
39
- "@smithy/hash-node": "^3.0.11",
40
- "@smithy/invalid-dependency": "^3.0.11",
41
- "@smithy/middleware-content-length": "^3.0.13",
42
- "@smithy/middleware-endpoint": "^3.2.6",
43
- "@smithy/middleware-retry": "^3.0.31",
44
- "@smithy/middleware-serde": "^3.0.11",
45
- "@smithy/middleware-stack": "^3.0.11",
46
- "@smithy/node-config-provider": "^3.1.12",
47
- "@smithy/node-http-handler": "^3.3.2",
48
- "@smithy/protocol-http": "^4.1.8",
49
- "@smithy/smithy-client": "^3.5.1",
50
- "@smithy/types": "^3.7.2",
51
- "@smithy/url-parser": "^3.0.11",
52
- "@smithy/util-base64": "^3.0.0",
53
- "@smithy/util-body-length-browser": "^3.0.0",
54
- "@smithy/util-body-length-node": "^3.0.0",
55
- "@smithy/util-defaults-mode-browser": "^3.0.31",
56
- "@smithy/util-defaults-mode-node": "^3.0.31",
57
- "@smithy/util-endpoints": "^2.1.7",
58
- "@smithy/util-middleware": "^3.0.11",
59
- "@smithy/util-retry": "^3.0.11",
60
- "@smithy/util-utf8": "^3.0.0",
23
+ "@aws-sdk/client-sso-oidc": "3.726.0",
24
+ "@aws-sdk/client-sts": "3.726.0",
25
+ "@aws-sdk/core": "3.723.0",
26
+ "@aws-sdk/credential-provider-node": "3.726.0",
27
+ "@aws-sdk/middleware-host-header": "3.723.0",
28
+ "@aws-sdk/middleware-logger": "3.723.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.723.0",
30
+ "@aws-sdk/middleware-user-agent": "3.726.0",
31
+ "@aws-sdk/region-config-resolver": "3.723.0",
32
+ "@aws-sdk/types": "3.723.0",
33
+ "@aws-sdk/util-endpoints": "3.726.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.723.0",
35
+ "@aws-sdk/util-user-agent-node": "3.726.0",
36
+ "@smithy/config-resolver": "^4.0.0",
37
+ "@smithy/core": "^3.0.0",
38
+ "@smithy/fetch-http-handler": "^5.0.0",
39
+ "@smithy/hash-node": "^4.0.0",
40
+ "@smithy/invalid-dependency": "^4.0.0",
41
+ "@smithy/middleware-content-length": "^4.0.0",
42
+ "@smithy/middleware-endpoint": "^4.0.0",
43
+ "@smithy/middleware-retry": "^4.0.0",
44
+ "@smithy/middleware-serde": "^4.0.0",
45
+ "@smithy/middleware-stack": "^4.0.0",
46
+ "@smithy/node-config-provider": "^4.0.0",
47
+ "@smithy/node-http-handler": "^4.0.0",
48
+ "@smithy/protocol-http": "^5.0.0",
49
+ "@smithy/smithy-client": "^4.0.0",
50
+ "@smithy/types": "^4.0.0",
51
+ "@smithy/url-parser": "^4.0.0",
52
+ "@smithy/util-base64": "^4.0.0",
53
+ "@smithy/util-body-length-browser": "^4.0.0",
54
+ "@smithy/util-body-length-node": "^4.0.0",
55
+ "@smithy/util-defaults-mode-browser": "^4.0.0",
56
+ "@smithy/util-defaults-mode-node": "^4.0.0",
57
+ "@smithy/util-endpoints": "^3.0.0",
58
+ "@smithy/util-middleware": "^4.0.0",
59
+ "@smithy/util-retry": "^4.0.0",
60
+ "@smithy/util-utf8": "^4.0.0",
61
61
  "tslib": "^2.6.2"
62
62
  },
63
63
  "devDependencies": {
64
- "@tsconfig/node16": "16.1.3",
65
- "@types/node": "^16.18.96",
64
+ "@tsconfig/node18": "18.2.4",
65
+ "@types/node": "^18.19.69",
66
66
  "concurrently": "7.0.0",
67
67
  "downlevel-dts": "0.10.1",
68
68
  "rimraf": "3.0.2",
69
- "typescript": "~4.9.5"
69
+ "typescript": "~5.2.2"
70
70
  },
71
71
  "engines": {
72
- "node": ">=16.0.0"
72
+ "node": ">=18.0.0"
73
73
  },
74
74
  "typesVersions": {
75
75
  "<4.0": {