@aws-sdk/client-health 3.927.0 → 3.929.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/dist-cjs/index.js +654 -670
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/HealthClient.js +2 -0
  4. package/dist-es/commands/DescribeAffectedAccountsForOrganizationCommand.js +3 -9
  5. package/dist-es/commands/DescribeAffectedEntitiesCommand.js +3 -9
  6. package/dist-es/commands/DescribeAffectedEntitiesForOrganizationCommand.js +3 -9
  7. package/dist-es/commands/DescribeEntityAggregatesCommand.js +3 -9
  8. package/dist-es/commands/DescribeEntityAggregatesForOrganizationCommand.js +3 -9
  9. package/dist-es/commands/DescribeEventAggregatesCommand.js +3 -9
  10. package/dist-es/commands/DescribeEventDetailsCommand.js +3 -9
  11. package/dist-es/commands/DescribeEventDetailsForOrganizationCommand.js +3 -9
  12. package/dist-es/commands/DescribeEventTypesCommand.js +3 -9
  13. package/dist-es/commands/DescribeEventsCommand.js +3 -9
  14. package/dist-es/commands/DescribeEventsForOrganizationCommand.js +3 -9
  15. package/dist-es/commands/DescribeHealthServiceStatusForOrganizationCommand.js +3 -9
  16. package/dist-es/commands/DisableHealthServiceAccessForOrganizationCommand.js +3 -9
  17. package/dist-es/commands/EnableHealthServiceAccessForOrganizationCommand.js +3 -9
  18. package/dist-es/runtimeConfig.shared.js +7 -0
  19. package/dist-es/schemas/schemas_0.js +637 -0
  20. package/dist-types/HealthClient.d.ts +10 -1
  21. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  22. package/dist-types/runtimeConfig.d.ts +1 -0
  23. package/dist-types/runtimeConfig.native.d.ts +1 -0
  24. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  25. package/dist-types/schemas/schemas_0.d.ts +103 -0
  26. package/dist-types/ts3.4/HealthClient.d.ts +4 -0
  27. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  28. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  29. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  30. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  31. package/dist-types/ts3.4/schemas/schemas_0.d.ts +108 -0
  32. package/package.json +5 -5
  33. package/dist-es/protocols/Aws_json1_1.js +0 -567
  34. package/dist-types/protocols/Aws_json1_1.d.ts +0 -128
  35. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -173
package/dist-cjs/index.js CHANGED
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
6
6
  var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
7
  var configResolver = require('@smithy/config-resolver');
8
8
  var core = require('@smithy/core');
9
+ var schema = require('@smithy/core/schema');
9
10
  var middlewareContentLength = require('@smithy/middleware-content-length');
10
11
  var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
12
  var middlewareRetry = require('@smithy/middleware-retry');
@@ -14,8 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
15
  var runtimeConfig = require('./runtimeConfig');
15
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
17
  var protocolHttp = require('@smithy/protocol-http');
17
- var middlewareSerde = require('@smithy/middleware-serde');
18
- var core$1 = require('@aws-sdk/core');
19
18
 
