@aws-sdk/client-health 3.721.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
@@ -153,7 +153,14 @@ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions
153
153
  }, "resolveRuntimeExtensions");
154
154
 
155
155
  // src/HealthClient.ts
156
- var _HealthClient = class _HealthClient extends import_smithy_client.Client {
156
+ var HealthClient = class extends import_smithy_client.Client {
157
+ static {
158
+ __name(this, "HealthClient");
159
+ }
160
+ /**
161
+ * The resolved configuration of HealthClient class. This is resolved and normalized from the {@link HealthClientConfig | constructor configuration interface}.
162
+ */
163
+ config;
157
164
  constructor(...[configuration]) {
158
165
  const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
159
166
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -163,7 +170,7 @@ var _HealthClient = class _HealthClient extends import_smithy_client.Client {
163
170
  const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
164
171
  const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
165
172
  const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
166
- const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
173
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
167
174
  super(_config_8);
168
175
  this.config = _config_8;
169
176
  this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
@@ -191,8 +198,6 @@ var _HealthClient = class _HealthClient extends import_smithy_client.Client {
191
198
  super.destroy();
192
199
  }
193
200
  };
194
- __name(_HealthClient, "HealthClient");
195
- var HealthClient = _HealthClient;
196
201
 
197
202
  // src/Health.ts
198
203
 
@@ -209,7 +214,10 @@ var import_core2 = require("@aws-sdk/core");
209
214
 
210
215
  // src/models/HealthServiceException.ts
211
216
 
212
- var _HealthServiceException = class _HealthServiceException extends import_smithy_client.ServiceException {
217
+ var HealthServiceException = class _HealthServiceException extends import_smithy_client.ServiceException {
218
+ static {
219
+ __name(this, "HealthServiceException");
220
+ }
213
221
  /**
214
222
  * @internal
215
223
  */
@@ -218,8 +226,6 @@ var _HealthServiceException = class _HealthServiceException extends import_smith
218
226
  Object.setPrototypeOf(this, _HealthServiceException.prototype);
219
227
  }
220
228
  };
221
- __name(_HealthServiceException, "HealthServiceException");
222
- var HealthServiceException = _HealthServiceException;
223
229
 
224
230
  // src/models/models_0.ts
225
231
  var EntityStatusCode = {
@@ -234,7 +240,12 @@ var EventScopeCode = {
234
240
  NONE: "NONE",
235
241
  PUBLIC: "PUBLIC"
236
242
  };
237
- var _InvalidPaginationToken = class _InvalidPaginationToken extends HealthServiceException {
243
+ var InvalidPaginationToken = class _InvalidPaginationToken extends HealthServiceException {
244
+ static {
245
+ __name(this, "InvalidPaginationToken");
246
+ }
247
+ name = "InvalidPaginationToken";
248
+ $fault = "client";
238
249
  /**
239
250
  * @internal
240
251
  */
@@ -244,14 +255,15 @@ var _InvalidPaginationToken = class _InvalidPaginationToken extends HealthServic
244
255
  $fault: "client",
245
256
  ...opts
246
257
  });
247
- this.name = "InvalidPaginationToken";
248
- this.$fault = "client";
249
258
  Object.setPrototypeOf(this, _InvalidPaginationToken.prototype);
250
259
  }
251
260
  };
252
- __name(_InvalidPaginationToken, "InvalidPaginationToken");
253
- var InvalidPaginationToken = _InvalidPaginationToken;
254
- var _UnsupportedLocale = class _UnsupportedLocale extends HealthServiceException {
261
+ var UnsupportedLocale = class _UnsupportedLocale extends HealthServiceException {
262
+ static {
263
+ __name(this, "UnsupportedLocale");
264
+ }
265
+ name = "UnsupportedLocale";
266
+ $fault = "client";
255
267
  /**
256
268
  * @internal
257
269
  */
@@ -261,13 +273,9 @@ var _UnsupportedLocale = class _UnsupportedLocale extends HealthServiceException
261
273
  $fault: "client",
262
274
  ...opts
263
275
  });
264
- this.name = "UnsupportedLocale";
265
- this.$fault = "client";
266
276
  Object.setPrototypeOf(this, _UnsupportedLocale.prototype);
267
277
  }
268
278
  };
