@aws-sdk/client-health 3.490.0 → 3.496.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/Health.js +1 -39
  2. package/dist-cjs/HealthClient.js +1 -43
  3. package/dist-cjs/commands/DescribeAffectedAccountsForOrganizationCommand.js +1 -28
  4. package/dist-cjs/commands/DescribeAffectedEntitiesCommand.js +1 -28
  5. package/dist-cjs/commands/DescribeAffectedEntitiesForOrganizationCommand.js +1 -28
  6. package/dist-cjs/commands/DescribeEntityAggregatesCommand.js +1 -28
  7. package/dist-cjs/commands/DescribeEntityAggregatesForOrganizationCommand.js +1 -28
  8. package/dist-cjs/commands/DescribeEventAggregatesCommand.js +1 -28
  9. package/dist-cjs/commands/DescribeEventDetailsCommand.js +1 -28
  10. package/dist-cjs/commands/DescribeEventDetailsForOrganizationCommand.js +1 -28
  11. package/dist-cjs/commands/DescribeEventTypesCommand.js +1 -28
  12. package/dist-cjs/commands/DescribeEventsCommand.js +1 -28
  13. package/dist-cjs/commands/DescribeEventsForOrganizationCommand.js +1 -28
  14. package/dist-cjs/commands/DescribeHealthServiceStatusForOrganizationCommand.js +1 -28
  15. package/dist-cjs/commands/DisableHealthServiceAccessForOrganizationCommand.js +1 -28
  16. package/dist-cjs/commands/EnableHealthServiceAccessForOrganizationCommand.js +1 -28
  17. package/dist-cjs/commands/index.js +1 -17
  18. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  19. package/dist-cjs/extensionConfiguration.js +1 -2
  20. package/dist-cjs/index.js +1404 -11
  21. package/dist-cjs/models/HealthServiceException.js +1 -12
  22. package/dist-cjs/models/index.js +1 -4
  23. package/dist-cjs/models/models_0.js +1 -69
  24. package/dist-cjs/pagination/DescribeAffectedAccountsForOrganizationPaginator.js +1 -7
  25. package/dist-cjs/pagination/DescribeAffectedEntitiesForOrganizationPaginator.js +1 -7
  26. package/dist-cjs/pagination/DescribeAffectedEntitiesPaginator.js +1 -7
  27. package/dist-cjs/pagination/DescribeEventAggregatesPaginator.js +1 -7
  28. package/dist-cjs/pagination/DescribeEventTypesPaginator.js +1 -7
  29. package/dist-cjs/pagination/DescribeEventsForOrganizationPaginator.js +1 -7
  30. package/dist-cjs/pagination/DescribeEventsPaginator.js +1 -7
  31. package/dist-cjs/pagination/Interfaces.js +1 -2
  32. package/dist-cjs/pagination/index.js +1 -11
  33. package/dist-cjs/protocols/Aws_json1_1.js +1 -874
  34. package/dist-cjs/runtimeExtensions.js +1 -22
  35. package/package.json +40 -40