20
19
  const resolveClientEndpointParameters = (options) => {
21
20
  return Object.assign(options, {
@@ -91,6 +90,7 @@ class HealthClient extends smithyClient.Client {
91
90
  const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
92
91
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
93
92
  this.config = _config_8;
93
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
94
94
  this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
95
95
  this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
96
96
  this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
@@ -110,12 +110,12 @@ class HealthClient extends smithyClient.Client {
110
110
  }
111
111
  }
112
112
 
113
- class HealthServiceException extends smithyClient.ServiceException {
113
+ let HealthServiceException$1 = class HealthServiceException extends smithyClient.ServiceException {
114
114
  constructor(options) {
115
115
  super(options);
116
116
  Object.setPrototypeOf(this, HealthServiceException.prototype);
117
117
  }
118
- }
118
+ };
119
119
 
120
120
  const EntityStatusCode = {
121
121
  IMPAIRED: "IMPAIRED",
@@ -129,7 +129,7 @@ const EventScopeCode = {
129
129
  NONE: "NONE",
130
130
  PUBLIC: "PUBLIC",
131
131
  };
132
- class InvalidPaginationToken extends HealthServiceException {
132
+ let InvalidPaginationToken$1 = class InvalidPaginationToken extends HealthServiceException$1 {
133
133
  name = "InvalidPaginationToken";
134
134
  $fault = "client";
135
135
  constructor(opts) {
@@ -140,8 +140,8 @@ class InvalidPaginationToken extends HealthServiceException {
140
140
  });
141
141
  Object.setPrototypeOf(this, InvalidPaginationToken.prototype);
142
142
  }
143
- }
144
- class UnsupportedLocale extends HealthServiceException {
143
+ };
144
+ let UnsupportedLocale$1 = class UnsupportedLocale extends HealthServiceException$1 {
145
145
  name = "UnsupportedLocale";
146
146
  $fault = "client";
147
147
  constructor(opts) {
@@ -152,7 +152,7 @@ class UnsupportedLocale extends HealthServiceException {
152
152
  });
153
153
  Object.setPrototypeOf(this, UnsupportedLocale.prototype);
154
154
  }
155
- }
155
+ };
156
156
  const EventAggregateField = {
157
157
  EventTypeCategory: "eventTypeCategory",
158
158
  };
@@ -167,7 +167,7 @@ const EventTypeCategory = {
167
167
  ISSUE: "issue",
168
168
  SCHEDULED_CHANGE: "scheduledChange",
169
169
  };
170
- class ConcurrentModificationException extends HealthServiceException {
170
+ let ConcurrentModificationException$1 = class ConcurrentModificationException extends HealthServiceException$1 {
171
171
  name = "ConcurrentModificationException";
172
172
  $fault = "client";
173
173
  constructor(opts) {
@@ -178,581 +178,630 @@ class ConcurrentModificationException extends HealthServiceException {
178
178
  });
179
179
  Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
180
180
  }
181
- }
182
-
183
- const se_DescribeAffectedAccountsForOrganizationCommand = async (input, context) => {
184
- const headers = sharedHeaders("DescribeAffectedAccountsForOrganization");
185
- let body;
186
- body = JSON.stringify(smithyClient._json(input));
187
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
188
- };
189
- const se_DescribeAffectedEntitiesCommand = async (input, context) => {
190
- const headers = sharedHeaders("DescribeAffectedEntities");
191
- let body;
192
- body = JSON.stringify(se_DescribeAffectedEntitiesRequest(input));
193
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
194
- };
195
- const se_DescribeAffectedEntitiesForOrganizationCommand = async (input, context) => {
196
- const headers = sharedHeaders("DescribeAffectedEntitiesForOrganization");
197
- let body;
198
- body = JSON.stringify(smithyClient._json(input));
199
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
200
- };
201
- const se_DescribeEntityAggregatesCommand = async (input, context) => {
202
- const headers = sharedHeaders("DescribeEntityAggregates");
203
- let body;
204
- body = JSON.stringify(smithyClient._json(input));
205
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
206
- };
207
- const se_DescribeEntityAggregatesForOrganizationCommand = async (input, context) => {
208
- const headers = sharedHeaders("DescribeEntityAggregatesForOrganization");
209
- let body;
210
- body = JSON.stringify(smithyClient._json(input));
211
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
212
- };
213
- const se_DescribeEventAggregatesCommand = async (input, context) => {
214
- const headers = sharedHeaders("DescribeEventAggregates");
215
- let body;
216
- body = JSON.stringify(se_DescribeEventAggregatesRequest(input));
217
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
218
- };
219
- const se_DescribeEventDetailsCommand = async (input, context) => {
220
- const headers = sharedHeaders("DescribeEventDetails");
221
- let body;
222
- body = JSON.stringify(smithyClient._json(input));
223
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
224
- };
225
- const se_DescribeEventDetailsForOrganizationCommand = async (input, context) => {
226
- const headers = sharedHeaders("DescribeEventDetailsForOrganization");
227
- let body;
228
- body = JSON.stringify(smithyClient._json(input));
229
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
230
- };
231
- const se_DescribeEventsCommand = async (input, context) => {
232
- const headers = sharedHeaders("DescribeEvents");
233
- let body;
234
- body = JSON.stringify(se_DescribeEventsRequest(input));
235
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
236
- };
237
- const se_DescribeEventsForOrganizationCommand = async (input, context) => {
238
- const headers = sharedHeaders("DescribeEventsForOrganization");
239
- let body;
240
- body = JSON.stringify(se_DescribeEventsForOrganizationRequest(input));
241
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
242
- };
243
- const se_DescribeEventTypesCommand = async (input, context) => {
244
- const headers = sharedHeaders("DescribeEventTypes");
245
- let body;
246
- body = JSON.stringify(smithyClient._json(input));
247
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
248
- };
249
- const se_DescribeHealthServiceStatusForOrganizationCommand = async (input, context) => {
250
- const headers = sharedHeaders("DescribeHealthServiceStatusForOrganization");
251
- const body = "{}";
252
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
253
- };
254
- const se_DisableHealthServiceAccessForOrganizationCommand = async (input, context) => {
255
- const headers = sharedHeaders("DisableHealthServiceAccessForOrganization");
256
- const body = "{}";
257
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
258
- };
259
- const se_EnableHealthServiceAccessForOrganizationCommand = async (input, context) => {
260
- const headers = sharedHeaders("EnableHealthServiceAccessForOrganization");
261
- const body = "{}";
262
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
263
- };
264
- const de_DescribeAffectedAccountsForOrganizationCommand = async (output, context) => {
265
- if (output.statusCode >= 300) {
266
- return de_CommandError(output, context);
267
- }
268
- const data = await core$1.parseJsonBody(output.body, context);
269
- let contents = {};
270
- contents = smithyClient._json(data);
271
- const response = {
272
- $metadata: deserializeMetadata(output),
273
- ...contents,
274
- };
275
- return response;
276
- };
277
- const de_DescribeAffectedEntitiesCommand = async (output, context) => {
278
- if (output.statusCode >= 300) {
279
- return de_CommandError(output, context);
280
- }
281
- const data = await core$1.parseJsonBody(output.body, context);
282
- let contents = {};
283
- contents = de_DescribeAffectedEntitiesResponse(data);
284
- const response = {
285
- $metadata: deserializeMetadata(output),
286
- ...contents,
287
- };
288
- return response;
289
- };
290
- const de_DescribeAffectedEntitiesForOrganizationCommand = async (output, context) => {
291
- if (output.statusCode >= 300) {
292
- return de_CommandError(output, context);
293
- }
294
- const data = await core$1.parseJsonBody(output.body, context);
295
- let contents = {};
296
- contents = de_DescribeAffectedEntitiesForOrganizationResponse(data);
297
- const response = {
298
- $metadata: deserializeMetadata(output),
299
- ...contents,
300
- };
301
- return response;
302
- };
303
- const de_DescribeEntityAggregatesCommand = async (output, context) => {
304
- if (output.statusCode >= 300) {
305
- return de_CommandError(output, context);
306
- }
307
- const data = await core$1.parseJsonBody(output.body, context);
308
- let contents = {};
309
- contents = smithyClient._json(data);
310
- const response = {
311
- $metadata: deserializeMetadata(output),
312
- ...contents,
313
- };
314
- return response;
315
- };
316
- const de_DescribeEntityAggregatesForOrganizationCommand = async (output, context) => {
317
- if (output.statusCode >= 300) {
318
- return de_CommandError(output, context);
319
- }
320
- const data = await core$1.parseJsonBody(output.body, context);
321
- let contents = {};
322
- contents = smithyClient._json(data);
323
- const response = {
324
- $metadata: deserializeMetadata(output),
325
- ...contents,
326
- };
327
- return response;
328
- };
329
- const de_DescribeEventAggregatesCommand = async (output, context) => {
330
- if (output.statusCode >= 300) {
331
- return de_CommandError(output, context);
332
- }
333
- const data = await core$1.parseJsonBody(output.body, context);
334
- let contents = {};
335
- contents = smithyClient._json(data);
336
- const response = {
337
- $metadata: deserializeMetadata(output),
338
- ...contents,
339
- };
340
- return response;
341
- };
342
- const de_DescribeEventDetailsCommand = async (output, context) => {
343
- if (output.statusCode >= 300) {
344
- return de_CommandError(output, context);
345
- }
346
- const data = await core$1.parseJsonBody(output.body, context);
347
- let contents = {};
348
- contents = de_DescribeEventDetailsResponse(data);
349
- const response = {
350
- $metadata: deserializeMetadata(output),
351
- ...contents,
352
- };
353
- return response;
354
- };
355
- const de_DescribeEventDetailsForOrganizationCommand = async (output, context) => {
356
- if (output.statusCode >= 300) {
357
- return de_CommandError(output, context);
358
- }
359
- const data = await core$1.parseJsonBody(output.body, context);
360
- let contents = {};
361
- contents = de_DescribeEventDetailsForOrganizationResponse(data);
362
- const response = {
363
- $metadata: deserializeMetadata(output),
364
- ...contents,
365
- };
366
- return response;
367
- };
368
- const de_DescribeEventsCommand = async (output, context) => {
369
- if (output.statusCode >= 300) {
370
- return de_CommandError(output, context);
371
- }
372
- const data = await core$1.parseJsonBody(output.body, context);
373
- let contents = {};
374
- contents = de_DescribeEventsResponse(data);
375
- const response = {
376
- $metadata: deserializeMetadata(output),
377
- ...contents,
378
- };
379
- return response;
380
- };
381
- const de_DescribeEventsForOrganizationCommand = async (output, context) => {
382
- if (output.statusCode >= 300) {
383
- return de_CommandError(output, context);
384
- }
385
- const data = await core$1.parseJsonBody(output.body, context);
386
- let contents = {};
387
- contents = de_DescribeEventsForOrganizationResponse(data);
388
- const response = {
389
- $metadata: deserializeMetadata(output),
390
- ...contents,
391
- };
392
- return response;
393
- };
394
- const de_DescribeEventTypesCommand = async (output, context) => {
395
- if (output.statusCode >= 300) {
396
- return de_CommandError(output, context);
397
- }
398
- const data = await core$1.parseJsonBody(output.body, context);
399
- let contents = {};
400
- contents = smithyClient._json(data);
401
- const response = {
402
- $metadata: deserializeMetadata(output),
403
- ...contents,
404
- };
405
- return response;
406
- };
407
- const de_DescribeHealthServiceStatusForOrganizationCommand = async (output, context) => {
408
- if (output.statusCode >= 300) {
409
- return de_CommandError(output, context);
410
- }
411
- const data = await core$1.parseJsonBody(output.body, context);
412
- let contents = {};
413
- contents = smithyClient._json(data);
414
- const response = {
415
- $metadata: deserializeMetadata(output),
416
- ...contents,
417
- };
418
- return response;
419
- };
420
- const de_DisableHealthServiceAccessForOrganizationCommand = async (output, context) => {
421
- if (output.statusCode >= 300) {
422
- return de_CommandError(output, context);
423
- }
424
- await smithyClient.collectBody(output.body, context);
425
- const response = {
426
- $metadata: deserializeMetadata(output),
427
- };
428
- return response;
429
- };
430
- const de_EnableHealthServiceAccessForOrganizationCommand = async (output, context) => {
431
- if (output.statusCode >= 300) {
432
- return de_CommandError(output, context);
433
- }
434
- await smithyClient.collectBody(output.body, context);
435
- const response = {
436
- $metadata: deserializeMetadata(output),
437
- };
438
- return response;
439
- };
440
- const de_CommandError = async (output, context) => {
441
- const parsedOutput = {
442
- ...output,
443
- body: await core$1.parseJsonErrorBody(output.body, context),
444
- };
445
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
446
- switch (errorCode) {
447
- case "InvalidPaginationToken":
448
- case "com.amazonaws.health#InvalidPaginationToken":
449
- throw await de_InvalidPaginationTokenRes(parsedOutput);
450
- case "UnsupportedLocale":
451
- case "com.amazonaws.health#UnsupportedLocale":
452
- throw await de_UnsupportedLocaleRes(parsedOutput);
453
- case "ConcurrentModificationException":
454
- case "com.amazonaws.health#ConcurrentModificationException":
455
- throw await de_ConcurrentModificationExceptionRes(parsedOutput);
456
- default:
457
- const parsedBody = parsedOutput.body;
458
- return throwDefaultError({
459
- output,
460
- parsedBody,
461
- errorCode,
462
- });
463
- }
464
- };
465
- const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
466
- const body = parsedOutput.body;
467
- const deserialized = smithyClient._json(body);
468
- const exception = new ConcurrentModificationException({
469
- $metadata: deserializeMetadata(parsedOutput),
470
- ...deserialized,
471
- });
472
- return smithyClient.decorateServiceException(exception, body);
473
- };
474
- const de_InvalidPaginationTokenRes = async (parsedOutput, context) => {
475
- const body = parsedOutput.body;
476
- const deserialized = smithyClient._json(body);
477
- const exception = new InvalidPaginationToken({
478
- $metadata: deserializeMetadata(parsedOutput),
479
- ...deserialized,
480
- });
481
- return smithyClient.decorateServiceException(exception, body);
482
- };
483
- const de_UnsupportedLocaleRes = async (parsedOutput, context) => {
484
- const body = parsedOutput.body;
485
- const deserialized = smithyClient._json(body);
486
- const exception = new UnsupportedLocale({
487
- $metadata: deserializeMetadata(parsedOutput),
488
- ...deserialized,
489
- });
490
- return smithyClient.decorateServiceException(exception, body);
491
- };
492
- const se_DateTimeRange = (input, context) => {
493
- return smithyClient.take(input, {
494
- from: (_) => _.getTime() / 1_000,
495
- to: (_) => _.getTime() / 1_000,
496
- });
497
- };
498
- const se_dateTimeRangeList = (input, context) => {
499
- return input
500
- .filter((e) => e != null)
501
- .map((entry) => {
502
- return se_DateTimeRange(entry);
503
- });
504
- };
505
- const se_DescribeAffectedEntitiesRequest = (input, context) => {
506
- return smithyClient.take(input, {
507
- filter: (_) => se_EntityFilter(_),
508
- locale: [],
509
- maxResults: [],
510
- nextToken: [],
511
- });
512
- };
513
- const se_DescribeEventAggregatesRequest = (input, context) => {
514
- return smithyClient.take(input, {
515
- aggregateField: [],
516
- filter: (_) => se_EventFilter(_),
517
- maxResults: [],
518
- nextToken: [],
519
- });
520
- };
521
- const se_DescribeEventsForOrganizationRequest = (input, context) => {
522
- return smithyClient.take(input, {
523
- filter: (_) => se_OrganizationEventFilter(_),
524
- locale: [],
525
- maxResults: [],
526
- nextToken: [],
527
- });
528
- };
529
- const se_DescribeEventsRequest = (input, context) => {
530
- return smithyClient.take(input, {
531
- filter: (_) => se_EventFilter(_),
532
- locale: [],
533
- maxResults: [],
534
- nextToken: [],
535
- });
536
- };
537
- const se_EntityFilter = (input, context) => {
538
- return smithyClient.take(input, {
539
- entityArns: smithyClient._json,
540
- entityValues: smithyClient._json,
541
- eventArns: smithyClient._json,
542
- lastUpdatedTimes: (_) => se_dateTimeRangeList(_),
543
- statusCodes: smithyClient._json,
544
- tags: smithyClient._json,
545
- });
546
- };
547
- const se_EventFilter = (input, context) => {
548
- return smithyClient.take(input, {
549
- availabilityZones: smithyClient._json,
550
- endTimes: (_) => se_dateTimeRangeList(_),
551
- entityArns: smithyClient._json,
552
- entityValues: smithyClient._json,
553
- eventArns: smithyClient._json,
554
- eventStatusCodes: smithyClient._json,
555
- eventTypeCategories: smithyClient._json,
556
- eventTypeCodes: smithyClient._json,
557
- lastUpdatedTimes: (_) => se_dateTimeRangeList(_),
558
- regions: smithyClient._json,
559
- services: smithyClient._json,
560
- startTimes: (_) => se_dateTimeRangeList(_),
561
- tags: smithyClient._json,
562
- });
563
- };
564
- const se_OrganizationEventFilter = (input, context) => {
565
- return smithyClient.take(input, {
566
- awsAccountIds: smithyClient._json,
567
- endTime: (_) => se_DateTimeRange(_),
568
- entityArns: smithyClient._json,
569
- entityValues: smithyClient._json,
570
- eventStatusCodes: smithyClient._json,
571
- eventTypeCategories: smithyClient._json,
572
- eventTypeCodes: smithyClient._json,
573
- lastUpdatedTime: (_) => se_DateTimeRange(_),
574
- regions: smithyClient._json,
575
- services: smithyClient._json,
576
- startTime: (_) => se_DateTimeRange(_),
577
- });
578
- };
579
- const de_AffectedEntity = (output, context) => {
580
- return smithyClient.take(output, {
581
- awsAccountId: smithyClient.expectString,
582
- entityArn: smithyClient.expectString,
583
- entityMetadata: smithyClient._json,
584
- entityUrl: smithyClient.expectString,
585
- entityValue: smithyClient.expectString,
586
- eventArn: smithyClient.expectString,
587
- lastUpdatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
588
- statusCode: smithyClient.expectString,
589
- tags: smithyClient._json,
590
- });
591
- };
592
- const de_DescribeAffectedEntitiesForOrganizationResponse = (output, context) => {
593
- return smithyClient.take(output, {
594
- entities: (_) => de_EntityList(_),
595
- failedSet: smithyClient._json,
596
- nextToken: smithyClient.expectString,
597
- });
598
- };
599
- const de_DescribeAffectedEntitiesResponse = (output, context) => {
600
- return smithyClient.take(output, {
601
- entities: (_) => de_EntityList(_),
602
- nextToken: smithyClient.expectString,
603
- });
604
- };
605
- const de_DescribeEventDetailsForOrganizationResponse = (output, context) => {
606
- return smithyClient.take(output, {
607
- failedSet: smithyClient._json,
608
- successfulSet: (_) => de_DescribeEventDetailsForOrganizationSuccessfulSet(_),
609
- });
610
181
  };
611
- const de_DescribeEventDetailsForOrganizationSuccessfulSet = (output, context) => {
612
- const retVal = (output || [])
613
- .filter((e) => e != null)
614
- .map((entry) => {
615
- return de_OrganizationEventDetails(entry);
616
- });
617
- return retVal;
618
- };
619
- const de_DescribeEventDetailsResponse = (output, context) => {
620
- return smithyClient.take(output, {
621
- failedSet: smithyClient._json,
622
- successfulSet: (_) => de_DescribeEventDetailsSuccessfulSet(_),
623
- });
624
- };
625
- const de_DescribeEventDetailsSuccessfulSet = (output, context) => {
626
- const retVal = (output || [])
627
- .filter((e) => e != null)
628
- .map((entry) => {
629
- return de_EventDetails(entry);
630
- });
631
- return retVal;
632
- };
633
- const de_DescribeEventsForOrganizationResponse = (output, context) => {
634
- return smithyClient.take(output, {
635
- events: (_) => de_OrganizationEventList(_),
636
- nextToken: smithyClient.expectString,
637
- });
638
- };
639
- const de_DescribeEventsResponse = (output, context) => {
640
- return smithyClient.take(output, {
641
- events: (_) => de_EventList(_),
642
- nextToken: smithyClient.expectString,
643
- });
644
- };
645
- const de_EntityList = (output, context) => {
646
- const retVal = (output || [])
647
- .filter((e) => e != null)
648
- .map((entry) => {
649
- return de_AffectedEntity(entry);
650
- });
651
- return retVal;
652
- };
653
- const de_Event = (output, context) => {
654
- return smithyClient.take(output, {
655
- arn: smithyClient.expectString,
656
- availabilityZone: smithyClient.expectString,
657
- endTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
658
- eventScopeCode: smithyClient.expectString,
659
- eventTypeCategory: smithyClient.expectString,
660
- eventTypeCode: smithyClient.expectString,
661
- lastUpdatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
662
- region: smithyClient.expectString,
663
- service: smithyClient.expectString,
664
- startTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
665
- statusCode: smithyClient.expectString,
666
- });
667
- };
668
- const de_EventDetails = (output, context) => {
669
- return smithyClient.take(output, {
670
- event: (_) => de_Event(_),
671
- eventDescription: smithyClient._json,
672
- eventMetadata: smithyClient._json,
673
- });
674
- };
675
- const de_EventList = (output, context) => {
676
- const retVal = (output || [])
677
- .filter((e) => e != null)
678
- .map((entry) => {
679
- return de_Event(entry);
680
- });
681
- return retVal;
682
- };
683
- const de_OrganizationEvent = (output, context) => {
684
- return smithyClient.take(output, {
685
- arn: smithyClient.expectString,
686
- endTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
687
- eventScopeCode: smithyClient.expectString,
688
- eventTypeCategory: smithyClient.expectString,
689
- eventTypeCode: smithyClient.expectString,
690
- lastUpdatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
691
- region: smithyClient.expectString,
692
- service: smithyClient.expectString,
693
- startTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
694
- statusCode: smithyClient.expectString,
695
- });
696
- };
697
- const de_OrganizationEventDetails = (output, context) => {
698
- return smithyClient.take(output, {
699
- awsAccountId: smithyClient.expectString,
700
- event: (_) => de_Event(_),
701
- eventDescription: smithyClient._json,
702
- eventMetadata: smithyClient._json,
703
- });
704
- };
705
- const de_OrganizationEventList = (output, context) => {
706
- const retVal = (output || [])
707
- .filter((e) => e != null)
708
- .map((entry) => {
709
- return de_OrganizationEvent(entry);
710
- });
711
- return retVal;
712
- };
713
- const deserializeMetadata = (output) => ({
714
- httpStatusCode: output.statusCode,
715
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
716
- extendedRequestId: output.headers["x-amz-id-2"],
717
- cfId: output.headers["x-amz-cf-id"],
718
- });
719
- const throwDefaultError = smithyClient.withBaseException(HealthServiceException);
720
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
721
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
722
- const contents = {
723
- protocol,
724
- hostname,
725
- port,
726
- method: "POST",
727
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
728
- headers,
729
- };
730
- if (body !== undefined) {
731
- contents.body = body;
732
- }
733
- return new protocolHttp.HttpRequest(contents);
734
- };
735
- function sharedHeaders(operation) {
736
- return {
737
- "content-type": "application/x-amz-json-1.1",
738
- "x-amz-target": `AWSHealth_20160804.${operation}`,
739
- };
740
- }
182
+
183
+ const _AE = "AffectedEntity";
184
+ const _AEA = "AccountEntityAggregate";
185
+ const _AEAL = "AccountEntityAggregatesList";
186
+ const _CME = "ConcurrentModificationException";
187
+ const _DAAFO = "DescribeAffectedAccountsForOrganization";
188
+ const _DAAFOR = "DescribeAffectedAccountsForOrganizationRequest";
189
+ const _DAAFORe = "DescribeAffectedAccountsForOrganizationResponse";
190
+ const _DAE = "DescribeAffectedEntities";
191
+ const _DAEFO = "DescribeAffectedEntitiesForOrganization";
192
+ const _DAEFOFS = "DescribeAffectedEntitiesForOrganizationFailedSet";
193
+ const _DAEFOR = "DescribeAffectedEntitiesForOrganizationRequest";
194
+ const _DAEFORe = "DescribeAffectedEntitiesForOrganizationResponse";
195
+ const _DAER = "DescribeAffectedEntitiesRequest";
196
+ const _DAERe = "DescribeAffectedEntitiesResponse";
197
+ const _DE = "DescribeEvents";
198
+ const _DEA = "DescribeEntityAggregates";
199
+ const _DEAFO = "DescribeEntityAggregatesForOrganization";
200
+ const _DEAFOR = "DescribeEntityAggregatesForOrganizationRequest";
201
+ const _DEAFORe = "DescribeEntityAggregatesForOrganizationResponse";
202
+ const _DEAR = "DescribeEntityAggregatesRequest";
203
+ const _DEARe = "DescribeEntityAggregatesResponse";
204
+ const _DEARes = "DescribeEventAggregatesRequest";
205
+ const _DEAResc = "DescribeEventAggregatesResponse";
206
+ const _DEAe = "DescribeEventAggregates";
207
+ const _DED = "DescribeEventDetails";
208
+ const _DEDFO = "DescribeEventDetailsForOrganization";
209
+ const _DEDFOFS = "DescribeEventDetailsForOrganizationFailedSet";
210
+ const _DEDFOR = "DescribeEventDetailsForOrganizationRequest";
211
+ const _DEDFORe = "DescribeEventDetailsForOrganizationResponse";
212
+ const _DEDFOSS = "DescribeEventDetailsForOrganizationSuccessfulSet";
213
+ const _DEDFS = "DescribeEventDetailsFailedSet";
214
+ const _DEDR = "DescribeEventDetailsRequest";
215
+ const _DEDRe = "DescribeEventDetailsResponse";
216
+ const _DEDSS = "DescribeEventDetailsSuccessfulSet";
217
+ const _DEFO = "DescribeEventsForOrganization";
218
+ const _DEFOR = "DescribeEventsForOrganizationRequest";
219
+ const _DEFORe = "DescribeEventsForOrganizationResponse";
220
+ const _DER = "DescribeEventsRequest";
221
+ const _DERe = "DescribeEventsResponse";
222
+ const _DET = "DescribeEventTypes";
223
+ const _DETR = "DescribeEventTypesRequest";
224
+ const _DETRe = "DescribeEventTypesResponse";
225
+ const _DHSAFO = "DisableHealthServiceAccessForOrganization";
226
+ const _DHSSFO = "DescribeHealthServiceStatusForOrganization";
227
+ const _DHSSFOR = "DescribeHealthServiceStatusForOrganizationResponse";
228
+ const _DTR = "DateTimeRange";
229
+ const _E = "Event";
230
+ const _EA = "EntityAggregate";
231
+ const _EAF = "EntityAccountFilter";
232
+ const _EAFv = "EventAccountFilter";
233
+ const _EAL = "EntityAggregateList";
234
+ const _EALv = "EventAggregateList";
235
+ const _EAv = "EventAggregate";
236
+ const _ED = "EventDescription";
237
+ const _EDEI = "EventDetailsErrorItem";
238
+ const _EDv = "EventDetails";
239
+ const _EF = "EntityFilter";
240
+ const _EFv = "EventFilter";
241
+ const _EHSAFO = "EnableHealthServiceAccessForOrganization";
242
+ const _EL = "EntityList";
243
+ const _ELv = "EventList";
244
+ const _ET = "EventType";
245
+ const _ETF = "EventTypeFilter";
246
+ const _ETL = "EventTypeList";
247
+ const _IPT = "InvalidPaginationToken";
248
+ const _OAEEI = "OrganizationAffectedEntitiesErrorItem";
249
+ const _OE = "OrganizationEvent";
250
+ const _OEA = "OrganizationEntityAggregate";
251
+ const _OEAFL = "OrganizationEntityAccountFiltersList";
252
+ const _OEAL = "OrganizationEntityAggregatesList";
253
+ const _OED = "OrganizationEventDetails";
254
+ const _OEDEI = "OrganizationEventDetailsErrorItem";
255
+ const _OEDFL = "OrganizationEventDetailFiltersList";
256
+ const _OEF = "OrganizationEventFilter";
257
+ const _OEFL = "OrganizationEntityFiltersList";
258
+ const _OEL = "OrganizationEventList";
259
+ const _UL = "UnsupportedLocale";
260
+ const _a = "arn";
261
+ const _aA = "affectedAccounts";
262
+ const _aAI = "awsAccountId";
263
+ const _aAIw = "awsAccountIds";
264
+ const _aF = "aggregateField";
265
+ const _aI = "accountId";
266
+ const _aV = "aggregateValue";
267
+ const _aZ = "availabilityZone";
268
+ const _aZv = "availabilityZones";
269
+ const _ac = "accounts";
270
+ const _c = "count";
271
+ const _ca = "category";
272
+ const _cl = "client";
273
+ const _co = "code";
274
+ const _dTRL = "dateTimeRangeList";
275
+ const _e = "error";
276
+ const _eA = "entityArn";
277
+ const _eAn = "entityAggregates";
278
+ const _eAnt = "entityArns";
279
+ const _eAv = "eventArn";
280
+ const _eAve = "eventArns";
281
+ const _eAven = "eventAggregates";
282
+ const _eD = "eventDescription";
283
+ const _eM = "entityMetadata";
284
+ const _eMr = "errorMessage";
285
+ const _eMv = "eventMetadata";
286
+ const _eN = "errorName";
287
+ const _eSC = "eventScopeCode";
288
+ const _eSCv = "eventStatusCodes";
289
+ const _eT = "eventTypes";
290
+ const _eTC = "eventTypeCode";
291
+ const _eTCv = "eventTypeCategory";
292
+ const _eTCve = "eventTypeCodes";
293
+ const _eTCven = "eventTypeCategories";
294
+ const _eTn = "endTime";
295
+ const _eTnd = "endTimes";
296
+ const _eU = "entityUrl";
297
+ const _eV = "entityValue";
298
+ const _eVn = "entityValues";
299
+ const _en = "entities";
300
+ const _ev = "events";
301
+ const _eve = "event";
302
+ const _f = "from";
303
+ const _fS = "failedSet";
304
+ const _fi = "filter";
305
+ const _hSASFO = "healthServiceAccessStatusForOrganization";
306
+ const _l = "locale";
307
+ const _lD = "latestDescription";
308
+ const _lUT = "lastUpdatedTime";
309
+ const _lUTa = "lastUpdatedTimes";
310
+ const _m = "message";
311
+ const _mR = "maxResults";
312
+ const _nT = "nextToken";
313
+ const _oEA = "organizationEntityAggregates";
314
+ const _oEAF = "organizationEntityAccountFilters";
315
+ const _oEDF = "organizationEventDetailFilters";
316
+ const _oEF = "organizationEntityFilters";
317
+ const _r = "region";
318
+ const _re = "regions";
319
+ const _s = "statuses";
320
+ const _sC = "statusCode";
321
+ const _sCt = "statusCodes";
322
+ const _sS = "successfulSet";
323
+ const _sT = "startTime";
324
+ const _sTt = "startTimes";
325
+ const _se = "service";
326
+ const _ser = "services";
327
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.health";
328
+ const _t = "tags";
329
+ const _tF = "tagFilter";
330
+ const _to = "to";
331
+ const n0 = "com.amazonaws.health";
332
+ var AccountEntityAggregate = [3, n0, _AEA, 0, [_aI, _c, _s], [0, 1, 128 | 1]];
333
+ var AffectedEntity = [
334
+ 3,
335
+ n0,
336
+ _AE,
337
+ 0,
338
+ [_eA, _eAv, _eV, _eU, _aAI, _lUT, _sC, _t, _eM],
339
+ [0, 0, 0, 0, 0, 4, 0, 128 | 0, 128 | 0],
340
+ ];
341
+ var ConcurrentModificationException = [
342
+ -3,
343
+ n0,
344
+ _CME,
345
+ {
346
+ [_e]: _cl,
347
+ },
348
+ [_m],
349
+ [0],
350
+ ];
351
+ schema.TypeRegistry.for(n0).registerError(ConcurrentModificationException, ConcurrentModificationException$1);
352
+ var DateTimeRange = [3, n0, _DTR, 0, [_f, _to], [4, 4]];
353
+ var DescribeAffectedAccountsForOrganizationRequest = [
354
+ 3,
355
+ n0,
356
+ _DAAFOR,
357
+ 0,
358
+ [_eAv, _nT, _mR],
359
+ [0, 0, 1],
360
+ ];
361
+ var DescribeAffectedAccountsForOrganizationResponse = [
362
+ 3,
363
+ n0,
364
+ _DAAFORe,
365
+ 0,
366
+ [_aA, _eSC, _nT],
367
+ [64 | 0, 0, 0],
368
+ ];
369
+ var DescribeAffectedEntitiesForOrganizationRequest = [
370
+ 3,
371
+ n0,
372
+ _DAEFOR,
373
+ 0,
374
+ [_oEF, _l, _nT, _mR, _oEAF],
375
+ [() => OrganizationEntityFiltersList, 0, 0, 1, () => OrganizationEntityAccountFiltersList],
376
+ ];
377
+ var DescribeAffectedEntitiesForOrganizationResponse = [
378
+ 3,
379
+ n0,
380
+ _DAEFORe,
381
+ 0,
382
+ [_en, _fS, _nT],
383
+ [() => EntityList, () => DescribeAffectedEntitiesForOrganizationFailedSet, 0],
384
+ ];
385
+ var DescribeAffectedEntitiesRequest = [
386
+ 3,
387
+ n0,
388
+ _DAER,
389
+ 0,
390
+ [_fi, _l, _nT, _mR],
391
+ [() => EntityFilter, 0, 0, 1],
392
+ ];
393
+ var DescribeAffectedEntitiesResponse = [
394
+ 3,
395
+ n0,
396
+ _DAERe,
397
+ 0,
398
+ [_en, _nT],
399
+ [() => EntityList, 0],
400
+ ];
401
+ var DescribeEntityAggregatesForOrganizationRequest = [
402
+ 3,
403
+ n0,
404
+ _DEAFOR,
405
+ 0,
406
+ [_eAve, _aAIw],
407
+ [64 | 0, 64 | 0],
408
+ ];
409
+ var DescribeEntityAggregatesForOrganizationResponse = [
410
+ 3,
411
+ n0,
412
+ _DEAFORe,
413
+ 0,
414
+ [_oEA],
415
+ [() => OrganizationEntityAggregatesList],
416
+ ];
417
+ var DescribeEntityAggregatesRequest = [3, n0, _DEAR, 0, [_eAve], [64 | 0]];
418
+ var DescribeEntityAggregatesResponse = [
419
+ 3,
420
+ n0,
421
+ _DEARe,
422
+ 0,
423
+ [_eAn],
424
+ [() => EntityAggregateList],
425
+ ];
426
+ var DescribeEventAggregatesRequest = [
427
+ 3,
428
+ n0,
429
+ _DEARes,
430
+ 0,
431
+ [_fi, _aF, _mR, _nT],
432
+ [() => EventFilter, 0, 1, 0],
433
+ ];
434
+ var DescribeEventAggregatesResponse = [
435
+ 3,
436
+ n0,
437
+ _DEAResc,
438
+ 0,
439
+ [_eAven, _nT],
440
+ [() => EventAggregateList, 0],
441
+ ];
442
+ var DescribeEventDetailsForOrganizationRequest = [
443
+ 3,
444
+ n0,
445
+ _DEDFOR,
446
+ 0,
447
+ [_oEDF, _l],
448
+ [() => OrganizationEventDetailFiltersList, 0],
449
+ ];
450
+ var DescribeEventDetailsForOrganizationResponse = [
451
+ 3,
452
+ n0,
453
+ _DEDFORe,
454
+ 0,
455
+ [_sS, _fS],
456
+ [() => DescribeEventDetailsForOrganizationSuccessfulSet, () => DescribeEventDetailsForOrganizationFailedSet],
457
+ ];
458
+ var DescribeEventDetailsRequest = [3, n0, _DEDR, 0, [_eAve, _l], [64 | 0, 0]];
459
+ var DescribeEventDetailsResponse = [
460
+ 3,
461
+ n0,
462
+ _DEDRe,
463
+ 0,
464
+ [_sS, _fS],
465
+ [() => DescribeEventDetailsSuccessfulSet, () => DescribeEventDetailsFailedSet],
466
+ ];
467
+ var DescribeEventsForOrganizationRequest = [
468
+ 3,
469
+ n0,
470
+ _DEFOR,
471
+ 0,
472
+ [_fi, _nT, _mR, _l],
473
+ [() => OrganizationEventFilter, 0, 1, 0],
474
+ ];
475
+ var DescribeEventsForOrganizationResponse = [
476
+ 3,
477
+ n0,
478
+ _DEFORe,
479
+ 0,
480
+ [_ev, _nT],
481
+ [() => OrganizationEventList, 0],
482
+ ];
483
+ var DescribeEventsRequest = [
484
+ 3,
485
+ n0,
486
+ _DER,
487
+ 0,
488
+ [_fi, _nT, _mR, _l],
489
+ [() => EventFilter, 0, 1, 0],
490
+ ];
491
+ var DescribeEventsResponse = [3, n0, _DERe, 0, [_ev, _nT], [() => EventList, 0]];
492
+ var DescribeEventTypesRequest = [
493
+ 3,
494
+ n0,
495
+ _DETR,
496
+ 0,
497
+ [_fi, _l, _nT, _mR],
498
+ [() => EventTypeFilter, 0, 0, 1],
499
+ ];
500
+ var DescribeEventTypesResponse = [3, n0, _DETRe, 0, [_eT, _nT], [() => EventTypeList, 0]];
501
+ var DescribeHealthServiceStatusForOrganizationResponse = [
502
+ 3,
503
+ n0,
504
+ _DHSSFOR,
505
+ 0,
506
+ [_hSASFO],
507
+ [0],
508
+ ];
509
+ var EntityAccountFilter = [3, n0, _EAF, 0, [_eAv, _aAI, _sCt], [0, 0, 64 | 0]];
510
+ var EntityAggregate = [3, n0, _EA, 0, [_eAv, _c, _s], [0, 1, 128 | 1]];
511
+ var EntityFilter = [
512
+ 3,
513
+ n0,
514
+ _EF,
515
+ 0,
516
+ [_eAve, _eAnt, _eVn, _lUTa, _t, _sCt],
517
+ [64 | 0, 64 | 0, 64 | 0, () => dateTimeRangeList, [1, n0, _tF, 0, 128 | 0], 64 | 0],
518
+ ];
519
+ var Event = [
520
+ 3,
521
+ n0,
522
+ _E,
523
+ 0,
524
+ [_a, _se, _eTC, _eTCv, _r, _aZ, _sT, _eTn, _lUT, _sC, _eSC],
525
+ [0, 0, 0, 0, 0, 0, 4, 4, 4, 0, 0],
526
+ ];
527
+ var EventAccountFilter = [3, n0, _EAFv, 0, [_eAv, _aAI], [0, 0]];
528
+ var EventAggregate = [3, n0, _EAv, 0, [_aV, _c], [0, 1]];
529
+ var EventDescription = [3, n0, _ED, 0, [_lD], [0]];
530
+ var EventDetails = [
531
+ 3,
532
+ n0,
533
+ _EDv,
534
+ 0,
535
+ [_eve, _eD, _eMv],
536
+ [() => Event, () => EventDescription, 128 | 0],
537
+ ];
538
+ var EventDetailsErrorItem = [3, n0, _EDEI, 0, [_eAv, _eN, _eMr], [0, 0, 0]];
539
+ var EventFilter = [
540
+ 3,
541
+ n0,
542
+ _EFv,
543
+ 0,
544
+ [_eAve, _eTCve, _ser, _re, _aZv, _sTt, _eTnd, _lUTa, _eAnt, _eVn, _eTCven, _t, _eSCv],
545
+ [
546
+ 64 | 0,
547
+ 64 | 0,
548
+ 64 | 0,
549
+ 64 | 0,
550
+ 64 | 0,
551
+ () => dateTimeRangeList,
552
+ () => dateTimeRangeList,
553
+ () => dateTimeRangeList,
554
+ 64 | 0,
555
+ 64 | 0,
556
+ 64 | 0,
557
+ [1, n0, _tF, 0, 128 | 0],
558
+ 64 | 0,
559
+ ],
560
+ ];
561
+ var EventType = [3, n0, _ET, 0, [_se, _co, _ca], [0, 0, 0]];
562
+ var EventTypeFilter = [3, n0, _ETF, 0, [_eTCve, _ser, _eTCven], [64 | 0, 64 | 0, 64 | 0]];
563
+ var InvalidPaginationToken = [
564
+ -3,
565
+ n0,
566
+ _IPT,
567
+ {
568
+ [_e]: _cl,
569
+ },
570
+ [_m],
571
+ [0],
572
+ ];
573
+ schema.TypeRegistry.for(n0).registerError(InvalidPaginationToken, InvalidPaginationToken$1);
574
+ var OrganizationAffectedEntitiesErrorItem = [
575
+ 3,
576
+ n0,
577
+ _OAEEI,
578
+ 0,
579
+ [_aAI, _eAv, _eN, _eMr],
580
+ [0, 0, 0, 0],
581
+ ];
582
+ var OrganizationEntityAggregate = [
583
+ 3,
584
+ n0,
585
+ _OEA,
586
+ 0,
587
+ [_eAv, _c, _s, _ac],
588
+ [0, 1, 128 | 1, () => AccountEntityAggregatesList],
589
+ ];
590
+ var OrganizationEvent = [
591
+ 3,
592
+ n0,
593
+ _OE,
594
+ 0,
595
+ [_a, _se, _eTC, _eTCv, _eSC, _r, _sT, _eTn, _lUT, _sC],
596
+ [0, 0, 0, 0, 0, 0, 4, 4, 4, 0],
597
+ ];
598
+ var OrganizationEventDetails = [
599
+ 3,
600
+ n0,
601
+ _OED,
602
+ 0,
603
+ [_aAI, _eve, _eD, _eMv],
604
+ [0, () => Event, () => EventDescription, 128 | 0],
605
+ ];
606
+ var OrganizationEventDetailsErrorItem = [
607
+ 3,
608
+ n0,
609
+ _OEDEI,
610
+ 0,
611
+ [_aAI, _eAv, _eN, _eMr],
612
+ [0, 0, 0, 0],
613
+ ];
614
+ var OrganizationEventFilter = [
615
+ 3,
616
+ n0,
617
+ _OEF,
618
+ 0,
619
+ [_eTCve, _aAIw, _ser, _re, _sT, _eTn, _lUT, _eAnt, _eVn, _eTCven, _eSCv],
620
+ [
621
+ 64 | 0,
622
+ 64 | 0,
623
+ 64 | 0,
624
+ 64 | 0,
625
+ () => DateTimeRange,
626
+ () => DateTimeRange,
627
+ () => DateTimeRange,
628
+ 64 | 0,
629
+ 64 | 0,
630
+ 64 | 0,
631
+ 64 | 0,
632
+ ],
633
+ ];
634
+ var UnsupportedLocale = [
635
+ -3,
636
+ n0,
637
+ _UL,
638
+ {
639
+ [_e]: _cl,
640
+ },
641
+ [_m],
642
+ [0],
643
+ ];
644
+ schema.TypeRegistry.for(n0).registerError(UnsupportedLocale, UnsupportedLocale$1);
645
+ var __Unit = "unit";
646
+ var HealthServiceException = [-3, _sm, "HealthServiceException", 0, [], []];
647
+ schema.TypeRegistry.for(_sm).registerError(HealthServiceException, HealthServiceException$1);
648
+ var AccountEntityAggregatesList = [1, n0, _AEAL, 0, () => AccountEntityAggregate];
649
+ var dateTimeRangeList = [1, n0, _dTRL, 0, () => DateTimeRange];
650
+ var DescribeAffectedEntitiesForOrganizationFailedSet = [
651
+ 1,
652
+ n0,
653
+ _DAEFOFS,
654
+ 0,
655
+ () => OrganizationAffectedEntitiesErrorItem,
656
+ ];
657
+ var DescribeEventDetailsFailedSet = [1, n0, _DEDFS, 0, () => EventDetailsErrorItem];
658
+ var DescribeEventDetailsForOrganizationFailedSet = [
659
+ 1,
660
+ n0,
661
+ _DEDFOFS,
662
+ 0,
663
+ () => OrganizationEventDetailsErrorItem,
664
+ ];
665
+ var DescribeEventDetailsForOrganizationSuccessfulSet = [
666
+ 1,
667
+ n0,
668
+ _DEDFOSS,
669
+ 0,
670
+ () => OrganizationEventDetails,
671
+ ];
672
+ var DescribeEventDetailsSuccessfulSet = [1, n0, _DEDSS, 0, () => EventDetails];
673
+ var EntityAggregateList = [1, n0, _EAL, 0, () => EntityAggregate];
674
+ var EntityList = [1, n0, _EL, 0, () => AffectedEntity];
675
+ var EventAggregateList = [1, n0, _EALv, 0, () => EventAggregate];
676
+ var EventList = [1, n0, _ELv, 0, () => Event];
677
+ var EventTypeList = [1, n0, _ETL, 0, () => EventType];
678
+ var OrganizationEntityAccountFiltersList = [1, n0, _OEAFL, 0, () => EntityAccountFilter];
679
+ var OrganizationEntityAggregatesList = [1, n0, _OEAL, 0, () => OrganizationEntityAggregate];
680
+ var OrganizationEntityFiltersList = [1, n0, _OEFL, 0, () => EventAccountFilter];
681
+ var OrganizationEventDetailFiltersList = [1, n0, _OEDFL, 0, () => EventAccountFilter];
682
+ var OrganizationEventList = [1, n0, _OEL, 0, () => OrganizationEvent];
683
+ var DescribeAffectedAccountsForOrganization = [
684
+ 9,
685
+ n0,
686
+ _DAAFO,
687
+ 2,
688
+ () => DescribeAffectedAccountsForOrganizationRequest,
689
+ () => DescribeAffectedAccountsForOrganizationResponse,
690
+ ];
691
+ var DescribeAffectedEntities = [
692
+ 9,
693
+ n0,
694
+ _DAE,
695
+ 2,
696
+ () => DescribeAffectedEntitiesRequest,
697
+ () => DescribeAffectedEntitiesResponse,
698
+ ];
699
+ var DescribeAffectedEntitiesForOrganization = [
700
+ 9,
701
+ n0,
702
+ _DAEFO,
703
+ 2,
704
+ () => DescribeAffectedEntitiesForOrganizationRequest,
705
+ () => DescribeAffectedEntitiesForOrganizationResponse,
706
+ ];
707
+ var DescribeEntityAggregates = [
708
+ 9,
709
+ n0,
710
+ _DEA,
711
+ 2,
712
+ () => DescribeEntityAggregatesRequest,
713
+ () => DescribeEntityAggregatesResponse,
714
+ ];
715
+ var DescribeEntityAggregatesForOrganization = [
716
+ 9,
717
+ n0,
718
+ _DEAFO,
719
+ 2,
720
+ () => DescribeEntityAggregatesForOrganizationRequest,
721
+ () => DescribeEntityAggregatesForOrganizationResponse,
722
+ ];
723
+ var DescribeEventAggregates = [
724
+ 9,
725
+ n0,
726
+ _DEAe,
727
+ 2,
728
+ () => DescribeEventAggregatesRequest,
729
+ () => DescribeEventAggregatesResponse,
730
+ ];
731
+ var DescribeEventDetails = [
732
+ 9,
733
+ n0,
734
+ _DED,
735
+ 2,
736
+ () => DescribeEventDetailsRequest,
737
+ () => DescribeEventDetailsResponse,
738
+ ];
739
+ var DescribeEventDetailsForOrganization = [
740
+ 9,
741
+ n0,
742
+ _DEDFO,
743
+ 2,
744
+ () => DescribeEventDetailsForOrganizationRequest,
745
+ () => DescribeEventDetailsForOrganizationResponse,
746
+ ];
747
+ var DescribeEvents = [
748
+ 9,
749
+ n0,
750
+ _DE,
751
+ 2,
752
+ () => DescribeEventsRequest,
753
+ () => DescribeEventsResponse,
754
+ ];
755
+ var DescribeEventsForOrganization = [
756
+ 9,
757
+ n0,
758
+ _DEFO,
759
+ 2,
760
+ () => DescribeEventsForOrganizationRequest,
761
+ () => DescribeEventsForOrganizationResponse,
762
+ ];
763
+ var DescribeEventTypes = [
764
+ 9,
765
+ n0,
766
+ _DET,
767
+ 2,
768
+ () => DescribeEventTypesRequest,
769
+ () => DescribeEventTypesResponse,
770
+ ];
771
+ var DescribeHealthServiceStatusForOrganization = [
772
+ 9,
773
+ n0,
774
+ _DHSSFO,
775
+ 2,
776
+ () => __Unit,
777
+ () => DescribeHealthServiceStatusForOrganizationResponse,
778
+ ];
779
+ var DisableHealthServiceAccessForOrganization = [
780
+ 9,
781
+ n0,
782
+ _DHSAFO,
783
+ 2,
784
+ () => __Unit,
785
+ () => __Unit,
786
+ ];
787
+ var EnableHealthServiceAccessForOrganization = [
788
+ 9,
789
+ n0,
790
+ _EHSAFO,
791
+ 2,
792
+ () => __Unit,
793
+ () => __Unit,
794
+ ];
741
795
 
