@aws-sdk/client-health 3.310.0 → 3.315.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/protocols/Aws_json1_1.js +187 -640
- package/dist-es/protocols/Aws_json1_1.js +188 -641
- package/package.json +6 -6
|
@@ -1,118 +1,79 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException,
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { HealthServiceException as __BaseException } from "../models/HealthServiceException";
|
|
4
4
|
import { ConcurrentModificationException, InvalidPaginationToken, UnsupportedLocale, } from "../models/models_0";
|
|
5
5
|
export const se_DescribeAffectedAccountsForOrganizationCommand = async (input, context) => {
|
|
6
|
-
const headers =
|
|
7
|
-
"content-type": "application/x-amz-json-1.1",
|
|
8
|
-
"x-amz-target": "AWSHealth_20160804.DescribeAffectedAccountsForOrganization",
|
|
9
|
-
};
|
|
6
|
+
const headers = sharedHeaders("DescribeAffectedAccountsForOrganization");
|
|
10
7
|
let body;
|
|
11
|
-
body = JSON.stringify(
|
|
8
|
+
body = JSON.stringify(_json(input));
|
|
12
9
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
10
|
};
|
|
14
11
|
export const se_DescribeAffectedEntitiesCommand = async (input, context) => {
|
|
15
|
-
const headers =
|
|
16
|
-
"content-type": "application/x-amz-json-1.1",
|
|
17
|
-
"x-amz-target": "AWSHealth_20160804.DescribeAffectedEntities",
|
|
18
|
-
};
|
|
12
|
+
const headers = sharedHeaders("DescribeAffectedEntities");
|
|
19
13
|
let body;
|
|
20
14
|
body = JSON.stringify(se_DescribeAffectedEntitiesRequest(input, context));
|
|
21
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
16
|
};
|
|
23
17
|
export const se_DescribeAffectedEntitiesForOrganizationCommand = async (input, context) => {
|
|
24
|
-
const headers =
|
|
25
|
-
"content-type": "application/x-amz-json-1.1",
|
|
26
|
-
"x-amz-target": "AWSHealth_20160804.DescribeAffectedEntitiesForOrganization",
|
|
27
|
-
};
|
|
18
|
+
const headers = sharedHeaders("DescribeAffectedEntitiesForOrganization");
|
|
28
19
|
let body;
|
|
29
|
-
body = JSON.stringify(
|
|
20
|
+
body = JSON.stringify(_json(input));
|
|
30
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
22
|
};
|
|
32
23
|
export const se_DescribeEntityAggregatesCommand = async (input, context) => {
|
|
33
|
-
const headers =
|
|
34
|
-
"content-type": "application/x-amz-json-1.1",
|
|
35
|
-
"x-amz-target": "AWSHealth_20160804.DescribeEntityAggregates",
|
|
36
|
-
};
|
|
24
|
+
const headers = sharedHeaders("DescribeEntityAggregates");
|
|
37
25
|
let body;
|
|
38
|
-
body = JSON.stringify(
|
|
26
|
+
body = JSON.stringify(_json(input));
|
|
39
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
28
|
};
|
|
41
29
|
export const se_DescribeEventAggregatesCommand = async (input, context) => {
|
|
42
|
-
const headers =
|
|
43
|
-
"content-type": "application/x-amz-json-1.1",
|
|
44
|
-
"x-amz-target": "AWSHealth_20160804.DescribeEventAggregates",
|
|
45
|
-
};
|
|
30
|
+
const headers = sharedHeaders("DescribeEventAggregates");
|
|
46
31
|
let body;
|
|
47
32
|
body = JSON.stringify(se_DescribeEventAggregatesRequest(input, context));
|
|
48
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
34
|
};
|
|
50
35
|
export const se_DescribeEventDetailsCommand = async (input, context) => {
|
|
51
|
-
const headers =
|
|
52
|
-
"content-type": "application/x-amz-json-1.1",
|
|
53
|
-
"x-amz-target": "AWSHealth_20160804.DescribeEventDetails",
|
|
54
|
-
};
|
|
36
|
+
const headers = sharedHeaders("DescribeEventDetails");
|
|
55
37
|
let body;
|
|
56
|
-
body = JSON.stringify(
|
|
38
|
+
body = JSON.stringify(_json(input));
|
|
57
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
40
|
};
|
|
59
41
|
export const se_DescribeEventDetailsForOrganizationCommand = async (input, context) => {
|
|
60
|
-
const headers =
|
|
61
|
-
"content-type": "application/x-amz-json-1.1",
|
|
62
|
-
"x-amz-target": "AWSHealth_20160804.DescribeEventDetailsForOrganization",
|
|
63
|
-
};
|
|
42
|
+
const headers = sharedHeaders("DescribeEventDetailsForOrganization");
|
|
64
43
|
let body;
|
|
65
|
-
body = JSON.stringify(
|
|
44
|
+
body = JSON.stringify(_json(input));
|
|
66
45
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
46
|
};
|
|
68
47
|
export const se_DescribeEventsCommand = async (input, context) => {
|
|
69
|
-
const headers =
|
|
70
|
-
"content-type": "application/x-amz-json-1.1",
|
|
71
|
-
"x-amz-target": "AWSHealth_20160804.DescribeEvents",
|
|
72
|
-
};
|
|
48
|
+
const headers = sharedHeaders("DescribeEvents");
|
|
73
49
|
let body;
|
|
74
50
|
body = JSON.stringify(se_DescribeEventsRequest(input, context));
|
|
75
51
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
52
|
};
|
|
77
53
|
export const se_DescribeEventsForOrganizationCommand = async (input, context) => {
|
|
78
|
-
const headers =
|
|
79
|
-
"content-type": "application/x-amz-json-1.1",
|
|
80
|
-
"x-amz-target": "AWSHealth_20160804.DescribeEventsForOrganization",
|
|
81
|
-
};
|
|
54
|
+
const headers = sharedHeaders("DescribeEventsForOrganization");
|
|
82
55
|
let body;
|
|
83
56
|
body = JSON.stringify(se_DescribeEventsForOrganizationRequest(input, context));
|
|
84
57
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
58
|
};
|
|
86
59
|
export const se_DescribeEventTypesCommand = async (input, context) => {
|
|
87
|
-
const headers =
|
|
88
|
-
"content-type": "application/x-amz-json-1.1",
|
|
89
|
-
"x-amz-target": "AWSHealth_20160804.DescribeEventTypes",
|
|
90
|
-
};
|
|
60
|
+
const headers = sharedHeaders("DescribeEventTypes");
|
|
91
61
|
let body;
|
|
92
|
-
body = JSON.stringify(
|
|
62
|
+
body = JSON.stringify(_json(input));
|
|
93
63
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
64
|
};
|
|
95
65
|
export const se_DescribeHealthServiceStatusForOrganizationCommand = async (input, context) => {
|
|
96
|
-
const headers =
|
|
97
|
-
"content-type": "application/x-amz-json-1.1",
|
|
98
|
-
"x-amz-target": "AWSHealth_20160804.DescribeHealthServiceStatusForOrganization",
|
|
99
|
-
};
|
|
66
|
+
const headers = sharedHeaders("DescribeHealthServiceStatusForOrganization");
|
|
100
67
|
const body = "{}";
|
|
101
68
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
102
69
|
};
|
|
103
70
|
export const se_DisableHealthServiceAccessForOrganizationCommand = async (input, context) => {
|
|
104
|
-
const headers =
|
|
105
|
-
"content-type": "application/x-amz-json-1.1",
|
|
106
|
-
"x-amz-target": "AWSHealth_20160804.DisableHealthServiceAccessForOrganization",
|
|
107
|
-
};
|
|
71
|
+
const headers = sharedHeaders("DisableHealthServiceAccessForOrganization");
|
|
108
72
|
const body = "{}";
|
|
109
73
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
110
74
|
};
|
|
111
75
|
export const se_EnableHealthServiceAccessForOrganizationCommand = async (input, context) => {
|
|
112
|
-
const headers =
|
|
113
|
-
"content-type": "application/x-amz-json-1.1",
|
|
114
|
-
"x-amz-target": "AWSHealth_20160804.EnableHealthServiceAccessForOrganization",
|
|
115
|
-
};
|
|
76
|
+
const headers = sharedHeaders("EnableHealthServiceAccessForOrganization");
|
|
116
77
|
const body = "{}";
|
|
117
78
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
118
79
|
};
|
|
@@ -122,12 +83,12 @@ export const de_DescribeAffectedAccountsForOrganizationCommand = async (output,
|
|
|
122
83
|
}
|
|
123
84
|
const data = await parseBody(output.body, context);
|
|
124
85
|
let contents = {};
|
|
125
|
-
contents =
|
|
86
|
+
contents = _json(data);
|
|
126
87
|
const response = {
|
|
127
88
|
$metadata: deserializeMetadata(output),
|
|
128
89
|
...contents,
|
|
129
90
|
};
|
|
130
|
-
return
|
|
91
|
+
return response;
|
|
131
92
|
};
|
|
132
93
|
const de_DescribeAffectedAccountsForOrganizationCommandError = async (output, context) => {
|
|
133
94
|
const parsedOutput = {
|
|
@@ -141,10 +102,9 @@ const de_DescribeAffectedAccountsForOrganizationCommandError = async (output, co
|
|
|
141
102
|
throw await de_InvalidPaginationTokenRes(parsedOutput, context);
|
|
142
103
|
default:
|
|
143
104
|
const parsedBody = parsedOutput.body;
|
|
144
|
-
throwDefaultError({
|
|
105
|
+
return throwDefaultError({
|
|
145
106
|
output,
|
|
146
107
|
parsedBody,
|
|
147
|
-
exceptionCtor: __BaseException,
|
|
148
108
|
errorCode,
|
|
149
109
|
});
|
|
150
110
|
}
|
|
@@ -160,7 +120,7 @@ export const de_DescribeAffectedEntitiesCommand = async (output, context) => {
|
|
|
160
120
|
$metadata: deserializeMetadata(output),
|
|
161
121
|
...contents,
|
|
162
122
|
};
|
|
163
|
-
return
|
|
123
|
+
return response;
|
|
164
124
|
};
|
|
165
125
|
const de_DescribeAffectedEntitiesCommandError = async (output, context) => {
|
|
166
126
|
const parsedOutput = {
|
|
@@ -177,10 +137,9 @@ const de_DescribeAffectedEntitiesCommandError = async (output, context) => {
|
|
|
177
137
|
throw await de_UnsupportedLocaleRes(parsedOutput, context);
|
|
178
138
|
default:
|
|
179
139
|
const parsedBody = parsedOutput.body;
|
|
180
|
-
throwDefaultError({
|
|
140
|
+
return throwDefaultError({
|
|
181
141
|
output,
|
|
182
142
|
parsedBody,
|
|
183
|
-
exceptionCtor: __BaseException,
|
|
184
143
|
errorCode,
|
|
185
144
|
});
|
|
186
145
|
}
|
|
@@ -196,7 +155,7 @@ export const de_DescribeAffectedEntitiesForOrganizationCommand = async (output,
|
|
|
196
155
|
$metadata: deserializeMetadata(output),
|
|
197
156
|
...contents,
|
|
198
157
|
};
|
|
199
|
-
return
|
|
158
|
+
return response;
|
|
200
159
|
};
|
|
201
160
|
const de_DescribeAffectedEntitiesForOrganizationCommandError = async (output, context) => {
|
|
202
161
|
const parsedOutput = {
|
|
@@ -213,10 +172,9 @@ const de_DescribeAffectedEntitiesForOrganizationCommandError = async (output, co
|
|
|
213
172
|
throw await de_UnsupportedLocaleRes(parsedOutput, context);
|
|
214
173
|
default:
|
|
215
174
|
const parsedBody = parsedOutput.body;
|
|
216
|
-
throwDefaultError({
|
|
175
|
+
return throwDefaultError({
|
|
217
176
|
output,
|
|
218
177
|
parsedBody,
|
|
219
|
-
exceptionCtor: __BaseException,
|
|
220
178
|
errorCode,
|
|
221
179
|
});
|
|
222
180
|
}
|
|
@@ -227,12 +185,12 @@ export const de_DescribeEntityAggregatesCommand = async (output, context) => {
|
|
|
227
185
|
}
|
|
228
186
|
const data = await parseBody(output.body, context);
|
|
229
187
|
let contents = {};
|
|
230
|
-
contents =
|
|
188
|
+
contents = _json(data);
|
|
231
189
|
const response = {
|
|
232
190
|
$metadata: deserializeMetadata(output),
|
|
233
191
|
...contents,
|
|
234
192
|
};
|
|
235
|
-
return
|
|
193
|
+
return response;
|
|
236
194
|
};
|
|
237
195
|
const de_DescribeEntityAggregatesCommandError = async (output, context) => {
|
|
238
196
|
const parsedOutput = {
|
|
@@ -241,10 +199,9 @@ const de_DescribeEntityAggregatesCommandError = async (output, context) => {
|
|
|
241
199
|
};
|
|
242
200
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
243
201
|
const parsedBody = parsedOutput.body;
|
|
244
|
-
throwDefaultError({
|
|
202
|
+
return throwDefaultError({
|
|
245
203
|
output,
|
|
246
204
|
parsedBody,
|
|
247
|
-
exceptionCtor: __BaseException,
|
|
248
205
|
errorCode,
|
|
249
206
|
});
|
|
250
207
|
};
|
|
@@ -254,12 +211,12 @@ export const de_DescribeEventAggregatesCommand = async (output, context) => {
|
|
|
254
211
|
}
|
|
255
212
|
const data = await parseBody(output.body, context);
|
|
256
213
|
let contents = {};
|
|
257
|
-
contents =
|
|
214
|
+
contents = _json(data);
|
|
258
215
|
const response = {
|
|
259
216
|
$metadata: deserializeMetadata(output),
|
|
260
217
|
...contents,
|
|
261
218
|
};
|
|
262
|
-
return
|
|
219
|
+
return response;
|
|
263
220
|
};
|
|
264
221
|
const de_DescribeEventAggregatesCommandError = async (output, context) => {
|
|
265
222
|
const parsedOutput = {
|
|
@@ -273,10 +230,9 @@ const de_DescribeEventAggregatesCommandError = async (output, context) => {
|
|
|
273
230
|
throw await de_InvalidPaginationTokenRes(parsedOutput, context);
|
|
274
231
|
default:
|
|
275
232
|
const parsedBody = parsedOutput.body;
|
|
276
|
-
throwDefaultError({
|
|
233
|
+
return throwDefaultError({
|
|
277
234
|
output,
|
|
278
235
|
parsedBody,
|
|
279
|
-
exceptionCtor: __BaseException,
|
|
280
236
|
errorCode,
|
|
281
237
|
});
|
|
282
238
|
}
|
|
@@ -292,7 +248,7 @@ export const de_DescribeEventDetailsCommand = async (output, context) => {
|
|
|
292
248
|
$metadata: deserializeMetadata(output),
|
|
293
249
|
...contents,
|
|
294
250
|
};
|
|
295
|
-
return
|
|
251
|
+
return response;
|
|
296
252
|
};
|
|
297
253
|
const de_DescribeEventDetailsCommandError = async (output, context) => {
|
|
298
254
|
const parsedOutput = {
|
|
@@ -306,10 +262,9 @@ const de_DescribeEventDetailsCommandError = async (output, context) => {
|
|
|
306
262
|
throw await de_UnsupportedLocaleRes(parsedOutput, context);
|
|
307
263
|
default:
|
|
308
264
|
const parsedBody = parsedOutput.body;
|
|
309
|
-
throwDefaultError({
|
|
265
|
+
return throwDefaultError({
|
|
310
266
|
output,
|
|
311
267
|
parsedBody,
|
|
312
|
-
exceptionCtor: __BaseException,
|
|
313
268
|
errorCode,
|
|
314
269
|
});
|
|
315
270
|
}
|
|
@@ -325,7 +280,7 @@ export const de_DescribeEventDetailsForOrganizationCommand = async (output, cont
|
|
|
325
280
|
$metadata: deserializeMetadata(output),
|
|
326
281
|
...contents,
|
|
327
282
|
};
|
|
328
|
-
return
|
|
283
|
+
return response;
|
|
329
284
|
};
|
|
330
285
|
const de_DescribeEventDetailsForOrganizationCommandError = async (output, context) => {
|
|
331
286
|
const parsedOutput = {
|
|
@@ -339,10 +294,9 @@ const de_DescribeEventDetailsForOrganizationCommandError = async (output, contex
|
|
|
339
294
|
throw await de_UnsupportedLocaleRes(parsedOutput, context);
|
|
340
295
|
default:
|
|
341
296
|
const parsedBody = parsedOutput.body;
|
|
342
|
-
throwDefaultError({
|
|
297
|
+
return throwDefaultError({
|
|
343
298
|
output,
|
|
344
299
|
parsedBody,
|
|
345
|
-
exceptionCtor: __BaseException,
|
|
346
300
|
errorCode,
|
|
347
301
|
});
|
|
348
302
|
}
|
|
@@ -358,7 +312,7 @@ export const de_DescribeEventsCommand = async (output, context) => {
|
|
|
358
312
|
$metadata: deserializeMetadata(output),
|
|
359
313
|
...contents,
|
|
360
314
|
};
|
|
361
|
-
return
|
|
315
|
+
return response;
|
|
362
316
|
};
|
|
363
317
|
const de_DescribeEventsCommandError = async (output, context) => {
|
|
364
318
|
const parsedOutput = {
|
|
@@ -375,10 +329,9 @@ const de_DescribeEventsCommandError = async (output, context) => {
|
|
|
375
329
|
throw await de_UnsupportedLocaleRes(parsedOutput, context);
|
|
376
330
|
default:
|
|
377
331
|
const parsedBody = parsedOutput.body;
|
|
378
|
-
throwDefaultError({
|
|
332
|
+
return throwDefaultError({
|
|
379
333
|
output,
|
|
380
334
|
parsedBody,
|
|
381
|
-
exceptionCtor: __BaseException,
|
|
382
335
|
errorCode,
|
|
383
336
|
});
|
|
384
337
|
}
|
|
@@ -394,7 +347,7 @@ export const de_DescribeEventsForOrganizationCommand = async (output, context) =
|
|
|
394
347
|
$metadata: deserializeMetadata(output),
|
|
395
348
|
...contents,
|
|
396
349
|
};
|
|
397
|
-
return
|
|
350
|
+
return response;
|
|
398
351
|
};
|
|
399
352
|
const de_DescribeEventsForOrganizationCommandError = async (output, context) => {
|
|
400
353
|
const parsedOutput = {
|
|
@@ -411,10 +364,9 @@ const de_DescribeEventsForOrganizationCommandError = async (output, context) =>
|
|
|
411
364
|
throw await de_UnsupportedLocaleRes(parsedOutput, context);
|
|
412
365
|
default:
|
|
413
366
|
const parsedBody = parsedOutput.body;
|
|
414
|
-
throwDefaultError({
|
|
367
|
+
return throwDefaultError({
|
|
415
368
|
output,
|
|
416
369
|
parsedBody,
|
|
417
|
-
exceptionCtor: __BaseException,
|
|
418
370
|
errorCode,
|
|
419
371
|
});
|
|
420
372
|
}
|
|
@@ -425,12 +377,12 @@ export const de_DescribeEventTypesCommand = async (output, context) => {
|
|
|
425
377
|
}
|
|
426
378
|
const data = await parseBody(output.body, context);
|
|
427
379
|
let contents = {};
|
|
428
|
-
contents =
|
|
380
|
+
contents = _json(data);
|
|
429
381
|
const response = {
|
|
430
382
|
$metadata: deserializeMetadata(output),
|
|
431
383
|
...contents,
|
|
432
384
|
};
|
|
433
|
-
return
|
|
385
|
+
return response;
|
|
434
386
|
};
|
|
435
387
|
const de_DescribeEventTypesCommandError = async (output, context) => {
|
|
436
388
|
const parsedOutput = {
|
|
@@ -447,10 +399,9 @@ const de_DescribeEventTypesCommandError = async (output, context) => {
|
|
|
447
399
|
throw await de_UnsupportedLocaleRes(parsedOutput, context);
|
|
448
400
|
default:
|
|
449
401
|
const parsedBody = parsedOutput.body;
|
|
450
|
-
throwDefaultError({
|
|
402
|
+
return throwDefaultError({
|
|
451
403
|
output,
|
|
452
404
|
parsedBody,
|
|
453
|
-
exceptionCtor: __BaseException,
|
|
454
405
|
errorCode,
|
|
455
406
|
});
|
|
456
407
|
}
|
|
@@ -461,12 +412,12 @@ export const de_DescribeHealthServiceStatusForOrganizationCommand = async (outpu
|
|
|
461
412
|
}
|
|
462
413
|
const data = await parseBody(output.body, context);
|
|
463
414
|
let contents = {};
|
|
464
|
-
contents =
|
|
415
|
+
contents = _json(data);
|
|
465
416
|
const response = {
|
|
466
417
|
$metadata: deserializeMetadata(output),
|
|
467
418
|
...contents,
|
|
468
419
|
};
|
|
469
|
-
return
|
|
420
|
+
return response;
|
|
470
421
|
};
|
|
471
422
|
const de_DescribeHealthServiceStatusForOrganizationCommandError = async (output, context) => {
|
|
472
423
|
const parsedOutput = {
|
|
@@ -475,10 +426,9 @@ const de_DescribeHealthServiceStatusForOrganizationCommandError = async (output,
|
|
|
475
426
|
};
|
|
476
427
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
477
428
|
const parsedBody = parsedOutput.body;
|
|
478
|
-
throwDefaultError({
|
|
429
|
+
return throwDefaultError({
|
|
479
430
|
output,
|
|
480
431
|
parsedBody,
|
|
481
|
-
exceptionCtor: __BaseException,
|
|
482
432
|
errorCode,
|
|
483
433
|
});
|
|
484
434
|
};
|
|
@@ -490,7 +440,7 @@ export const de_DisableHealthServiceAccessForOrganizationCommand = async (output
|
|
|
490
440
|
const response = {
|
|
491
441
|
$metadata: deserializeMetadata(output),
|
|
492
442
|
};
|
|
493
|
-
return
|
|
443
|
+
return response;
|
|
494
444
|
};
|
|
495
445
|
const de_DisableHealthServiceAccessForOrganizationCommandError = async (output, context) => {
|
|
496
446
|
const parsedOutput = {
|
|
@@ -504,10 +454,9 @@ const de_DisableHealthServiceAccessForOrganizationCommandError = async (output,
|
|
|
504
454
|
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
505
455
|
default:
|
|
506
456
|
const parsedBody = parsedOutput.body;
|
|
507
|
-
throwDefaultError({
|
|
457
|
+
return throwDefaultError({
|
|
508
458
|
output,
|
|
509
459
|
parsedBody,
|
|
510
|
-
exceptionCtor: __BaseException,
|
|
511
460
|
errorCode,
|
|
512
461
|
});
|
|
513
462
|
}
|
|
@@ -520,7 +469,7 @@ export const de_EnableHealthServiceAccessForOrganizationCommand = async (output,
|
|
|
520
469
|
const response = {
|
|
521
470
|
$metadata: deserializeMetadata(output),
|
|
522
471
|
};
|
|
523
|
-
return
|
|
472
|
+
return response;
|
|
524
473
|
};
|
|
525
474
|
const de_EnableHealthServiceAccessForOrganizationCommandError = async (output, context) => {
|
|
526
475
|
const parsedOutput = {
|
|
@@ -534,17 +483,16 @@ const de_EnableHealthServiceAccessForOrganizationCommandError = async (output, c
|
|
|
534
483
|
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
535
484
|
default:
|
|
536
485
|
const parsedBody = parsedOutput.body;
|
|
537
|
-
throwDefaultError({
|
|
486
|
+
return throwDefaultError({
|
|
538
487
|
output,
|
|
539
488
|
parsedBody,
|
|
540
|
-
exceptionCtor: __BaseException,
|
|
541
489
|
errorCode,
|
|
542
490
|
});
|
|
543
491
|
}
|
|
544
492
|
};
|
|
545
493
|
const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
546
494
|
const body = parsedOutput.body;
|
|
547
|
-
const deserialized =
|
|
495
|
+
const deserialized = _json(body);
|
|
548
496
|
const exception = new ConcurrentModificationException({
|
|
549
497
|
$metadata: deserializeMetadata(parsedOutput),
|
|
550
498
|
...deserialized,
|
|
@@ -553,7 +501,7 @@ const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
|
553
501
|
};
|
|
554
502
|
const de_InvalidPaginationTokenRes = async (parsedOutput, context) => {
|
|
555
503
|
const body = parsedOutput.body;
|
|
556
|
-
const deserialized =
|
|
504
|
+
const deserialized = _json(body);
|
|
557
505
|
const exception = new InvalidPaginationToken({
|
|
558
506
|
$metadata: deserializeMetadata(parsedOutput),
|
|
559
507
|
...deserialized,
|
|
@@ -562,32 +510,18 @@ const de_InvalidPaginationTokenRes = async (parsedOutput, context) => {
|
|
|
562
510
|
};
|
|
563
511
|
const de_UnsupportedLocaleRes = async (parsedOutput, context) => {
|
|
564
512
|
const body = parsedOutput.body;
|
|
565
|
-
const deserialized =
|
|
513
|
+
const deserialized = _json(body);
|
|
566
514
|
const exception = new UnsupportedLocale({
|
|
567
515
|
$metadata: deserializeMetadata(parsedOutput),
|
|
568
516
|
...deserialized,
|
|
569
517
|
});
|
|
570
518
|
return __decorateServiceException(exception, body);
|
|
571
519
|
};
|
|
572
|
-
const se_availabilityZones = (input, context) => {
|
|
573
|
-
return input
|
|
574
|
-
.filter((e) => e != null)
|
|
575
|
-
.map((entry) => {
|
|
576
|
-
return entry;
|
|
577
|
-
});
|
|
578
|
-
};
|
|
579
|
-
const se_awsAccountIdsList = (input, context) => {
|
|
580
|
-
return input
|
|
581
|
-
.filter((e) => e != null)
|
|
582
|
-
.map((entry) => {
|
|
583
|
-
return entry;
|
|
584
|
-
});
|
|
585
|
-
};
|
|
586
520
|
const se_DateTimeRange = (input, context) => {
|
|
587
|
-
return {
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
};
|
|
521
|
+
return take(input, {
|
|
522
|
+
from: (_) => Math.round(_.getTime() / 1000),
|
|
523
|
+
to: (_) => Math.round(_.getTime() / 1000),
|
|
524
|
+
});
|
|
591
525
|
};
|
|
592
526
|
const se_dateTimeRangeList = (input, context) => {
|
|
593
527
|
return input
|
|
@@ -596,607 +530,213 @@ const se_dateTimeRangeList = (input, context) => {
|
|
|
596
530
|
return se_DateTimeRange(entry, context);
|
|
597
531
|
});
|
|
598
532
|
};
|
|
599
|
-
const se_DescribeAffectedAccountsForOrganizationRequest = (input, context) => {
|
|
600
|
-
return {
|
|
601
|
-
...(input.eventArn != null && { eventArn: input.eventArn }),
|
|
602
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
603
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
604
|
-
};
|
|
605
|
-
};
|
|
606
|
-
const se_DescribeAffectedEntitiesForOrganizationRequest = (input, context) => {
|
|
607
|
-
return {
|
|
608
|
-
...(input.locale != null && { locale: input.locale }),
|
|
609
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
610
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
611
|
-
...(input.organizationEntityFilters != null && {
|
|
612
|
-
organizationEntityFilters: se_OrganizationEntityFiltersList(input.organizationEntityFilters, context),
|
|
613
|
-
}),
|
|
614
|
-
};
|
|
615
|
-
};
|
|
616
533
|
const se_DescribeAffectedEntitiesRequest = (input, context) => {
|
|
617
|
-
return {
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
};
|
|
623
|
-
};
|
|
624
|
-
const se_DescribeEntityAggregatesRequest = (input, context) => {
|
|
625
|
-
return {
|
|
626
|
-
...(input.eventArns != null && { eventArns: se_EventArnsList(input.eventArns, context) }),
|
|
627
|
-
};
|
|
534
|
+
return take(input, {
|
|
535
|
+
filter: (_) => se_EntityFilter(_, context),
|
|
536
|
+
locale: [],
|
|
537
|
+
maxResults: [],
|
|
538
|
+
nextToken: [],
|
|
539
|
+
});
|
|
628
540
|
};
|
|
629
541
|
const se_DescribeEventAggregatesRequest = (input, context) => {
|
|
630
|
-
return {
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
};
|
|
636
|
-
};
|
|
637
|
-
const se_DescribeEventDetailsForOrganizationRequest = (input, context) => {
|
|
638
|
-
return {
|
|
639
|
-
...(input.locale != null && { locale: input.locale }),
|
|
640
|
-
...(input.organizationEventDetailFilters != null && {
|
|
641
|
-
organizationEventDetailFilters: se_OrganizationEventDetailFiltersList(input.organizationEventDetailFilters, context),
|
|
642
|
-
}),
|
|
643
|
-
};
|
|
644
|
-
};
|
|
645
|
-
const se_DescribeEventDetailsRequest = (input, context) => {
|
|
646
|
-
return {
|
|
647
|
-
...(input.eventArns != null && { eventArns: se_eventArnList(input.eventArns, context) }),
|
|
648
|
-
...(input.locale != null && { locale: input.locale }),
|
|
649
|
-
};
|
|
542
|
+
return take(input, {
|
|
543
|
+
aggregateField: [],
|
|
544
|
+
filter: (_) => se_EventFilter(_, context),
|
|
545
|
+
maxResults: [],
|
|
546
|
+
nextToken: [],
|
|
547
|
+
});
|
|
650
548
|
};
|
|
651
549
|
const se_DescribeEventsForOrganizationRequest = (input, context) => {
|
|
652
|
-
return {
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
};
|
|
550
|
+
return take(input, {
|
|
551
|
+
filter: (_) => se_OrganizationEventFilter(_, context),
|
|
552
|
+
locale: [],
|
|
553
|
+
maxResults: [],
|
|
554
|
+
nextToken: [],
|
|
555
|
+
});
|
|
658
556
|
};
|
|
659
557
|
const se_DescribeEventsRequest = (input, context) => {
|
|
660
|
-
return {
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
};
|
|
666
|
-
};
|
|
667
|
-
const se_DescribeEventTypesRequest = (input, context) => {
|
|
668
|
-
return {
|
|
669
|
-
...(input.filter != null && { filter: se_EventTypeFilter(input.filter, context) }),
|
|
670
|
-
...(input.locale != null && { locale: input.locale }),
|
|
671
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
672
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
673
|
-
};
|
|
674
|
-
};
|
|
675
|
-
const se_entityArnList = (input, context) => {
|
|
676
|
-
return input
|
|
677
|
-
.filter((e) => e != null)
|
|
678
|
-
.map((entry) => {
|
|
679
|
-
return entry;
|
|
558
|
+
return take(input, {
|
|
559
|
+
filter: (_) => se_EventFilter(_, context),
|
|
560
|
+
locale: [],
|
|
561
|
+
maxResults: [],
|
|
562
|
+
nextToken: [],
|
|
680
563
|
});
|
|
681
564
|
};
|
|
682
565
|
const se_EntityFilter = (input, context) => {
|
|
683
|
-
return {
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
};
|
|
691
|
-
};
|
|
692
|
-
const se_entityStatusCodeList = (input, context) => {
|
|
693
|
-
return input
|
|
694
|
-
.filter((e) => e != null)
|
|
695
|
-
.map((entry) => {
|
|
696
|
-
return entry;
|
|
697
|
-
});
|
|
698
|
-
};
|
|
699
|
-
const se_entityValueList = (input, context) => {
|
|
700
|
-
return input
|
|
701
|
-
.filter((e) => e != null)
|
|
702
|
-
.map((entry) => {
|
|
703
|
-
return entry;
|
|
704
|
-
});
|
|
705
|
-
};
|
|
706
|
-
const se_EventAccountFilter = (input, context) => {
|
|
707
|
-
return {
|
|
708
|
-
...(input.awsAccountId != null && { awsAccountId: input.awsAccountId }),
|
|
709
|
-
...(input.eventArn != null && { eventArn: input.eventArn }),
|
|
710
|
-
};
|
|
711
|
-
};
|
|
712
|
-
const se_eventArnList = (input, context) => {
|
|
713
|
-
return input
|
|
714
|
-
.filter((e) => e != null)
|
|
715
|
-
.map((entry) => {
|
|
716
|
-
return entry;
|
|
717
|
-
});
|
|
718
|
-
};
|
|
719
|
-
const se_EventArnsList = (input, context) => {
|
|
720
|
-
return input
|
|
721
|
-
.filter((e) => e != null)
|
|
722
|
-
.map((entry) => {
|
|
723
|
-
return entry;
|
|
566
|
+
return take(input, {
|
|
567
|
+
entityArns: _json,
|
|
568
|
+
entityValues: _json,
|
|
569
|
+
eventArns: _json,
|
|
570
|
+
lastUpdatedTimes: (_) => se_dateTimeRangeList(_, context),
|
|
571
|
+
statusCodes: _json,
|
|
572
|
+
tags: _json,
|
|
724
573
|
});
|
|
725
574
|
};
|
|
726
575
|
const se_EventFilter = (input, context) => {
|
|
727
|
-
return {
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
...(input.eventTypeCodes != null && { eventTypeCodes: se_eventTypeList2(input.eventTypeCodes, context) }),
|
|
742
|
-
...(input.lastUpdatedTimes != null && { lastUpdatedTimes: se_dateTimeRangeList(input.lastUpdatedTimes, context) }),
|
|
743
|
-
...(input.regions != null && { regions: se_regionList(input.regions, context) }),
|
|
744
|
-
...(input.services != null && { services: se_serviceList(input.services, context) }),
|
|
745
|
-
...(input.startTimes != null && { startTimes: se_dateTimeRangeList(input.startTimes, context) }),
|
|
746
|
-
...(input.tags != null && { tags: se_tagFilter(input.tags, context) }),
|
|
747
|
-
};
|
|
748
|
-
};
|
|
749
|
-
const se_eventStatusCodeList = (input, context) => {
|
|
750
|
-
return input
|
|
751
|
-
.filter((e) => e != null)
|
|
752
|
-
.map((entry) => {
|
|
753
|
-
return entry;
|
|
754
|
-
});
|
|
755
|
-
};
|
|
756
|
-
const se_EventTypeCategoryList = (input, context) => {
|
|
757
|
-
return input
|
|
758
|
-
.filter((e) => e != null)
|
|
759
|
-
.map((entry) => {
|
|
760
|
-
return entry;
|
|
761
|
-
});
|
|
762
|
-
};
|
|
763
|
-
const se_eventTypeCategoryList2 = (input, context) => {
|
|
764
|
-
return input
|
|
765
|
-
.filter((e) => e != null)
|
|
766
|
-
.map((entry) => {
|
|
767
|
-
return entry;
|
|
768
|
-
});
|
|
769
|
-
};
|
|
770
|
-
const se_EventTypeCodeList = (input, context) => {
|
|
771
|
-
return input
|
|
772
|
-
.filter((e) => e != null)
|
|
773
|
-
.map((entry) => {
|
|
774
|
-
return entry;
|
|
775
|
-
});
|
|
776
|
-
};
|
|
777
|
-
const se_EventTypeFilter = (input, context) => {
|
|
778
|
-
return {
|
|
779
|
-
...(input.eventTypeCategories != null && {
|
|
780
|
-
eventTypeCategories: se_EventTypeCategoryList(input.eventTypeCategories, context),
|
|
781
|
-
}),
|
|
782
|
-
...(input.eventTypeCodes != null && { eventTypeCodes: se_EventTypeCodeList(input.eventTypeCodes, context) }),
|
|
783
|
-
...(input.services != null && { services: se_serviceList(input.services, context) }),
|
|
784
|
-
};
|
|
785
|
-
};
|
|
786
|
-
const se_eventTypeList2 = (input, context) => {
|
|
787
|
-
return input
|
|
788
|
-
.filter((e) => e != null)
|
|
789
|
-
.map((entry) => {
|
|
790
|
-
return entry;
|
|
791
|
-
});
|
|
792
|
-
};
|
|
793
|
-
const se_OrganizationEntityFiltersList = (input, context) => {
|
|
794
|
-
return input
|
|
795
|
-
.filter((e) => e != null)
|
|
796
|
-
.map((entry) => {
|
|
797
|
-
return se_EventAccountFilter(entry, context);
|
|
798
|
-
});
|
|
799
|
-
};
|
|
800
|
-
const se_OrganizationEventDetailFiltersList = (input, context) => {
|
|
801
|
-
return input
|
|
802
|
-
.filter((e) => e != null)
|
|
803
|
-
.map((entry) => {
|
|
804
|
-
return se_EventAccountFilter(entry, context);
|
|
576
|
+
return take(input, {
|
|
577
|
+
availabilityZones: _json,
|
|
578
|
+
endTimes: (_) => se_dateTimeRangeList(_, context),
|
|
579
|
+
entityArns: _json,
|
|
580
|
+
entityValues: _json,
|
|
581
|
+
eventArns: _json,
|
|
582
|
+
eventStatusCodes: _json,
|
|
583
|
+
eventTypeCategories: _json,
|
|
584
|
+
eventTypeCodes: _json,
|
|
585
|
+
lastUpdatedTimes: (_) => se_dateTimeRangeList(_, context),
|
|
586
|
+
regions: _json,
|
|
587
|
+
services: _json,
|
|
588
|
+
startTimes: (_) => se_dateTimeRangeList(_, context),
|
|
589
|
+
tags: _json,
|
|
805
590
|
});
|
|
806
591
|
};
|
|
807
592
|
const se_OrganizationEventFilter = (input, context) => {
|
|
808
|
-
return {
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
...(input.lastUpdatedTime != null && { lastUpdatedTime: se_DateTimeRange(input.lastUpdatedTime, context) }),
|
|
821
|
-
...(input.regions != null && { regions: se_regionList(input.regions, context) }),
|
|
822
|
-
...(input.services != null && { services: se_serviceList(input.services, context) }),
|
|
823
|
-
...(input.startTime != null && { startTime: se_DateTimeRange(input.startTime, context) }),
|
|
824
|
-
};
|
|
825
|
-
};
|
|
826
|
-
const se_regionList = (input, context) => {
|
|
827
|
-
return input
|
|
828
|
-
.filter((e) => e != null)
|
|
829
|
-
.map((entry) => {
|
|
830
|
-
return entry;
|
|
831
|
-
});
|
|
832
|
-
};
|
|
833
|
-
const se_serviceList = (input, context) => {
|
|
834
|
-
return input
|
|
835
|
-
.filter((e) => e != null)
|
|
836
|
-
.map((entry) => {
|
|
837
|
-
return entry;
|
|
838
|
-
});
|
|
839
|
-
};
|
|
840
|
-
const se_tagFilter = (input, context) => {
|
|
841
|
-
return input
|
|
842
|
-
.filter((e) => e != null)
|
|
843
|
-
.map((entry) => {
|
|
844
|
-
return se_tagSet(entry, context);
|
|
593
|
+
return take(input, {
|
|
594
|
+
awsAccountIds: _json,
|
|
595
|
+
endTime: (_) => se_DateTimeRange(_, context),
|
|
596
|
+
entityArns: _json,
|
|
597
|
+
entityValues: _json,
|
|
598
|
+
eventStatusCodes: _json,
|
|
599
|
+
eventTypeCategories: _json,
|
|
600
|
+
eventTypeCodes: _json,
|
|
601
|
+
lastUpdatedTime: (_) => se_DateTimeRange(_, context),
|
|
602
|
+
regions: _json,
|
|
603
|
+
services: _json,
|
|
604
|
+
startTime: (_) => se_DateTimeRange(_, context),
|
|
845
605
|
});
|
|
846
606
|
};
|
|
847
|
-
const se_tagSet = (input, context) => {
|
|
848
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
849
|
-
if (value === null) {
|
|
850
|
-
return acc;
|
|
851
|
-
}
|
|
852
|
-
acc[key] = value;
|
|
853
|
-
return acc;
|
|
854
|
-
}, {});
|
|
855
|
-
};
|
|
856
|
-
const de_affectedAccountsList = (output, context) => {
|
|
857
|
-
const retVal = (output || [])
|
|
858
|
-
.filter((e) => e != null)
|
|
859
|
-
.map((entry) => {
|
|
860
|
-
if (entry === null) {
|
|
861
|
-
return null;
|
|
862
|
-
}
|
|
863
|
-
return __expectString(entry);
|
|
864
|
-
});
|
|
865
|
-
return retVal;
|
|
866
|
-
};
|
|
867
607
|
const de_AffectedEntity = (output, context) => {
|
|
868
|
-
return {
|
|
869
|
-
awsAccountId: __expectString
|
|
870
|
-
entityArn: __expectString
|
|
871
|
-
entityUrl: __expectString
|
|
872
|
-
entityValue: __expectString
|
|
873
|
-
eventArn: __expectString
|
|
874
|
-
lastUpdatedTime:
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
statusCode: __expectString(output.statusCode),
|
|
878
|
-
tags: output.tags != null ? de_tagSet(output.tags, context) : undefined,
|
|
879
|
-
};
|
|
880
|
-
};
|
|
881
|
-
const de_ConcurrentModificationException = (output, context) => {
|
|
882
|
-
return {
|
|
883
|
-
message: __expectString(output.message),
|
|
884
|
-
};
|
|
885
|
-
};
|
|
886
|
-
const de_DescribeAffectedAccountsForOrganizationResponse = (output, context) => {
|
|
887
|
-
return {
|
|
888
|
-
affectedAccounts: output.affectedAccounts != null ? de_affectedAccountsList(output.affectedAccounts, context) : undefined,
|
|
889
|
-
eventScopeCode: __expectString(output.eventScopeCode),
|
|
890
|
-
nextToken: __expectString(output.nextToken),
|
|
891
|
-
};
|
|
892
|
-
};
|
|
893
|
-
const de_DescribeAffectedEntitiesForOrganizationFailedSet = (output, context) => {
|
|
894
|
-
const retVal = (output || [])
|
|
895
|
-
.filter((e) => e != null)
|
|
896
|
-
.map((entry) => {
|
|
897
|
-
if (entry === null) {
|
|
898
|
-
return null;
|
|
899
|
-
}
|
|
900
|
-
return de_OrganizationAffectedEntitiesErrorItem(entry, context);
|
|
608
|
+
return take(output, {
|
|
609
|
+
awsAccountId: __expectString,
|
|
610
|
+
entityArn: __expectString,
|
|
611
|
+
entityUrl: __expectString,
|
|
612
|
+
entityValue: __expectString,
|
|
613
|
+
eventArn: __expectString,
|
|
614
|
+
lastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
615
|
+
statusCode: __expectString,
|
|
616
|
+
tags: _json,
|
|
901
617
|
});
|
|
902
|
-
return retVal;
|
|
903
618
|
};
|
|
904
619
|
const de_DescribeAffectedEntitiesForOrganizationResponse = (output, context) => {
|
|
905
|
-
return {
|
|
906
|
-
entities:
|
|
907
|
-
failedSet:
|
|
908
|
-
|
|
909
|
-
: undefined,
|
|
910
|
-
nextToken: __expectString(output.nextToken),
|
|
911
|
-
};
|
|
912
|
-
};
|
|
913
|
-
const de_DescribeAffectedEntitiesResponse = (output, context) => {
|
|
914
|
-
return {
|
|
915
|
-
entities: output.entities != null ? de_EntityList(output.entities, context) : undefined,
|
|
916
|
-
nextToken: __expectString(output.nextToken),
|
|
917
|
-
};
|
|
918
|
-
};
|
|
919
|
-
const de_DescribeEntityAggregatesResponse = (output, context) => {
|
|
920
|
-
return {
|
|
921
|
-
entityAggregates: output.entityAggregates != null ? de_EntityAggregateList(output.entityAggregates, context) : undefined,
|
|
922
|
-
};
|
|
923
|
-
};
|
|
924
|
-
const de_DescribeEventAggregatesResponse = (output, context) => {
|
|
925
|
-
return {
|
|
926
|
-
eventAggregates: output.eventAggregates != null ? de_EventAggregateList(output.eventAggregates, context) : undefined,
|
|
927
|
-
nextToken: __expectString(output.nextToken),
|
|
928
|
-
};
|
|
929
|
-
};
|
|
930
|
-
const de_DescribeEventDetailsFailedSet = (output, context) => {
|
|
931
|
-
const retVal = (output || [])
|
|
932
|
-
.filter((e) => e != null)
|
|
933
|
-
.map((entry) => {
|
|
934
|
-
if (entry === null) {
|
|
935
|
-
return null;
|
|
936
|
-
}
|
|
937
|
-
return de_EventDetailsErrorItem(entry, context);
|
|
620
|
+
return take(output, {
|
|
621
|
+
entities: (_) => de_EntityList(_, context),
|
|
622
|
+
failedSet: _json,
|
|
623
|
+
nextToken: __expectString,
|
|
938
624
|
});
|
|
939
|
-
return retVal;
|
|
940
625
|
};
|
|
941
|
-
const
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
if (entry === null) {
|
|
946
|
-
return null;
|
|
947
|
-
}
|
|
948
|
-
return de_OrganizationEventDetailsErrorItem(entry, context);
|
|
626
|
+
const de_DescribeAffectedEntitiesResponse = (output, context) => {
|
|
627
|
+
return take(output, {
|
|
628
|
+
entities: (_) => de_EntityList(_, context),
|
|
629
|
+
nextToken: __expectString,
|
|
949
630
|
});
|
|
950
|
-
return retVal;
|
|
951
631
|
};
|
|
952
632
|
const de_DescribeEventDetailsForOrganizationResponse = (output, context) => {
|
|
953
|
-
return {
|
|
954
|
-
failedSet:
|
|
955
|
-
successfulSet:
|
|
956
|
-
|
|
957
|
-
: undefined,
|
|
958
|
-
};
|
|
633
|
+
return take(output, {
|
|
634
|
+
failedSet: _json,
|
|
635
|
+
successfulSet: (_) => de_DescribeEventDetailsForOrganizationSuccessfulSet(_, context),
|
|
636
|
+
});
|
|
959
637
|
};
|
|
960
638
|
const de_DescribeEventDetailsForOrganizationSuccessfulSet = (output, context) => {
|
|
961
639
|
const retVal = (output || [])
|
|
962
640
|
.filter((e) => e != null)
|
|
963
641
|
.map((entry) => {
|
|
964
|
-
if (entry === null) {
|
|
965
|
-
return null;
|
|
966
|
-
}
|
|
967
642
|
return de_OrganizationEventDetails(entry, context);
|
|
968
643
|
});
|
|
969
644
|
return retVal;
|
|
970
645
|
};
|
|
971
646
|
const de_DescribeEventDetailsResponse = (output, context) => {
|
|
972
|
-
return {
|
|
973
|
-
failedSet:
|
|
974
|
-
successfulSet:
|
|
975
|
-
};
|
|
647
|
+
return take(output, {
|
|
648
|
+
failedSet: _json,
|
|
649
|
+
successfulSet: (_) => de_DescribeEventDetailsSuccessfulSet(_, context),
|
|
650
|
+
});
|
|
976
651
|
};
|
|
977
652
|
const de_DescribeEventDetailsSuccessfulSet = (output, context) => {
|
|
978
653
|
const retVal = (output || [])
|
|
979
654
|
.filter((e) => e != null)
|
|
980
655
|
.map((entry) => {
|
|
981
|
-
if (entry === null) {
|
|
982
|
-
return null;
|
|
983
|
-
}
|
|
984
656
|
return de_EventDetails(entry, context);
|
|
985
657
|
});
|
|
986
658
|
return retVal;
|
|
987
659
|
};
|
|
988
660
|
const de_DescribeEventsForOrganizationResponse = (output, context) => {
|
|
989
|
-
return {
|
|
990
|
-
events:
|
|
991
|
-
nextToken: __expectString
|
|
992
|
-
};
|
|
661
|
+
return take(output, {
|
|
662
|
+
events: (_) => de_OrganizationEventList(_, context),
|
|
663
|
+
nextToken: __expectString,
|
|
664
|
+
});
|
|
993
665
|
};
|
|
994
666
|
const de_DescribeEventsResponse = (output, context) => {
|
|
995
|
-
return {
|
|
996
|
-
events:
|
|
997
|
-
nextToken: __expectString
|
|
998
|
-
};
|
|
999
|
-
};
|
|
1000
|
-
const de_DescribeEventTypesResponse = (output, context) => {
|
|
1001
|
-
return {
|
|
1002
|
-
eventTypes: output.eventTypes != null ? de_EventTypeList(output.eventTypes, context) : undefined,
|
|
1003
|
-
nextToken: __expectString(output.nextToken),
|
|
1004
|
-
};
|
|
1005
|
-
};
|
|
1006
|
-
const de_DescribeHealthServiceStatusForOrganizationResponse = (output, context) => {
|
|
1007
|
-
return {
|
|
1008
|
-
healthServiceAccessStatusForOrganization: __expectString(output.healthServiceAccessStatusForOrganization),
|
|
1009
|
-
};
|
|
1010
|
-
};
|
|
1011
|
-
const de_EntityAggregate = (output, context) => {
|
|
1012
|
-
return {
|
|
1013
|
-
count: __expectInt32(output.count),
|
|
1014
|
-
eventArn: __expectString(output.eventArn),
|
|
1015
|
-
};
|
|
1016
|
-
};
|
|
1017
|
-
const de_EntityAggregateList = (output, context) => {
|
|
1018
|
-
const retVal = (output || [])
|
|
1019
|
-
.filter((e) => e != null)
|
|
1020
|
-
.map((entry) => {
|
|
1021
|
-
if (entry === null) {
|
|
1022
|
-
return null;
|
|
1023
|
-
}
|
|
1024
|
-
return de_EntityAggregate(entry, context);
|
|
667
|
+
return take(output, {
|
|
668
|
+
events: (_) => de_EventList(_, context),
|
|
669
|
+
nextToken: __expectString,
|
|
1025
670
|
});
|
|
1026
|
-
return retVal;
|
|
1027
671
|
};
|
|
1028
672
|
const de_EntityList = (output, context) => {
|
|
1029
673
|
const retVal = (output || [])
|
|
1030
674
|
.filter((e) => e != null)
|
|
1031
675
|
.map((entry) => {
|
|
1032
|
-
if (entry === null) {
|
|
1033
|
-
return null;
|
|
1034
|
-
}
|
|
1035
676
|
return de_AffectedEntity(entry, context);
|
|
1036
677
|
});
|
|
1037
678
|
return retVal;
|
|
1038
679
|
};
|
|
1039
680
|
const de_Event = (output, context) => {
|
|
1040
|
-
return {
|
|
1041
|
-
arn: __expectString
|
|
1042
|
-
availabilityZone: __expectString
|
|
1043
|
-
endTime:
|
|
1044
|
-
eventScopeCode: __expectString
|
|
1045
|
-
eventTypeCategory: __expectString
|
|
1046
|
-
eventTypeCode: __expectString
|
|
1047
|
-
lastUpdatedTime:
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
startTime: output.startTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime))) : undefined,
|
|
1053
|
-
statusCode: __expectString(output.statusCode),
|
|
1054
|
-
};
|
|
1055
|
-
};
|
|
1056
|
-
const de_EventAggregate = (output, context) => {
|
|
1057
|
-
return {
|
|
1058
|
-
aggregateValue: __expectString(output.aggregateValue),
|
|
1059
|
-
count: __expectInt32(output.count),
|
|
1060
|
-
};
|
|
1061
|
-
};
|
|
1062
|
-
const de_EventAggregateList = (output, context) => {
|
|
1063
|
-
const retVal = (output || [])
|
|
1064
|
-
.filter((e) => e != null)
|
|
1065
|
-
.map((entry) => {
|
|
1066
|
-
if (entry === null) {
|
|
1067
|
-
return null;
|
|
1068
|
-
}
|
|
1069
|
-
return de_EventAggregate(entry, context);
|
|
681
|
+
return take(output, {
|
|
682
|
+
arn: __expectString,
|
|
683
|
+
availabilityZone: __expectString,
|
|
684
|
+
endTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
685
|
+
eventScopeCode: __expectString,
|
|
686
|
+
eventTypeCategory: __expectString,
|
|
687
|
+
eventTypeCode: __expectString,
|
|
688
|
+
lastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
689
|
+
region: __expectString,
|
|
690
|
+
service: __expectString,
|
|
691
|
+
startTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
692
|
+
statusCode: __expectString,
|
|
1070
693
|
});
|
|
1071
|
-
return retVal;
|
|
1072
|
-
};
|
|
1073
|
-
const de_EventDescription = (output, context) => {
|
|
1074
|
-
return {
|
|
1075
|
-
latestDescription: __expectString(output.latestDescription),
|
|
1076
|
-
};
|
|
1077
694
|
};
|
|
1078
695
|
const de_EventDetails = (output, context) => {
|
|
1079
|
-
return {
|
|
1080
|
-
event:
|
|
1081
|
-
eventDescription:
|
|
1082
|
-
eventMetadata:
|
|
1083
|
-
};
|
|
1084
|
-
};
|
|
1085
|
-
const de_EventDetailsErrorItem = (output, context) => {
|
|
1086
|
-
return {
|
|
1087
|
-
errorMessage: __expectString(output.errorMessage),
|
|
1088
|
-
errorName: __expectString(output.errorName),
|
|
1089
|
-
eventArn: __expectString(output.eventArn),
|
|
1090
|
-
};
|
|
696
|
+
return take(output, {
|
|
697
|
+
event: (_) => de_Event(_, context),
|
|
698
|
+
eventDescription: _json,
|
|
699
|
+
eventMetadata: _json,
|
|
700
|
+
});
|
|
1091
701
|
};
|
|
1092
702
|
const de_EventList = (output, context) => {
|
|
1093
703
|
const retVal = (output || [])
|
|
1094
704
|
.filter((e) => e != null)
|
|
1095
705
|
.map((entry) => {
|
|
1096
|
-
if (entry === null) {
|
|
1097
|
-
return null;
|
|
1098
|
-
}
|
|
1099
706
|
return de_Event(entry, context);
|
|
1100
707
|
});
|
|
1101
708
|
return retVal;
|
|
1102
709
|
};
|
|
1103
|
-
const de_eventMetadata = (output, context) => {
|
|
1104
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1105
|
-
if (value === null) {
|
|
1106
|
-
return acc;
|
|
1107
|
-
}
|
|
1108
|
-
acc[key] = __expectString(value);
|
|
1109
|
-
return acc;
|
|
1110
|
-
}, {});
|
|
1111
|
-
};
|
|
1112
|
-
const de_EventType = (output, context) => {
|
|
1113
|
-
return {
|
|
1114
|
-
category: __expectString(output.category),
|
|
1115
|
-
code: __expectString(output.code),
|
|
1116
|
-
service: __expectString(output.service),
|
|
1117
|
-
};
|
|
1118
|
-
};
|
|
1119
|
-
const de_EventTypeList = (output, context) => {
|
|
1120
|
-
const retVal = (output || [])
|
|
1121
|
-
.filter((e) => e != null)
|
|
1122
|
-
.map((entry) => {
|
|
1123
|
-
if (entry === null) {
|
|
1124
|
-
return null;
|
|
1125
|
-
}
|
|
1126
|
-
return de_EventType(entry, context);
|
|
1127
|
-
});
|
|
1128
|
-
return retVal;
|
|
1129
|
-
};
|
|
1130
|
-
const de_InvalidPaginationToken = (output, context) => {
|
|
1131
|
-
return {
|
|
1132
|
-
message: __expectString(output.message),
|
|
1133
|
-
};
|
|
1134
|
-
};
|
|
1135
|
-
const de_OrganizationAffectedEntitiesErrorItem = (output, context) => {
|
|
1136
|
-
return {
|
|
1137
|
-
awsAccountId: __expectString(output.awsAccountId),
|
|
1138
|
-
errorMessage: __expectString(output.errorMessage),
|
|
1139
|
-
errorName: __expectString(output.errorName),
|
|
1140
|
-
eventArn: __expectString(output.eventArn),
|
|
1141
|
-
};
|
|
1142
|
-
};
|
|
1143
710
|
const de_OrganizationEvent = (output, context) => {
|
|
1144
|
-
return {
|
|
1145
|
-
arn: __expectString
|
|
1146
|
-
endTime:
|
|
1147
|
-
eventScopeCode: __expectString
|
|
1148
|
-
eventTypeCategory: __expectString
|
|
1149
|
-
eventTypeCode: __expectString
|
|
1150
|
-
lastUpdatedTime:
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
statusCode: __expectString(output.statusCode),
|
|
1157
|
-
};
|
|
711
|
+
return take(output, {
|
|
712
|
+
arn: __expectString,
|
|
713
|
+
endTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
714
|
+
eventScopeCode: __expectString,
|
|
715
|
+
eventTypeCategory: __expectString,
|
|
716
|
+
eventTypeCode: __expectString,
|
|
717
|
+
lastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
718
|
+
region: __expectString,
|
|
719
|
+
service: __expectString,
|
|
720
|
+
startTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
721
|
+
statusCode: __expectString,
|
|
722
|
+
});
|
|
1158
723
|
};
|
|
1159
724
|
const de_OrganizationEventDetails = (output, context) => {
|
|
1160
|
-
return {
|
|
1161
|
-
awsAccountId: __expectString
|
|
1162
|
-
event:
|
|
1163
|
-
eventDescription:
|
|
1164
|
-
eventMetadata:
|
|
1165
|
-
};
|
|
1166
|
-
};
|
|
1167
|
-
const de_OrganizationEventDetailsErrorItem = (output, context) => {
|
|
1168
|
-
return {
|
|
1169
|
-
awsAccountId: __expectString(output.awsAccountId),
|
|
1170
|
-
errorMessage: __expectString(output.errorMessage),
|
|
1171
|
-
errorName: __expectString(output.errorName),
|
|
1172
|
-
eventArn: __expectString(output.eventArn),
|
|
1173
|
-
};
|
|
725
|
+
return take(output, {
|
|
726
|
+
awsAccountId: __expectString,
|
|
727
|
+
event: (_) => de_Event(_, context),
|
|
728
|
+
eventDescription: _json,
|
|
729
|
+
eventMetadata: _json,
|
|
730
|
+
});
|
|
1174
731
|
};
|
|
1175
732
|
const de_OrganizationEventList = (output, context) => {
|
|
1176
733
|
const retVal = (output || [])
|
|
1177
734
|
.filter((e) => e != null)
|
|
1178
735
|
.map((entry) => {
|
|
1179
|
-
if (entry === null) {
|
|
1180
|
-
return null;
|
|
1181
|
-
}
|
|
1182
736
|
return de_OrganizationEvent(entry, context);
|
|
1183
737
|
});
|
|
1184
738
|
return retVal;
|
|
1185
739
|
};
|
|
1186
|
-
const de_tagSet = (output, context) => {
|
|
1187
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1188
|
-
if (value === null) {
|
|
1189
|
-
return acc;
|
|
1190
|
-
}
|
|
1191
|
-
acc[key] = __expectString(value);
|
|
1192
|
-
return acc;
|
|
1193
|
-
}, {});
|
|
1194
|
-
};
|
|
1195
|
-
const de_UnsupportedLocale = (output, context) => {
|
|
1196
|
-
return {
|
|
1197
|
-
message: __expectString(output.message),
|
|
1198
|
-
};
|
|
1199
|
-
};
|
|
1200
740
|
const deserializeMetadata = (output) => ({
|
|
1201
741
|
httpStatusCode: output.statusCode,
|
|
1202
742
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -1210,6 +750,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
1210
750
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1211
751
|
};
|
|
1212
752
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
753
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
1213
754
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1214
755
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1215
756
|
const contents = {
|
|
@@ -1228,6 +769,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
1228
769
|
}
|
|
1229
770
|
return new __HttpRequest(contents);
|
|
1230
771
|
};
|
|
772
|
+
function sharedHeaders(operation) {
|
|
773
|
+
return {
|
|
774
|
+
"content-type": "application/x-amz-json-1.1",
|
|
775
|
+
"x-amz-target": `AWSHealth_20160804.${operation}`,
|
|
776
|
+
};
|
|
777
|
+
}
|
|
1231
778
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1232
779
|
if (encoded.length) {
|
|
1233
780
|
return JSON.parse(encoded);
|