@aws-sdk/client-cost-optimization-hub 3.716.0 → 3.723.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
@@ -150,7 +150,14 @@ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions
150
150
  }, "resolveRuntimeExtensions");
151
151
 
152
152
  // src/CostOptimizationHubClient.ts
153
- var _CostOptimizationHubClient = class _CostOptimizationHubClient extends import_smithy_client.Client {
153
+ var CostOptimizationHubClient = class extends import_smithy_client.Client {
154
+ static {
155
+ __name(this, "CostOptimizationHubClient");
156
+ }
157
+ /**
158
+ * The resolved configuration of CostOptimizationHubClient class. This is resolved and normalized from the {@link CostOptimizationHubClientConfig | constructor configuration interface}.
159
+ */
160
+ config;
154
161
  constructor(...[configuration]) {
155
162
  const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
156
163
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -160,7 +167,7 @@ var _CostOptimizationHubClient = class _CostOptimizationHubClient extends import
160
167
  const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
161
168
  const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
162
169
  const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
163
- const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
170
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
164
171
  super(_config_8);
165
172
  this.config = _config_8;
166
173
  this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
@@ -188,8 +195,6 @@ var _CostOptimizationHubClient = class _CostOptimizationHubClient extends import
188
195
  super.destroy();
189
196
  }
190
197
  };
191
- __name(_CostOptimizationHubClient, "CostOptimizationHubClient");
192
- var CostOptimizationHubClient = _CostOptimizationHubClient;
193
198
 
194
199
  // src/CostOptimizationHub.ts
195
200
 
@@ -206,7 +211,10 @@ var import_core2 = require("@aws-sdk/core");
206
211
 
207
212
  // src/models/CostOptimizationHubServiceException.ts
208
213
 
209
- var _CostOptimizationHubServiceException = class _CostOptimizationHubServiceException extends import_smithy_client.ServiceException {
214
+ var CostOptimizationHubServiceException = class _CostOptimizationHubServiceException extends import_smithy_client.ServiceException {
215
+ static {
216
+ __name(this, "CostOptimizationHubServiceException");
217
+ }
210
218
  /**
211
219
  * @internal
212
220
  */
@@ -215,11 +223,14 @@ var _CostOptimizationHubServiceException = class _CostOptimizationHubServiceExce
215
223
  Object.setPrototypeOf(this, _CostOptimizationHubServiceException.prototype);
216
224
  }
217
225
  };
218
- __name(_CostOptimizationHubServiceException, "CostOptimizationHubServiceException");
219
- var CostOptimizationHubServiceException = _CostOptimizationHubServiceException;
220
226
 
221
227
  // src/models/models_0.ts
222
- var _AccessDeniedException = class _AccessDeniedException extends CostOptimizationHubServiceException {
228
+ var AccessDeniedException = class _AccessDeniedException extends CostOptimizationHubServiceException {
229
+ static {
230
+ __name(this, "AccessDeniedException");
231
+ }
232
+ name = "AccessDeniedException";
233
+ $fault = "client";
223
234
  /**
224
235
  * @internal
225
236
  */
@@ -229,13 +240,9 @@ var _AccessDeniedException = class _AccessDeniedException extends CostOptimizati
229
240
  $fault: "client",
230
241
  ...opts
231
242
  });
232
- this.name = "AccessDeniedException";
233
- this.$fault = "client";
234
243
  Object.setPrototypeOf(this, _AccessDeniedException.prototype);
235
244
  }
236
245
  };