package/dist-cjs/index.js CHANGED
@@ -1,12 +1,1405 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HealthServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./HealthClient"), exports);
6
- tslib_1.__exportStar(require("./Health"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./models"), exports);
10
- require("@aws-sdk/util-endpoints");
11
- var HealthServiceException_1 = require("./models/HealthServiceException");
12
- Object.defineProperty(exports, "HealthServiceException", { enumerable: true, get: function () { return HealthServiceException_1.HealthServiceException; } });
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var src_exports = {};
23
+ __export(src_exports, {
24
+ ConcurrentModificationException: () => ConcurrentModificationException,
25
+ DescribeAffectedAccountsForOrganizationCommand: () => DescribeAffectedAccountsForOrganizationCommand,
26
+ DescribeAffectedEntitiesCommand: () => DescribeAffectedEntitiesCommand,
27
+ DescribeAffectedEntitiesForOrganizationCommand: () => DescribeAffectedEntitiesForOrganizationCommand,
28
+ DescribeEntityAggregatesCommand: () => DescribeEntityAggregatesCommand,
29
+ DescribeEntityAggregatesForOrganizationCommand: () => DescribeEntityAggregatesForOrganizationCommand,
30
+ DescribeEventAggregatesCommand: () => DescribeEventAggregatesCommand,
31
+ DescribeEventDetailsCommand: () => DescribeEventDetailsCommand,
32
+ DescribeEventDetailsForOrganizationCommand: () => DescribeEventDetailsForOrganizationCommand,
33
+ DescribeEventTypesCommand: () => DescribeEventTypesCommand,
34
+ DescribeEventsCommand: () => DescribeEventsCommand,
35
+ DescribeEventsForOrganizationCommand: () => DescribeEventsForOrganizationCommand,
36
+ DescribeHealthServiceStatusForOrganizationCommand: () => DescribeHealthServiceStatusForOrganizationCommand,
37
+ DisableHealthServiceAccessForOrganizationCommand: () => DisableHealthServiceAccessForOrganizationCommand,
38
+ EnableHealthServiceAccessForOrganizationCommand: () => EnableHealthServiceAccessForOrganizationCommand,
39
+ EntityStatusCode: () => EntityStatusCode,
40
+ EventAggregateField: () => EventAggregateField,
41
+ EventScopeCode: () => EventScopeCode,
42
+ EventStatusCode: () => EventStatusCode,
43
+ EventTypeCategory: () => EventTypeCategory,
44
+ Health: () => Health,
45
+ HealthClient: () => HealthClient,
46
+ HealthServiceException: () => HealthServiceException,
47
+ InvalidPaginationToken: () => InvalidPaginationToken,
48
+ UnsupportedLocale: () => UnsupportedLocale,
49
+ __Client: () => import_smithy_client.Client,
50
+ paginateDescribeAffectedAccountsForOrganization: () => paginateDescribeAffectedAccountsForOrganization,
51
+ paginateDescribeAffectedEntities: () => paginateDescribeAffectedEntities,
52
+ paginateDescribeAffectedEntitiesForOrganization: () => paginateDescribeAffectedEntitiesForOrganization,
53
+ paginateDescribeEventAggregates: () => paginateDescribeEventAggregates,
54
+ paginateDescribeEventTypes: () => paginateDescribeEventTypes,
55
+ paginateDescribeEvents: () => paginateDescribeEvents,
56
+ paginateDescribeEventsForOrganization: () => paginateDescribeEventsForOrganization
57
+ });
58
+ module.exports = __toCommonJS(src_exports);
59
+
60
+ // src/HealthClient.ts
61
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
62
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
63
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
64
+ var import_middleware_signing = require("@aws-sdk/middleware-signing");
65
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
66
+ var import_config_resolver = require("@smithy/config-resolver");
67
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
68
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
69
+ var import_middleware_retry = require("@smithy/middleware-retry");
70
+
71
+
72
+ // src/endpoint/EndpointParameters.ts
73
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
74
+ return {
75
+ ...options,
76
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
77
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
78
+ defaultSigningName: "health"
79
+ };
80
+ }, "resolveClientEndpointParameters");
81
+ var commonParams = {
82
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
83
+ Endpoint: { type: "builtInParams", name: "endpoint" },
84
+ Region: { type: "builtInParams", name: "region" },
85
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
86
+ };
87
+
88
+ // src/HealthClient.ts
89
+ var import_runtimeConfig = require("././runtimeConfig");
90
+
91
+ // src/runtimeExtensions.ts
92
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
93
+ var import_protocol_http = require("@smithy/protocol-http");
94
+ var import_smithy_client = require("@smithy/smithy-client");
95
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
96
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
97
+ const extensionConfiguration = {
98
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
99
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
100
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
101
+ };
102
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
103
+ return {
104
+ ...runtimeConfig,
105
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
106
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
107
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
108
+ };
109
+ }, "resolveRuntimeExtensions");
110
+
111
+ // src/HealthClient.ts
112
+ var _HealthClient = class _HealthClient extends import_smithy_client.Client {
113
+ constructor(...[configuration]) {
114
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
115
+ const _config_1 = resolveClientEndpointParameters(_config_0);
116
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
117
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
118
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
119
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
120
+ const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
121
+ const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
122
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
123
+ super(_config_8);
124
+ this.config = _config_8;
125
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
126
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
127
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
128
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
129
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
130
+ this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
131
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
132
+ }
133
+ /**
134
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
135
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
136
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
137
+ */
138
+ destroy() {
139
+ super.destroy();
140
+ }
141
+ };
142
+ __name(_HealthClient, "HealthClient");
143
+ var HealthClient = _HealthClient;
144
+
145
+ // src/Health.ts
146
+
147
+
148
+ // src/commands/DescribeAffectedAccountsForOrganizationCommand.ts
149
+
150
+ var import_middleware_serde = require("@smithy/middleware-serde");
151
+
152
+ var import_types = require("@smithy/types");
153
+
154
+ // src/protocols/Aws_json1_1.ts
155
+
156
+
157
+
158
+ // src/models/HealthServiceException.ts
159
+
160
+ var _HealthServiceException = class _HealthServiceException extends import_smithy_client.ServiceException {
161
+ /**
162
+ * @internal
163
+ */
164
+ constructor(options) {
165
+ super(options);
166
+ Object.setPrototypeOf(this, _HealthServiceException.prototype);
167
+ }
168
+ };
169
+ __name(_HealthServiceException, "HealthServiceException");
170
+ var HealthServiceException = _HealthServiceException;
171
+
172
+ // src/models/models_0.ts
173
+ var EntityStatusCode = {
174
+ IMPAIRED: "IMPAIRED",
175
+ PENDING: "PENDING",
176
+ RESOLVED: "RESOLVED",
177
+ UNIMPAIRED: "UNIMPAIRED",
178
+ UNKNOWN: "UNKNOWN"
179
+ };
180
+ var EventScopeCode = {
181
+ ACCOUNT_SPECIFIC: "ACCOUNT_SPECIFIC",
182
+ NONE: "NONE",
183
+ PUBLIC: "PUBLIC"
184
+ };
185
+ var _InvalidPaginationToken = class _InvalidPaginationToken extends HealthServiceException {
186
+ /**
187
+ * @internal
188
+ */
189
+ constructor(opts) {
190
+ super({
191
+ name: "InvalidPaginationToken",
192
+ $fault: "client",
193
+ ...opts
194
+ });
195
+ this.name = "InvalidPaginationToken";
196
+ this.$fault = "client";
197
+ Object.setPrototypeOf(this, _InvalidPaginationToken.prototype);
198
+ }
199
+ };
200
+ __name(_InvalidPaginationToken, "InvalidPaginationToken");
201
+ var InvalidPaginationToken = _InvalidPaginationToken;
202
+ var _UnsupportedLocale = class _UnsupportedLocale extends HealthServiceException {
203
+ /**
204
+ * @internal
205
+ */
206
+ constructor(opts) {
207
+ super({
208
+ name: "UnsupportedLocale",
209
+ $fault: "client",
210
+ ...opts
211
+ });
212
+ this.name = "UnsupportedLocale";
213
+ this.$fault = "client";
214
+ Object.setPrototypeOf(this, _UnsupportedLocale.prototype);
215
+ }
216
+ };
217
+ __name(_UnsupportedLocale, "UnsupportedLocale");
218
+ var UnsupportedLocale = _UnsupportedLocale;
219
+ var EventAggregateField = {
220
+ EventTypeCategory: "eventTypeCategory"
221
+ };
222
+ var EventStatusCode = {
223
+ CLOSED: "closed",
224
+ OPEN: "open",
225
+ UPCOMING: "upcoming"
226
+ };
227
+ var EventTypeCategory = {
228
+ ACCOUNT_NOTIFICATION: "accountNotification",
229
+ INVESTIGATION: "investigation",
230
+ ISSUE: "issue",
231
+ SCHEDULED_CHANGE: "scheduledChange"
232
+ };
233
+ var _ConcurrentModificationException = class _ConcurrentModificationException extends HealthServiceException {
234
+ /**
235
+ * @internal
236
+ */
237
+ constructor(opts) {
238
+ super({
239
+ name: "ConcurrentModificationException",
240
+ $fault: "client",
241
+ ...opts
242
+ });
243
+ this.name = "ConcurrentModificationException";
244
+ this.$fault = "client";
245
+ Object.setPrototypeOf(this, _ConcurrentModificationException.prototype);
246
+ }
247
+ };
248
+ __name(_ConcurrentModificationException, "ConcurrentModificationException");
249
+ var ConcurrentModificationException = _ConcurrentModificationException;
250
+
251
+ // src/protocols/Aws_json1_1.ts
252
+ var se_DescribeAffectedAccountsForOrganizationCommand = /* @__PURE__ */ __name(async (input, context) => {
253
+ const headers = sharedHeaders("DescribeAffectedAccountsForOrganization");
254
+ let body;
255
+ body = JSON.stringify((0, import_smithy_client._json)(input));
256
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
257
+ }, "se_DescribeAffectedAccountsForOrganizationCommand");
258
+ var se_DescribeAffectedEntitiesCommand = /* @__PURE__ */ __name(async (input, context) => {
259
+ const headers = sharedHeaders("DescribeAffectedEntities");
260
+ let body;
261
+ body = JSON.stringify(se_DescribeAffectedEntitiesRequest(input, context));
262
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
263
+ }, "se_DescribeAffectedEntitiesCommand");
264
+ var se_DescribeAffectedEntitiesForOrganizationCommand = /* @__PURE__ */ __name(async (input, context) => {
265
+ const headers = sharedHeaders("DescribeAffectedEntitiesForOrganization");
266
+ let body;
267
+ body = JSON.stringify((0, import_smithy_client._json)(input));
268
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
269
+ }, "se_DescribeAffectedEntitiesForOrganizationCommand");
270
+ var se_DescribeEntityAggregatesCommand = /* @__PURE__ */ __name(async (input, context) => {
271
+ const headers = sharedHeaders("DescribeEntityAggregates");
272
+ let body;
273
+ body = JSON.stringify((0, import_smithy_client._json)(input));
274
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
275
+ }, "se_DescribeEntityAggregatesCommand");
276
+ var se_DescribeEntityAggregatesForOrganizationCommand = /* @__PURE__ */ __name(async (input, context) => {
277
+ const headers = sharedHeaders("DescribeEntityAggregatesForOrganization");
278
+ let body;
279
+ body = JSON.stringify((0, import_smithy_client._json)(input));
280
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
281
+ }, "se_DescribeEntityAggregatesForOrganizationCommand");
282
+ var se_DescribeEventAggregatesCommand = /* @__PURE__ */ __name(async (input, context) => {
283
+ const headers = sharedHeaders("DescribeEventAggregates");
284
+ let body;
285
+ body = JSON.stringify(se_DescribeEventAggregatesRequest(input, context));
286
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
287
+ }, "se_DescribeEventAggregatesCommand");
288
+ var se_DescribeEventDetailsCommand = /* @__PURE__ */ __name(async (input, context) => {
289
+ const headers = sharedHeaders("DescribeEventDetails");
290
+ let body;
291
+ body = JSON.stringify((0, import_smithy_client._json)(input));
292
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
293
+ }, "se_DescribeEventDetailsCommand");
294
+ var se_DescribeEventDetailsForOrganizationCommand = /* @__PURE__ */ __name(async (input, context) => {
295
+ const headers = sharedHeaders("DescribeEventDetailsForOrganization");
296
+ let body;
297
+ body = JSON.stringify((0, import_smithy_client._json)(input));
298
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
299
+ }, "se_DescribeEventDetailsForOrganizationCommand");
300
+ var se_DescribeEventsCommand = /* @__PURE__ */ __name(async (input, context) => {
301
+ const headers = sharedHeaders("DescribeEvents");
302
+ let body;
303
+ body = JSON.stringify(se_DescribeEventsRequest(input, context));
304
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
305
+ }, "se_DescribeEventsCommand");
306
+ var se_DescribeEventsForOrganizationCommand = /* @__PURE__ */ __name(async (input, context) => {
307
+ const headers = sharedHeaders("DescribeEventsForOrganization");
308
+ let body;
309
+ body = JSON.stringify(se_DescribeEventsForOrganizationRequest(input, context));
310
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
311
+ }, "se_DescribeEventsForOrganizationCommand");
312
+ var se_DescribeEventTypesCommand = /* @__PURE__ */ __name(async (input, context) => {
313
+ const headers = sharedHeaders("DescribeEventTypes");
314
+ let body;
315
+ body = JSON.stringify((0, import_smithy_client._json)(input));
316
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
317
+ }, "se_DescribeEventTypesCommand");
318
+ var se_DescribeHealthServiceStatusForOrganizationCommand = /* @__PURE__ */ __name(async (input, context) => {
319
+ const headers = sharedHeaders("DescribeHealthServiceStatusForOrganization");
320
+ const body = "{}";
321
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
322
+ }, "se_DescribeHealthServiceStatusForOrganizationCommand");
323
+ var se_DisableHealthServiceAccessForOrganizationCommand = /* @__PURE__ */ __name(async (input, context) => {
324
+ const headers = sharedHeaders("DisableHealthServiceAccessForOrganization");
325
+ const body = "{}";
326
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
327
+ }, "se_DisableHealthServiceAccessForOrganizationCommand");
328
+ var se_EnableHealthServiceAccessForOrganizationCommand = /* @__PURE__ */ __name(async (input, context) => {
329
+ const headers = sharedHeaders("EnableHealthServiceAccessForOrganization");
330
+ const body = "{}";
331
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
332
+ }, "se_EnableHealthServiceAccessForOrganizationCommand");
333
+ var de_DescribeAffectedAccountsForOrganizationCommand = /* @__PURE__ */ __name(async (output, context) => {
334
+ if (output.statusCode >= 300) {
335
+ return de_DescribeAffectedAccountsForOrganizationCommandError(output, context);
336
+ }
337
+ const data = await parseBody(output.body, context);
338
+ let contents = {};
339
+ contents = (0, import_smithy_client._json)(data);
340
+ const response = {
341
+ $metadata: deserializeMetadata(output),
342
+ ...contents
343
+ };
344
+ return response;
345
+ }, "de_DescribeAffectedAccountsForOrganizationCommand");
346
+ var de_DescribeAffectedAccountsForOrganizationCommandError = /* @__PURE__ */ __name(async (output, context) => {
347
+ const parsedOutput = {
348
+ ...output,
349
+ body: await parseErrorBody(output.body, context)
350
+ };
351
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
352
+ switch (errorCode) {
353
+ case "InvalidPaginationToken":
354
+ case "com.amazonaws.health#InvalidPaginationToken":
355
+ throw await de_InvalidPaginationTokenRes(parsedOutput, context);
356
+ default:
357
+ const parsedBody = parsedOutput.body;
358
+ return throwDefaultError({
359
+ output,
360
+ parsedBody,
361
+ errorCode
362
+ });
363
+ }
364
+ }, "de_DescribeAffectedAccountsForOrganizationCommandError");
365
+ var de_DescribeAffectedEntitiesCommand = /* @__PURE__ */ __name(async (output, context) => {
366
+ if (output.statusCode >= 300) {
367
+ return de_DescribeAffectedEntitiesCommandError(output, context);
368
+ }
369
+ const data = await parseBody(output.body, context);
370
+ let contents = {};
371
+ contents = de_DescribeAffectedEntitiesResponse(data, context);
372
+ const response = {
373
+ $metadata: deserializeMetadata(output),
374
+ ...contents
375
+ };
376
+ return response;
377
+ }, "de_DescribeAffectedEntitiesCommand");
378
+ var de_DescribeAffectedEntitiesCommandError = /* @__PURE__ */ __name(async (output, context) => {
379
+ const parsedOutput = {
380
+ ...output,
381
+ body: await parseErrorBody(output.body, context)
382
+ };
383
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
384
+ switch (errorCode) {
385
+ case "InvalidPaginationToken":
386
+ case "com.amazonaws.health#InvalidPaginationToken":
387
+ throw await de_InvalidPaginationTokenRes(parsedOutput, context);
388
+ case "UnsupportedLocale":
389
+ case "com.amazonaws.health#UnsupportedLocale":
390
+ throw await de_UnsupportedLocaleRes(parsedOutput, context);
391
+ default:
392
+ const parsedBody = parsedOutput.body;
393
+ return throwDefaultError({
394
+ output,
395
+ parsedBody,
396
+ errorCode
397
+ });
398
+ }
399
+ }, "de_DescribeAffectedEntitiesCommandError");
400
+ var de_DescribeAffectedEntitiesForOrganizationCommand = /* @__PURE__ */ __name(async (output, context) => {
401
+ if (output.statusCode >= 300) {
402
+ return de_DescribeAffectedEntitiesForOrganizationCommandError(output, context);
403
+ }
404
+ const data = await parseBody(output.body, context);
405
+ let contents = {};
406
+ contents = de_DescribeAffectedEntitiesForOrganizationResponse(data, context);
407
+ const response = {
408
+ $metadata: deserializeMetadata(output),
409
+ ...contents
410
+ };
411
+ return response;
412
+ }, "de_DescribeAffectedEntitiesForOrganizationCommand");
413
+ var de_DescribeAffectedEntitiesForOrganizationCommandError = /* @__PURE__ */ __name(async (output, context) => {
414
+ const parsedOutput = {
415
+ ...output,
416
+ body: await parseErrorBody(output.body, context)
417
+ };
418
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
419
+ switch (errorCode) {
420
+ case "InvalidPaginationToken":
421
+ case "com.amazonaws.health#InvalidPaginationToken":
422
+ throw await de_InvalidPaginationTokenRes(parsedOutput, context);
423
+ case "UnsupportedLocale":
424
+ case "com.amazonaws.health#UnsupportedLocale":
425
+ throw await de_UnsupportedLocaleRes(parsedOutput, context);
426
+ default:
427
+ const parsedBody = parsedOutput.body;
428
+ return throwDefaultError({
429
+ output,
430
+ parsedBody,
431
+ errorCode
432
+ });
433
+ }
434
+ }, "de_DescribeAffectedEntitiesForOrganizationCommandError");
435
+ var de_DescribeEntityAggregatesCommand = /* @__PURE__ */ __name(async (output, context) => {
436
+ if (output.statusCode >= 300) {
437
+ return de_DescribeEntityAggregatesCommandError(output, context);
438
+ }
439
+ const data = await parseBody(output.body, context);
440
+ let contents = {};
441
+ contents = (0, import_smithy_client._json)(data);
442
+ const response = {
443
+ $metadata: deserializeMetadata(output),
444
+ ...contents
445
+ };
446
+ return response;
447
+ }, "de_DescribeEntityAggregatesCommand");
448
+ var de_DescribeEntityAggregatesCommandError = /* @__PURE__ */ __name(async (output, context) => {
449
+ const parsedOutput = {
450
+ ...output,
451
+ body: await parseErrorBody(output.body, context)
452
+ };
453
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
454
+ const parsedBody = parsedOutput.body;
455
+ return throwDefaultError({
456
+ output,
457
+ parsedBody,
458
+ errorCode
459
+ });
460
+ }, "de_DescribeEntityAggregatesCommandError");
461
+ var de_DescribeEntityAggregatesForOrganizationCommand = /* @__PURE__ */ __name(async (output, context) => {
462
+ if (output.statusCode >= 300) {
463
+ return de_DescribeEntityAggregatesForOrganizationCommandError(output, context);
464
+ }
465
+ const data = await parseBody(output.body, context);
466
+ let contents = {};
467
+ contents = (0, import_smithy_client._json)(data);
468
+ const response = {
469
+ $metadata: deserializeMetadata(output),
470
+ ...contents
471
+ };
472
+ return response;
473
+ }, "de_DescribeEntityAggregatesForOrganizationCommand");
474
+ var de_DescribeEntityAggregatesForOrganizationCommandError = /* @__PURE__ */ __name(async (output, context) => {
475
+ const parsedOutput = {
476
+ ...output,
477
+ body: await parseErrorBody(output.body, context)
478
+ };
479
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
480
+ const parsedBody = parsedOutput.body;
481
+ return throwDefaultError({
482
+ output,
483
+ parsedBody,
484
+ errorCode
485
+ });
486
+ }, "de_DescribeEntityAggregatesForOrganizationCommandError");
487
+ var de_DescribeEventAggregatesCommand = /* @__PURE__ */ __name(async (output, context) => {
488
+ if (output.statusCode >= 300) {
489
+ return de_DescribeEventAggregatesCommandError(output, context);
490
+ }
491
+ const data = await parseBody(output.body, context);
492
+ let contents = {};
493
+ contents = (0, import_smithy_client._json)(data);
494
+ const response = {
495
+ $metadata: deserializeMetadata(output),
496
+ ...contents
497
+ };
498
+ return response;
499
+ }, "de_DescribeEventAggregatesCommand");
500
+ var de_DescribeEventAggregatesCommandError = /* @__PURE__ */ __name(async (output, context) => {
501
+ const parsedOutput = {
502
+ ...output,
503
+ body: await parseErrorBody(output.body, context)
504
+ };
505
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
506
+ switch (errorCode) {
507
+ case "InvalidPaginationToken":
508
+ case "com.amazonaws.health#InvalidPaginationToken":
509
+ throw await de_InvalidPaginationTokenRes(parsedOutput, context);
510
+ default:
511
+ const parsedBody = parsedOutput.body;
512
+ return throwDefaultError({
513
+ output,
514
+ parsedBody,
515
+ errorCode
516
+ });
517
+ }
518
+ }, "de_DescribeEventAggregatesCommandError");
519
+ var de_DescribeEventDetailsCommand = /* @__PURE__ */ __name(async (output, context) => {
520
+ if (output.statusCode >= 300) {
521
+ return de_DescribeEventDetailsCommandError(output, context);
522
+ }
523
+ const data = await parseBody(output.body, context);
524
+ let contents = {};
525
+ contents = de_DescribeEventDetailsResponse(data, context);
526
+ const response = {
527
+ $metadata: deserializeMetadata(output),
528
+ ...contents
529
+ };
530
+ return response;
531
+ }, "de_DescribeEventDetailsCommand");
532
+ var de_DescribeEventDetailsCommandError = /* @__PURE__ */ __name(async (output, context) => {
533
+ const parsedOutput = {
534
+ ...output,
535
+ body: await parseErrorBody(output.body, context)
536
+ };
537
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
538
+ switch (errorCode) {
539
+ case "UnsupportedLocale":
540
+ case "com.amazonaws.health#UnsupportedLocale":
541
+ throw await de_UnsupportedLocaleRes(parsedOutput, context);
542
+ default:
543
+ const parsedBody = parsedOutput.body;
544
+ return throwDefaultError({
545
+ output,
546
+ parsedBody,
547
+ errorCode
548
+ });
549
+ }
550
+ }, "de_DescribeEventDetailsCommandError");
551
+ var de_DescribeEventDetailsForOrganizationCommand = /* @__PURE__ */ __name(async (output, context) => {
552
+ if (output.statusCode >= 300) {
553
+ return de_DescribeEventDetailsForOrganizationCommandError(output, context);
554
+ }
555
+ const data = await parseBody(output.body, context);
556
+ let contents = {};
557
+ contents = de_DescribeEventDetailsForOrganizationResponse(data, context);
558
+ const response = {
559
+ $metadata: deserializeMetadata(output),
560
+ ...contents
561
+ };
562
+ return response;
563
+ }, "de_DescribeEventDetailsForOrganizationCommand");
564
+ var de_DescribeEventDetailsForOrganizationCommandError = /* @__PURE__ */ __name(async (output, context) => {
565
+ const parsedOutput = {
566
+ ...output,
567
+ body: await parseErrorBody(output.body, context)
568
+ };
569
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
570
+ switch (errorCode) {
571
+ case "UnsupportedLocale":
572
+ case "com.amazonaws.health#UnsupportedLocale":
573
+ throw await de_UnsupportedLocaleRes(parsedOutput, context);
574
+ default:
575
+ const parsedBody = parsedOutput.body;
576
+ return throwDefaultError({
577
+ output,
578
+ parsedBody,
579
+ errorCode
580
+ });
581
+ }
582
+ }, "de_DescribeEventDetailsForOrganizationCommandError");
583
+ var de_DescribeEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
584
+ if (output.statusCode >= 300) {
585
+ return de_DescribeEventsCommandError(output, context);
586
+ }
587
+ const data = await parseBody(output.body, context);
588
+ let contents = {};
589
+ contents = de_DescribeEventsResponse(data, context);
590
+ const response = {
591
+ $metadata: deserializeMetadata(output),
592
+ ...contents
593
+ };
594
+ return response;
595
+ }, "de_DescribeEventsCommand");
596
+ var de_DescribeEventsCommandError = /* @__PURE__ */ __name(async (output, context) => {
597
+ const parsedOutput = {
598
+ ...output,
599
+ body: await parseErrorBody(output.body, context)
600
+ };
601
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
602
+ switch (errorCode) {
603
+ case "InvalidPaginationToken":
604
+ case "com.amazonaws.health#InvalidPaginationToken":
605
+ throw await de_InvalidPaginationTokenRes(parsedOutput, context);
606
+ case "UnsupportedLocale":
607
+ case "com.amazonaws.health#UnsupportedLocale":
608
+ throw await de_UnsupportedLocaleRes(parsedOutput, context);
609
+ default:
610
+ const parsedBody = parsedOutput.body;
611
+ return throwDefaultError({
612
+ output,
613
+ parsedBody,
614
+ errorCode
615
+ });
616
+ }
617
+ }, "de_DescribeEventsCommandError");
618
+ var de_DescribeEventsForOrganizationCommand = /* @__PURE__ */ __name(async (output, context) => {
619
+ if (output.statusCode >= 300) {
620
+ return de_DescribeEventsForOrganizationCommandError(output, context);
621
+ }
622
+ const data = await parseBody(output.body, context);
623
+ let contents = {};
624
+ contents = de_DescribeEventsForOrganizationResponse(data, context);
625
+ const response = {
626
+ $metadata: deserializeMetadata(output),
627
+ ...contents
628
+ };
629
+ return response;
630
+ }, "de_DescribeEventsForOrganizationCommand");
631
+ var de_DescribeEventsForOrganizationCommandError = /* @__PURE__ */ __name(async (output, context) => {
632
+ const parsedOutput = {
633
+ ...output,
634
+ body: await parseErrorBody(output.body, context)
635
+ };
636
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
637
+ switch (errorCode) {
638
+ case "InvalidPaginationToken":
639
+ case "com.amazonaws.health#InvalidPaginationToken":
640
+ throw await de_InvalidPaginationTokenRes(parsedOutput, context);
641
+ case "UnsupportedLocale":
642
+ case "com.amazonaws.health#UnsupportedLocale":
643
+ throw await de_UnsupportedLocaleRes(parsedOutput, context);
644
+ default:
645
+ const parsedBody = parsedOutput.body;
646
+ return throwDefaultError({
647
+ output,
648
+ parsedBody,
649
+ errorCode
650
+ });
651
+ }
652
+ }, "de_DescribeEventsForOrganizationCommandError");
653
+ var de_DescribeEventTypesCommand = /* @__PURE__ */ __name(async (output, context) => {
654
+ if (output.statusCode >= 300) {
655
+ return de_DescribeEventTypesCommandError(output, context);
656
+ }
657
+ const data = await parseBody(output.body, context);
658
+ let contents = {};
659
+ contents = (0, import_smithy_client._json)(data);
660
+ const response = {
661
+ $metadata: deserializeMetadata(output),
662
+ ...contents
663
+ };
664
+ return response;
665
+ }, "de_DescribeEventTypesCommand");
666
+ var de_DescribeEventTypesCommandError = /* @__PURE__ */ __name(async (output, context) => {
667
+ const parsedOutput = {
668
+ ...output,
669
+ body: await parseErrorBody(output.body, context)
670
+ };
671
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
672
+ switch (errorCode) {
673
+ case "InvalidPaginationToken":
674
+ case "com.amazonaws.health#InvalidPaginationToken":
675
+ throw await de_InvalidPaginationTokenRes(parsedOutput, context);
676
+ case "UnsupportedLocale":
677
+ case "com.amazonaws.health#UnsupportedLocale":
678
+ throw await de_UnsupportedLocaleRes(parsedOutput, context);
679
+ default:
680
+ const parsedBody = parsedOutput.body;
681
+ return throwDefaultError({
682
+ output,
683
+ parsedBody,
684
+ errorCode
685
+ });
686
+ }
687
+ }, "de_DescribeEventTypesCommandError");
688
+ var de_DescribeHealthServiceStatusForOrganizationCommand = /* @__PURE__ */ __name(async (output, context) => {
689
+ if (output.statusCode >= 300) {
690
+ return de_DescribeHealthServiceStatusForOrganizationCommandError(output, context);
691
+ }
692
+ const data = await parseBody(output.body, context);
693
+ let contents = {};
694
+ contents = (0, import_smithy_client._json)(data);
695
+ const response = {
696
+ $metadata: deserializeMetadata(output),
697
+ ...contents
698
+ };
699
+ return response;
700
+ }, "de_DescribeHealthServiceStatusForOrganizationCommand");
701
+ var de_DescribeHealthServiceStatusForOrganizationCommandError = /* @__PURE__ */ __name(async (output, context) => {
702
+ const parsedOutput = {
703
+ ...output,
704
+ body: await parseErrorBody(output.body, context)
705
+ };
706
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
707
+ const parsedBody = parsedOutput.body;
708
+ return throwDefaultError({
709
+ output,
710
+ parsedBody,
711
+ errorCode
712
+ });
713
+ }, "de_DescribeHealthServiceStatusForOrganizationCommandError");
714
+ var de_DisableHealthServiceAccessForOrganizationCommand = /* @__PURE__ */ __name(async (output, context) => {
715
+ if (output.statusCode >= 300) {
716
+ return de_DisableHealthServiceAccessForOrganizationCommandError(output, context);
717
+ }
718
+ await (0, import_smithy_client.collectBody)(output.body, context);
719
+ const response = {
720
+ $metadata: deserializeMetadata(output)
721
+ };
722
+ return response;
723
+ }, "de_DisableHealthServiceAccessForOrganizationCommand");
724
+ var de_DisableHealthServiceAccessForOrganizationCommandError = /* @__PURE__ */ __name(async (output, context) => {
725
+ const parsedOutput = {
726
+ ...output,
727
+ body: await parseErrorBody(output.body, context)
728
+ };
729
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
730
+ switch (errorCode) {
731
+ case "ConcurrentModificationException":
732
+ case "com.amazonaws.health#ConcurrentModificationException":
733
+ throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
734
+ default:
735
+ const parsedBody = parsedOutput.body;
736
+ return throwDefaultError({
737
+ output,
738
+ parsedBody,
739
+ errorCode
740
+ });
741
+ }
742
+ }, "de_DisableHealthServiceAccessForOrganizationCommandError");
743
+ var de_EnableHealthServiceAccessForOrganizationCommand = /* @__PURE__ */ __name(async (output, context) => {
744
+ if (output.statusCode >= 300) {
745
+ return de_EnableHealthServiceAccessForOrganizationCommandError(output, context);
746
+ }
747
+ await (0, import_smithy_client.collectBody)(output.body, context);
748
+ const response = {
749
+ $metadata: deserializeMetadata(output)
750
+ };
751
+ return response;
752
+ }, "de_EnableHealthServiceAccessForOrganizationCommand");
753
+ var de_EnableHealthServiceAccessForOrganizationCommandError = /* @__PURE__ */ __name(async (output, context) => {
754
+ const parsedOutput = {
755
+ ...output,
756
+ body: await parseErrorBody(output.body, context)
757
+ };
758
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
759
+ switch (errorCode) {
760
+ case "ConcurrentModificationException":
761
+ case "com.amazonaws.health#ConcurrentModificationException":
762
+ throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
763
+ default:
764
+ const parsedBody = parsedOutput.body;
765
+ return throwDefaultError({
766
+ output,
767
+ parsedBody,
768
+ errorCode
769
+ });
770
+ }
771
+ }, "de_EnableHealthServiceAccessForOrganizationCommandError");
772
+ var de_ConcurrentModificationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
773
+ const body = parsedOutput.body;
774
+ const deserialized = (0, import_smithy_client._json)(body);
775
+ const exception = new ConcurrentModificationException({
776
+ $metadata: deserializeMetadata(parsedOutput),
777
+ ...deserialized
778
+ });
779
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
780
+ }, "de_ConcurrentModificationExceptionRes");
781
+ var de_InvalidPaginationTokenRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
782
+ const body = parsedOutput.body;
783
+ const deserialized = (0, import_smithy_client._json)(body);
784
+ const exception = new InvalidPaginationToken({
785
+ $metadata: deserializeMetadata(parsedOutput),
786
+ ...deserialized
787
+ });
788
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
789
+ }, "de_InvalidPaginationTokenRes");
790
+ var de_UnsupportedLocaleRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
791
+ const body = parsedOutput.body;
792
+ const deserialized = (0, import_smithy_client._json)(body);
793
+ const exception = new UnsupportedLocale({
794
+ $metadata: deserializeMetadata(parsedOutput),
795
+ ...deserialized
796
+ });
797
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
798
+ }, "de_UnsupportedLocaleRes");
799
+ var se_DateTimeRange = /* @__PURE__ */ __name((input, context) => {
800
+ return (0, import_smithy_client.take)(input, {
801
+ from: (_) => Math.round(_.getTime() / 1e3),
802
+ to: (_) => Math.round(_.getTime() / 1e3)
803
+ });
804
+ }, "se_DateTimeRange");
805
+ var se_dateTimeRangeList = /* @__PURE__ */ __name((input, context) => {
806
+ return input.filter((e) => e != null).map((entry) => {
807
+ return se_DateTimeRange(entry, context);
808
+ });
809
+ }, "se_dateTimeRangeList");
810
+ var se_DescribeAffectedEntitiesRequest = /* @__PURE__ */ __name((input, context) => {
811
+ return (0, import_smithy_client.take)(input, {
812
+ filter: (_) => se_EntityFilter(_, context),
813
+ locale: [],
814
+ maxResults: [],
815
+ nextToken: []
816
+ });
817
+ }, "se_DescribeAffectedEntitiesRequest");
818
+ var se_DescribeEventAggregatesRequest = /* @__PURE__ */ __name((input, context) => {
819
+ return (0, import_smithy_client.take)(input, {
820
+ aggregateField: [],
821
+ filter: (_) => se_EventFilter(_, context),
822
+ maxResults: [],
823
+ nextToken: []
824
+ });
825
+ }, "se_DescribeEventAggregatesRequest");
826
+ var se_DescribeEventsForOrganizationRequest = /* @__PURE__ */ __name((input, context) => {
827
+ return (0, import_smithy_client.take)(input, {
828
+ filter: (_) => se_OrganizationEventFilter(_, context),
829
+ locale: [],
830
+ maxResults: [],
831
+ nextToken: []
832
+ });
833
+ }, "se_DescribeEventsForOrganizationRequest");
834
+ var se_DescribeEventsRequest = /* @__PURE__ */ __name((input, context) => {
835
+ return (0, import_smithy_client.take)(input, {
836
+ filter: (_) => se_EventFilter(_, context),
837
+ locale: [],
838
+ maxResults: [],
839
+ nextToken: []
840
+ });
841
+ }, "se_DescribeEventsRequest");
842
+ var se_EntityFilter = /* @__PURE__ */ __name((input, context) => {
843
+ return (0, import_smithy_client.take)(input, {
844
+ entityArns: import_smithy_client._json,
845
+ entityValues: import_smithy_client._json,
846
+ eventArns: import_smithy_client._json,
847
+ lastUpdatedTimes: (_) => se_dateTimeRangeList(_, context),
848
+ statusCodes: import_smithy_client._json,
849
+ tags: import_smithy_client._json
850
+ });
851
+ }, "se_EntityFilter");
852
+ var se_EventFilter = /* @__PURE__ */ __name((input, context) => {
853
+ return (0, import_smithy_client.take)(input, {
854
+ availabilityZones: import_smithy_client._json,
855
+ endTimes: (_) => se_dateTimeRangeList(_, context),
856
+ entityArns: import_smithy_client._json,
857
+ entityValues: import_smithy_client._json,
858
+ eventArns: import_smithy_client._json,
859
+ eventStatusCodes: import_smithy_client._json,
860
+ eventTypeCategories: import_smithy_client._json,
861
+ eventTypeCodes: import_smithy_client._json,
862
+ lastUpdatedTimes: (_) => se_dateTimeRangeList(_, context),
863
+ regions: import_smithy_client._json,
864
+ services: import_smithy_client._json,
865
+ startTimes: (_) => se_dateTimeRangeList(_, context),
866
+ tags: import_smithy_client._json
867
+ });
868
+ }, "se_EventFilter");
869
+ var se_OrganizationEventFilter = /* @__PURE__ */ __name((input, context) => {
870
+ return (0, import_smithy_client.take)(input, {
871
+ awsAccountIds: import_smithy_client._json,
872
+ endTime: (_) => se_DateTimeRange(_, context),
873
+ entityArns: import_smithy_client._json,
874
+ entityValues: import_smithy_client._json,
875
+ eventStatusCodes: import_smithy_client._json,
876
+ eventTypeCategories: import_smithy_client._json,
877
+ eventTypeCodes: import_smithy_client._json,
878
+ lastUpdatedTime: (_) => se_DateTimeRange(_, context),
879
+ regions: import_smithy_client._json,
880
+ services: import_smithy_client._json,
881
+ startTime: (_) => se_DateTimeRange(_, context)
882
+ });
883
+ }, "se_OrganizationEventFilter");
884
+ var de_AffectedEntity = /* @__PURE__ */ __name((output, context) => {
885
+ return (0, import_smithy_client.take)(output, {
886
+ awsAccountId: import_smithy_client.expectString,
887
+ entityArn: import_smithy_client.expectString,
888
+ entityUrl: import_smithy_client.expectString,
889
+ entityValue: import_smithy_client.expectString,
890
+ eventArn: import_smithy_client.expectString,
891
+ lastUpdatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
892
+ statusCode: import_smithy_client.expectString,
893
+ tags: import_smithy_client._json
894
+ });
895
+ }, "de_AffectedEntity");
896
+ var de_DescribeAffectedEntitiesForOrganizationResponse = /* @__PURE__ */ __name((output, context) => {
897
+ return (0, import_smithy_client.take)(output, {
898
+ entities: (_) => de_EntityList(_, context),
899
+ failedSet: import_smithy_client._json,
900
+ nextToken: import_smithy_client.expectString
901
+ });
902
+ }, "de_DescribeAffectedEntitiesForOrganizationResponse");
903
+ var de_DescribeAffectedEntitiesResponse = /* @__PURE__ */ __name((output, context) => {
904
+ return (0, import_smithy_client.take)(output, {
905
+ entities: (_) => de_EntityList(_, context),
906
+ nextToken: import_smithy_client.expectString
907
+ });
908
+ }, "de_DescribeAffectedEntitiesResponse");
909
+ var de_DescribeEventDetailsForOrganizationResponse = /* @__PURE__ */ __name((output, context) => {
910
+ return (0, import_smithy_client.take)(output, {
911
+ failedSet: import_smithy_client._json,
912
+ successfulSet: (_) => de_DescribeEventDetailsForOrganizationSuccessfulSet(_, context)
913
+ });
914
+ }, "de_DescribeEventDetailsForOrganizationResponse");
915
+ var de_DescribeEventDetailsForOrganizationSuccessfulSet = /* @__PURE__ */ __name((output, context) => {
916
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
917
+ return de_OrganizationEventDetails(entry, context);
918
+ });
919
+ return retVal;
920
+ }, "de_DescribeEventDetailsForOrganizationSuccessfulSet");
921
+ var de_DescribeEventDetailsResponse = /* @__PURE__ */ __name((output, context) => {
922
+ return (0, import_smithy_client.take)(output, {
923
+ failedSet: import_smithy_client._json,
924
+ successfulSet: (_) => de_DescribeEventDetailsSuccessfulSet(_, context)
925
+ });
926
+ }, "de_DescribeEventDetailsResponse");
927
+ var de_DescribeEventDetailsSuccessfulSet = /* @__PURE__ */ __name((output, context) => {
928
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
929
+ return de_EventDetails(entry, context);
930
+ });
931
+ return retVal;
932
+ }, "de_DescribeEventDetailsSuccessfulSet");
933
+ var de_DescribeEventsForOrganizationResponse = /* @__PURE__ */ __name((output, context) => {
934
+ return (0, import_smithy_client.take)(output, {
935
+ events: (_) => de_OrganizationEventList(_, context),
936
+ nextToken: import_smithy_client.expectString
937
+ });
938
+ }, "de_DescribeEventsForOrganizationResponse");
939
+ var de_DescribeEventsResponse = /* @__PURE__ */ __name((output, context) => {
940
+ return (0, import_smithy_client.take)(output, {
941
+ events: (_) => de_EventList(_, context),
942
+ nextToken: import_smithy_client.expectString
943
+ });
944
+ }, "de_DescribeEventsResponse");
945
+ var de_EntityList = /* @__PURE__ */ __name((output, context) => {
946
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
947
+ return de_AffectedEntity(entry, context);
948
+ });
949
+ return retVal;
950
+ }, "de_EntityList");
951
+ var de_Event = /* @__PURE__ */ __name((output, context) => {
952
+ return (0, import_smithy_client.take)(output, {
953
+ arn: import_smithy_client.expectString,
954
+ availabilityZone: import_smithy_client.expectString,
955
+ endTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
956
+ eventScopeCode: import_smithy_client.expectString,
957
+ eventTypeCategory: import_smithy_client.expectString,
958
+ eventTypeCode: import_smithy_client.expectString,
959
+ lastUpdatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
960
+ region: import_smithy_client.expectString,
961
+ service: import_smithy_client.expectString,
962
+ startTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
963
+ statusCode: import_smithy_client.expectString
964
+ });
965
+ }, "de_Event");
966
+ var de_EventDetails = /* @__PURE__ */ __name((output, context) => {
967
+ return (0, import_smithy_client.take)(output, {
968
+ event: (_) => de_Event(_, context),
969
+ eventDescription: import_smithy_client._json,
970
+ eventMetadata: import_smithy_client._json
971
+ });
972
+ }, "de_EventDetails");
973
+ var de_EventList = /* @__PURE__ */ __name((output, context) => {
974
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
975
+ return de_Event(entry, context);
976
+ });
977
+ return retVal;
978
+ }, "de_EventList");
979
+ var de_OrganizationEvent = /* @__PURE__ */ __name((output, context) => {
980
+ return (0, import_smithy_client.take)(output, {
981
+ arn: import_smithy_client.expectString,
982
+ endTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
983
+ eventScopeCode: import_smithy_client.expectString,
984
+ eventTypeCategory: import_smithy_client.expectString,
985
+ eventTypeCode: import_smithy_client.expectString,
986
+ lastUpdatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
987
+ region: import_smithy_client.expectString,
988
+ service: import_smithy_client.expectString,
989
+ startTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
990
+ statusCode: import_smithy_client.expectString
991
+ });
992
+ }, "de_OrganizationEvent");
993
+ var de_OrganizationEventDetails = /* @__PURE__ */ __name((output, context) => {
994
+ return (0, import_smithy_client.take)(output, {
995
+ awsAccountId: import_smithy_client.expectString,
996
+ event: (_) => de_Event(_, context),
997
+ eventDescription: import_smithy_client._json,
998
+ eventMetadata: import_smithy_client._json
999
+ });
1000
+ }, "de_OrganizationEventDetails");
1001
+ var de_OrganizationEventList = /* @__PURE__ */ __name((output, context) => {
1002
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1003
+ return de_OrganizationEvent(entry, context);
1004
+ });
1005
+ return retVal;
1006
+ }, "de_OrganizationEventList");
1007
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1008
+ httpStatusCode: output.statusCode,
1009
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1010
+ extendedRequestId: output.headers["x-amz-id-2"],
1011
+ cfId: output.headers["x-amz-cf-id"]
1012
+ }), "deserializeMetadata");
1013
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
1014
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(HealthServiceException);
1015
+ var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
1016
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1017
+ const contents = {
1018
+ protocol,
1019
+ hostname,
1020
+ port,
1021
+ method: "POST",
1022
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
1023
+ headers
1024
+ };
1025
+ if (resolvedHostname !== void 0) {
1026
+ contents.hostname = resolvedHostname;
1027
+ }
1028
+ if (body !== void 0) {
1029
+ contents.body = body;
1030
+ }
1031
+ return new import_protocol_http.HttpRequest(contents);
1032
+ }, "buildHttpRpcRequest");
1033
+ function sharedHeaders(operation) {
1034
+ return {
1035
+ "content-type": "application/x-amz-json-1.1",
1036
+ "x-amz-target": `AWSHealth_20160804.${operation}`
1037
+ };
1038
+ }
1039
+ __name(sharedHeaders, "sharedHeaders");
1040
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1041
+ if (encoded.length) {
1042
+ return JSON.parse(encoded);
1043
+ }
1044
+ return {};
1045
+ }), "parseBody");
1046
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
1047
+ const value = await parseBody(errorBody, context);
1048
+ value.message = value.message ?? value.Message;
1049
+ return value;
1050
+ }, "parseErrorBody");
1051
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
1052
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
1053
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
1054
+ let cleanValue = rawValue;
1055
+ if (typeof cleanValue === "number") {
1056
+ cleanValue = cleanValue.toString();
1057
+ }
1058
+ if (cleanValue.indexOf(",") >= 0) {
1059
+ cleanValue = cleanValue.split(",")[0];
1060
+ }
1061
+ if (cleanValue.indexOf(":") >= 0) {
1062
+ cleanValue = cleanValue.split(":")[0];
1063
+ }
1064
+ if (cleanValue.indexOf("#") >= 0) {
1065
+ cleanValue = cleanValue.split("#")[1];
1066
+ }
1067
+ return cleanValue;
1068
+ }, "sanitizeErrorCode");
1069
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
1070
+ if (headerKey !== void 0) {
1071
+ return sanitizeErrorCode(output.headers[headerKey]);
1072
+ }
1073
+ if (data.code !== void 0) {
1074
+ return sanitizeErrorCode(data.code);
1075
+ }
1076
+ if (data["__type"] !== void 0) {
1077
+ return sanitizeErrorCode(data["__type"]);
1078
+ }
1079
+ }, "loadRestJsonErrorCode");
1080
+
1081
+ // src/commands/DescribeAffectedAccountsForOrganizationCommand.ts
1082
+ var _DescribeAffectedAccountsForOrganizationCommand = class _DescribeAffectedAccountsForOrganizationCommand extends import_smithy_client.Command.classBuilder().ep({
1083
+ ...commonParams
1084
+ }).m(function(Command, cs, config, o) {
1085
+ return [
1086
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1087
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1088
+ ];
1089
+ }).s("AWSHealth_20160804", "DescribeAffectedAccountsForOrganization", {}).n("HealthClient", "DescribeAffectedAccountsForOrganizationCommand").f(void 0, void 0).ser(se_DescribeAffectedAccountsForOrganizationCommand).de(de_DescribeAffectedAccountsForOrganizationCommand).build() {
1090
+ };
1091
+ __name(_DescribeAffectedAccountsForOrganizationCommand, "DescribeAffectedAccountsForOrganizationCommand");
1092
+ var DescribeAffectedAccountsForOrganizationCommand = _DescribeAffectedAccountsForOrganizationCommand;
1093
+
1094
+ // src/commands/DescribeAffectedEntitiesCommand.ts
1095
+
1096
+
1097
+
1098
+
1099
+ var _DescribeAffectedEntitiesCommand = class _DescribeAffectedEntitiesCommand extends import_smithy_client.Command.classBuilder().ep({
1100
+ ...commonParams
1101
+ }).m(function(Command, cs, config, o) {
1102
+ return [
1103
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1104
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1105
+ ];
1106
+ }).s("AWSHealth_20160804", "DescribeAffectedEntities", {}).n("HealthClient", "DescribeAffectedEntitiesCommand").f(void 0, void 0).ser(se_DescribeAffectedEntitiesCommand).de(de_DescribeAffectedEntitiesCommand).build() {
1107
+ };
1108
+ __name(_DescribeAffectedEntitiesCommand, "DescribeAffectedEntitiesCommand");
1109
+ var DescribeAffectedEntitiesCommand = _DescribeAffectedEntitiesCommand;
1110
+
1111
+ // src/commands/DescribeAffectedEntitiesForOrganizationCommand.ts
1112
+
1113
+
1114
+
1115
+
1116
+ var _DescribeAffectedEntitiesForOrganizationCommand = class _DescribeAffectedEntitiesForOrganizationCommand extends import_smithy_client.Command.classBuilder().ep({
1117
+ ...commonParams
1118
+ }).m(function(Command, cs, config, o) {
1119
+ return [
1120
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1121
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1122
+ ];
1123
+ }).s("AWSHealth_20160804", "DescribeAffectedEntitiesForOrganization", {}).n("HealthClient", "DescribeAffectedEntitiesForOrganizationCommand").f(void 0, void 0).ser(se_DescribeAffectedEntitiesForOrganizationCommand).de(de_DescribeAffectedEntitiesForOrganizationCommand).build() {
1124
+ };
1125
+ __name(_DescribeAffectedEntitiesForOrganizationCommand, "DescribeAffectedEntitiesForOrganizationCommand");
1126
+ var DescribeAffectedEntitiesForOrganizationCommand = _DescribeAffectedEntitiesForOrganizationCommand;
1127
+
1128
+ // src/commands/DescribeEntityAggregatesCommand.ts
1129
+
1130
+
1131
+
1132
+
1133
+ var _DescribeEntityAggregatesCommand = class _DescribeEntityAggregatesCommand extends import_smithy_client.Command.classBuilder().ep({
1134
+ ...commonParams
1135
+ }).m(function(Command, cs, config, o) {
1136
+ return [
1137
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1138
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1139
+ ];
1140
+ }).s("AWSHealth_20160804", "DescribeEntityAggregates", {}).n("HealthClient", "DescribeEntityAggregatesCommand").f(void 0, void 0).ser(se_DescribeEntityAggregatesCommand).de(de_DescribeEntityAggregatesCommand).build() {
1141
+ };
1142
+ __name(_DescribeEntityAggregatesCommand, "DescribeEntityAggregatesCommand");
1143
+ var DescribeEntityAggregatesCommand = _DescribeEntityAggregatesCommand;
1144
+
1145
+ // src/commands/DescribeEntityAggregatesForOrganizationCommand.ts
1146
+
1147
+
1148
+
1149
+
1150
+ var _DescribeEntityAggregatesForOrganizationCommand = class _DescribeEntityAggregatesForOrganizationCommand extends import_smithy_client.Command.classBuilder().ep({
1151
+ ...commonParams
1152
+ }).m(function(Command, cs, config, o) {
1153
+ return [
1154
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1155
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1156
+ ];
1157
+ }).s("AWSHealth_20160804", "DescribeEntityAggregatesForOrganization", {}).n("HealthClient", "DescribeEntityAggregatesForOrganizationCommand").f(void 0, void 0).ser(se_DescribeEntityAggregatesForOrganizationCommand).de(de_DescribeEntityAggregatesForOrganizationCommand).build() {
1158
+ };
1159
+ __name(_DescribeEntityAggregatesForOrganizationCommand, "DescribeEntityAggregatesForOrganizationCommand");
1160
+ var DescribeEntityAggregatesForOrganizationCommand = _DescribeEntityAggregatesForOrganizationCommand;
1161
+
1162
+ // src/commands/DescribeEventAggregatesCommand.ts
1163
+
1164
+
1165
+
1166
+
1167
+ var _DescribeEventAggregatesCommand = class _DescribeEventAggregatesCommand extends import_smithy_client.Command.classBuilder().ep({
1168
+ ...commonParams
1169
+ }).m(function(Command, cs, config, o) {
1170
+ return [
1171
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1172
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1173
+ ];
1174
+ }).s("AWSHealth_20160804", "DescribeEventAggregates", {}).n("HealthClient", "DescribeEventAggregatesCommand").f(void 0, void 0).ser(se_DescribeEventAggregatesCommand).de(de_DescribeEventAggregatesCommand).build() {
1175
+ };
1176
+ __name(_DescribeEventAggregatesCommand, "DescribeEventAggregatesCommand");
1177
+ var DescribeEventAggregatesCommand = _DescribeEventAggregatesCommand;
1178
+
1179
+ // src/commands/DescribeEventDetailsCommand.ts
1180
+
1181
+
1182
+
1183
+
1184
+ var _DescribeEventDetailsCommand = class _DescribeEventDetailsCommand extends import_smithy_client.Command.classBuilder().ep({
1185
+ ...commonParams
1186
+ }).m(function(Command, cs, config, o) {
1187
+ return [
1188
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1189
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1190
+ ];
1191
+ }).s("AWSHealth_20160804", "DescribeEventDetails", {}).n("HealthClient", "DescribeEventDetailsCommand").f(void 0, void 0).ser(se_DescribeEventDetailsCommand).de(de_DescribeEventDetailsCommand).build() {
1192
+ };
1193
+ __name(_DescribeEventDetailsCommand, "DescribeEventDetailsCommand");
1194
+ var DescribeEventDetailsCommand = _DescribeEventDetailsCommand;
1195
+
1196
+ // src/commands/DescribeEventDetailsForOrganizationCommand.ts
1197
+
1198
+
1199
+
1200
+
1201
+ var _DescribeEventDetailsForOrganizationCommand = class _DescribeEventDetailsForOrganizationCommand extends import_smithy_client.Command.classBuilder().ep({
1202
+ ...commonParams
1203
+ }).m(function(Command, cs, config, o) {
1204
+ return [
1205
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1206
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1207
+ ];
1208
+ }).s("AWSHealth_20160804", "DescribeEventDetailsForOrganization", {}).n("HealthClient", "DescribeEventDetailsForOrganizationCommand").f(void 0, void 0).ser(se_DescribeEventDetailsForOrganizationCommand).de(de_DescribeEventDetailsForOrganizationCommand).build() {
1209
+ };
1210
+ __name(_DescribeEventDetailsForOrganizationCommand, "DescribeEventDetailsForOrganizationCommand");
1211
+ var DescribeEventDetailsForOrganizationCommand = _DescribeEventDetailsForOrganizationCommand;
1212
+
1213
+ // src/commands/DescribeEventsCommand.ts
1214
+
1215
+
1216
+
1217
+
1218
+ var _DescribeEventsCommand = class _DescribeEventsCommand extends import_smithy_client.Command.classBuilder().ep({
1219
+ ...commonParams
1220
+ }).m(function(Command, cs, config, o) {
1221
+ return [
1222
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1223
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1224
+ ];
1225
+ }).s("AWSHealth_20160804", "DescribeEvents", {}).n("HealthClient", "DescribeEventsCommand").f(void 0, void 0).ser(se_DescribeEventsCommand).de(de_DescribeEventsCommand).build() {
1226
+ };
1227
+ __name(_DescribeEventsCommand, "DescribeEventsCommand");
1228
+ var DescribeEventsCommand = _DescribeEventsCommand;
1229
+
1230
+ // src/commands/DescribeEventsForOrganizationCommand.ts
1231
+
1232
+
1233
+
1234
+
1235
+ var _DescribeEventsForOrganizationCommand = class _DescribeEventsForOrganizationCommand extends import_smithy_client.Command.classBuilder().ep({
1236
+ ...commonParams
1237
+ }).m(function(Command, cs, config, o) {
1238
+ return [
1239
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1240
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1241
+ ];
1242
+ }).s("AWSHealth_20160804", "DescribeEventsForOrganization", {}).n("HealthClient", "DescribeEventsForOrganizationCommand").f(void 0, void 0).ser(se_DescribeEventsForOrganizationCommand).de(de_DescribeEventsForOrganizationCommand).build() {
1243
+ };
1244
+ __name(_DescribeEventsForOrganizationCommand, "DescribeEventsForOrganizationCommand");
1245
+ var DescribeEventsForOrganizationCommand = _DescribeEventsForOrganizationCommand;
1246
+
1247
+ // src/commands/DescribeEventTypesCommand.ts
1248
+
1249
+
1250
+
1251
+
1252
+ var _DescribeEventTypesCommand = class _DescribeEventTypesCommand extends import_smithy_client.Command.classBuilder().ep({
1253
+ ...commonParams
1254
+ }).m(function(Command, cs, config, o) {
1255
+ return [
1256
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1257
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1258
+ ];
1259
+ }).s("AWSHealth_20160804", "DescribeEventTypes", {}).n("HealthClient", "DescribeEventTypesCommand").f(void 0, void 0).ser(se_DescribeEventTypesCommand).de(de_DescribeEventTypesCommand).build() {
1260
+ };
1261
+ __name(_DescribeEventTypesCommand, "DescribeEventTypesCommand");
1262
+ var DescribeEventTypesCommand = _DescribeEventTypesCommand;
1263
+
1264
+ // src/commands/DescribeHealthServiceStatusForOrganizationCommand.ts
1265
+
1266
+
1267
+
1268
+
1269
+ var _DescribeHealthServiceStatusForOrganizationCommand = class _DescribeHealthServiceStatusForOrganizationCommand extends import_smithy_client.Command.classBuilder().ep({
1270
+ ...commonParams
1271
+ }).m(function(Command, cs, config, o) {
1272
+ return [
1273
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1274
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1275
+ ];
1276
+ }).s("AWSHealth_20160804", "DescribeHealthServiceStatusForOrganization", {}).n("HealthClient", "DescribeHealthServiceStatusForOrganizationCommand").f(void 0, void 0).ser(se_DescribeHealthServiceStatusForOrganizationCommand).de(de_DescribeHealthServiceStatusForOrganizationCommand).build() {
1277
+ };
1278
+ __name(_DescribeHealthServiceStatusForOrganizationCommand, "DescribeHealthServiceStatusForOrganizationCommand");
1279
+ var DescribeHealthServiceStatusForOrganizationCommand = _DescribeHealthServiceStatusForOrganizationCommand;
1280
+
1281
+ // src/commands/DisableHealthServiceAccessForOrganizationCommand.ts
1282
+
1283
+
1284
+
1285
+
1286
+ var _DisableHealthServiceAccessForOrganizationCommand = class _DisableHealthServiceAccessForOrganizationCommand extends import_smithy_client.Command.classBuilder().ep({
1287
+ ...commonParams
1288
+ }).m(function(Command, cs, config, o) {
1289
+ return [
1290
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1291
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1292
+ ];
1293
+ }).s("AWSHealth_20160804", "DisableHealthServiceAccessForOrganization", {}).n("HealthClient", "DisableHealthServiceAccessForOrganizationCommand").f(void 0, void 0).ser(se_DisableHealthServiceAccessForOrganizationCommand).de(de_DisableHealthServiceAccessForOrganizationCommand).build() {
1294
+ };
1295
+ __name(_DisableHealthServiceAccessForOrganizationCommand, "DisableHealthServiceAccessForOrganizationCommand");
1296
+ var DisableHealthServiceAccessForOrganizationCommand = _DisableHealthServiceAccessForOrganizationCommand;
1297
+
1298
+ // src/commands/EnableHealthServiceAccessForOrganizationCommand.ts
1299
+
1300
+
1301
+
1302
+
1303
+ var _EnableHealthServiceAccessForOrganizationCommand = class _EnableHealthServiceAccessForOrganizationCommand extends import_smithy_client.Command.classBuilder().ep({
1304
+ ...commonParams
1305
+ }).m(function(Command, cs, config, o) {
1306
+ return [
1307
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1308
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1309
+ ];
1310
+ }).s("AWSHealth_20160804", "EnableHealthServiceAccessForOrganization", {}).n("HealthClient", "EnableHealthServiceAccessForOrganizationCommand").f(void 0, void 0).ser(se_EnableHealthServiceAccessForOrganizationCommand).de(de_EnableHealthServiceAccessForOrganizationCommand).build() {
1311
+ };
1312
+ __name(_EnableHealthServiceAccessForOrganizationCommand, "EnableHealthServiceAccessForOrganizationCommand");
1313
+ var EnableHealthServiceAccessForOrganizationCommand = _EnableHealthServiceAccessForOrganizationCommand;
1314
+
1315
+ // src/Health.ts
1316
+ var commands = {
1317
+ DescribeAffectedAccountsForOrganizationCommand,
1318
+ DescribeAffectedEntitiesCommand,
1319
+ DescribeAffectedEntitiesForOrganizationCommand,
1320
+ DescribeEntityAggregatesCommand,
1321
+ DescribeEntityAggregatesForOrganizationCommand,
1322
+ DescribeEventAggregatesCommand,
1323
+ DescribeEventDetailsCommand,
1324
+ DescribeEventDetailsForOrganizationCommand,
1325
+ DescribeEventsCommand,
1326
+ DescribeEventsForOrganizationCommand,
1327
+ DescribeEventTypesCommand,
1328
+ DescribeHealthServiceStatusForOrganizationCommand,
1329
+ DisableHealthServiceAccessForOrganizationCommand,
1330
+ EnableHealthServiceAccessForOrganizationCommand
1331
+ };
1332
+ var _Health = class _Health extends HealthClient {
1333
+ };
1334
+ __name(_Health, "Health");
1335
+ var Health = _Health;
1336
+ (0, import_smithy_client.createAggregatedClient)(commands, Health);
1337
+
1338
+ // src/pagination/DescribeAffectedAccountsForOrganizationPaginator.ts
1339
+ var import_core = require("@smithy/core");
1340
+ var paginateDescribeAffectedAccountsForOrganization = (0, import_core.createPaginator)(HealthClient, DescribeAffectedAccountsForOrganizationCommand, "nextToken", "nextToken", "maxResults");
1341
+
1342
+ // src/pagination/DescribeAffectedEntitiesForOrganizationPaginator.ts
1343
+
1344
+ var paginateDescribeAffectedEntitiesForOrganization = (0, import_core.createPaginator)(HealthClient, DescribeAffectedEntitiesForOrganizationCommand, "nextToken", "nextToken", "maxResults");
1345
+
1346
+ // src/pagination/DescribeAffectedEntitiesPaginator.ts
1347
+
1348
+ var paginateDescribeAffectedEntities = (0, import_core.createPaginator)(HealthClient, DescribeAffectedEntitiesCommand, "nextToken", "nextToken", "maxResults");
1349
+
1350
+ // src/pagination/DescribeEventAggregatesPaginator.ts
1351
+
1352
+ var paginateDescribeEventAggregates = (0, import_core.createPaginator)(HealthClient, DescribeEventAggregatesCommand, "nextToken", "nextToken", "maxResults");
1353
+
1354
+ // src/pagination/DescribeEventTypesPaginator.ts
1355
+
1356
+ var paginateDescribeEventTypes = (0, import_core.createPaginator)(HealthClient, DescribeEventTypesCommand, "nextToken", "nextToken", "maxResults");
1357
+
1358
+ // src/pagination/DescribeEventsForOrganizationPaginator.ts
1359
+
1360
+ var paginateDescribeEventsForOrganization = (0, import_core.createPaginator)(HealthClient, DescribeEventsForOrganizationCommand, "nextToken", "nextToken", "maxResults");
1361
+
1362
+ // src/pagination/DescribeEventsPaginator.ts
1363
+
1364
+ var paginateDescribeEvents = (0, import_core.createPaginator)(HealthClient, DescribeEventsCommand, "nextToken", "nextToken", "maxResults");
1365
+
1366
+ // src/index.ts
1367
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
1368
+ // Annotate the CommonJS export names for ESM import in node:
1369
+
1370
+ 0 && (module.exports = {
1371
+ ConcurrentModificationException,
1372
+ DescribeAffectedAccountsForOrganizationCommand,
1373
+ DescribeAffectedEntitiesCommand,
1374
+ DescribeAffectedEntitiesForOrganizationCommand,
1375
+ DescribeEntityAggregatesCommand,
1376
+ DescribeEntityAggregatesForOrganizationCommand,
1377
+ DescribeEventAggregatesCommand,
1378
+ DescribeEventDetailsCommand,
1379
+ DescribeEventDetailsForOrganizationCommand,
1380
+ DescribeEventTypesCommand,
1381
+ DescribeEventsCommand,
1382
+ DescribeEventsForOrganizationCommand,
1383
+ DescribeHealthServiceStatusForOrganizationCommand,
1384
+ DisableHealthServiceAccessForOrganizationCommand,
1385
+ EnableHealthServiceAccessForOrganizationCommand,
1386
+ EntityStatusCode,
1387
+ EventAggregateField,
1388
+ EventScopeCode,
1389
+ EventStatusCode,
1390
+ EventTypeCategory,
1391
+ Health,
1392
+ HealthClient,
1393
+ HealthServiceException,
1394
+ InvalidPaginationToken,
1395
+ UnsupportedLocale,
1396
+ __Client,
1397
+ paginateDescribeAffectedAccountsForOrganization,
1398
+ paginateDescribeAffectedEntities,
1399
+ paginateDescribeAffectedEntitiesForOrganization,
1400
+ paginateDescribeEventAggregates,
1401
+ paginateDescribeEventTypes,
1402
+ paginateDescribeEvents,
1403
+ paginateDescribeEventsForOrganization
1404
+ });
1405
+