@aws-sdk/client-health 3.118.0 → 3.127.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/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +161 -220
- package/dist-es/protocols/Aws_json1_1.js +125 -184
- package/package.json +26 -26
|
@@ -152,18 +152,19 @@ const deserializeAws_json1_1DescribeAffectedAccountsForOrganizationCommandError
|
|
|
152
152
|
body: await parseBody(output.body, context),
|
|
153
153
|
};
|
|
154
154
|
let response;
|
|
155
|
-
|
|
156
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
155
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
157
156
|
switch (errorCode) {
|
|
158
157
|
case "InvalidPaginationToken":
|
|
159
158
|
case "com.amazonaws.health#InvalidPaginationToken":
|
|
160
159
|
throw await deserializeAws_json1_1InvalidPaginationTokenResponse(parsedOutput, context);
|
|
161
160
|
default:
|
|
162
161
|
const parsedBody = parsedOutput.body;
|
|
162
|
+
const $metadata = deserializeMetadata(output);
|
|
163
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
163
164
|
response = new HealthServiceException_1.HealthServiceException({
|
|
164
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
165
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
165
166
|
$fault: "client",
|
|
166
|
-
$metadata
|
|
167
|
+
$metadata,
|
|
167
168
|
});
|
|
168
169
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
169
170
|
}
|
|
@@ -188,8 +189,7 @@ const deserializeAws_json1_1DescribeAffectedEntitiesCommandError = async (output
|
|
|
188
189
|
body: await parseBody(output.body, context),
|
|
189
190
|
};
|
|
190
191
|
let response;
|
|
191
|
-
|
|
192
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
192
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
193
193
|
switch (errorCode) {
|
|
194
194
|
case "InvalidPaginationToken":
|
|
195
195
|
case "com.amazonaws.health#InvalidPaginationToken":
|
|
@@ -199,10 +199,12 @@ const deserializeAws_json1_1DescribeAffectedEntitiesCommandError = async (output
|
|
|
199
199
|
throw await deserializeAws_json1_1UnsupportedLocaleResponse(parsedOutput, context);
|
|
200
200
|
default:
|
|
201
201
|
const parsedBody = parsedOutput.body;
|
|
202
|
+
const $metadata = deserializeMetadata(output);
|
|
203
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
202
204
|
response = new HealthServiceException_1.HealthServiceException({
|
|
203
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
205
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
204
206
|
$fault: "client",
|
|
205
|
-
$metadata
|
|
207
|
+
$metadata,
|
|
206
208
|
});
|
|
207
209
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
208
210
|
}
|
|
@@ -227,8 +229,7 @@ const deserializeAws_json1_1DescribeAffectedEntitiesForOrganizationCommandError
|
|
|
227
229
|
body: await parseBody(output.body, context),
|
|
228
230
|
};
|
|
229
231
|
let response;
|
|
230
|
-
|
|
231
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
232
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
232
233
|
switch (errorCode) {
|
|
233
234
|
case "InvalidPaginationToken":
|
|
234
235
|
case "com.amazonaws.health#InvalidPaginationToken":
|
|
@@ -238,10 +239,12 @@ const deserializeAws_json1_1DescribeAffectedEntitiesForOrganizationCommandError
|
|
|
238
239
|
throw await deserializeAws_json1_1UnsupportedLocaleResponse(parsedOutput, context);
|
|
239
240
|
default:
|
|
240
241
|
const parsedBody = parsedOutput.body;
|
|
242
|
+
const $metadata = deserializeMetadata(output);
|
|
243
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
241
244
|
response = new HealthServiceException_1.HealthServiceException({
|
|
242
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
245
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
243
246
|
$fault: "client",
|
|
244
|
-
$metadata
|
|
247
|
+
$metadata,
|
|
245
248
|
});
|
|
246
249
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
247
250
|
}
|
|
@@ -266,15 +269,16 @@ const deserializeAws_json1_1DescribeEntityAggregatesCommandError = async (output
|
|
|
266
269
|
body: await parseBody(output.body, context),
|
|
267
270
|
};
|
|
268
271
|
let response;
|
|
269
|
-
|
|
270
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
272
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
271
273
|
switch (errorCode) {
|
|
272
274
|
default:
|
|
273
275
|
const parsedBody = parsedOutput.body;
|
|
276
|
+
const $metadata = deserializeMetadata(output);
|
|
277
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
274
278
|
response = new HealthServiceException_1.HealthServiceException({
|
|
275
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
279
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
276
280
|
$fault: "client",
|
|
277
|
-
$metadata
|
|
281
|
+
$metadata,
|
|
278
282
|
});
|
|
279
283
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
280
284
|
}
|
|
@@ -299,18 +303,19 @@ const deserializeAws_json1_1DescribeEventAggregatesCommandError = async (output,
|
|
|
299
303
|
body: await parseBody(output.body, context),
|
|
300
304
|
};
|
|
301
305
|
let response;
|
|
302
|
-
|
|
303
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
306
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
304
307
|
switch (errorCode) {
|
|
305
308
|
case "InvalidPaginationToken":
|
|
306
309
|
case "com.amazonaws.health#InvalidPaginationToken":
|
|
307
310
|
throw await deserializeAws_json1_1InvalidPaginationTokenResponse(parsedOutput, context);
|
|
308
311
|
default:
|
|
309
312
|
const parsedBody = parsedOutput.body;
|
|
313
|
+
const $metadata = deserializeMetadata(output);
|
|
314
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
310
315
|
response = new HealthServiceException_1.HealthServiceException({
|
|
311
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
316
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
312
317
|
$fault: "client",
|
|
313
|
-
$metadata
|
|
318
|
+
$metadata,
|
|
314
319
|
});
|
|
315
320
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
316
321
|
}
|
|
@@ -335,18 +340,19 @@ const deserializeAws_json1_1DescribeEventDetailsCommandError = async (output, co
|
|
|
335
340
|
body: await parseBody(output.body, context),
|
|
336
341
|
};
|
|
337
342
|
let response;
|
|
338
|
-
|
|
339
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
343
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
340
344
|
switch (errorCode) {
|
|
341
345
|
case "UnsupportedLocale":
|
|
342
346
|
case "com.amazonaws.health#UnsupportedLocale":
|
|
343
347
|
throw await deserializeAws_json1_1UnsupportedLocaleResponse(parsedOutput, context);
|
|
344
348
|
default:
|
|
345
349
|
const parsedBody = parsedOutput.body;
|
|
350
|
+
const $metadata = deserializeMetadata(output);
|
|
351
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
346
352
|
response = new HealthServiceException_1.HealthServiceException({
|
|
347
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
353
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
348
354
|
$fault: "client",
|
|
349
|
-
$metadata
|
|
355
|
+
$metadata,
|
|
350
356
|
});
|
|
351
357
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
352
358
|
}
|
|
@@ -371,18 +377,19 @@ const deserializeAws_json1_1DescribeEventDetailsForOrganizationCommandError = as
|
|
|
371
377
|
body: await parseBody(output.body, context),
|
|
372
378
|
};
|
|
373
379
|
let response;
|
|
374
|
-
|
|
375
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
380
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
376
381
|
switch (errorCode) {
|
|
377
382
|
case "UnsupportedLocale":
|
|
378
383
|
case "com.amazonaws.health#UnsupportedLocale":
|
|
379
384
|
throw await deserializeAws_json1_1UnsupportedLocaleResponse(parsedOutput, context);
|
|
380
385
|
default:
|
|
381
386
|
const parsedBody = parsedOutput.body;
|
|
387
|
+
const $metadata = deserializeMetadata(output);
|
|
388
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
382
389
|
response = new HealthServiceException_1.HealthServiceException({
|
|
383
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
390
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
384
391
|
$fault: "client",
|
|
385
|
-
$metadata
|
|
392
|
+
$metadata,
|
|
386
393
|
});
|
|
387
394
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
388
395
|
}
|
|
@@ -407,8 +414,7 @@ const deserializeAws_json1_1DescribeEventsCommandError = async (output, context)
|
|
|
407
414
|
body: await parseBody(output.body, context),
|
|
408
415
|
};
|
|
409
416
|
let response;
|
|
410
|
-
|
|
411
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
417
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
412
418
|
switch (errorCode) {
|
|
413
419
|
case "InvalidPaginationToken":
|
|
414
420
|
case "com.amazonaws.health#InvalidPaginationToken":
|
|
@@ -418,10 +424,12 @@ const deserializeAws_json1_1DescribeEventsCommandError = async (output, context)
|
|
|
418
424
|
throw await deserializeAws_json1_1UnsupportedLocaleResponse(parsedOutput, context);
|
|
419
425
|
default:
|
|
420
426
|
const parsedBody = parsedOutput.body;
|
|
427
|
+
const $metadata = deserializeMetadata(output);
|
|
428
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
421
429
|
response = new HealthServiceException_1.HealthServiceException({
|
|
422
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
430
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
423
431
|
$fault: "client",
|
|
424
|
-
$metadata
|
|
432
|
+
$metadata,
|
|
425
433
|
});
|
|
426
434
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
427
435
|
}
|
|
@@ -446,8 +454,7 @@ const deserializeAws_json1_1DescribeEventsForOrganizationCommandError = async (o
|
|
|
446
454
|
body: await parseBody(output.body, context),
|
|
447
455
|
};
|
|
448
456
|
let response;
|
|
449
|
-
|
|
450
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
457
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
451
458
|
switch (errorCode) {
|
|
452
459
|
case "InvalidPaginationToken":
|
|
453
460
|
case "com.amazonaws.health#InvalidPaginationToken":
|
|
@@ -457,10 +464,12 @@ const deserializeAws_json1_1DescribeEventsForOrganizationCommandError = async (o
|
|
|
457
464
|
throw await deserializeAws_json1_1UnsupportedLocaleResponse(parsedOutput, context);
|
|
458
465
|
default:
|
|
459
466
|
const parsedBody = parsedOutput.body;
|
|
467
|
+
const $metadata = deserializeMetadata(output);
|
|
468
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
460
469
|
response = new HealthServiceException_1.HealthServiceException({
|
|
461
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
470
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
462
471
|
$fault: "client",
|
|
463
|
-
$metadata
|
|
472
|
+
$metadata,
|
|
464
473
|
});
|
|
465
474
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
466
475
|
}
|
|
@@ -485,8 +494,7 @@ const deserializeAws_json1_1DescribeEventTypesCommandError = async (output, cont
|
|
|
485
494
|
body: await parseBody(output.body, context),
|
|
486
495
|
};
|
|
487
496
|
let response;
|
|
488
|
-
|
|
489
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
497
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
490
498
|
switch (errorCode) {
|
|
491
499
|
case "InvalidPaginationToken":
|
|
492
500
|
case "com.amazonaws.health#InvalidPaginationToken":
|
|
@@ -496,10 +504,12 @@ const deserializeAws_json1_1DescribeEventTypesCommandError = async (output, cont
|
|
|
496
504
|
throw await deserializeAws_json1_1UnsupportedLocaleResponse(parsedOutput, context);
|
|
497
505
|
default:
|
|
498
506
|
const parsedBody = parsedOutput.body;
|
|
507
|
+
const $metadata = deserializeMetadata(output);
|
|
508
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
499
509
|
response = new HealthServiceException_1.HealthServiceException({
|
|
500
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
510
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
501
511
|
$fault: "client",
|
|
502
|
-
$metadata
|
|
512
|
+
$metadata,
|
|
503
513
|
});
|
|
504
514
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
505
515
|
}
|
|
@@ -524,15 +534,16 @@ const deserializeAws_json1_1DescribeHealthServiceStatusForOrganizationCommandErr
|
|
|
524
534
|
body: await parseBody(output.body, context),
|
|
525
535
|
};
|
|
526
536
|
let response;
|
|
527
|
-
|
|
528
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
537
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
529
538
|
switch (errorCode) {
|
|
530
539
|
default:
|
|
531
540
|
const parsedBody = parsedOutput.body;
|
|
541
|
+
const $metadata = deserializeMetadata(output);
|
|
542
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
532
543
|
response = new HealthServiceException_1.HealthServiceException({
|
|
533
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
544
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
534
545
|
$fault: "client",
|
|
535
|
-
$metadata
|
|
546
|
+
$metadata,
|
|
536
547
|
});
|
|
537
548
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
538
549
|
}
|
|
@@ -554,18 +565,19 @@ const deserializeAws_json1_1DisableHealthServiceAccessForOrganizationCommandErro
|
|
|
554
565
|
body: await parseBody(output.body, context),
|
|
555
566
|
};
|
|
556
567
|
let response;
|
|
557
|
-
|
|
558
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
568
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
559
569
|
switch (errorCode) {
|
|
560
570
|
case "ConcurrentModificationException":
|
|
561
571
|
case "com.amazonaws.health#ConcurrentModificationException":
|
|
562
572
|
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
563
573
|
default:
|
|
564
574
|
const parsedBody = parsedOutput.body;
|
|
575
|
+
const $metadata = deserializeMetadata(output);
|
|
576
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
565
577
|
response = new HealthServiceException_1.HealthServiceException({
|
|
566
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
578
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
567
579
|
$fault: "client",
|
|
568
|
-
$metadata
|
|
580
|
+
$metadata,
|
|
569
581
|
});
|
|
570
582
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
571
583
|
}
|
|
@@ -587,18 +599,19 @@ const deserializeAws_json1_1EnableHealthServiceAccessForOrganizationCommandError
|
|
|
587
599
|
body: await parseBody(output.body, context),
|
|
588
600
|
};
|
|
589
601
|
let response;
|
|
590
|
-
|
|
591
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
602
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
592
603
|
switch (errorCode) {
|
|
593
604
|
case "ConcurrentModificationException":
|
|
594
605
|
case "com.amazonaws.health#ConcurrentModificationException":
|
|
595
606
|
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
596
607
|
default:
|
|
597
608
|
const parsedBody = parsedOutput.body;
|
|
609
|
+
const $metadata = deserializeMetadata(output);
|
|
610
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
598
611
|
response = new HealthServiceException_1.HealthServiceException({
|
|
599
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
612
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
600
613
|
$fault: "client",
|
|
601
|
-
$metadata
|
|
614
|
+
$metadata,
|
|
602
615
|
});
|
|
603
616
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
604
617
|
}
|
|
@@ -652,8 +665,8 @@ const serializeAws_json1_1awsAccountIdsList = (input, context) => {
|
|
|
652
665
|
};
|
|
653
666
|
const serializeAws_json1_1DateTimeRange = (input, context) => {
|
|
654
667
|
return {
|
|
655
|
-
...(input.from
|
|
656
|
-
...(input.to
|
|
668
|
+
...(input.from != null && { from: Math.round(input.from.getTime() / 1000) }),
|
|
669
|
+
...(input.to != null && { to: Math.round(input.to.getTime() / 1000) }),
|
|
657
670
|
};
|
|
658
671
|
};
|
|
659
672
|
const serializeAws_json1_1dateTimeRangeList = (input, context) => {
|
|
@@ -668,88 +681,78 @@ const serializeAws_json1_1dateTimeRangeList = (input, context) => {
|
|
|
668
681
|
};
|
|
669
682
|
const serializeAws_json1_1DescribeAffectedAccountsForOrganizationRequest = (input, context) => {
|
|
670
683
|
return {
|
|
671
|
-
...(input.eventArn
|
|
672
|
-
...(input.maxResults
|
|
673
|
-
...(input.nextToken
|
|
684
|
+
...(input.eventArn != null && { eventArn: input.eventArn }),
|
|
685
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
686
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
674
687
|
};
|
|
675
688
|
};
|
|
676
689
|
const serializeAws_json1_1DescribeAffectedEntitiesForOrganizationRequest = (input, context) => {
|
|
677
690
|
return {
|
|
678
|
-
...(input.locale
|
|
679
|
-
...(input.maxResults
|
|
680
|
-
...(input.nextToken
|
|
681
|
-
...(input.organizationEntityFilters
|
|
682
|
-
input.organizationEntityFilters !== null && {
|
|
691
|
+
...(input.locale != null && { locale: input.locale }),
|
|
692
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
693
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
694
|
+
...(input.organizationEntityFilters != null && {
|
|
683
695
|
organizationEntityFilters: serializeAws_json1_1OrganizationEntityFiltersList(input.organizationEntityFilters, context),
|
|
684
696
|
}),
|
|
685
697
|
};
|
|
686
698
|
};
|
|
687
699
|
const serializeAws_json1_1DescribeAffectedEntitiesRequest = (input, context) => {
|
|
688
700
|
return {
|
|
689
|
-
...(input.filter
|
|
690
|
-
|
|
691
|
-
...(input.
|
|
692
|
-
...(input.
|
|
693
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
701
|
+
...(input.filter != null && { filter: serializeAws_json1_1EntityFilter(input.filter, context) }),
|
|
702
|
+
...(input.locale != null && { locale: input.locale }),
|
|
703
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
704
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
694
705
|
};
|
|
695
706
|
};
|
|
696
707
|
const serializeAws_json1_1DescribeEntityAggregatesRequest = (input, context) => {
|
|
697
708
|
return {
|
|
698
|
-
...(input.eventArns
|
|
699
|
-
input.eventArns !== null && { eventArns: serializeAws_json1_1EventArnsList(input.eventArns, context) }),
|
|
709
|
+
...(input.eventArns != null && { eventArns: serializeAws_json1_1EventArnsList(input.eventArns, context) }),
|
|
700
710
|
};
|
|
701
711
|
};
|
|
702
712
|
const serializeAws_json1_1DescribeEventAggregatesRequest = (input, context) => {
|
|
703
713
|
return {
|
|
704
|
-
...(input.aggregateField
|
|
705
|
-
|
|
706
|
-
...(input.
|
|
707
|
-
|
|
708
|
-
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
709
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
714
|
+
...(input.aggregateField != null && { aggregateField: input.aggregateField }),
|
|
715
|
+
...(input.filter != null && { filter: serializeAws_json1_1EventFilter(input.filter, context) }),
|
|
716
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
717
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
710
718
|
};
|
|
711
719
|
};
|
|
712
720
|
const serializeAws_json1_1DescribeEventDetailsForOrganizationRequest = (input, context) => {
|
|
713
721
|
return {
|
|
714
|
-
...(input.locale
|
|
715
|
-
...(input.organizationEventDetailFilters
|
|
716
|
-
input.organizationEventDetailFilters !== null && {
|
|
722
|
+
...(input.locale != null && { locale: input.locale }),
|
|
723
|
+
...(input.organizationEventDetailFilters != null && {
|
|
717
724
|
organizationEventDetailFilters: serializeAws_json1_1OrganizationEventDetailFiltersList(input.organizationEventDetailFilters, context),
|
|
718
725
|
}),
|
|
719
726
|
};
|
|
720
727
|
};
|
|
721
728
|
const serializeAws_json1_1DescribeEventDetailsRequest = (input, context) => {
|
|
722
729
|
return {
|
|
723
|
-
...(input.eventArns
|
|
724
|
-
|
|
725
|
-
...(input.locale !== undefined && input.locale !== null && { locale: input.locale }),
|
|
730
|
+
...(input.eventArns != null && { eventArns: serializeAws_json1_1eventArnList(input.eventArns, context) }),
|
|
731
|
+
...(input.locale != null && { locale: input.locale }),
|
|
726
732
|
};
|
|
727
733
|
};
|
|
728
734
|
const serializeAws_json1_1DescribeEventsForOrganizationRequest = (input, context) => {
|
|
729
735
|
return {
|
|
730
|
-
...(input.filter
|
|
731
|
-
|
|
732
|
-
...(input.
|
|
733
|
-
...(input.
|
|
734
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
736
|
+
...(input.filter != null && { filter: serializeAws_json1_1OrganizationEventFilter(input.filter, context) }),
|
|
737
|
+
...(input.locale != null && { locale: input.locale }),
|
|
738
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
739
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
735
740
|
};
|
|
736
741
|
};
|
|
737
742
|
const serializeAws_json1_1DescribeEventsRequest = (input, context) => {
|
|
738
743
|
return {
|
|
739
|
-
...(input.filter
|
|
740
|
-
|
|
741
|
-
...(input.
|
|
742
|
-
...(input.
|
|
743
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
744
|
+
...(input.filter != null && { filter: serializeAws_json1_1EventFilter(input.filter, context) }),
|
|
745
|
+
...(input.locale != null && { locale: input.locale }),
|
|
746
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
747
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
744
748
|
};
|
|
745
749
|
};
|
|
746
750
|
const serializeAws_json1_1DescribeEventTypesRequest = (input, context) => {
|
|
747
751
|
return {
|
|
748
|
-
...(input.filter
|
|
749
|
-
|
|
750
|
-
...(input.
|
|
751
|
-
...(input.
|
|
752
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
752
|
+
...(input.filter != null && { filter: serializeAws_json1_1EventTypeFilter(input.filter, context) }),
|
|
753
|
+
...(input.locale != null && { locale: input.locale }),
|
|
754
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
755
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
753
756
|
};
|
|
754
757
|
};
|
|
755
758
|
const serializeAws_json1_1entityArnList = (input, context) => {
|
|
@@ -764,24 +767,18 @@ const serializeAws_json1_1entityArnList = (input, context) => {
|
|
|
764
767
|
};
|
|
765
768
|
const serializeAws_json1_1EntityFilter = (input, context) => {
|
|
766
769
|
return {
|
|
767
|
-
...(input.entityArns
|
|
768
|
-
|
|
769
|
-
...(input.entityValues !== undefined &&
|
|
770
|
-
input.entityValues !== null && {
|
|
770
|
+
...(input.entityArns != null && { entityArns: serializeAws_json1_1entityArnList(input.entityArns, context) }),
|
|
771
|
+
...(input.entityValues != null && {
|
|
771
772
|
entityValues: serializeAws_json1_1entityValueList(input.entityValues, context),
|
|
772
773
|
}),
|
|
773
|
-
...(input.eventArns
|
|
774
|
-
|
|
775
|
-
...(input.lastUpdatedTimes !== undefined &&
|
|
776
|
-
input.lastUpdatedTimes !== null && {
|
|
774
|
+
...(input.eventArns != null && { eventArns: serializeAws_json1_1eventArnList(input.eventArns, context) }),
|
|
775
|
+
...(input.lastUpdatedTimes != null && {
|
|
777
776
|
lastUpdatedTimes: serializeAws_json1_1dateTimeRangeList(input.lastUpdatedTimes, context),
|
|
778
777
|
}),
|
|
779
|
-
...(input.statusCodes
|
|
780
|
-
input.statusCodes !== null && {
|
|
778
|
+
...(input.statusCodes != null && {
|
|
781
779
|
statusCodes: serializeAws_json1_1entityStatusCodeList(input.statusCodes, context),
|
|
782
780
|
}),
|
|
783
|
-
...(input.tags
|
|
784
|
-
input.tags !== null && { tags: serializeAws_json1_1tagFilter(input.tags, context) }),
|
|
781
|
+
...(input.tags != null && { tags: serializeAws_json1_1tagFilter(input.tags, context) }),
|
|
785
782
|
};
|
|
786
783
|
};
|
|
787
784
|
const serializeAws_json1_1entityStatusCodeList = (input, context) => {
|
|
@@ -806,8 +803,8 @@ const serializeAws_json1_1entityValueList = (input, context) => {
|
|
|
806
803
|
};
|
|
807
804
|
const serializeAws_json1_1EventAccountFilter = (input, context) => {
|
|
808
805
|
return {
|
|
809
|
-
...(input.awsAccountId
|
|
810
|
-
...(input.eventArn
|
|
806
|
+
...(input.awsAccountId != null && { awsAccountId: input.awsAccountId }),
|
|
807
|
+
...(input.eventArn != null && { eventArn: input.eventArn }),
|
|
811
808
|
};
|
|
812
809
|
};
|
|
813
810
|
const serializeAws_json1_1eventArnList = (input, context) => {
|
|
@@ -832,44 +829,31 @@ const serializeAws_json1_1EventArnsList = (input, context) => {
|
|
|
832
829
|
};
|
|
833
830
|
const serializeAws_json1_1EventFilter = (input, context) => {
|
|
834
831
|
return {
|
|
835
|
-
...(input.availabilityZones
|
|
836
|
-
input.availabilityZones !== null && {
|
|
832
|
+
...(input.availabilityZones != null && {
|
|
837
833
|
availabilityZones: serializeAws_json1_1availabilityZones(input.availabilityZones, context),
|
|
838
834
|
}),
|
|
839
|
-
...(input.endTimes
|
|
840
|
-
|
|
841
|
-
...(input.
|
|
842
|
-
input.entityArns !== null && { entityArns: serializeAws_json1_1entityArnList(input.entityArns, context) }),
|
|
843
|
-
...(input.entityValues !== undefined &&
|
|
844
|
-
input.entityValues !== null && {
|
|
835
|
+
...(input.endTimes != null && { endTimes: serializeAws_json1_1dateTimeRangeList(input.endTimes, context) }),
|
|
836
|
+
...(input.entityArns != null && { entityArns: serializeAws_json1_1entityArnList(input.entityArns, context) }),
|
|
837
|
+
...(input.entityValues != null && {
|
|
845
838
|
entityValues: serializeAws_json1_1entityValueList(input.entityValues, context),
|
|
846
839
|
}),
|
|
847
|
-
...(input.eventArns
|
|
848
|
-
|
|
849
|
-
...(input.eventStatusCodes !== undefined &&
|
|
850
|
-
input.eventStatusCodes !== null && {
|
|
840
|
+
...(input.eventArns != null && { eventArns: serializeAws_json1_1eventArnList(input.eventArns, context) }),
|
|
841
|
+
...(input.eventStatusCodes != null && {
|
|
851
842
|
eventStatusCodes: serializeAws_json1_1eventStatusCodeList(input.eventStatusCodes, context),
|
|
852
843
|
}),
|
|
853
|
-
...(input.eventTypeCategories
|
|
854
|
-
input.eventTypeCategories !== null && {
|
|
844
|
+
...(input.eventTypeCategories != null && {
|
|
855
845
|
eventTypeCategories: serializeAws_json1_1eventTypeCategoryList2(input.eventTypeCategories, context),
|
|
856
846
|
}),
|
|
857
|
-
...(input.eventTypeCodes
|
|
858
|
-
input.eventTypeCodes !== null && {
|
|
847
|
+
...(input.eventTypeCodes != null && {
|
|
859
848
|
eventTypeCodes: serializeAws_json1_1eventTypeList2(input.eventTypeCodes, context),
|
|
860
849
|
}),
|
|
861
|
-
...(input.lastUpdatedTimes
|
|
862
|
-
input.lastUpdatedTimes !== null && {
|
|
850
|
+
...(input.lastUpdatedTimes != null && {
|
|
863
851
|
lastUpdatedTimes: serializeAws_json1_1dateTimeRangeList(input.lastUpdatedTimes, context),
|
|
864
852
|
}),
|
|
865
|
-
...(input.regions
|
|
866
|
-
|
|
867
|
-
...(input.
|
|
868
|
-
|
|
869
|
-
...(input.startTimes !== undefined &&
|
|
870
|
-
input.startTimes !== null && { startTimes: serializeAws_json1_1dateTimeRangeList(input.startTimes, context) }),
|
|
871
|
-
...(input.tags !== undefined &&
|
|
872
|
-
input.tags !== null && { tags: serializeAws_json1_1tagFilter(input.tags, context) }),
|
|
853
|
+
...(input.regions != null && { regions: serializeAws_json1_1regionList(input.regions, context) }),
|
|
854
|
+
...(input.services != null && { services: serializeAws_json1_1serviceList(input.services, context) }),
|
|
855
|
+
...(input.startTimes != null && { startTimes: serializeAws_json1_1dateTimeRangeList(input.startTimes, context) }),
|
|
856
|
+
...(input.tags != null && { tags: serializeAws_json1_1tagFilter(input.tags, context) }),
|
|
873
857
|
};
|
|
874
858
|
};
|
|
875
859
|
const serializeAws_json1_1eventStatusCodeList = (input, context) => {
|
|
@@ -914,16 +898,13 @@ const serializeAws_json1_1EventTypeCodeList = (input, context) => {
|
|
|
914
898
|
};
|
|
915
899
|
const serializeAws_json1_1EventTypeFilter = (input, context) => {
|
|
916
900
|
return {
|
|
917
|
-
...(input.eventTypeCategories
|
|
918
|
-
input.eventTypeCategories !== null && {
|
|
901
|
+
...(input.eventTypeCategories != null && {
|
|
919
902
|
eventTypeCategories: serializeAws_json1_1EventTypeCategoryList(input.eventTypeCategories, context),
|
|
920
903
|
}),
|
|
921
|
-
...(input.eventTypeCodes
|
|
922
|
-
input.eventTypeCodes !== null && {
|
|
904
|
+
...(input.eventTypeCodes != null && {
|
|
923
905
|
eventTypeCodes: serializeAws_json1_1EventTypeCodeList(input.eventTypeCodes, context),
|
|
924
906
|
}),
|
|
925
|
-
...(input.services
|
|
926
|
-
input.services !== null && { services: serializeAws_json1_1serviceList(input.services, context) }),
|
|
907
|
+
...(input.services != null && { services: serializeAws_json1_1serviceList(input.services, context) }),
|
|
927
908
|
};
|
|
928
909
|
};
|
|
929
910
|
const serializeAws_json1_1eventTypeList2 = (input, context) => {
|
|
@@ -958,40 +939,29 @@ const serializeAws_json1_1OrganizationEventDetailFiltersList = (input, context)
|
|
|
958
939
|
};
|
|
959
940
|
const serializeAws_json1_1OrganizationEventFilter = (input, context) => {
|
|
960
941
|
return {
|
|
961
|
-
...(input.awsAccountIds
|
|
962
|
-
input.awsAccountIds !== null && {
|
|
942
|
+
...(input.awsAccountIds != null && {
|
|
963
943
|
awsAccountIds: serializeAws_json1_1awsAccountIdsList(input.awsAccountIds, context),
|
|
964
944
|
}),
|
|
965
|
-
...(input.endTime
|
|
966
|
-
|
|
967
|
-
...(input.
|
|
968
|
-
input.entityArns !== null && { entityArns: serializeAws_json1_1entityArnList(input.entityArns, context) }),
|
|
969
|
-
...(input.entityValues !== undefined &&
|
|
970
|
-
input.entityValues !== null && {
|
|
945
|
+
...(input.endTime != null && { endTime: serializeAws_json1_1DateTimeRange(input.endTime, context) }),
|
|
946
|
+
...(input.entityArns != null && { entityArns: serializeAws_json1_1entityArnList(input.entityArns, context) }),
|
|
947
|
+
...(input.entityValues != null && {
|
|
971
948
|
entityValues: serializeAws_json1_1entityValueList(input.entityValues, context),
|
|
972
949
|
}),
|
|
973
|
-
...(input.eventStatusCodes
|
|
974
|
-
input.eventStatusCodes !== null && {
|
|
950
|
+
...(input.eventStatusCodes != null && {
|
|
975
951
|
eventStatusCodes: serializeAws_json1_1eventStatusCodeList(input.eventStatusCodes, context),
|
|
976
952
|
}),
|
|
977
|
-
...(input.eventTypeCategories
|
|
978
|
-
input.eventTypeCategories !== null && {
|
|
953
|
+
...(input.eventTypeCategories != null && {
|
|
979
954
|
eventTypeCategories: serializeAws_json1_1eventTypeCategoryList2(input.eventTypeCategories, context),
|
|
980
955
|
}),
|
|
981
|
-
...(input.eventTypeCodes
|
|
982
|
-
input.eventTypeCodes !== null && {
|
|
956
|
+
...(input.eventTypeCodes != null && {
|
|
983
957
|
eventTypeCodes: serializeAws_json1_1eventTypeList2(input.eventTypeCodes, context),
|
|
984
958
|
}),
|
|
985
|
-
...(input.lastUpdatedTime
|
|
986
|
-
input.lastUpdatedTime !== null && {
|
|
959
|
+
...(input.lastUpdatedTime != null && {
|
|
987
960
|
lastUpdatedTime: serializeAws_json1_1DateTimeRange(input.lastUpdatedTime, context),
|
|
988
961
|
}),
|
|
989
|
-
...(input.regions
|
|
990
|
-
|
|
991
|
-
...(input.
|
|
992
|
-
input.services !== null && { services: serializeAws_json1_1serviceList(input.services, context) }),
|
|
993
|
-
...(input.startTime !== undefined &&
|
|
994
|
-
input.startTime !== null && { startTime: serializeAws_json1_1DateTimeRange(input.startTime, context) }),
|
|
962
|
+
...(input.regions != null && { regions: serializeAws_json1_1regionList(input.regions, context) }),
|
|
963
|
+
...(input.services != null && { services: serializeAws_json1_1serviceList(input.services, context) }),
|
|
964
|
+
...(input.startTime != null && { startTime: serializeAws_json1_1DateTimeRange(input.startTime, context) }),
|
|
995
965
|
};
|
|
996
966
|
};
|
|
997
967
|
const serializeAws_json1_1regionList = (input, context) => {
|
|
@@ -1053,13 +1023,11 @@ const deserializeAws_json1_1AffectedEntity = (output, context) => {
|
|
|
1053
1023
|
entityUrl: (0, smithy_client_1.expectString)(output.entityUrl),
|
|
1054
1024
|
entityValue: (0, smithy_client_1.expectString)(output.entityValue),
|
|
1055
1025
|
eventArn: (0, smithy_client_1.expectString)(output.eventArn),
|
|
1056
|
-
lastUpdatedTime: output.lastUpdatedTime
|
|
1026
|
+
lastUpdatedTime: output.lastUpdatedTime != null
|
|
1057
1027
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedTime)))
|
|
1058
1028
|
: undefined,
|
|
1059
1029
|
statusCode: (0, smithy_client_1.expectString)(output.statusCode),
|
|
1060
|
-
tags: output.tags
|
|
1061
|
-
? deserializeAws_json1_1tagSet(output.tags, context)
|
|
1062
|
-
: undefined,
|
|
1030
|
+
tags: output.tags != null ? deserializeAws_json1_1tagSet(output.tags, context) : undefined,
|
|
1063
1031
|
};
|
|
1064
1032
|
};
|
|
1065
1033
|
const deserializeAws_json1_1ConcurrentModificationException = (output, context) => {
|
|
@@ -1069,7 +1037,7 @@ const deserializeAws_json1_1ConcurrentModificationException = (output, context)
|
|
|
1069
1037
|
};
|
|
1070
1038
|
const deserializeAws_json1_1DescribeAffectedAccountsForOrganizationResponse = (output, context) => {
|
|
1071
1039
|
return {
|
|
1072
|
-
affectedAccounts: output.affectedAccounts
|
|
1040
|
+
affectedAccounts: output.affectedAccounts != null
|
|
1073
1041
|
? deserializeAws_json1_1affectedAccountsList(output.affectedAccounts, context)
|
|
1074
1042
|
: undefined,
|
|
1075
1043
|
eventScopeCode: (0, smithy_client_1.expectString)(output.eventScopeCode),
|
|
@@ -1089,10 +1057,8 @@ const deserializeAws_json1_1DescribeAffectedEntitiesForOrganizationFailedSet = (
|
|
|
1089
1057
|
};
|
|
1090
1058
|
const deserializeAws_json1_1DescribeAffectedEntitiesForOrganizationResponse = (output, context) => {
|
|
1091
1059
|
return {
|
|
1092
|
-
entities: output.entities
|
|
1093
|
-
|
|
1094
|
-
: undefined,
|
|
1095
|
-
failedSet: output.failedSet !== undefined && output.failedSet !== null
|
|
1060
|
+
entities: output.entities != null ? deserializeAws_json1_1EntityList(output.entities, context) : undefined,
|
|
1061
|
+
failedSet: output.failedSet != null
|
|
1096
1062
|
? deserializeAws_json1_1DescribeAffectedEntitiesForOrganizationFailedSet(output.failedSet, context)
|
|
1097
1063
|
: undefined,
|
|
1098
1064
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
@@ -1100,22 +1066,20 @@ const deserializeAws_json1_1DescribeAffectedEntitiesForOrganizationResponse = (o
|
|
|
1100
1066
|
};
|
|
1101
1067
|
const deserializeAws_json1_1DescribeAffectedEntitiesResponse = (output, context) => {
|
|
1102
1068
|
return {
|
|
1103
|
-
entities: output.entities
|
|
1104
|
-
? deserializeAws_json1_1EntityList(output.entities, context)
|
|
1105
|
-
: undefined,
|
|
1069
|
+
entities: output.entities != null ? deserializeAws_json1_1EntityList(output.entities, context) : undefined,
|
|
1106
1070
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
1107
1071
|
};
|
|
1108
1072
|
};
|
|
1109
1073
|
const deserializeAws_json1_1DescribeEntityAggregatesResponse = (output, context) => {
|
|
1110
1074
|
return {
|
|
1111
|
-
entityAggregates: output.entityAggregates
|
|
1075
|
+
entityAggregates: output.entityAggregates != null
|
|
1112
1076
|
? deserializeAws_json1_1EntityAggregateList(output.entityAggregates, context)
|
|
1113
1077
|
: undefined,
|
|
1114
1078
|
};
|
|
1115
1079
|
};
|
|
1116
1080
|
const deserializeAws_json1_1DescribeEventAggregatesResponse = (output, context) => {
|
|
1117
1081
|
return {
|
|
1118
|
-
eventAggregates: output.eventAggregates
|
|
1082
|
+
eventAggregates: output.eventAggregates != null
|
|
1119
1083
|
? deserializeAws_json1_1EventAggregateList(output.eventAggregates, context)
|
|
1120
1084
|
: undefined,
|
|
1121
1085
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
@@ -1145,10 +1109,10 @@ const deserializeAws_json1_1DescribeEventDetailsForOrganizationFailedSet = (outp
|
|
|
1145
1109
|
};
|
|
1146
1110
|
const deserializeAws_json1_1DescribeEventDetailsForOrganizationResponse = (output, context) => {
|
|
1147
1111
|
return {
|
|
1148
|
-
failedSet: output.failedSet
|
|
1112
|
+
failedSet: output.failedSet != null
|
|
1149
1113
|
? deserializeAws_json1_1DescribeEventDetailsForOrganizationFailedSet(output.failedSet, context)
|
|
1150
1114
|
: undefined,
|
|
1151
|
-
successfulSet: output.successfulSet
|
|
1115
|
+
successfulSet: output.successfulSet != null
|
|
1152
1116
|
? deserializeAws_json1_1DescribeEventDetailsForOrganizationSuccessfulSet(output.successfulSet, context)
|
|
1153
1117
|
: undefined,
|
|
1154
1118
|
};
|
|
@@ -1166,10 +1130,10 @@ const deserializeAws_json1_1DescribeEventDetailsForOrganizationSuccessfulSet = (
|
|
|
1166
1130
|
};
|
|
1167
1131
|
const deserializeAws_json1_1DescribeEventDetailsResponse = (output, context) => {
|
|
1168
1132
|
return {
|
|
1169
|
-
failedSet: output.failedSet
|
|
1133
|
+
failedSet: output.failedSet != null
|
|
1170
1134
|
? deserializeAws_json1_1DescribeEventDetailsFailedSet(output.failedSet, context)
|
|
1171
1135
|
: undefined,
|
|
1172
|
-
successfulSet: output.successfulSet
|
|
1136
|
+
successfulSet: output.successfulSet != null
|
|
1173
1137
|
? deserializeAws_json1_1DescribeEventDetailsSuccessfulSet(output.successfulSet, context)
|
|
1174
1138
|
: undefined,
|
|
1175
1139
|
};
|
|
@@ -1187,25 +1151,19 @@ const deserializeAws_json1_1DescribeEventDetailsSuccessfulSet = (output, context
|
|
|
1187
1151
|
};
|
|
1188
1152
|
const deserializeAws_json1_1DescribeEventsForOrganizationResponse = (output, context) => {
|
|
1189
1153
|
return {
|
|
1190
|
-
events: output.events
|
|
1191
|
-
? deserializeAws_json1_1OrganizationEventList(output.events, context)
|
|
1192
|
-
: undefined,
|
|
1154
|
+
events: output.events != null ? deserializeAws_json1_1OrganizationEventList(output.events, context) : undefined,
|
|
1193
1155
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
1194
1156
|
};
|
|
1195
1157
|
};
|
|
1196
1158
|
const deserializeAws_json1_1DescribeEventsResponse = (output, context) => {
|
|
1197
1159
|
return {
|
|
1198
|
-
events: output.events
|
|
1199
|
-
? deserializeAws_json1_1EventList(output.events, context)
|
|
1200
|
-
: undefined,
|
|
1160
|
+
events: output.events != null ? deserializeAws_json1_1EventList(output.events, context) : undefined,
|
|
1201
1161
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
1202
1162
|
};
|
|
1203
1163
|
};
|
|
1204
1164
|
const deserializeAws_json1_1DescribeEventTypesResponse = (output, context) => {
|
|
1205
1165
|
return {
|
|
1206
|
-
eventTypes: output.eventTypes
|
|
1207
|
-
? deserializeAws_json1_1EventTypeList(output.eventTypes, context)
|
|
1208
|
-
: undefined,
|
|
1166
|
+
eventTypes: output.eventTypes != null ? deserializeAws_json1_1EventTypeList(output.eventTypes, context) : undefined,
|
|
1209
1167
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
1210
1168
|
};
|
|
1211
1169
|
};
|
|
@@ -1246,20 +1204,16 @@ const deserializeAws_json1_1Event = (output, context) => {
|
|
|
1246
1204
|
return {
|
|
1247
1205
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
1248
1206
|
availabilityZone: (0, smithy_client_1.expectString)(output.availabilityZone),
|
|
1249
|
-
endTime: output.endTime
|
|
1250
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime)))
|
|
1251
|
-
: undefined,
|
|
1207
|
+
endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime))) : undefined,
|
|
1252
1208
|
eventScopeCode: (0, smithy_client_1.expectString)(output.eventScopeCode),
|
|
1253
1209
|
eventTypeCategory: (0, smithy_client_1.expectString)(output.eventTypeCategory),
|
|
1254
1210
|
eventTypeCode: (0, smithy_client_1.expectString)(output.eventTypeCode),
|
|
1255
|
-
lastUpdatedTime: output.lastUpdatedTime
|
|
1211
|
+
lastUpdatedTime: output.lastUpdatedTime != null
|
|
1256
1212
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedTime)))
|
|
1257
1213
|
: undefined,
|
|
1258
1214
|
region: (0, smithy_client_1.expectString)(output.region),
|
|
1259
1215
|
service: (0, smithy_client_1.expectString)(output.service),
|
|
1260
|
-
startTime: output.startTime
|
|
1261
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime)))
|
|
1262
|
-
: undefined,
|
|
1216
|
+
startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
|
|
1263
1217
|
statusCode: (0, smithy_client_1.expectString)(output.statusCode),
|
|
1264
1218
|
};
|
|
1265
1219
|
};
|
|
@@ -1287,15 +1241,11 @@ const deserializeAws_json1_1EventDescription = (output, context) => {
|
|
|
1287
1241
|
};
|
|
1288
1242
|
const deserializeAws_json1_1EventDetails = (output, context) => {
|
|
1289
1243
|
return {
|
|
1290
|
-
event: output.event
|
|
1291
|
-
|
|
1292
|
-
: undefined,
|
|
1293
|
-
eventDescription: output.eventDescription !== undefined && output.eventDescription !== null
|
|
1244
|
+
event: output.event != null ? deserializeAws_json1_1Event(output.event, context) : undefined,
|
|
1245
|
+
eventDescription: output.eventDescription != null
|
|
1294
1246
|
? deserializeAws_json1_1EventDescription(output.eventDescription, context)
|
|
1295
1247
|
: undefined,
|
|
1296
|
-
eventMetadata: output.eventMetadata
|
|
1297
|
-
? deserializeAws_json1_1eventMetadata(output.eventMetadata, context)
|
|
1298
|
-
: undefined,
|
|
1248
|
+
eventMetadata: output.eventMetadata != null ? deserializeAws_json1_1eventMetadata(output.eventMetadata, context) : undefined,
|
|
1299
1249
|
};
|
|
1300
1250
|
};
|
|
1301
1251
|
const deserializeAws_json1_1EventDetailsErrorItem = (output, context) => {
|
|
@@ -1361,35 +1311,27 @@ const deserializeAws_json1_1OrganizationAffectedEntitiesErrorItem = (output, con
|
|
|
1361
1311
|
const deserializeAws_json1_1OrganizationEvent = (output, context) => {
|
|
1362
1312
|
return {
|
|
1363
1313
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
1364
|
-
endTime: output.endTime
|
|
1365
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime)))
|
|
1366
|
-
: undefined,
|
|
1314
|
+
endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime))) : undefined,
|
|
1367
1315
|
eventScopeCode: (0, smithy_client_1.expectString)(output.eventScopeCode),
|
|
1368
1316
|
eventTypeCategory: (0, smithy_client_1.expectString)(output.eventTypeCategory),
|
|
1369
1317
|
eventTypeCode: (0, smithy_client_1.expectString)(output.eventTypeCode),
|
|
1370
|
-
lastUpdatedTime: output.lastUpdatedTime
|
|
1318
|
+
lastUpdatedTime: output.lastUpdatedTime != null
|
|
1371
1319
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedTime)))
|
|
1372
1320
|
: undefined,
|
|
1373
1321
|
region: (0, smithy_client_1.expectString)(output.region),
|
|
1374
1322
|
service: (0, smithy_client_1.expectString)(output.service),
|
|
1375
|
-
startTime: output.startTime
|
|
1376
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime)))
|
|
1377
|
-
: undefined,
|
|
1323
|
+
startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
|
|
1378
1324
|
statusCode: (0, smithy_client_1.expectString)(output.statusCode),
|
|
1379
1325
|
};
|
|
1380
1326
|
};
|
|
1381
1327
|
const deserializeAws_json1_1OrganizationEventDetails = (output, context) => {
|
|
1382
1328
|
return {
|
|
1383
1329
|
awsAccountId: (0, smithy_client_1.expectString)(output.awsAccountId),
|
|
1384
|
-
event: output.event
|
|
1385
|
-
|
|
1386
|
-
: undefined,
|
|
1387
|
-
eventDescription: output.eventDescription !== undefined && output.eventDescription !== null
|
|
1330
|
+
event: output.event != null ? deserializeAws_json1_1Event(output.event, context) : undefined,
|
|
1331
|
+
eventDescription: output.eventDescription != null
|
|
1388
1332
|
? deserializeAws_json1_1EventDescription(output.eventDescription, context)
|
|
1389
1333
|
: undefined,
|
|
1390
|
-
eventMetadata: output.eventMetadata
|
|
1391
|
-
? deserializeAws_json1_1eventMetadata(output.eventMetadata, context)
|
|
1392
|
-
: undefined,
|
|
1334
|
+
eventMetadata: output.eventMetadata != null ? deserializeAws_json1_1eventMetadata(output.eventMetadata, context) : undefined,
|
|
1393
1335
|
};
|
|
1394
1336
|
};
|
|
1395
1337
|
const deserializeAws_json1_1OrganizationEventDetailsErrorItem = (output, context) => {
|
|
@@ -1489,5 +1431,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
1489
1431
|
if (data["__type"] !== undefined) {
|
|
1490
1432
|
return sanitizeErrorCode(data["__type"]);
|
|
1491
1433
|
}
|
|
1492
|
-
return "";
|
|
1493
1434
|
};
|