269
- __name(_UnsupportedLocale, "UnsupportedLocale");
270
- var UnsupportedLocale = _UnsupportedLocale;
271
279
  var EventAggregateField = {
272
280
  EventTypeCategory: "eventTypeCategory"
273
281
  };
@@ -282,7 +290,12 @@ var EventTypeCategory = {
282
290
  ISSUE: "issue",
283
291
  SCHEDULED_CHANGE: "scheduledChange"
284
292
  };
285
- var _ConcurrentModificationException = class _ConcurrentModificationException extends HealthServiceException {
293
+ var ConcurrentModificationException = class _ConcurrentModificationException extends HealthServiceException {
294
+ static {
295
+ __name(this, "ConcurrentModificationException");
296
+ }
297
+ name = "ConcurrentModificationException";
298
+ $fault = "client";
286
299
  /**
287
300
  * @internal
288
301
  */
@@ -292,13 +305,9 @@ var _ConcurrentModificationException = class _ConcurrentModificationException ex
292
305
  $fault: "client",
293
306
  ...opts
294
307
  });
295
- this.name = "ConcurrentModificationException";
296
- this.$fault = "client";
297
308
  Object.setPrototypeOf(this, _ConcurrentModificationException.prototype);
298
309
  }
299
310
  };
300
- __name(_ConcurrentModificationException, "ConcurrentModificationException");
301
- var ConcurrentModificationException = _ConcurrentModificationException;
302
311
 
303
312
  // src/protocols/Aws_json1_1.ts
304
313
  var se_DescribeAffectedAccountsForOrganizationCommand = /* @__PURE__ */ __name(async (input, context) => {
@@ -853,197 +862,211 @@ function sharedHeaders(operation) {
853
862
  __name(sharedHeaders, "sharedHeaders");
854
863
 
855
864
  // src/commands/DescribeAffectedAccountsForOrganizationCommand.ts
856
- var _DescribeAffectedAccountsForOrganizationCommand = class _DescribeAffectedAccountsForOrganizationCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
865
+ var DescribeAffectedAccountsForOrganizationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
857
866
  return [
858
867
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
859
868
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
860
869
  ];
861
870
  }).s("AWSHealth_20160804", "DescribeAffectedAccountsForOrganization", {}).n("HealthClient", "DescribeAffectedAccountsForOrganizationCommand").f(void 0, void 0).ser(se_DescribeAffectedAccountsForOrganizationCommand).de(de_DescribeAffectedAccountsForOrganizationCommand).build() {
871
+ static {
872
+ __name(this, "DescribeAffectedAccountsForOrganizationCommand");
873
+ }
862
874
  };
863
- __name(_DescribeAffectedAccountsForOrganizationCommand, "DescribeAffectedAccountsForOrganizationCommand");
864
- var DescribeAffectedAccountsForOrganizationCommand = _DescribeAffectedAccountsForOrganizationCommand;
865
875
 
866
876
  // src/commands/DescribeAffectedEntitiesCommand.ts
867
877
 
868
878
 
869
879
 
870
- var _DescribeAffectedEntitiesCommand = class _DescribeAffectedEntitiesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
880
+ var DescribeAffectedEntitiesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
871
881
  return [
872
882
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
873
883
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
874
884
  ];
875
885
  }).s("AWSHealth_20160804", "DescribeAffectedEntities", {}).n("HealthClient", "DescribeAffectedEntitiesCommand").f(void 0, void 0).ser(se_DescribeAffectedEntitiesCommand).de(de_DescribeAffectedEntitiesCommand).build() {
886
+ static {
887
+ __name(this, "DescribeAffectedEntitiesCommand");
888
+ }
876
889
  };