742
796
  class DescribeAffectedAccountsForOrganizationCommand extends smithyClient.Command
743
797
  .classBuilder()
744
798
  .ep(commonParams)
745
799
  .m(function (Command, cs, config, o) {
746
- return [
747
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
748
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
749
- ];
800
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
750
801
  })
751
802
  .s("AWSHealth_20160804", "DescribeAffectedAccountsForOrganization", {})
752
803
  .n("HealthClient", "DescribeAffectedAccountsForOrganizationCommand")
753
- .f(void 0, void 0)
754
- .ser(se_DescribeAffectedAccountsForOrganizationCommand)
755
- .de(de_DescribeAffectedAccountsForOrganizationCommand)
804
+ .sc(DescribeAffectedAccountsForOrganization)
756
805
  .build() {
757
806
  }
758
807
 
@@ -760,16 +809,11 @@ class DescribeAffectedEntitiesCommand extends smithyClient.Command
760
809
  .classBuilder()
761
810
  .ep(commonParams)
762
811
  .m(function (Command, cs, config, o) {
763
- return [
764
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
765
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
766
- ];
812
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
767
813
  })
768
814
  .s("AWSHealth_20160804", "DescribeAffectedEntities", {})
769
815
  .n("HealthClient", "DescribeAffectedEntitiesCommand")
