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