877
- __name(_DescribeAffectedEntitiesCommand, "DescribeAffectedEntitiesCommand");
878
- var DescribeAffectedEntitiesCommand = _DescribeAffectedEntitiesCommand;
879
890
 
880
891
  // src/commands/DescribeAffectedEntitiesForOrganizationCommand.ts
881
892
 
882
893
 
883
894
 
884
- var _DescribeAffectedEntitiesForOrganizationCommand = class _DescribeAffectedEntitiesForOrganizationCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
895
+ var DescribeAffectedEntitiesForOrganizationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
885
896
  return [
886
897
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
887
898
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
888
899
  ];
889
900
  }).s("AWSHealth_20160804", "DescribeAffectedEntitiesForOrganization", {}).n("HealthClient", "DescribeAffectedEntitiesForOrganizationCommand").f(void 0, void 0).ser(se_DescribeAffectedEntitiesForOrganizationCommand).de(de_DescribeAffectedEntitiesForOrganizationCommand).build() {
901
+ static {
902
+ __name(this, "DescribeAffectedEntitiesForOrganizationCommand");
903
+ }
890
904
  };
891
- __name(_DescribeAffectedEntitiesForOrganizationCommand, "DescribeAffectedEntitiesForOrganizationCommand");
892
- var DescribeAffectedEntitiesForOrganizationCommand = _DescribeAffectedEntitiesForOrganizationCommand;
893
905
 
894
906
  // src/commands/DescribeEntityAggregatesCommand.ts
895
907
 
896
908
 
897
909
 
898
- var _DescribeEntityAggregatesCommand = class _DescribeEntityAggregatesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
910
+ var DescribeEntityAggregatesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
899
911
  return [
900
912
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
901
913
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
902
914
  ];
903
915
  }).s("AWSHealth_20160804", "DescribeEntityAggregates", {}).n("HealthClient", "DescribeEntityAggregatesCommand").f(void 0, void 0).ser(se_DescribeEntityAggregatesCommand).de(de_DescribeEntityAggregatesCommand).build() {
916
+ static {
917
+ __name(this, "DescribeEntityAggregatesCommand");
918
+ }
904
919
  };
905
- __name(_DescribeEntityAggregatesCommand, "DescribeEntityAggregatesCommand");
906
- var DescribeEntityAggregatesCommand = _DescribeEntityAggregatesCommand;
907
920
 
908
921
  // src/commands/DescribeEntityAggregatesForOrganizationCommand.ts
909
922
 
910
923
 
911
924
 
912
- var _DescribeEntityAggregatesForOrganizationCommand = class _DescribeEntityAggregatesForOrganizationCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
925
+ var DescribeEntityAggregatesForOrganizationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
913
926
  return [
914
927
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
915
928
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
916
929
  ];
917
930
  }).s("AWSHealth_20160804", "DescribeEntityAggregatesForOrganization", {}).n("HealthClient", "DescribeEntityAggregatesForOrganizationCommand").f(void 0, void 0).ser(se_DescribeEntityAggregatesForOrganizationCommand).de(de_DescribeEntityAggregatesForOrganizationCommand).build() {
931
+ static {
932
+ __name(this, "DescribeEntityAggregatesForOrganizationCommand");
933
+ }
918
934
  };
919
- __name(_DescribeEntityAggregatesForOrganizationCommand, "DescribeEntityAggregatesForOrganizationCommand");
920
- var DescribeEntityAggregatesForOrganizationCommand = _DescribeEntityAggregatesForOrganizationCommand;
921
935
 
922
936
  // src/commands/DescribeEventAggregatesCommand.ts
923
937
 
924
938
 
925
939
 
926
- var _DescribeEventAggregatesCommand = class _DescribeEventAggregatesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
940
+ var DescribeEventAggregatesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
927
941
  return [
928
942
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
929
943
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
930
944
  ];
931
945
  }).s("AWSHealth_20160804", "DescribeEventAggregates", {}).n("HealthClient", "DescribeEventAggregatesCommand").f(void 0, void 0).ser(se_DescribeEventAggregatesCommand).de(de_DescribeEventAggregatesCommand).build() {
946
+ static {
947
+ __name(this, "DescribeEventAggregatesCommand");
948
+ }
932
949
  };