770
- .f(void 0, void 0)
771
- .ser(se_DescribeAffectedEntitiesCommand)
772
- .de(de_DescribeAffectedEntitiesCommand)
816
+ .sc(DescribeAffectedEntities)
773
817
  .build() {
774
818
  }
775
819
 
@@ -777,16 +821,11 @@ class DescribeAffectedEntitiesForOrganizationCommand extends smithyClient.Comman
777
821
  .classBuilder()
778
822
  .ep(commonParams)
779
823
  .m(function (Command, cs, config, o) {
780
- return [
781
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
782
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
783
- ];
824
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
784
825
  })
785
826
  .s("AWSHealth_20160804", "DescribeAffectedEntitiesForOrganization", {})
786
827
  .n("HealthClient", "DescribeAffectedEntitiesForOrganizationCommand")
787
- .f(void 0, void 0)
788
- .ser(se_DescribeAffectedEntitiesForOrganizationCommand)
789
- .de(de_DescribeAffectedEntitiesForOrganizationCommand)
828
+ .sc(DescribeAffectedEntitiesForOrganization)
790
829
  .build() {
791
830
  }
792
831
 
@@ -794,16 +833,11 @@ class DescribeEntityAggregatesCommand extends smithyClient.Command
794
833
  .classBuilder()