237
- __name(_AccessDeniedException, "AccessDeniedException");
238
- var AccessDeniedException = _AccessDeniedException;
239
246
  var EnrollmentStatus = {
240
247
  ACTIVE: "Active",
241
248
  INACTIVE: "Inactive"
@@ -257,7 +264,12 @@ var SavingsEstimationMode = {
257
264
  AFTER_DISCOUNTS: "AfterDiscounts",
258
265
  BEFORE_DISCOUNTS: "BeforeDiscounts"
259
266
  };
260
- var _InternalServerException = class _InternalServerException extends CostOptimizationHubServiceException {
267
+ var InternalServerException = class _InternalServerException extends CostOptimizationHubServiceException {
268
+ static {
269
+ __name(this, "InternalServerException");
270
+ }
271
+ name = "InternalServerException";
272
+ $fault = "server";
261
273
  /**
262
274
  * @internal
263
275
  */
@@ -267,14 +279,15 @@ var _InternalServerException = class _InternalServerException extends CostOptimi
267
279
  $fault: "server",
268
280
  ...opts
269
281
  });
270
- this.name = "InternalServerException";
271
- this.$fault = "server";
272
282
  Object.setPrototypeOf(this, _InternalServerException.prototype);
273
283
  }
274
284
  };
275
- __name(_InternalServerException, "InternalServerException");
276
- var InternalServerException = _InternalServerException;
277
- var _ThrottlingException = class _ThrottlingException extends CostOptimizationHubServiceException {
285
+ var ThrottlingException = class _ThrottlingException extends CostOptimizationHubServiceException {
286
+ static {
287
+ __name(this, "ThrottlingException");
288
+ }
289
+ name = "ThrottlingException";
290
+ $fault = "client";
278
291
  /**
279
292
  * @internal
280
293
  */
@@ -284,18 +297,29 @@ var _ThrottlingException = class _ThrottlingException extends CostOptimizationHu
284
297
  $fault: "client",
285
298
  ...opts
286
299
  });
287
- this.name = "ThrottlingException";
288
- this.$fault = "client";
289
300
  Object.setPrototypeOf(this, _ThrottlingException.prototype);
290
301
  }
291
302
  };
292
- __name(_ThrottlingException, "ThrottlingException");
293
- var ThrottlingException = _ThrottlingException;
294
303
  var ValidationExceptionReason = {
295
304
  FIELD_VALIDATION_FAILED: "FieldValidationFailed",
296
305
  OTHER: "Other"
297
306
  };
298
- var _ValidationException = class _ValidationException extends CostOptimizationHubServiceException {
307
+ var ValidationException = class _ValidationException extends CostOptimizationHubServiceException {
308
+ static {
309
+ __name(this, "ValidationException");
310
+ }
311
+ name = "ValidationException";
312
+ $fault = "client";
313
+ /**
314
+ * <p>The reason for the validation exception.</p>
315
+ * @public
316
+ */
317
+ reason;
318
+ /**
319
+ * <p>The list of fields that are invalid.</p>
320
+ * @public
321
+ */
322
+ fields;
299
323
  /**
300
324
  * @internal
301
325
  */
@@ -305,15 +329,11 @@ var _ValidationException = class _ValidationException extends CostOptimizationHu
305
329
  $fault: "client",
306
330
  ...opts
307
331
  });
308
- this.name = "ValidationException";
309
- this.$fault = "client";
310
332
  Object.setPrototypeOf(this, _ValidationException.prototype);
311
333
  this.reason = opts.reason;
312
334
  this.fields = opts.fields;
313
335
  }
314
336
  };
315
- __name(_ValidationException, "ValidationException");
316
- var ValidationException = _ValidationException;
317
337
  var ResourceDetails;