933
- __name(_DescribeEventAggregatesCommand, "DescribeEventAggregatesCommand");
934
- var DescribeEventAggregatesCommand = _DescribeEventAggregatesCommand;
935
950
 
936
951
  // src/commands/DescribeEventDetailsCommand.ts
937
952
 
938
953
 
939
954
 
940
- var _DescribeEventDetailsCommand = class _DescribeEventDetailsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
955
+ var DescribeEventDetailsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
941
956
  return [
942
957
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
943
958
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
944
959
  ];
945
960
  }).s("AWSHealth_20160804", "DescribeEventDetails", {}).n("HealthClient", "DescribeEventDetailsCommand").f(void 0, void 0).ser(se_DescribeEventDetailsCommand).de(de_DescribeEventDetailsCommand).build() {
961
+ static {
962
+ __name(this, "DescribeEventDetailsCommand");
963
+ }
946
964
  };
947
- __name(_DescribeEventDetailsCommand, "DescribeEventDetailsCommand");
948
- var DescribeEventDetailsCommand = _DescribeEventDetailsCommand;
949
965
 
950
966
  // src/commands/DescribeEventDetailsForOrganizationCommand.ts
951
967
 
952
968
 
953
969
 
954
- var _DescribeEventDetailsForOrganizationCommand = class _DescribeEventDetailsForOrganizationCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
970
+ var DescribeEventDetailsForOrganizationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
955
971
  return [
956
972
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
957
973
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
958
974
  ];
959
975
  }).s("AWSHealth_20160804", "DescribeEventDetailsForOrganization", {}).n("HealthClient", "DescribeEventDetailsForOrganizationCommand").f(void 0, void 0).ser(se_DescribeEventDetailsForOrganizationCommand).de(de_DescribeEventDetailsForOrganizationCommand).build() {
976
+ static {
977
+ __name(this, "DescribeEventDetailsForOrganizationCommand");
978
+ }
960
979
  };
961
- __name(_DescribeEventDetailsForOrganizationCommand, "DescribeEventDetailsForOrganizationCommand");
962
- var DescribeEventDetailsForOrganizationCommand = _DescribeEventDetailsForOrganizationCommand;
963
980
 
964
981
  // src/commands/DescribeEventsCommand.ts
965
982
 
966
983
 
967
984
 
968
- var _DescribeEventsCommand = class _DescribeEventsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
985
+ var DescribeEventsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
969
986
  return [
970
987
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
971
988
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
972
989
  ];
973
990
  }).s("AWSHealth_20160804", "DescribeEvents", {}).n("HealthClient", "DescribeEventsCommand").f(void 0, void 0).ser(se_DescribeEventsCommand).de(de_DescribeEventsCommand).build() {
991
+ static {
992
+ __name(this, "DescribeEventsCommand");
993
+ }
974
994
  };
975
- __name(_DescribeEventsCommand, "DescribeEventsCommand");
976
- var DescribeEventsCommand = _DescribeEventsCommand;
977
995
 
978
996
  // src/commands/DescribeEventsForOrganizationCommand.ts
979
997
 
980
998
 
981
999
 
982
- var _DescribeEventsForOrganizationCommand = class _DescribeEventsForOrganizationCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1000
+ var DescribeEventsForOrganizationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
983
1001
  return [
984
1002
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
985
1003
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
986
1004
  ];
987
1005
  }).s("AWSHealth_20160804", "DescribeEventsForOrganization", {}).n("HealthClient", "DescribeEventsForOrganizationCommand").f(void 0, void 0).ser(se_DescribeEventsForOrganizationCommand).de(de_DescribeEventsForOrganizationCommand).build() {
1006
+ static {
1007
+ __name(this, "DescribeEventsForOrganizationCommand");
1008
+ }
988
1009
  };