795
834
  .ep(commonParams)
796
835
  .m(function (Command, cs, config, o) {
797
- return [
798
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
799
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
800
- ];
836
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
801
837
  })
802
838
  .s("AWSHealth_20160804", "DescribeEntityAggregates", {})
803
839
  .n("HealthClient", "DescribeEntityAggregatesCommand")
804
- .f(void 0, void 0)
805
- .ser(se_DescribeEntityAggregatesCommand)
806
- .de(de_DescribeEntityAggregatesCommand)
840
+ .sc(DescribeEntityAggregates)
807
841
  .build() {
808
842
  }
809
843
 
@@ -811,16 +845,11 @@ class DescribeEntityAggregatesForOrganizationCommand extends smithyClient.Comman
811
845
  .classBuilder()
812
846
  .ep(commonParams)
813
847
  .m(function (Command, cs, config, o) {
814
- return [
815
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
816
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
817
- ];
848
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
818
849
  })
819
850
  .s("AWSHealth_20160804", "DescribeEntityAggregatesForOrganization", {})
820
851
  .n("HealthClient", "DescribeEntityAggregatesForOrganizationCommand")
821
- .f(void 0, void 0)
822
- .ser(se_DescribeEntityAggregatesForOrganizationCommand)
823
- .de(de_DescribeEntityAggregatesForOrganizationCommand)
852
+ .sc(DescribeEntityAggregatesForOrganization)
824
853
  .build() {
825
854
  }