318
338
  ((ResourceDetails3) => {
319
339
  ResourceDetails3.visit = /* @__PURE__ */ __name((value, visitor) => {
@@ -378,7 +398,17 @@ var Source = {
378
398
  COMPUTE_OPTIMIZER: "ComputeOptimizer",
379
399
  COST_EXPLORER: "CostExplorer"
380
400
  };
381
- var _ResourceNotFoundException = class _ResourceNotFoundException extends CostOptimizationHubServiceException {
401
+ var ResourceNotFoundException = class _ResourceNotFoundException extends CostOptimizationHubServiceException {
402
+ static {
403
+ __name(this, "ResourceNotFoundException");
404
+ }
405
+ name = "ResourceNotFoundException";
406
+ $fault = "client";
407
+ /**
408
+ * <p>The identifier of the resource that was not found.</p>
409
+ * @public
410
+ */
411
+ resourceId;
382
412
  /**
383
413
  * @internal
384
414
  */
@@ -388,14 +418,10 @@ var _ResourceNotFoundException = class _ResourceNotFoundException extends CostOp
388
418
  $fault: "client",
389
419
  ...opts
390
420
  });
391
- this.name = "ResourceNotFoundException";
392
- this.$fault = "client";
393
421
  Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
394
422
  this.resourceId = opts.resourceId;
395
423
  }
396
424
  };
397
- __name(_ResourceNotFoundException, "ResourceNotFoundException");
398
- var ResourceNotFoundException = _ResourceNotFoundException;
399
425
  var Order = {
400
426
  ASC: "Asc",
401
427
  DESC: "Desc"
@@ -1031,99 +1057,106 @@ function sharedHeaders(operation) {
1031
1057
  __name(sharedHeaders, "sharedHeaders");
1032
1058
 
1033
1059
  // src/commands/GetPreferencesCommand.ts
1034
- var _GetPreferencesCommand = class _GetPreferencesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1060
+ var GetPreferencesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1035
1061
  return [
1036
1062
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1037
1063
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1038
1064
  ];
1039
1065
  }).s("CostOptimizationHubService", "GetPreferences", {}).n("CostOptimizationHubClient", "GetPreferencesCommand").f(void 0, void 0).ser(se_GetPreferencesCommand).de(de_GetPreferencesCommand).build() {
1066
+ static {
1067
+ __name(this, "GetPreferencesCommand");
1068
+ }
1040
1069
  };
1041
- __name(_GetPreferencesCommand, "GetPreferencesCommand");
1042
- var GetPreferencesCommand = _GetPreferencesCommand;
1043
1070
 
1044
1071
  // src/commands/GetRecommendationCommand.ts
1045
1072
 
1046
1073
 
1047
1074
 
1048
- var _GetRecommendationCommand = class _GetRecommendationCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1075
+ var GetRecommendationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1049
1076
  return [
1050
1077
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1051
1078
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1052
1079
  ];
1053
1080
  }).s("CostOptimizationHubService", "GetRecommendation", {}).n("CostOptimizationHubClient", "GetRecommendationCommand").f(void 0, void 0).ser(se_GetRecommendationCommand).de(de_GetRecommendationCommand).build() {
1081
+ static {
1082
+ __name(this, "GetRecommendationCommand");
1083
+ }
1054
1084
  };
1055
- __name(_GetRecommendationCommand, "GetRecommendationCommand");
1056
- var GetRecommendationCommand = _GetRecommendationCommand;
1057
1085
 
1058
1086
  // src/commands/ListEnrollmentStatusesCommand.ts
1059
1087
 
1060
1088
 
1061
1089
 
1062
- var _ListEnrollmentStatusesCommand = class _ListEnrollmentStatusesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1090
+ var ListEnrollmentStatusesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1063
1091
  return [
1064
1092
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1065
1093
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1066
1094
  ];
1067
1095
  }).s("CostOptimizationHubService", "ListEnrollmentStatuses", {}).n("CostOptimizationHubClient", "ListEnrollmentStatusesCommand").f(void 0, void 0).ser(se_ListEnrollmentStatusesCommand).de(de_ListEnrollmentStatusesCommand).build() {
1096
+ static {
1097
+ __name(this, "ListEnrollmentStatusesCommand");
1098
+ }
1068
1099
  };
1069
- __name(_ListEnrollmentStatusesCommand, "ListEnrollmentStatusesCommand");
1070
- var ListEnrollmentStatusesCommand = _ListEnrollmentStatusesCommand;
1071
1100
 
1072
1101
  // src/commands/ListRecommendationsCommand.ts
1073
1102
 
1074
1103
 
1075
1104
 
1076
- var _ListRecommendationsCommand = class _ListRecommendationsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1105
+ var ListRecommendationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1077
1106
  return [
1078
1107
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1079
1108
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1080
1109
  ];