989
- __name(_DescribeEventsForOrganizationCommand, "DescribeEventsForOrganizationCommand");
990
- var DescribeEventsForOrganizationCommand = _DescribeEventsForOrganizationCommand;
991
1010
 
992
1011
  // src/commands/DescribeEventTypesCommand.ts
993
1012
 
994
1013
 
995
1014
 
996
- var _DescribeEventTypesCommand = class _DescribeEventTypesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1015
+ var DescribeEventTypesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
997
1016
  return [
998
1017
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
999
1018
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1000
1019
  ];
1001
1020
  }).s("AWSHealth_20160804", "DescribeEventTypes", {}).n("HealthClient", "DescribeEventTypesCommand").f(void 0, void 0).ser(se_DescribeEventTypesCommand).de(de_DescribeEventTypesCommand).build() {
1021
+ static {
1022
+ __name(this, "DescribeEventTypesCommand");
1023
+ }
1002
1024
  };
1003
- __name(_DescribeEventTypesCommand, "DescribeEventTypesCommand");
1004
- var DescribeEventTypesCommand = _DescribeEventTypesCommand;
1005
1025
 
1006
1026
  // src/commands/DescribeHealthServiceStatusForOrganizationCommand.ts
1007
1027
 
1008
1028
 
1009
1029
 
1010
- var _DescribeHealthServiceStatusForOrganizationCommand = class _DescribeHealthServiceStatusForOrganizationCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1030
+ var DescribeHealthServiceStatusForOrganizationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1011
1031
  return [
1012
1032
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1013
1033
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1014
1034
  ];
1015
1035
  }).s("AWSHealth_20160804", "DescribeHealthServiceStatusForOrganization", {}).n("HealthClient", "DescribeHealthServiceStatusForOrganizationCommand").f(void 0, void 0).ser(se_DescribeHealthServiceStatusForOrganizationCommand).de(de_DescribeHealthServiceStatusForOrganizationCommand).build() {
1036
+ static {
1037
+ __name(this, "DescribeHealthServiceStatusForOrganizationCommand");
1038
+ }
1016
1039
  };
1017
- __name(_DescribeHealthServiceStatusForOrganizationCommand, "DescribeHealthServiceStatusForOrganizationCommand");
1018
- var DescribeHealthServiceStatusForOrganizationCommand = _DescribeHealthServiceStatusForOrganizationCommand;
1019
1040
 
1020
1041
  // src/commands/DisableHealthServiceAccessForOrganizationCommand.ts
1021
1042
 
1022
1043
 
1023
1044
 
1024
- var _DisableHealthServiceAccessForOrganizationCommand = class _DisableHealthServiceAccessForOrganizationCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1045
+ var DisableHealthServiceAccessForOrganizationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1025
1046
  return [
1026
1047
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1027
1048
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1028
1049
  ];
1029
1050
  }).s("AWSHealth_20160804", "DisableHealthServiceAccessForOrganization", {}).n("HealthClient", "DisableHealthServiceAccessForOrganizationCommand").f(void 0, void 0).ser(se_DisableHealthServiceAccessForOrganizationCommand).de(de_DisableHealthServiceAccessForOrganizationCommand).build() {
1051
+ static {
1052
+ __name(this, "DisableHealthServiceAccessForOrganizationCommand");
1053
+ }
1030
1054
  };
1031
- __name(_DisableHealthServiceAccessForOrganizationCommand, "DisableHealthServiceAccessForOrganizationCommand");
1032
- var DisableHealthServiceAccessForOrganizationCommand = _DisableHealthServiceAccessForOrganizationCommand;
1033
1055
 
1034
1056
  // src/commands/EnableHealthServiceAccessForOrganizationCommand.ts
1035
1057
 
1036
1058
 
1037
1059
 
1038
- var _EnableHealthServiceAccessForOrganizationCommand = class _EnableHealthServiceAccessForOrganizationCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1060
+ var EnableHealthServiceAccessForOrganizationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1039
1061
  return [
1040
1062
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1041
1063
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1042
1064
  ];