826
855
 
@@ -828,16 +857,11 @@ class DescribeEventAggregatesCommand extends smithyClient.Command
828
857
  .classBuilder()
829
858
  .ep(commonParams)
830
859
  .m(function (Command, cs, config, o) {
831
- return [
832
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
833
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
834
- ];
860
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
835
861
  })
836
862
  .s("AWSHealth_20160804", "DescribeEventAggregates", {})
837
863
  .n("HealthClient", "DescribeEventAggregatesCommand")
838
- .f(void 0, void 0)
839
- .ser(se_DescribeEventAggregatesCommand)
840
- .de(de_DescribeEventAggregatesCommand)
864
+ .sc(DescribeEventAggregates)
841
865
  .build() {
842
866
  }
843
867
 
@@ -845,16 +869,11 @@ class DescribeEventDetailsCommand extends smithyClient.Command
845
869
  .classBuilder()
846
870
  .ep(commonParams)
847
871
  .m(function (Command, cs, config, o) {
848
- return [
849
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
850
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
851
- ];
872
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
852
873
  })
853
874
  .s("AWSHealth_20160804", "DescribeEventDetails", {})
854
875
  .n("HealthClient", "DescribeEventDetailsCommand")
855
- .f(void 0, void 0)
856
- .ser(se_DescribeEventDetailsCommand)
857
- .de(de_DescribeEventDetailsCommand)
876
+ .sc(DescribeEventDetails)
858
877
  .build() {
859
878
  }