1081
1110
  }).s("CostOptimizationHubService", "ListRecommendations", {}).n("CostOptimizationHubClient", "ListRecommendationsCommand").f(void 0, void 0).ser(se_ListRecommendationsCommand).de(de_ListRecommendationsCommand).build() {
1111
+ static {
1112
+ __name(this, "ListRecommendationsCommand");
1113
+ }
1082
1114
  };
1083
- __name(_ListRecommendationsCommand, "ListRecommendationsCommand");
1084
- var ListRecommendationsCommand = _ListRecommendationsCommand;
1085
1115
 
1086
1116
  // src/commands/ListRecommendationSummariesCommand.ts
1087
1117
 
1088
1118
 
1089
1119
 
1090
- var _ListRecommendationSummariesCommand = class _ListRecommendationSummariesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1120
+ var ListRecommendationSummariesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1091
1121
  return [
1092
1122
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1093
1123
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1094
1124
  ];
1095
1125
  }).s("CostOptimizationHubService", "ListRecommendationSummaries", {}).n("CostOptimizationHubClient", "ListRecommendationSummariesCommand").f(void 0, void 0).ser(se_ListRecommendationSummariesCommand).de(de_ListRecommendationSummariesCommand).build() {
1126
+ static {
1127
+ __name(this, "ListRecommendationSummariesCommand");
1128
+ }
1096
1129
  };
1097
- __name(_ListRecommendationSummariesCommand, "ListRecommendationSummariesCommand");
1098
- var ListRecommendationSummariesCommand = _ListRecommendationSummariesCommand;
1099
1130
 
1100
1131
  // src/commands/UpdateEnrollmentStatusCommand.ts
1101
1132
 
1102
1133
 
1103
1134
 
1104
- var _UpdateEnrollmentStatusCommand = class _UpdateEnrollmentStatusCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1135
+ var UpdateEnrollmentStatusCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1105
1136
  return [
1106
1137
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1107
1138
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1108
1139
  ];
1109
1140
  }).s("CostOptimizationHubService", "UpdateEnrollmentStatus", {}).n("CostOptimizationHubClient", "UpdateEnrollmentStatusCommand").f(void 0, void 0).ser(se_UpdateEnrollmentStatusCommand).de(de_UpdateEnrollmentStatusCommand).build() {
1141
+ static {
1142
+ __name(this, "UpdateEnrollmentStatusCommand");
1143
+ }
1110
1144
  };
1111
- __name(_UpdateEnrollmentStatusCommand, "UpdateEnrollmentStatusCommand");
1112
- var UpdateEnrollmentStatusCommand = _UpdateEnrollmentStatusCommand;
1113
1145
 
1114
1146
  // src/commands/UpdatePreferencesCommand.ts
1115
1147
 
1116
1148
 
1117
1149
 
1118
- var _UpdatePreferencesCommand = class _UpdatePreferencesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1150
+ var UpdatePreferencesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1119
1151
  return [
1120
1152
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1121
1153
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1122
1154
  ];
1123
1155
  }).s("CostOptimizationHubService", "UpdatePreferences", {}).n("CostOptimizationHubClient", "UpdatePreferencesCommand").f(void 0, void 0).ser(se_UpdatePreferencesCommand).de(de_UpdatePreferencesCommand).build() {
1156
+ static {
1157
+ __name(this, "UpdatePreferencesCommand");
1158
+ }
1124
1159
  };
1125
- __name(_UpdatePreferencesCommand, "UpdatePreferencesCommand");
1126
- var UpdatePreferencesCommand = _UpdatePreferencesCommand;
1127
1160
 
1128
1161
  // src/CostOptimizationHub.ts