1043
1065
  }).s("AWSHealth_20160804", "EnableHealthServiceAccessForOrganization", {}).n("HealthClient", "EnableHealthServiceAccessForOrganizationCommand").f(void 0, void 0).ser(se_EnableHealthServiceAccessForOrganizationCommand).de(de_EnableHealthServiceAccessForOrganizationCommand).build() {
1066
+ static {
1067
+ __name(this, "EnableHealthServiceAccessForOrganizationCommand");
1068
+ }
1044
1069
  };
1045
- __name(_EnableHealthServiceAccessForOrganizationCommand, "EnableHealthServiceAccessForOrganizationCommand");
1046
- var EnableHealthServiceAccessForOrganizationCommand = _EnableHealthServiceAccessForOrganizationCommand;
1047
1070
 
1048
1071
  // src/Health.ts
1049
1072
  var commands = {
@@ -1062,10 +1085,11 @@ var commands = {
1062
1085
  DisableHealthServiceAccessForOrganizationCommand,
1063
1086
  EnableHealthServiceAccessForOrganizationCommand
1064
1087
  };
1065
- var _Health = class _Health extends HealthClient {
1088
+ var Health = class extends HealthClient {
1089
+ static {
1090
+ __name(this, "Health");
1091
+ }
1066
1092
  };
1067
- __name(_Health, "Health");
1068
- var Health = _Health;
1069
1093
  (0, import_smithy_client.createAggregatedClient)(commands, Health);
1070
1094
 
1071
1095
  // src/pagination/DescribeAffectedAccountsForOrganizationPaginator.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 HealthClient extends __Client {
17
+ config;
17
18
  constructor(...[configuration]) {
18
19
  const _config_0 = __getRuntimeConfig(configuration || {});
19
20
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -12,26 +12,26 @@ export const EventScopeCode = {
12
12
  PUBLIC: "PUBLIC",
13
13
  };
14
14
  export class InvalidPaginationToken extends __BaseException {
15
+ name = "InvalidPaginationToken";
16
+ $fault = "client";
15
17
  constructor(opts) {
16
18
  super({
17
19
  name: "InvalidPaginationToken",
18
20
  $fault: "client",
19
21
  ...opts,
20
22
  });
21
- this.name = "InvalidPaginationToken";
22
- this.$fault = "client";
23
23
  Object.setPrototypeOf(this, InvalidPaginationToken.prototype);
24
24
  }
25
25
  }
26
26
  export class UnsupportedLocale extends __BaseException {
27
+ name = "UnsupportedLocale";
28
+ $fault = "client";
27
29
  constructor(opts) {
28
30
  super({
29
31
  name: "UnsupportedLocale",
30
32
  $fault: "client",
31
33
  ...opts,
32
34
  });
33
- this.name = "UnsupportedLocale";
34
- this.$fault = "client";
35
35
  Object.setPrototypeOf(this, UnsupportedLocale.prototype);
36
36
  }
37
37
  }
@@ -50,14 +50,14 @@ export const EventTypeCategory = {
50
50
  SCHEDULED_CHANGE: "scheduledChange",
51
51
  };
52
52
  export class ConcurrentModificationException extends __BaseException {
53
+ name = "ConcurrentModificationException";
54
+ $fault = "client";
53
55
  constructor(opts) {
54
56
  super({
55
57
  name: "ConcurrentModificationException",
56
58
  $fault: "client",
57
59
  ...opts,
58
60
  });
59
- this.name = "ConcurrentModificationException";
60
- this.$fault = "client";
61
61
  Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
62
62
  }
63
63
  }
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: HealthClientConfig) => {
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: HealthClientConfig) => {
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: HealthClientConfig) => {
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: HealthClientConfig) => {
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: HealthClientConfig) => {
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: HealthClientConfig) => {
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: HealthClientConfig) => {
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: HealthClientConfig) => {
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-health",
3
3
  "description": "AWS SDK for JavaScript Health Client for Node.js, Browser and React Native",
4
- "version": "3.721.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-health",
@@ -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.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": {