860
879
 
@@ -862,16 +881,11 @@ class DescribeEventDetailsForOrganizationCommand extends smithyClient.Command
862
881
  .classBuilder()
863
882
  .ep(commonParams)
864
883
  .m(function (Command, cs, config, o) {
865
- return [
866
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
867
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
868
- ];
884
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
869
885
  })
870
886
  .s("AWSHealth_20160804", "DescribeEventDetailsForOrganization", {})
871
887
  .n("HealthClient", "DescribeEventDetailsForOrganizationCommand")
872
- .f(void 0, void 0)
873
- .ser(se_DescribeEventDetailsForOrganizationCommand)
874
- .de(de_DescribeEventDetailsForOrganizationCommand)
888
+ .sc(DescribeEventDetailsForOrganization)
875
889
  .build() {
876
890
  }
877
891
 
@@ -879,16 +893,11 @@ class DescribeEventsCommand extends smithyClient.Command
879
893
  .classBuilder()
880
894
  .ep(commonParams)
881
895
  .m(function (Command, cs, config, o) {
882
- return [
883
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
884
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
885
- ];
896
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
886
897
  })
887
898
  .s("AWSHealth_20160804", "DescribeEvents", {})
888
899
  .n("HealthClient", "DescribeEventsCommand")
889
- .f(void 0, void 0)
890
- .ser(se_DescribeEventsCommand)
891
- .de(de_DescribeEventsCommand)
900
+ .sc(DescribeEvents)
892
901
  .build() {
893
902
  }
