@aws-sdk/client-health 3.926.0 → 3.928.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +654 -670
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/HealthClient.js +2 -0
- package/dist-es/commands/DescribeAffectedAccountsForOrganizationCommand.js +3 -9
- package/dist-es/commands/DescribeAffectedEntitiesCommand.js +3 -9
- package/dist-es/commands/DescribeAffectedEntitiesForOrganizationCommand.js +3 -9
- package/dist-es/commands/DescribeEntityAggregatesCommand.js +3 -9
- package/dist-es/commands/DescribeEntityAggregatesForOrganizationCommand.js +3 -9
- package/dist-es/commands/DescribeEventAggregatesCommand.js +3 -9
- package/dist-es/commands/DescribeEventDetailsCommand.js +3 -9
- package/dist-es/commands/DescribeEventDetailsForOrganizationCommand.js +3 -9
- package/dist-es/commands/DescribeEventTypesCommand.js +3 -9
- package/dist-es/commands/DescribeEventsCommand.js +3 -9
- package/dist-es/commands/DescribeEventsForOrganizationCommand.js +3 -9
- package/dist-es/commands/DescribeHealthServiceStatusForOrganizationCommand.js +3 -9
- package/dist-es/commands/DisableHealthServiceAccessForOrganizationCommand.js +3 -9
- package/dist-es/commands/EnableHealthServiceAccessForOrganizationCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +637 -0
- package/dist-types/HealthClient.d.ts +10 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +103 -0
- package/dist-types/ts3.4/HealthClient.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +108 -0
- package/package.json +5 -5
- package/dist-es/protocols/Aws_json1_1.js +0 -567
- package/dist-types/protocols/Aws_json1_1.d.ts +0 -128
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -173
|
@@ -1,567 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { HealthServiceException as __BaseException } from "../models/HealthServiceException";
|
|
5
|
-
import { ConcurrentModificationException, InvalidPaginationToken, UnsupportedLocale, } from "../models/models_0";
|
|
6
|
-
export const se_DescribeAffectedAccountsForOrganizationCommand = async (input, context) => {
|
|
7
|
-
const headers = sharedHeaders("DescribeAffectedAccountsForOrganization");
|
|
8
|
-
let body;
|
|
9
|
-
body = JSON.stringify(_json(input));
|
|
10
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
11
|
-
};
|
|
12
|
-
export const se_DescribeAffectedEntitiesCommand = async (input, context) => {
|
|
13
|
-
const headers = sharedHeaders("DescribeAffectedEntities");
|
|
14
|
-
let body;
|
|
15
|
-
body = JSON.stringify(se_DescribeAffectedEntitiesRequest(input, context));
|
|
16
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
|
-
};
|
|
18
|
-
export const se_DescribeAffectedEntitiesForOrganizationCommand = async (input, context) => {
|
|
19
|
-
const headers = sharedHeaders("DescribeAffectedEntitiesForOrganization");
|
|
20
|
-
let body;
|
|
21
|
-
body = JSON.stringify(_json(input));
|
|
22
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
|
-
};
|
|
24
|
-
export const se_DescribeEntityAggregatesCommand = async (input, context) => {
|
|
25
|
-
const headers = sharedHeaders("DescribeEntityAggregates");
|
|
26
|
-
let body;
|
|
27
|
-
body = JSON.stringify(_json(input));
|
|
28
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
|
-
};
|
|
30
|
-
export const se_DescribeEntityAggregatesForOrganizationCommand = async (input, context) => {
|
|
31
|
-
const headers = sharedHeaders("DescribeEntityAggregatesForOrganization");
|
|
32
|
-
let body;
|
|
33
|
-
body = JSON.stringify(_json(input));
|
|
34
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
|
-
};
|
|
36
|
-
export const se_DescribeEventAggregatesCommand = async (input, context) => {
|
|
37
|
-
const headers = sharedHeaders("DescribeEventAggregates");
|
|
38
|
-
let body;
|
|
39
|
-
body = JSON.stringify(se_DescribeEventAggregatesRequest(input, context));
|
|
40
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
|
-
};
|
|
42
|
-
export const se_DescribeEventDetailsCommand = async (input, context) => {
|
|
43
|
-
const headers = sharedHeaders("DescribeEventDetails");
|
|
44
|
-
let body;
|
|
45
|
-
body = JSON.stringify(_json(input));
|
|
46
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
|
-
};
|
|
48
|
-
export const se_DescribeEventDetailsForOrganizationCommand = async (input, context) => {
|
|
49
|
-
const headers = sharedHeaders("DescribeEventDetailsForOrganization");
|
|
50
|
-
let body;
|
|
51
|
-
body = JSON.stringify(_json(input));
|
|
52
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
53
|
-
};
|
|
54
|
-
export const se_DescribeEventsCommand = async (input, context) => {
|
|
55
|
-
const headers = sharedHeaders("DescribeEvents");
|
|
56
|
-
let body;
|
|
57
|
-
body = JSON.stringify(se_DescribeEventsRequest(input, context));
|
|
58
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
|
-
};
|
|
60
|
-
export const se_DescribeEventsForOrganizationCommand = async (input, context) => {
|
|
61
|
-
const headers = sharedHeaders("DescribeEventsForOrganization");
|
|
62
|
-
let body;
|
|
63
|
-
body = JSON.stringify(se_DescribeEventsForOrganizationRequest(input, context));
|
|
64
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
|
-
};
|
|
66
|
-
export const se_DescribeEventTypesCommand = async (input, context) => {
|
|
67
|
-
const headers = sharedHeaders("DescribeEventTypes");
|
|
68
|
-
let body;
|
|
69
|
-
body = JSON.stringify(_json(input));
|
|
70
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
71
|
-
};
|
|
72
|
-
export const se_DescribeHealthServiceStatusForOrganizationCommand = async (input, context) => {
|
|
73
|
-
const headers = sharedHeaders("DescribeHealthServiceStatusForOrganization");
|
|
74
|
-
const body = "{}";
|
|
75
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
|
-
};
|
|
77
|
-
export const se_DisableHealthServiceAccessForOrganizationCommand = async (input, context) => {
|
|
78
|
-
const headers = sharedHeaders("DisableHealthServiceAccessForOrganization");
|
|
79
|
-
const body = "{}";
|
|
80
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
81
|
-
};
|
|
82
|
-
export const se_EnableHealthServiceAccessForOrganizationCommand = async (input, context) => {
|
|
83
|
-
const headers = sharedHeaders("EnableHealthServiceAccessForOrganization");
|
|
84
|
-
const body = "{}";
|
|
85
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
|
-
};
|
|
87
|
-
export const de_DescribeAffectedAccountsForOrganizationCommand = async (output, context) => {
|
|
88
|
-
if (output.statusCode >= 300) {
|
|
89
|
-
return de_CommandError(output, context);
|
|
90
|
-
}
|
|
91
|
-
const data = await parseBody(output.body, context);
|
|
92
|
-
let contents = {};
|
|
93
|
-
contents = _json(data);
|
|
94
|
-
const response = {
|
|
95
|
-
$metadata: deserializeMetadata(output),
|
|
96
|
-
...contents,
|
|
97
|
-
};
|
|
98
|
-
return response;
|
|
99
|
-
};
|
|
100
|
-
export const de_DescribeAffectedEntitiesCommand = async (output, context) => {
|
|
101
|
-
if (output.statusCode >= 300) {
|
|
102
|
-
return de_CommandError(output, context);
|
|
103
|
-
}
|
|
104
|
-
const data = await parseBody(output.body, context);
|
|
105
|
-
let contents = {};
|
|
106
|
-
contents = de_DescribeAffectedEntitiesResponse(data, context);
|
|
107
|
-
const response = {
|
|
108
|
-
$metadata: deserializeMetadata(output),
|
|
109
|
-
...contents,
|
|
110
|
-
};
|
|
111
|
-
return response;
|
|
112
|
-
};
|
|
113
|
-
export const de_DescribeAffectedEntitiesForOrganizationCommand = async (output, context) => {
|
|
114
|
-
if (output.statusCode >= 300) {
|
|
115
|
-
return de_CommandError(output, context);
|
|
116
|
-
}
|
|
117
|
-
const data = await parseBody(output.body, context);
|
|
118
|
-
let contents = {};
|
|
119
|
-
contents = de_DescribeAffectedEntitiesForOrganizationResponse(data, context);
|
|
120
|
-
const response = {
|
|
121
|
-
$metadata: deserializeMetadata(output),
|
|
122
|
-
...contents,
|
|
123
|
-
};
|
|
124
|
-
return response;
|
|
125
|
-
};
|
|
126
|
-
export const de_DescribeEntityAggregatesCommand = async (output, context) => {
|
|
127
|
-
if (output.statusCode >= 300) {
|
|
128
|
-
return de_CommandError(output, context);
|
|
129
|
-
}
|
|
130
|
-
const data = await parseBody(output.body, context);
|
|
131
|
-
let contents = {};
|
|
132
|
-
contents = _json(data);
|
|
133
|
-
const response = {
|
|
134
|
-
$metadata: deserializeMetadata(output),
|
|
135
|
-
...contents,
|
|
136
|
-
};
|
|
137
|
-
return response;
|
|
138
|
-
};
|
|
139
|
-
export const de_DescribeEntityAggregatesForOrganizationCommand = async (output, context) => {
|
|
140
|
-
if (output.statusCode >= 300) {
|
|
141
|
-
return de_CommandError(output, context);
|
|
142
|
-
}
|
|
143
|
-
const data = await parseBody(output.body, context);
|
|
144
|
-
let contents = {};
|
|
145
|
-
contents = _json(data);
|
|
146
|
-
const response = {
|
|
147
|
-
$metadata: deserializeMetadata(output),
|
|
148
|
-
...contents,
|
|
149
|
-
};
|
|
150
|
-
return response;
|
|
151
|
-
};
|
|
152
|
-
export const de_DescribeEventAggregatesCommand = async (output, context) => {
|
|
153
|
-
if (output.statusCode >= 300) {
|
|
154
|
-
return de_CommandError(output, context);
|
|
155
|
-
}
|
|
156
|
-
const data = await parseBody(output.body, context);
|
|
157
|
-
let contents = {};
|
|
158
|
-
contents = _json(data);
|
|
159
|
-
const response = {
|
|
160
|
-
$metadata: deserializeMetadata(output),
|
|
161
|
-
...contents,
|
|
162
|
-
};
|
|
163
|
-
return response;
|
|
164
|
-
};
|
|
165
|
-
export const de_DescribeEventDetailsCommand = async (output, context) => {
|
|
166
|
-
if (output.statusCode >= 300) {
|
|
167
|
-
return de_CommandError(output, context);
|
|
168
|
-
}
|
|
169
|
-
const data = await parseBody(output.body, context);
|
|
170
|
-
let contents = {};
|
|
171
|
-
contents = de_DescribeEventDetailsResponse(data, context);
|
|
172
|
-
const response = {
|
|
173
|
-
$metadata: deserializeMetadata(output),
|
|
174
|
-
...contents,
|
|
175
|
-
};
|
|
176
|
-
return response;
|
|
177
|
-
};
|
|
178
|
-
export const de_DescribeEventDetailsForOrganizationCommand = async (output, context) => {
|
|
179
|
-
if (output.statusCode >= 300) {
|
|
180
|
-
return de_CommandError(output, context);
|
|
181
|
-
}
|
|
182
|
-
const data = await parseBody(output.body, context);
|
|
183
|
-
let contents = {};
|
|
184
|
-
contents = de_DescribeEventDetailsForOrganizationResponse(data, context);
|
|
185
|
-
const response = {
|
|
186
|
-
$metadata: deserializeMetadata(output),
|
|
187
|
-
...contents,
|
|
188
|
-
};
|
|
189
|
-
return response;
|
|
190
|
-
};
|
|
191
|
-
export const de_DescribeEventsCommand = async (output, context) => {
|
|
192
|
-
if (output.statusCode >= 300) {
|
|
193
|
-
return de_CommandError(output, context);
|
|
194
|
-
}
|
|
195
|
-
const data = await parseBody(output.body, context);
|
|
196
|
-
let contents = {};
|
|
197
|
-
contents = de_DescribeEventsResponse(data, context);
|
|
198
|
-
const response = {
|
|
199
|
-
$metadata: deserializeMetadata(output),
|
|
200
|
-
...contents,
|
|
201
|
-
};
|
|
202
|
-
return response;
|
|
203
|
-
};
|
|
204
|
-
export const de_DescribeEventsForOrganizationCommand = async (output, context) => {
|
|
205
|
-
if (output.statusCode >= 300) {
|
|
206
|
-
return de_CommandError(output, context);
|
|
207
|
-
}
|
|
208
|
-
const data = await parseBody(output.body, context);
|
|
209
|
-
let contents = {};
|
|
210
|
-
contents = de_DescribeEventsForOrganizationResponse(data, context);
|
|
211
|
-
const response = {
|
|
212
|
-
$metadata: deserializeMetadata(output),
|
|
213
|
-
...contents,
|
|
214
|
-
};
|
|
215
|
-
return response;
|
|
216
|
-
};
|
|
217
|
-
export const de_DescribeEventTypesCommand = async (output, context) => {
|
|
218
|
-
if (output.statusCode >= 300) {
|
|
219
|
-
return de_CommandError(output, context);
|
|
220
|
-
}
|
|
221
|
-
const data = await parseBody(output.body, context);
|
|
222
|
-
let contents = {};
|
|
223
|
-
contents = _json(data);
|
|
224
|
-
const response = {
|
|
225
|
-
$metadata: deserializeMetadata(output),
|
|
226
|
-
...contents,
|
|
227
|
-
};
|
|
228
|
-
return response;
|
|
229
|
-
};
|
|
230
|
-
export const de_DescribeHealthServiceStatusForOrganizationCommand = async (output, context) => {
|
|
231
|
-
if (output.statusCode >= 300) {
|
|
232
|
-
return de_CommandError(output, context);
|
|
233
|
-
}
|
|
234
|
-
const data = await parseBody(output.body, context);
|
|
235
|
-
let contents = {};
|
|
236
|
-
contents = _json(data);
|
|
237
|
-
const response = {
|
|
238
|
-
$metadata: deserializeMetadata(output),
|
|
239
|
-
...contents,
|
|
240
|
-
};
|
|
241
|
-
return response;
|
|
242
|
-
};
|
|
243
|
-
export const de_DisableHealthServiceAccessForOrganizationCommand = async (output, context) => {
|
|
244
|
-
if (output.statusCode >= 300) {
|
|
245
|
-
return de_CommandError(output, context);
|
|
246
|
-
}
|
|
247
|
-
await collectBody(output.body, context);
|
|
248
|
-
const response = {
|
|
249
|
-
$metadata: deserializeMetadata(output),
|
|
250
|
-
};
|
|
251
|
-
return response;
|
|
252
|
-
};
|
|
253
|
-
export const de_EnableHealthServiceAccessForOrganizationCommand = async (output, context) => {
|
|
254
|
-
if (output.statusCode >= 300) {
|
|
255
|
-
return de_CommandError(output, context);
|
|
256
|
-
}
|
|
257
|
-
await collectBody(output.body, context);
|
|
258
|
-
const response = {
|
|
259
|
-
$metadata: deserializeMetadata(output),
|
|
260
|
-
};
|
|
261
|
-
return response;
|
|
262
|
-
};
|
|
263
|
-
const de_CommandError = async (output, context) => {
|
|
264
|
-
const parsedOutput = {
|
|
265
|
-
...output,
|
|
266
|
-
body: await parseErrorBody(output.body, context),
|
|
267
|
-
};
|
|
268
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
269
|
-
switch (errorCode) {
|
|
270
|
-
case "InvalidPaginationToken":
|
|
271
|
-
case "com.amazonaws.health#InvalidPaginationToken":
|
|
272
|
-
throw await de_InvalidPaginationTokenRes(parsedOutput, context);
|
|
273
|
-
case "UnsupportedLocale":
|
|
274
|
-
case "com.amazonaws.health#UnsupportedLocale":
|
|
275
|
-
throw await de_UnsupportedLocaleRes(parsedOutput, context);
|
|
276
|
-
case "ConcurrentModificationException":
|
|
277
|
-
case "com.amazonaws.health#ConcurrentModificationException":
|
|
278
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
279
|
-
default:
|
|
280
|
-
const parsedBody = parsedOutput.body;
|
|
281
|
-
return throwDefaultError({
|
|
282
|
-
output,
|
|
283
|
-
parsedBody,
|
|
284
|
-
errorCode,
|
|
285
|
-
});
|
|
286
|
-
}
|
|
287
|
-
};
|
|
288
|
-
const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
289
|
-
const body = parsedOutput.body;
|
|
290
|
-
const deserialized = _json(body);
|
|
291
|
-
const exception = new ConcurrentModificationException({
|
|
292
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
293
|
-
...deserialized,
|
|
294
|
-
});
|
|
295
|
-
return __decorateServiceException(exception, body);
|
|
296
|
-
};
|
|
297
|
-
const de_InvalidPaginationTokenRes = async (parsedOutput, context) => {
|
|
298
|
-
const body = parsedOutput.body;
|
|
299
|
-
const deserialized = _json(body);
|
|
300
|
-
const exception = new InvalidPaginationToken({
|
|
301
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
302
|
-
...deserialized,
|
|
303
|
-
});
|
|
304
|
-
return __decorateServiceException(exception, body);
|
|
305
|
-
};
|
|
306
|
-
const de_UnsupportedLocaleRes = async (parsedOutput, context) => {
|
|
307
|
-
const body = parsedOutput.body;
|
|
308
|
-
const deserialized = _json(body);
|
|
309
|
-
const exception = new UnsupportedLocale({
|
|
310
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
311
|
-
...deserialized,
|
|
312
|
-
});
|
|
313
|
-
return __decorateServiceException(exception, body);
|
|
314
|
-
};
|
|
315
|
-
const se_DateTimeRange = (input, context) => {
|
|
316
|
-
return take(input, {
|
|
317
|
-
from: (_) => _.getTime() / 1_000,
|
|
318
|
-
to: (_) => _.getTime() / 1_000,
|
|
319
|
-
});
|
|
320
|
-
};
|
|
321
|
-
const se_dateTimeRangeList = (input, context) => {
|
|
322
|
-
return input
|
|
323
|
-
.filter((e) => e != null)
|
|
324
|
-
.map((entry) => {
|
|
325
|
-
return se_DateTimeRange(entry, context);
|
|
326
|
-
});
|
|
327
|
-
};
|
|
328
|
-
const se_DescribeAffectedEntitiesRequest = (input, context) => {
|
|
329
|
-
return take(input, {
|
|
330
|
-
filter: (_) => se_EntityFilter(_, context),
|
|
331
|
-
locale: [],
|
|
332
|
-
maxResults: [],
|
|
333
|
-
nextToken: [],
|
|
334
|
-
});
|
|
335
|
-
};
|
|
336
|
-
const se_DescribeEventAggregatesRequest = (input, context) => {
|
|
337
|
-
return take(input, {
|
|
338
|
-
aggregateField: [],
|
|
339
|
-
filter: (_) => se_EventFilter(_, context),
|
|
340
|
-
maxResults: [],
|
|
341
|
-
nextToken: [],
|
|
342
|
-
});
|
|
343
|
-
};
|
|
344
|
-
const se_DescribeEventsForOrganizationRequest = (input, context) => {
|
|
345
|
-
return take(input, {
|
|
346
|
-
filter: (_) => se_OrganizationEventFilter(_, context),
|
|
347
|
-
locale: [],
|
|
348
|
-
maxResults: [],
|
|
349
|
-
nextToken: [],
|
|
350
|
-
});
|
|
351
|
-
};
|
|
352
|
-
const se_DescribeEventsRequest = (input, context) => {
|
|
353
|
-
return take(input, {
|
|
354
|
-
filter: (_) => se_EventFilter(_, context),
|
|
355
|
-
locale: [],
|
|
356
|
-
maxResults: [],
|
|
357
|
-
nextToken: [],
|
|
358
|
-
});
|
|
359
|
-
};
|
|
360
|
-
const se_EntityFilter = (input, context) => {
|
|
361
|
-
return take(input, {
|
|
362
|
-
entityArns: _json,
|
|
363
|
-
entityValues: _json,
|
|
364
|
-
eventArns: _json,
|
|
365
|
-
lastUpdatedTimes: (_) => se_dateTimeRangeList(_, context),
|
|
366
|
-
statusCodes: _json,
|
|
367
|
-
tags: _json,
|
|
368
|
-
});
|
|
369
|
-
};
|
|
370
|
-
const se_EventFilter = (input, context) => {
|
|
371
|
-
return take(input, {
|
|
372
|
-
availabilityZones: _json,
|
|
373
|
-
endTimes: (_) => se_dateTimeRangeList(_, context),
|
|
374
|
-
entityArns: _json,
|
|
375
|
-
entityValues: _json,
|
|
376
|
-
eventArns: _json,
|
|
377
|
-
eventStatusCodes: _json,
|
|
378
|
-
eventTypeCategories: _json,
|
|
379
|
-
eventTypeCodes: _json,
|
|
380
|
-
lastUpdatedTimes: (_) => se_dateTimeRangeList(_, context),
|
|
381
|
-
regions: _json,
|
|
382
|
-
services: _json,
|
|
383
|
-
startTimes: (_) => se_dateTimeRangeList(_, context),
|
|
384
|
-
tags: _json,
|
|
385
|
-
});
|
|
386
|
-
};
|
|
387
|
-
const se_OrganizationEventFilter = (input, context) => {
|
|
388
|
-
return take(input, {
|
|
389
|
-
awsAccountIds: _json,
|
|
390
|
-
endTime: (_) => se_DateTimeRange(_, context),
|
|
391
|
-
entityArns: _json,
|
|
392
|
-
entityValues: _json,
|
|
393
|
-
eventStatusCodes: _json,
|
|
394
|
-
eventTypeCategories: _json,
|
|
395
|
-
eventTypeCodes: _json,
|
|
396
|
-
lastUpdatedTime: (_) => se_DateTimeRange(_, context),
|
|
397
|
-
regions: _json,
|
|
398
|
-
services: _json,
|
|
399
|
-
startTime: (_) => se_DateTimeRange(_, context),
|
|
400
|
-
});
|
|
401
|
-
};
|
|
402
|
-
const de_AffectedEntity = (output, context) => {
|
|
403
|
-
return take(output, {
|
|
404
|
-
awsAccountId: __expectString,
|
|
405
|
-
entityArn: __expectString,
|
|
406
|
-
entityMetadata: _json,
|
|
407
|
-
entityUrl: __expectString,
|
|
408
|
-
entityValue: __expectString,
|
|
409
|
-
eventArn: __expectString,
|
|
410
|
-
lastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
411
|
-
statusCode: __expectString,
|
|
412
|
-
tags: _json,
|
|
413
|
-
});
|
|
414
|
-
};
|
|
415
|
-
const de_DescribeAffectedEntitiesForOrganizationResponse = (output, context) => {
|
|
416
|
-
return take(output, {
|
|
417
|
-
entities: (_) => de_EntityList(_, context),
|
|
418
|
-
failedSet: _json,
|
|
419
|
-
nextToken: __expectString,
|
|
420
|
-
});
|
|
421
|
-
};
|
|
422
|
-
const de_DescribeAffectedEntitiesResponse = (output, context) => {
|
|
423
|
-
return take(output, {
|
|
424
|
-
entities: (_) => de_EntityList(_, context),
|
|
425
|
-
nextToken: __expectString,
|
|
426
|
-
});
|
|
427
|
-
};
|
|
428
|
-
const de_DescribeEventDetailsForOrganizationResponse = (output, context) => {
|
|
429
|
-
return take(output, {
|
|
430
|
-
failedSet: _json,
|
|
431
|
-
successfulSet: (_) => de_DescribeEventDetailsForOrganizationSuccessfulSet(_, context),
|
|
432
|
-
});
|
|
433
|
-
};
|
|
434
|
-
const de_DescribeEventDetailsForOrganizationSuccessfulSet = (output, context) => {
|
|
435
|
-
const retVal = (output || [])
|
|
436
|
-
.filter((e) => e != null)
|
|
437
|
-
.map((entry) => {
|
|
438
|
-
return de_OrganizationEventDetails(entry, context);
|
|
439
|
-
});
|
|
440
|
-
return retVal;
|
|
441
|
-
};
|
|
442
|
-
const de_DescribeEventDetailsResponse = (output, context) => {
|
|
443
|
-
return take(output, {
|
|
444
|
-
failedSet: _json,
|
|
445
|
-
successfulSet: (_) => de_DescribeEventDetailsSuccessfulSet(_, context),
|
|
446
|
-
});
|
|
447
|
-
};
|
|
448
|
-
const de_DescribeEventDetailsSuccessfulSet = (output, context) => {
|
|
449
|
-
const retVal = (output || [])
|
|
450
|
-
.filter((e) => e != null)
|
|
451
|
-
.map((entry) => {
|
|
452
|
-
return de_EventDetails(entry, context);
|
|
453
|
-
});
|
|
454
|
-
return retVal;
|
|
455
|
-
};
|
|
456
|
-
const de_DescribeEventsForOrganizationResponse = (output, context) => {
|
|
457
|
-
return take(output, {
|
|
458
|
-
events: (_) => de_OrganizationEventList(_, context),
|
|
459
|
-
nextToken: __expectString,
|
|
460
|
-
});
|
|
461
|
-
};
|
|
462
|
-
const de_DescribeEventsResponse = (output, context) => {
|
|
463
|
-
return take(output, {
|
|
464
|
-
events: (_) => de_EventList(_, context),
|
|
465
|
-
nextToken: __expectString,
|
|
466
|
-
});
|
|
467
|
-
};
|
|
468
|
-
const de_EntityList = (output, context) => {
|
|
469
|
-
const retVal = (output || [])
|
|
470
|
-
.filter((e) => e != null)
|
|
471
|
-
.map((entry) => {
|
|
472
|
-
return de_AffectedEntity(entry, context);
|
|
473
|
-
});
|
|
474
|
-
return retVal;
|
|
475
|
-
};
|
|
476
|
-
const de_Event = (output, context) => {
|
|
477
|
-
return take(output, {
|
|
478
|
-
arn: __expectString,
|
|
479
|
-
availabilityZone: __expectString,
|
|
480
|
-
endTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
481
|
-
eventScopeCode: __expectString,
|
|
482
|
-
eventTypeCategory: __expectString,
|
|
483
|
-
eventTypeCode: __expectString,
|
|
484
|
-
lastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
485
|
-
region: __expectString,
|
|
486
|
-
service: __expectString,
|
|
487
|
-
startTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
488
|
-
statusCode: __expectString,
|
|
489
|
-
});
|
|
490
|
-
};
|
|
491
|
-
const de_EventDetails = (output, context) => {
|
|
492
|
-
return take(output, {
|
|
493
|
-
event: (_) => de_Event(_, context),
|
|
494
|
-
eventDescription: _json,
|
|
495
|
-
eventMetadata: _json,
|
|
496
|
-
});
|
|
497
|
-
};
|
|
498
|
-
const de_EventList = (output, context) => {
|
|
499
|
-
const retVal = (output || [])
|
|
500
|
-
.filter((e) => e != null)
|
|
501
|
-
.map((entry) => {
|
|
502
|
-
return de_Event(entry, context);
|
|
503
|
-
});
|
|
504
|
-
return retVal;
|
|
505
|
-
};
|
|
506
|
-
const de_OrganizationEvent = (output, context) => {
|
|
507
|
-
return take(output, {
|
|
508
|
-
arn: __expectString,
|
|
509
|
-
endTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
510
|
-
eventScopeCode: __expectString,
|
|
511
|
-
eventTypeCategory: __expectString,
|
|
512
|
-
eventTypeCode: __expectString,
|
|
513
|
-
lastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
514
|
-
region: __expectString,
|
|
515
|
-
service: __expectString,
|
|
516
|
-
startTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
517
|
-
statusCode: __expectString,
|
|
518
|
-
});
|
|
519
|
-
};
|
|
520
|
-
const de_OrganizationEventDetails = (output, context) => {
|
|
521
|
-
return take(output, {
|
|
522
|
-
awsAccountId: __expectString,
|
|
523
|
-
event: (_) => de_Event(_, context),
|
|
524
|
-
eventDescription: _json,
|
|
525
|
-
eventMetadata: _json,
|
|
526
|
-
});
|
|
527
|
-
};
|
|
528
|
-
const de_OrganizationEventList = (output, context) => {
|
|
529
|
-
const retVal = (output || [])
|
|
530
|
-
.filter((e) => e != null)
|
|
531
|
-
.map((entry) => {
|
|
532
|
-
return de_OrganizationEvent(entry, context);
|
|
533
|
-
});
|
|
534
|
-
return retVal;
|
|
535
|
-
};
|
|
536
|
-
const deserializeMetadata = (output) => ({
|
|
537
|
-
httpStatusCode: output.statusCode,
|
|
538
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
539
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
540
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
541
|
-
});
|
|
542
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
543
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
544
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
545
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
546
|
-
const contents = {
|
|
547
|
-
protocol,
|
|
548
|
-
hostname,
|
|
549
|
-
port,
|
|
550
|
-
method: "POST",
|
|
551
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
552
|
-
headers,
|
|
553
|
-
};
|
|
554
|
-
if (resolvedHostname !== undefined) {
|
|
555
|
-
contents.hostname = resolvedHostname;
|
|
556
|
-
}
|
|
557
|
-
if (body !== undefined) {
|
|
558
|
-
contents.body = body;
|
|
559
|
-
}
|
|
560
|
-
return new __HttpRequest(contents);
|
|
561
|
-
};
|
|
562
|
-
function sharedHeaders(operation) {
|
|
563
|
-
return {
|
|
564
|
-
"content-type": "application/x-amz-json-1.1",
|
|
565
|
-
"x-amz-target": `AWSHealth_20160804.${operation}`,
|
|
566
|
-
};
|
|
567
|
-
}
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
2
|
-
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
3
|
-
import { DescribeAffectedAccountsForOrganizationCommandInput, DescribeAffectedAccountsForOrganizationCommandOutput } from "../commands/DescribeAffectedAccountsForOrganizationCommand";
|
|
4
|
-
import { DescribeAffectedEntitiesCommandInput, DescribeAffectedEntitiesCommandOutput } from "../commands/DescribeAffectedEntitiesCommand";
|
|
5
|
-
import { DescribeAffectedEntitiesForOrganizationCommandInput, DescribeAffectedEntitiesForOrganizationCommandOutput } from "../commands/DescribeAffectedEntitiesForOrganizationCommand";
|
|
6
|
-
import { DescribeEntityAggregatesCommandInput, DescribeEntityAggregatesCommandOutput } from "../commands/DescribeEntityAggregatesCommand";
|
|
7
|
-
import { DescribeEntityAggregatesForOrganizationCommandInput, DescribeEntityAggregatesForOrganizationCommandOutput } from "../commands/DescribeEntityAggregatesForOrganizationCommand";
|
|
8
|
-
import { DescribeEventAggregatesCommandInput, DescribeEventAggregatesCommandOutput } from "../commands/DescribeEventAggregatesCommand";
|
|
9
|
-
import { DescribeEventDetailsCommandInput, DescribeEventDetailsCommandOutput } from "../commands/DescribeEventDetailsCommand";
|
|
10
|
-
import { DescribeEventDetailsForOrganizationCommandInput, DescribeEventDetailsForOrganizationCommandOutput } from "../commands/DescribeEventDetailsForOrganizationCommand";
|
|
11
|
-
import { DescribeEventsCommandInput, DescribeEventsCommandOutput } from "../commands/DescribeEventsCommand";
|
|
12
|
-
import { DescribeEventsForOrganizationCommandInput, DescribeEventsForOrganizationCommandOutput } from "../commands/DescribeEventsForOrganizationCommand";
|
|
13
|
-
import { DescribeEventTypesCommandInput, DescribeEventTypesCommandOutput } from "../commands/DescribeEventTypesCommand";
|
|
14
|
-
import { DescribeHealthServiceStatusForOrganizationCommandInput, DescribeHealthServiceStatusForOrganizationCommandOutput } from "../commands/DescribeHealthServiceStatusForOrganizationCommand";
|
|
15
|
-
import { DisableHealthServiceAccessForOrganizationCommandInput, DisableHealthServiceAccessForOrganizationCommandOutput } from "../commands/DisableHealthServiceAccessForOrganizationCommand";
|
|
16
|
-
import { EnableHealthServiceAccessForOrganizationCommandInput, EnableHealthServiceAccessForOrganizationCommandOutput } from "../commands/EnableHealthServiceAccessForOrganizationCommand";
|
|
17
|
-
/**
|
|
18
|
-
* serializeAws_json1_1DescribeAffectedAccountsForOrganizationCommand
|
|
19
|
-
*/
|
|
20
|
-
export declare const se_DescribeAffectedAccountsForOrganizationCommand: (input: DescribeAffectedAccountsForOrganizationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
21
|
-
/**
|
|
22
|
-
* serializeAws_json1_1DescribeAffectedEntitiesCommand
|
|
23
|
-
*/
|
|
24
|
-
export declare const se_DescribeAffectedEntitiesCommand: (input: DescribeAffectedEntitiesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
25
|
-
/**
|
|
26
|
-
* serializeAws_json1_1DescribeAffectedEntitiesForOrganizationCommand
|
|
27
|
-
*/
|
|
28
|
-
export declare const se_DescribeAffectedEntitiesForOrganizationCommand: (input: DescribeAffectedEntitiesForOrganizationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
29
|
-
/**
|
|
30
|
-
* serializeAws_json1_1DescribeEntityAggregatesCommand
|
|
31
|
-
*/
|
|
32
|
-
export declare const se_DescribeEntityAggregatesCommand: (input: DescribeEntityAggregatesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
33
|
-
/**
|
|
34
|
-
* serializeAws_json1_1DescribeEntityAggregatesForOrganizationCommand
|
|
35
|
-
*/
|
|
36
|
-
export declare const se_DescribeEntityAggregatesForOrganizationCommand: (input: DescribeEntityAggregatesForOrganizationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
37
|
-
/**
|
|
38
|
-
* serializeAws_json1_1DescribeEventAggregatesCommand
|
|
39
|
-
*/
|
|
40
|
-
export declare const se_DescribeEventAggregatesCommand: (input: DescribeEventAggregatesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
41
|
-
/**
|
|
42
|
-
* serializeAws_json1_1DescribeEventDetailsCommand
|
|
43
|
-
*/
|
|
44
|
-
export declare const se_DescribeEventDetailsCommand: (input: DescribeEventDetailsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
45
|
-
/**
|
|
46
|
-
* serializeAws_json1_1DescribeEventDetailsForOrganizationCommand
|
|
47
|
-
*/
|
|
48
|
-
export declare const se_DescribeEventDetailsForOrganizationCommand: (input: DescribeEventDetailsForOrganizationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
49
|
-
/**
|
|
50
|
-
* serializeAws_json1_1DescribeEventsCommand
|
|
51
|
-
*/
|
|
52
|
-
export declare const se_DescribeEventsCommand: (input: DescribeEventsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
53
|
-
/**
|
|
54
|
-
* serializeAws_json1_1DescribeEventsForOrganizationCommand
|
|
55
|
-
*/
|
|
56
|
-
export declare const se_DescribeEventsForOrganizationCommand: (input: DescribeEventsForOrganizationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
57
|
-
/**
|
|
58
|
-
* serializeAws_json1_1DescribeEventTypesCommand
|
|
59
|
-
*/
|
|
60
|
-
export declare const se_DescribeEventTypesCommand: (input: DescribeEventTypesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
61
|
-
/**
|
|
62
|
-
* serializeAws_json1_1DescribeHealthServiceStatusForOrganizationCommand
|
|
63
|
-
*/
|
|
64
|
-
export declare const se_DescribeHealthServiceStatusForOrganizationCommand: (input: DescribeHealthServiceStatusForOrganizationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
65
|
-
/**
|
|
66
|
-
* serializeAws_json1_1DisableHealthServiceAccessForOrganizationCommand
|
|
67
|
-
*/
|
|
68
|
-
export declare const se_DisableHealthServiceAccessForOrganizationCommand: (input: DisableHealthServiceAccessForOrganizationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
69
|
-
/**
|
|
70
|
-
* serializeAws_json1_1EnableHealthServiceAccessForOrganizationCommand
|
|
71
|
-
*/
|
|
72
|
-
export declare const se_EnableHealthServiceAccessForOrganizationCommand: (input: EnableHealthServiceAccessForOrganizationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
73
|
-
/**
|
|
74
|
-
* deserializeAws_json1_1DescribeAffectedAccountsForOrganizationCommand
|
|
75
|
-
*/
|
|
76
|
-
export declare const de_DescribeAffectedAccountsForOrganizationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeAffectedAccountsForOrganizationCommandOutput>;
|
|
77
|
-
/**
|
|
78
|
-
* deserializeAws_json1_1DescribeAffectedEntitiesCommand
|
|
79
|
-
*/
|
|
80
|
-
export declare const de_DescribeAffectedEntitiesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeAffectedEntitiesCommandOutput>;
|
|
81
|
-
/**
|
|
82
|
-
* deserializeAws_json1_1DescribeAffectedEntitiesForOrganizationCommand
|
|
83
|
-
*/
|
|
84
|
-
export declare const de_DescribeAffectedEntitiesForOrganizationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeAffectedEntitiesForOrganizationCommandOutput>;
|
|
85
|
-
/**
|
|
86
|
-
* deserializeAws_json1_1DescribeEntityAggregatesCommand
|
|
87
|
-
*/
|
|
88
|
-
export declare const de_DescribeEntityAggregatesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeEntityAggregatesCommandOutput>;
|
|
89
|
-
/**
|
|
90
|
-
* deserializeAws_json1_1DescribeEntityAggregatesForOrganizationCommand
|
|
91
|
-
*/
|
|
92
|
-
export declare const de_DescribeEntityAggregatesForOrganizationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeEntityAggregatesForOrganizationCommandOutput>;
|
|
93
|
-
/**
|
|
94
|
-
* deserializeAws_json1_1DescribeEventAggregatesCommand
|
|
95
|
-
*/
|
|
96
|
-
export declare const de_DescribeEventAggregatesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeEventAggregatesCommandOutput>;
|
|
97
|
-
/**
|
|
98
|
-
* deserializeAws_json1_1DescribeEventDetailsCommand
|
|
99
|
-
*/
|
|
100
|
-
export declare const de_DescribeEventDetailsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeEventDetailsCommandOutput>;
|
|
101
|
-
/**
|
|
102
|
-
* deserializeAws_json1_1DescribeEventDetailsForOrganizationCommand
|
|
103
|
-
*/
|
|
104
|
-
export declare const de_DescribeEventDetailsForOrganizationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeEventDetailsForOrganizationCommandOutput>;
|
|
105
|
-
/**
|
|
106
|
-
* deserializeAws_json1_1DescribeEventsCommand
|
|
107
|
-
*/
|
|
108
|
-
export declare const de_DescribeEventsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeEventsCommandOutput>;
|
|
109
|
-
/**
|
|
110
|
-
* deserializeAws_json1_1DescribeEventsForOrganizationCommand
|
|
111
|
-
*/
|
|
112
|
-
export declare const de_DescribeEventsForOrganizationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeEventsForOrganizationCommandOutput>;
|
|
113
|
-
/**
|
|
114
|
-
* deserializeAws_json1_1DescribeEventTypesCommand
|
|
115
|
-
*/
|
|
116
|
-
export declare const de_DescribeEventTypesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeEventTypesCommandOutput>;
|
|
117
|
-
/**
|
|
118
|
-
* deserializeAws_json1_1DescribeHealthServiceStatusForOrganizationCommand
|
|
119
|
-
*/
|
|
120
|
-
export declare const de_DescribeHealthServiceStatusForOrganizationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeHealthServiceStatusForOrganizationCommandOutput>;
|
|
121
|
-
/**
|
|
122
|
-
* deserializeAws_json1_1DisableHealthServiceAccessForOrganizationCommand
|
|
123
|
-
*/
|
|
124
|
-
export declare const de_DisableHealthServiceAccessForOrganizationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DisableHealthServiceAccessForOrganizationCommandOutput>;
|
|
125
|
-
/**
|
|
126
|
-
* deserializeAws_json1_1EnableHealthServiceAccessForOrganizationCommand
|
|
127
|
-
*/
|
|
128
|
-
export declare const de_EnableHealthServiceAccessForOrganizationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<EnableHealthServiceAccessForOrganizationCommandOutput>;
|