1129
1162
  var commands = {
@@ -1135,10 +1168,11 @@ var commands = {
1135
1168
  UpdateEnrollmentStatusCommand,
1136
1169
  UpdatePreferencesCommand
1137
1170
  };
1138
- var _CostOptimizationHub = class _CostOptimizationHub extends CostOptimizationHubClient {
1171
+ var CostOptimizationHub = class extends CostOptimizationHubClient {
1172
+ static {
1173
+ __name(this, "CostOptimizationHub");
1174
+ }
1139
1175
  };
1140
- __name(_CostOptimizationHub, "CostOptimizationHub");
1141
- var CostOptimizationHub = _CostOptimizationHub;
1142
1176
  (0, import_smithy_client.createAggregatedClient)(commands, CostOptimizationHub);
1143
1177
 
1144
1178
  // src/pagination/ListEnrollmentStatusesPaginator.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 CostOptimizationHubClient extends __Client {
17
+ config;
17
18
  constructor(...[configuration]) {
18
19
  const _config_0 = __getRuntimeConfig(configuration || {});
19
20
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -1,13 +1,13 @@
1
1
  import { CostOptimizationHubServiceException as __BaseException } from "./CostOptimizationHubServiceException";
2
2
  export class AccessDeniedException extends __BaseException {
3
+ name = "AccessDeniedException";
4
+ $fault = "client";
3
5
  constructor(opts) {
4
6
  super({
5
7
  name: "AccessDeniedException",
6
8
  $fault: "client",
7
9
  ...opts,
8
10
  });
9
- this.name = "AccessDeniedException";
10
- this.$fault = "client";
11
11
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
12
12
  }
13
13
  }
@@ -33,26 +33,26 @@ export const SavingsEstimationMode = {
33
33
  BEFORE_DISCOUNTS: "BeforeDiscounts",
34
34
  };
35
35
  export class InternalServerException extends __BaseException {
36
+ name = "InternalServerException";
37
+ $fault = "server";
36
38
  constructor(opts) {
37
39
  super({
38
40
  name: "InternalServerException",
39
41
  $fault: "server",
40
42
  ...opts,
41
43
  });
42
- this.name = "InternalServerException";
43
- this.$fault = "server";
44
44
  Object.setPrototypeOf(this, InternalServerException.prototype);
45
45
  }
46
46
  }
47
47
  export class ThrottlingException extends __BaseException {
48
+ name = "ThrottlingException";
49
+ $fault = "client";
48
50
  constructor(opts) {
49
51
  super({
50
52
  name: "ThrottlingException",
51
53
  $fault: "client",
52
54
  ...opts,
53
55
  });
54
- this.name = "ThrottlingException";
55
- this.$fault = "client";
56
56
  Object.setPrototypeOf(this, ThrottlingException.prototype);
57
57
  }
58
58
  }
@@ -61,14 +61,16 @@ export const ValidationExceptionReason = {
61
61
  OTHER: "Other",
62
62
  };
63
63
  export class ValidationException extends __BaseException {
64
+ name = "ValidationException";
65
+ $fault = "client";
66
+ reason;
67
+ fields;
64
68
  constructor(opts) {
65
69
  super({
66
70
  name: "ValidationException",
67
71
  $fault: "client",
68
72
  ...opts,
69
73
  });
70
- this.name = "ValidationException";
71
- this.$fault = "client";
72
74
  Object.setPrototypeOf(this, ValidationException.prototype);
73
75
  this.reason = opts.reason;
74
76
  this.fields = opts.fields;
@@ -139,14 +141,15 @@ export const Source = {
139
141
  COST_EXPLORER: "CostExplorer",
140
142
  };
141
143
  export class ResourceNotFoundException extends __BaseException {
144
+ name = "ResourceNotFoundException";
145
+ $fault = "client";
146
+ resourceId;
142
147
  constructor(opts) {
143
148
  super({
144
149
  name: "ResourceNotFoundException",
145
150
  $fault: "client",
146
151
  ...opts,
147
152
  });
148
- this.name = "ResourceNotFoundException";
149
- this.$fault = "client";
150
153
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
151
154
  this.resourceId = opts.resourceId;
152
155
  }
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: CostOptimizationHubClientConfig)
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: CostOptimizationHubClientConfig)
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: CostOptimizationHubClientConfig)
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: CostOptimizationHubClientConfig)
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;
@@ -8,9 +8,11 @@ export declare const getRuntimeConfig: (
8
8
  import("@smithy/smithy-client").ResolvedDefaultsMode
9
9
  >;
10
10
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
11
- credentialDefaultProvider: (
12
- input: any
13
- ) => import("@smithy/types").AwsCredentialIdentityProvider;
11
+ credentialDefaultProvider:
12
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
13
+ | ((
14
+ _: unknown
15
+ ) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
14
16
  defaultUserAgentProvider: (
15
17
  config?:
16
18
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
@@ -8,13 +8,15 @@ export declare const getRuntimeConfig: (
8
8
  import("@smithy/smithy-client").ResolvedDefaultsMode
9
9
  >;
10
10
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
11
- credentialDefaultProvider: (
12
- init?:
13
- | import("@aws-sdk/credential-provider-node").DefaultProviderInit
14
- | undefined
15
- ) => import("@smithy/types").MemoizedProvider<
16
- import("@smithy/types").AwsCredentialIdentity
17
- >;
11
+ credentialDefaultProvider:
12
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
13
+ | ((
14
+ init?:
15
+ | import("@aws-sdk/credential-provider-node").DefaultProviderInit
16
+ | undefined
17
+ ) => import("@smithy/types").MemoizedProvider<
18
+ import("@smithy/types").AwsCredentialIdentity
19
+ >);
18
20
  defaultUserAgentProvider: (
19
21
  config?:
20
22
  | import("@aws-sdk/util-user-agent-node").PreviouslyResolved
@@ -30,9 +30,11 @@ export declare const getRuntimeConfig: (
30
30
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
31
31
  | undefined
32
32
  ) => Promise<import("@smithy/types").UserAgent>;
33
- credentialDefaultProvider: (
34
- input: any
35
- ) => import("@smithy/types").AwsCredentialIdentityProvider;
33
+ credentialDefaultProvider:
34
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
35
+ | ((
36
+ _: unknown
37
+ ) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
36
38
  maxAttempts: number | import("@smithy/types").Provider<number>;
37
39
  retryMode: string | import("@smithy/types").Provider<string>;
38
40
  logger: import("@smithy/types").Logger;
@@ -52,11 +54,21 @@ export declare const getRuntimeConfig: (
52
54
  | import("@smithy/types").RetryStrategyV2
53
55
  | undefined;
54
56
  endpoint?:
55
- | string
56
- | import("@smithy/types").Endpoint
57
- | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
58
- | import("@smithy/types").EndpointV2
59
- | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
57
+ | ((
58
+ | string
59
+ | import("@smithy/types").Endpoint
60
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
61
+ | import("@smithy/types").EndpointV2
62
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
63
+ ) &
64
+ (
65
+ | string
66
+ | import("@smithy/types").Provider<string>
67
+ | import("@smithy/types").Endpoint
68
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
69
+ | import("@smithy/types").EndpointV2
70
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
71
+ ))
60
72
  | undefined;
61
73
  endpointProvider: (
62
74
  endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cost-optimization-hub",
3
3
  "description": "AWS SDK for JavaScript Cost Optimization Hub Client for Node.js, Browser and React Native",
4
- "version": "3.716.0",
4
+ "version": "3.723.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-cost-optimization-hub",
@@ -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.716.0",
24
- "@aws-sdk/client-sts": "3.716.0",
25
- "@aws-sdk/core": "3.716.0",
26
- "@aws-sdk/credential-provider-node": "3.716.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.716.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.716.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.723.0",
24
+ "@aws-sdk/client-sts": "3.723.0",
25
+ "@aws-sdk/core": "3.723.0",
26
+ "@aws-sdk/credential-provider-node": "3.723.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.723.0",
31
+ "@aws-sdk/region-config-resolver": "3.723.0",
32
+ "@aws-sdk/types": "3.723.0",
33
+ "@aws-sdk/util-endpoints": "3.723.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.723.0",
35
+ "@aws-sdk/util-user-agent-node": "3.723.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": {