894
903
 
@@ -896,16 +905,11 @@ class DescribeEventsForOrganizationCommand extends smithyClient.Command
896
905
  .classBuilder()
897
906
  .ep(commonParams)
898
907
  .m(function (Command, cs, config, o) {
899
- return [
900
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
901
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
902
- ];
908
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
903
909
  })
904
910
  .s("AWSHealth_20160804", "DescribeEventsForOrganization", {})
905
911
  .n("HealthClient", "DescribeEventsForOrganizationCommand")
906
- .f(void 0, void 0)
907
- .ser(se_DescribeEventsForOrganizationCommand)
908
- .de(de_DescribeEventsForOrganizationCommand)
912
+ .sc(DescribeEventsForOrganization)
909
913
  .build() {
910
914
  }
911
915
 
@@ -913,16 +917,11 @@ class DescribeEventTypesCommand extends smithyClient.Command
913
917
  .classBuilder()
914
918
  .ep(commonParams)
915
919
  .m(function (Command, cs, config, o) {
916
- return [
917
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
918
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
919
- ];
920
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
920
921
  })
921
922
  .s("AWSHealth_20160804", "DescribeEventTypes", {})
922
923
  .n("HealthClient", "DescribeEventTypesCommand")
923
- .f(void 0, void 0)
924
- .ser(se_DescribeEventTypesCommand)
925
- .de(de_DescribeEventTypesCommand)
924
+ .sc(DescribeEventTypes)
926
925
  .build() {
927
926
  }
928
927
 
@@ -930,16 +929,11 @@ class DescribeHealthServiceStatusForOrganizationCommand extends smithyClient.Com
930
929
  .classBuilder()
931
930
  .ep(commonParams)
932
931
  .m(function (Command, cs, config, o) {
933
- return [
934
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
935
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
936
- ];
932
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
937
933
  })
938
934
  .s("AWSHealth_20160804", "DescribeHealthServiceStatusForOrganization", {})
939
935
  .n("HealthClient", "DescribeHealthServiceStatusForOrganizationCommand")
940
- .f(void 0, void 0)
941
- .ser(se_DescribeHealthServiceStatusForOrganizationCommand)
942
- .de(de_DescribeHealthServiceStatusForOrganizationCommand)
936
+ .sc(DescribeHealthServiceStatusForOrganization)
943
937
  .build() {
944
938
  }
945
939
 
@@ -947,16 +941,11 @@ class DisableHealthServiceAccessForOrganizationCommand extends smithyClient.Comm
947
941
  .classBuilder()
948
942
  .ep(commonParams)
949
943
  .m(function (Command, cs, config, o) {
950
- return [
951
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
952
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
953
- ];
944
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
954
945
  })
955
946
  .s("AWSHealth_20160804", "DisableHealthServiceAccessForOrganization", {})
956
947
  .n("HealthClient", "DisableHealthServiceAccessForOrganizationCommand")
957
- .f(void 0, void 0)
958
- .ser(se_DisableHealthServiceAccessForOrganizationCommand)
959
- .de(de_DisableHealthServiceAccessForOrganizationCommand)
948
+ .sc(DisableHealthServiceAccessForOrganization)
960
949
  .build() {
961
950
  }
962
951
 
@@ -964,16 +953,11 @@ class EnableHealthServiceAccessForOrganizationCommand extends smithyClient.Comma
964
953
  .classBuilder()
965
954
  .ep(commonParams)
966
955
  .m(function (Command, cs, config, o) {
967
- return [
968
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
969
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
970
- ];
956
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
971
957
  })
972
958
  .s("AWSHealth_20160804", "EnableHealthServiceAccessForOrganization", {})
973
959
  .n("HealthClient", "EnableHealthServiceAccessForOrganizationCommand")
974
- .f(void 0, void 0)
975
- .ser(se_EnableHealthServiceAccessForOrganizationCommand)
976
- .de(de_EnableHealthServiceAccessForOrganizationCommand)
960
+ .sc(EnableHealthServiceAccessForOrganization)
977
961
  .build() {
978
962
  }
979
963
 
@@ -1019,7 +1003,7 @@ Object.defineProperty(exports, "__Client", {
1019
1003
  enumerable: true,
1020
1004
  get: function () { return smithyClient.Client; }
1021
1005
  });
1022
- exports.ConcurrentModificationException = ConcurrentModificationException;
1006
+ exports.ConcurrentModificationException = ConcurrentModificationException$1;
1023
1007
  exports.DescribeAffectedAccountsForOrganizationCommand = DescribeAffectedAccountsForOrganizationCommand;
1024
1008
  exports.DescribeAffectedEntitiesCommand = DescribeAffectedEntitiesCommand;
1025
1009
  exports.DescribeAffectedEntitiesForOrganizationCommand = DescribeAffectedEntitiesForOrganizationCommand;
@@ -1041,9 +1025,9 @@ exports.EventStatusCode = EventStatusCode;
1041
1025
  exports.EventTypeCategory = EventTypeCategory;
1042
1026
  exports.Health = Health;
1043
1027
  exports.HealthClient = HealthClient;
1044
- exports.HealthServiceException = HealthServiceException;
1045
- exports.InvalidPaginationToken = InvalidPaginationToken;
1046
- exports.UnsupportedLocale = UnsupportedLocale;
1028
+ exports.HealthServiceException = HealthServiceException$1;
1029
+ exports.InvalidPaginationToken = InvalidPaginationToken$1;
1030
+ exports.UnsupportedLocale = UnsupportedLocale$1;
1047
1031
  exports.paginateDescribeAffectedAccountsForOrganization = paginateDescribeAffectedAccountsForOrganization;
1048
1032
  exports.paginateDescribeAffectedEntities = paginateDescribeAffectedEntities;
1049
1033
  exports.paginateDescribeAffectedEntitiesForOrganization = paginateDescribeAffectedEntitiesForOrganization;