@aws-sdk/client-fms 3.312.0 → 3.316.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.
@@ -1,101 +1,101 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
- import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
2
+ import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
3
3
  import { FMSServiceException as __BaseException } from "../models/FMSServiceException";
4
4
  import { InternalErrorException, InvalidInputException, InvalidOperationException, InvalidTypeException, LimitExceededException, ResourceNotFoundException, } from "../models/models_0";
5
5
  export const se_AssociateAdminAccountCommand = async (input, context) => {
6
6
  const headers = sharedHeaders("AssociateAdminAccount");
7
7
  let body;
8
- body = JSON.stringify(se_AssociateAdminAccountRequest(input, context));
8
+ body = JSON.stringify(_json(input));
9
9
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
10
10
  };
11
11
  export const se_AssociateThirdPartyFirewallCommand = async (input, context) => {
12
12
  const headers = sharedHeaders("AssociateThirdPartyFirewall");
13
13
  let body;
14
- body = JSON.stringify(se_AssociateThirdPartyFirewallRequest(input, context));
14
+ body = JSON.stringify(_json(input));
15
15
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
16
16
  };
17
17
  export const se_BatchAssociateResourceCommand = async (input, context) => {
18
18
  const headers = sharedHeaders("BatchAssociateResource");
19
19
  let body;
20
- body = JSON.stringify(se_BatchAssociateResourceRequest(input, context));
20
+ body = JSON.stringify(_json(input));
21
21
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
22
22
  };
23
23
  export const se_BatchDisassociateResourceCommand = async (input, context) => {
24
24
  const headers = sharedHeaders("BatchDisassociateResource");
25
25
  let body;
26
- body = JSON.stringify(se_BatchDisassociateResourceRequest(input, context));
26
+ body = JSON.stringify(_json(input));
27
27
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
28
28
  };
29
29
  export const se_DeleteAppsListCommand = async (input, context) => {
30
30
  const headers = sharedHeaders("DeleteAppsList");
31
31
  let body;
32
- body = JSON.stringify(se_DeleteAppsListRequest(input, context));
32
+ body = JSON.stringify(_json(input));
33
33
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
34
34
  };
35
35
  export const se_DeleteNotificationChannelCommand = async (input, context) => {
36
36
  const headers = sharedHeaders("DeleteNotificationChannel");
37
37
  let body;
38
- body = JSON.stringify(se_DeleteNotificationChannelRequest(input, context));
38
+ body = JSON.stringify(_json(input));
39
39
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
40
40
  };
41
41
  export const se_DeletePolicyCommand = async (input, context) => {
42
42
  const headers = sharedHeaders("DeletePolicy");
43
43
  let body;
44
- body = JSON.stringify(se_DeletePolicyRequest(input, context));
44
+ body = JSON.stringify(_json(input));
45
45
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
46
46
  };
47
47
  export const se_DeleteProtocolsListCommand = async (input, context) => {
48
48
  const headers = sharedHeaders("DeleteProtocolsList");
49
49
  let body;
50
- body = JSON.stringify(se_DeleteProtocolsListRequest(input, context));
50
+ body = JSON.stringify(_json(input));
51
51
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
52
52
  };
53
53
  export const se_DeleteResourceSetCommand = async (input, context) => {
54
54
  const headers = sharedHeaders("DeleteResourceSet");
55
55
  let body;
56
- body = JSON.stringify(se_DeleteResourceSetRequest(input, context));
56
+ body = JSON.stringify(_json(input));
57
57
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
58
58
  };
59
59
  export const se_DisassociateAdminAccountCommand = async (input, context) => {
60
60
  const headers = sharedHeaders("DisassociateAdminAccount");
61
61
  let body;
62
- body = JSON.stringify(se_DisassociateAdminAccountRequest(input, context));
62
+ body = JSON.stringify(_json(input));
63
63
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
64
64
  };
65
65
  export const se_DisassociateThirdPartyFirewallCommand = async (input, context) => {
66
66
  const headers = sharedHeaders("DisassociateThirdPartyFirewall");
67
67
  let body;
68
- body = JSON.stringify(se_DisassociateThirdPartyFirewallRequest(input, context));
68
+ body = JSON.stringify(_json(input));
69
69
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
70
70
  };
71
71
  export const se_GetAdminAccountCommand = async (input, context) => {
72
72
  const headers = sharedHeaders("GetAdminAccount");
73
73
  let body;
74
- body = JSON.stringify(se_GetAdminAccountRequest(input, context));
74
+ body = JSON.stringify(_json(input));
75
75
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
76
76
  };
77
77
  export const se_GetAppsListCommand = async (input, context) => {
78
78
  const headers = sharedHeaders("GetAppsList");
79
79
  let body;
80
- body = JSON.stringify(se_GetAppsListRequest(input, context));
80
+ body = JSON.stringify(_json(input));
81
81
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
82
82
  };
83
83
  export const se_GetComplianceDetailCommand = async (input, context) => {
84
84
  const headers = sharedHeaders("GetComplianceDetail");
85
85
  let body;
86
- body = JSON.stringify(se_GetComplianceDetailRequest(input, context));
86
+ body = JSON.stringify(_json(input));
87
87
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
88
88
  };
89
89
  export const se_GetNotificationChannelCommand = async (input, context) => {
90
90
  const headers = sharedHeaders("GetNotificationChannel");
91
91
  let body;
92
- body = JSON.stringify(se_GetNotificationChannelRequest(input, context));
92
+ body = JSON.stringify(_json(input));
93
93
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
94
94
  };
95
95
  export const se_GetPolicyCommand = async (input, context) => {
96
96
  const headers = sharedHeaders("GetPolicy");
97
97
  let body;
98
- body = JSON.stringify(se_GetPolicyRequest(input, context));
98
+ body = JSON.stringify(_json(input));
99
99
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
100
100
  };
101
101
  export const se_GetProtectionStatusCommand = async (input, context) => {
@@ -107,85 +107,85 @@ export const se_GetProtectionStatusCommand = async (input, context) => {
107
107
  export const se_GetProtocolsListCommand = async (input, context) => {
108
108
  const headers = sharedHeaders("GetProtocolsList");
109
109
  let body;
110
- body = JSON.stringify(se_GetProtocolsListRequest(input, context));
110
+ body = JSON.stringify(_json(input));
111
111
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
112
112
  };
113
113
  export const se_GetResourceSetCommand = async (input, context) => {
114
114
  const headers = sharedHeaders("GetResourceSet");
115
115
  let body;
116
- body = JSON.stringify(se_GetResourceSetRequest(input, context));
116
+ body = JSON.stringify(_json(input));
117
117
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
118
118
  };
119
119
  export const se_GetThirdPartyFirewallAssociationStatusCommand = async (input, context) => {
120
120
  const headers = sharedHeaders("GetThirdPartyFirewallAssociationStatus");
121
121
  let body;
122
- body = JSON.stringify(se_GetThirdPartyFirewallAssociationStatusRequest(input, context));
122
+ body = JSON.stringify(_json(input));
123
123
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
124
124
  };
125
125
  export const se_GetViolationDetailsCommand = async (input, context) => {
126
126
  const headers = sharedHeaders("GetViolationDetails");
127
127
  let body;
128
- body = JSON.stringify(se_GetViolationDetailsRequest(input, context));
128
+ body = JSON.stringify(_json(input));
129
129
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
130
130
  };
131
131
  export const se_ListAppsListsCommand = async (input, context) => {
132
132
  const headers = sharedHeaders("ListAppsLists");
133
133
  let body;
134
- body = JSON.stringify(se_ListAppsListsRequest(input, context));
134
+ body = JSON.stringify(_json(input));
135
135
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
136
136
  };
137
137
  export const se_ListComplianceStatusCommand = async (input, context) => {
138
138
  const headers = sharedHeaders("ListComplianceStatus");
139
139
  let body;
140
- body = JSON.stringify(se_ListComplianceStatusRequest(input, context));
140
+ body = JSON.stringify(_json(input));
141
141
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
142
142
  };
143
143
  export const se_ListDiscoveredResourcesCommand = async (input, context) => {
144
144
  const headers = sharedHeaders("ListDiscoveredResources");
145
145
  let body;
146
- body = JSON.stringify(se_ListDiscoveredResourcesRequest(input, context));
146
+ body = JSON.stringify(_json(input));
147
147
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
148
148
  };
149
149
  export const se_ListMemberAccountsCommand = async (input, context) => {
150
150
  const headers = sharedHeaders("ListMemberAccounts");
151
151
  let body;
152
- body = JSON.stringify(se_ListMemberAccountsRequest(input, context));
152
+ body = JSON.stringify(_json(input));
153
153
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
154
154
  };
155
155
  export const se_ListPoliciesCommand = async (input, context) => {
156
156
  const headers = sharedHeaders("ListPolicies");
157
157
  let body;
158
- body = JSON.stringify(se_ListPoliciesRequest(input, context));
158
+ body = JSON.stringify(_json(input));
159
159
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
160
160
  };
161
161
  export const se_ListProtocolsListsCommand = async (input, context) => {
162
162
  const headers = sharedHeaders("ListProtocolsLists");
163
163
  let body;
164
- body = JSON.stringify(se_ListProtocolsListsRequest(input, context));
164
+ body = JSON.stringify(_json(input));
165
165
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
166
166
  };
167
167
  export const se_ListResourceSetResourcesCommand = async (input, context) => {
168
168
  const headers = sharedHeaders("ListResourceSetResources");
169
169
  let body;
170
- body = JSON.stringify(se_ListResourceSetResourcesRequest(input, context));
170
+ body = JSON.stringify(_json(input));
171
171
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
172
172
  };
173
173
  export const se_ListResourceSetsCommand = async (input, context) => {
174
174
  const headers = sharedHeaders("ListResourceSets");
175
175
  let body;
176
- body = JSON.stringify(se_ListResourceSetsRequest(input, context));
176
+ body = JSON.stringify(_json(input));
177
177
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
178
178
  };
179
179
  export const se_ListTagsForResourceCommand = async (input, context) => {
180
180
  const headers = sharedHeaders("ListTagsForResource");
181
181
  let body;
182
- body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
182
+ body = JSON.stringify(_json(input));
183
183
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
184
184
  };
185
185
  export const se_ListThirdPartyFirewallFirewallPoliciesCommand = async (input, context) => {
186
186
  const headers = sharedHeaders("ListThirdPartyFirewallFirewallPolicies");
187
187
  let body;
188
- body = JSON.stringify(se_ListThirdPartyFirewallFirewallPoliciesRequest(input, context));
188
+ body = JSON.stringify(_json(input));
189
189
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
190
190
  };
191
191
  export const se_PutAppsListCommand = async (input, context) => {
@@ -197,13 +197,13 @@ export const se_PutAppsListCommand = async (input, context) => {
197
197
  export const se_PutNotificationChannelCommand = async (input, context) => {
198
198
  const headers = sharedHeaders("PutNotificationChannel");
199
199
  let body;
200
- body = JSON.stringify(se_PutNotificationChannelRequest(input, context));
200
+ body = JSON.stringify(_json(input));
201
201
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
202
202
  };
203
203
  export const se_PutPolicyCommand = async (input, context) => {
204
204
  const headers = sharedHeaders("PutPolicy");
205
205
  let body;
206
- body = JSON.stringify(se_PutPolicyRequest(input, context));
206
+ body = JSON.stringify(_json(input));
207
207
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
208
208
  };
209
209
  export const se_PutProtocolsListCommand = async (input, context) => {
@@ -221,13 +221,13 @@ export const se_PutResourceSetCommand = async (input, context) => {
221
221
  export const se_TagResourceCommand = async (input, context) => {
222
222
  const headers = sharedHeaders("TagResource");
223
223
  let body;
224
- body = JSON.stringify(se_TagResourceRequest(input, context));
224
+ body = JSON.stringify(_json(input));
225
225
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
226
226
  };
227
227
  export const se_UntagResourceCommand = async (input, context) => {
228
228
  const headers = sharedHeaders("UntagResource");
229
229
  let body;
230
- body = JSON.stringify(se_UntagResourceRequest(input, context));
230
+ body = JSON.stringify(_json(input));
231
231
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
232
232
  };
233
233
  export const de_AssociateAdminAccountCommand = async (output, context) => {
@@ -238,7 +238,7 @@ export const de_AssociateAdminAccountCommand = async (output, context) => {
238
238
  const response = {
239
239
  $metadata: deserializeMetadata(output),
240
240
  };
241
- return Promise.resolve(response);
241
+ return response;
242
242
  };
243
243
  const de_AssociateAdminAccountCommandError = async (output, context) => {
244
244
  const parsedOutput = {
@@ -264,10 +264,9 @@ const de_AssociateAdminAccountCommandError = async (output, context) => {
264
264
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
265
265
  default:
266
266
  const parsedBody = parsedOutput.body;
267
- throwDefaultError({
267
+ return throwDefaultError({
268
268
  output,
269
269
  parsedBody,
270
- exceptionCtor: __BaseException,
271
270
  errorCode,
272
271
  });
273
272
  }
@@ -278,12 +277,12 @@ export const de_AssociateThirdPartyFirewallCommand = async (output, context) =>
278
277
  }
279
278
  const data = await parseBody(output.body, context);
280
279
  let contents = {};
281
- contents = de_AssociateThirdPartyFirewallResponse(data, context);
280
+ contents = _json(data);
282
281
  const response = {
283
282
  $metadata: deserializeMetadata(output),
284
283
  ...contents,
285
284
  };
286
- return Promise.resolve(response);
285
+ return response;
287
286
  };
288
287
  const de_AssociateThirdPartyFirewallCommandError = async (output, context) => {
289
288
  const parsedOutput = {
@@ -306,10 +305,9 @@ const de_AssociateThirdPartyFirewallCommandError = async (output, context) => {
306
305
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
307
306
  default:
308
307
  const parsedBody = parsedOutput.body;
309
- throwDefaultError({
308
+ return throwDefaultError({
310
309
  output,
311
310
  parsedBody,
312
- exceptionCtor: __BaseException,
313
311
  errorCode,
314
312
  });
315
313
  }
@@ -320,12 +318,12 @@ export const de_BatchAssociateResourceCommand = async (output, context) => {
320
318
  }
321
319
  const data = await parseBody(output.body, context);
322
320
  let contents = {};
323
- contents = de_BatchAssociateResourceResponse(data, context);
321
+ contents = _json(data);
324
322
  const response = {
325
323
  $metadata: deserializeMetadata(output),
326
324
  ...contents,
327
325
  };
328
- return Promise.resolve(response);
326
+ return response;
329
327
  };
330
328
  const de_BatchAssociateResourceCommandError = async (output, context) => {
331
329
  const parsedOutput = {
@@ -351,10 +349,9 @@ const de_BatchAssociateResourceCommandError = async (output, context) => {
351
349
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
352
350
  default:
353
351
  const parsedBody = parsedOutput.body;
354
- throwDefaultError({
352
+ return throwDefaultError({
355
353
  output,
356
354
  parsedBody,
357
- exceptionCtor: __BaseException,
358
355
  errorCode,
359
356
  });
360
357
  }
@@ -365,12 +362,12 @@ export const de_BatchDisassociateResourceCommand = async (output, context) => {
365
362
  }
366
363
  const data = await parseBody(output.body, context);
367
364
  let contents = {};
368
- contents = de_BatchDisassociateResourceResponse(data, context);
365
+ contents = _json(data);
369
366
  const response = {
370
367
  $metadata: deserializeMetadata(output),
371
368
  ...contents,
372
369
  };
373
- return Promise.resolve(response);
370
+ return response;
374
371
  };
375
372
  const de_BatchDisassociateResourceCommandError = async (output, context) => {
376
373
  const parsedOutput = {
@@ -393,10 +390,9 @@ const de_BatchDisassociateResourceCommandError = async (output, context) => {
393
390
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
394
391
  default:
395
392
  const parsedBody = parsedOutput.body;
396
- throwDefaultError({
393
+ return throwDefaultError({
397
394
  output,
398
395
  parsedBody,
399
- exceptionCtor: __BaseException,
400
396
  errorCode,
401
397
  });
402
398
  }
@@ -409,7 +405,7 @@ export const de_DeleteAppsListCommand = async (output, context) => {
409
405
  const response = {
410
406
  $metadata: deserializeMetadata(output),
411
407
  };
412
- return Promise.resolve(response);
408
+ return response;
413
409
  };
414
410
  const de_DeleteAppsListCommandError = async (output, context) => {
415
411
  const parsedOutput = {
@@ -429,10 +425,9 @@ const de_DeleteAppsListCommandError = async (output, context) => {
429
425
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
430
426
  default:
431
427
  const parsedBody = parsedOutput.body;
432
- throwDefaultError({
428
+ return throwDefaultError({
433
429
  output,
434
430
  parsedBody,
435
- exceptionCtor: __BaseException,
436
431
  errorCode,
437
432
  });
438
433
  }
@@ -445,7 +440,7 @@ export const de_DeleteNotificationChannelCommand = async (output, context) => {
445
440
  const response = {
446
441
  $metadata: deserializeMetadata(output),
447
442
  };
448
- return Promise.resolve(response);
443
+ return response;
449
444
  };
450
445
  const de_DeleteNotificationChannelCommandError = async (output, context) => {
451
446
  const parsedOutput = {
@@ -465,10 +460,9 @@ const de_DeleteNotificationChannelCommandError = async (output, context) => {
465
460
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
466
461
  default:
467
462
  const parsedBody = parsedOutput.body;
468
- throwDefaultError({
463
+ return throwDefaultError({
469
464
  output,
470
465
  parsedBody,
471
- exceptionCtor: __BaseException,
472
466
  errorCode,
473
467
  });
474
468
  }
@@ -481,7 +475,7 @@ export const de_DeletePolicyCommand = async (output, context) => {
481
475
  const response = {
482
476
  $metadata: deserializeMetadata(output),
483
477
  };
484
- return Promise.resolve(response);
478
+ return response;
485
479
  };
486
480
  const de_DeletePolicyCommandError = async (output, context) => {
487
481
  const parsedOutput = {
@@ -507,10 +501,9 @@ const de_DeletePolicyCommandError = async (output, context) => {
507
501
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
508
502
  default:
509
503
  const parsedBody = parsedOutput.body;
510
- throwDefaultError({
504
+ return throwDefaultError({
511
505
  output,
512
506
  parsedBody,
513
- exceptionCtor: __BaseException,
514
507
  errorCode,
515
508
  });
516
509
  }
@@ -523,7 +516,7 @@ export const de_DeleteProtocolsListCommand = async (output, context) => {
523
516
  const response = {
524
517
  $metadata: deserializeMetadata(output),
525
518
  };
526
- return Promise.resolve(response);
519
+ return response;
527
520
  };
528
521
  const de_DeleteProtocolsListCommandError = async (output, context) => {
529
522
  const parsedOutput = {
@@ -543,10 +536,9 @@ const de_DeleteProtocolsListCommandError = async (output, context) => {
543
536
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
544
537
  default:
545
538
  const parsedBody = parsedOutput.body;
546
- throwDefaultError({
539
+ return throwDefaultError({
547
540
  output,
548
541
  parsedBody,
549
- exceptionCtor: __BaseException,
550
542
  errorCode,
551
543
  });
552
544
  }
@@ -559,7 +551,7 @@ export const de_DeleteResourceSetCommand = async (output, context) => {
559
551
  const response = {
560
552
  $metadata: deserializeMetadata(output),
561
553
  };
562
- return Promise.resolve(response);
554
+ return response;
563
555
  };
564
556
  const de_DeleteResourceSetCommandError = async (output, context) => {
565
557
  const parsedOutput = {
@@ -582,10 +574,9 @@ const de_DeleteResourceSetCommandError = async (output, context) => {
582
574
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
583
575
  default:
584
576
  const parsedBody = parsedOutput.body;
585
- throwDefaultError({
577
+ return throwDefaultError({
586
578
  output,
587
579
  parsedBody,
588
- exceptionCtor: __BaseException,
589
580
  errorCode,
590
581
  });
591
582
  }
@@ -598,7 +589,7 @@ export const de_DisassociateAdminAccountCommand = async (output, context) => {
598
589
  const response = {
599
590
  $metadata: deserializeMetadata(output),
600
591
  };
601
- return Promise.resolve(response);
592
+ return response;
602
593
  };
603
594
  const de_DisassociateAdminAccountCommandError = async (output, context) => {
604
595
  const parsedOutput = {
@@ -618,10 +609,9 @@ const de_DisassociateAdminAccountCommandError = async (output, context) => {
618
609
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
619
610
  default:
620
611
  const parsedBody = parsedOutput.body;
621
- throwDefaultError({
612
+ return throwDefaultError({
622
613
  output,
623
614
  parsedBody,
624
- exceptionCtor: __BaseException,
625
615
  errorCode,
626
616
  });
627
617
  }
@@ -632,12 +622,12 @@ export const de_DisassociateThirdPartyFirewallCommand = async (output, context)
632
622
  }
633
623
  const data = await parseBody(output.body, context);
634
624
  let contents = {};
635
- contents = de_DisassociateThirdPartyFirewallResponse(data, context);
625
+ contents = _json(data);
636
626
  const response = {
637
627
  $metadata: deserializeMetadata(output),
638
628
  ...contents,
639
629
  };
640
- return Promise.resolve(response);
630
+ return response;
641
631
  };
642
632
  const de_DisassociateThirdPartyFirewallCommandError = async (output, context) => {
643
633
  const parsedOutput = {
@@ -660,10 +650,9 @@ const de_DisassociateThirdPartyFirewallCommandError = async (output, context) =>
660
650
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
661
651
  default:
662
652
  const parsedBody = parsedOutput.body;
663
- throwDefaultError({
653
+ return throwDefaultError({
664
654
  output,
665
655
  parsedBody,
666
- exceptionCtor: __BaseException,
667
656
  errorCode,
668
657
  });
669
658
  }
@@ -674,12 +663,12 @@ export const de_GetAdminAccountCommand = async (output, context) => {
674
663
  }
675
664
  const data = await parseBody(output.body, context);
676
665
  let contents = {};
677
- contents = de_GetAdminAccountResponse(data, context);
666
+ contents = _json(data);
678
667
  const response = {
679
668
  $metadata: deserializeMetadata(output),
680
669
  ...contents,
681
670
  };
682
- return Promise.resolve(response);
671
+ return response;
683
672
  };
684
673
  const de_GetAdminAccountCommandError = async (output, context) => {
685
674
  const parsedOutput = {
@@ -699,10 +688,9 @@ const de_GetAdminAccountCommandError = async (output, context) => {
699
688
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
700
689
  default:
701
690
  const parsedBody = parsedOutput.body;
702
- throwDefaultError({
691
+ return throwDefaultError({
703
692
  output,
704
693
  parsedBody,
705
- exceptionCtor: __BaseException,
706
694
  errorCode,
707
695
  });
708
696
  }
@@ -718,7 +706,7 @@ export const de_GetAppsListCommand = async (output, context) => {
718
706
  $metadata: deserializeMetadata(output),
719
707
  ...contents,
720
708
  };
721
- return Promise.resolve(response);
709
+ return response;
722
710
  };
723
711
  const de_GetAppsListCommandError = async (output, context) => {
724
712
  const parsedOutput = {
@@ -738,10 +726,9 @@ const de_GetAppsListCommandError = async (output, context) => {
738
726
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
739
727
  default:
740
728
  const parsedBody = parsedOutput.body;
741
- throwDefaultError({
729
+ return throwDefaultError({
742
730
  output,
743
731
  parsedBody,
744
- exceptionCtor: __BaseException,
745
732
  errorCode,
746
733
  });
747
734
  }
@@ -757,7 +744,7 @@ export const de_GetComplianceDetailCommand = async (output, context) => {
757
744
  $metadata: deserializeMetadata(output),
758
745
  ...contents,
759
746
  };
760
- return Promise.resolve(response);
747
+ return response;
761
748
  };
762
749
  const de_GetComplianceDetailCommandError = async (output, context) => {
763
750
  const parsedOutput = {
@@ -780,10 +767,9 @@ const de_GetComplianceDetailCommandError = async (output, context) => {
780
767
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
781
768
  default:
782
769
  const parsedBody = parsedOutput.body;
783
- throwDefaultError({
770
+ return throwDefaultError({
784
771
  output,
785
772
  parsedBody,
786
- exceptionCtor: __BaseException,
787
773
  errorCode,
788
774
  });
789
775
  }
@@ -794,12 +780,12 @@ export const de_GetNotificationChannelCommand = async (output, context) => {
794
780
  }
795
781
  const data = await parseBody(output.body, context);
796
782
  let contents = {};
797
- contents = de_GetNotificationChannelResponse(data, context);
783
+ contents = _json(data);
798
784
  const response = {
799
785
  $metadata: deserializeMetadata(output),
800
786
  ...contents,
801
787
  };
802
- return Promise.resolve(response);
788
+ return response;
803
789
  };
804
790
  const de_GetNotificationChannelCommandError = async (output, context) => {
805
791
  const parsedOutput = {
@@ -819,10 +805,9 @@ const de_GetNotificationChannelCommandError = async (output, context) => {
819
805
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
820
806
  default:
821
807
  const parsedBody = parsedOutput.body;
822
- throwDefaultError({
808
+ return throwDefaultError({
823
809
  output,
824
810
  parsedBody,
825
- exceptionCtor: __BaseException,
826
811
  errorCode,
827
812
  });
828
813
  }
@@ -833,12 +818,12 @@ export const de_GetPolicyCommand = async (output, context) => {
833
818
  }
834
819
  const data = await parseBody(output.body, context);
835
820
  let contents = {};
836
- contents = de_GetPolicyResponse(data, context);
821
+ contents = _json(data);
837
822
  const response = {
838
823
  $metadata: deserializeMetadata(output),
839
824
  ...contents,
840
825
  };
841
- return Promise.resolve(response);
826
+ return response;
842
827
  };
843
828
  const de_GetPolicyCommandError = async (output, context) => {
844
829
  const parsedOutput = {
@@ -861,10 +846,9 @@ const de_GetPolicyCommandError = async (output, context) => {
861
846
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
862
847
  default:
863
848
  const parsedBody = parsedOutput.body;
864
- throwDefaultError({
849
+ return throwDefaultError({
865
850
  output,
866
851
  parsedBody,
867
- exceptionCtor: __BaseException,
868
852
  errorCode,
869
853
  });
870
854
  }
@@ -875,12 +859,12 @@ export const de_GetProtectionStatusCommand = async (output, context) => {
875
859
  }
876
860
  const data = await parseBody(output.body, context);
877
861
  let contents = {};
878
- contents = de_GetProtectionStatusResponse(data, context);
862
+ contents = _json(data);
879
863
  const response = {
880
864
  $metadata: deserializeMetadata(output),
881
865
  ...contents,
882
866
  };
883
- return Promise.resolve(response);
867
+ return response;
884
868
  };
885
869
  const de_GetProtectionStatusCommandError = async (output, context) => {
886
870
  const parsedOutput = {
@@ -900,10 +884,9 @@ const de_GetProtectionStatusCommandError = async (output, context) => {
900
884
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
901
885
  default:
902
886
  const parsedBody = parsedOutput.body;
903
- throwDefaultError({
887
+ return throwDefaultError({
904
888
  output,
905
889
  parsedBody,
906
- exceptionCtor: __BaseException,
907
890
  errorCode,
908
891
  });
909
892
  }
@@ -919,7 +902,7 @@ export const de_GetProtocolsListCommand = async (output, context) => {
919
902
  $metadata: deserializeMetadata(output),
920
903
  ...contents,
921
904
  };
922
- return Promise.resolve(response);
905
+ return response;
923
906
  };
924
907
  const de_GetProtocolsListCommandError = async (output, context) => {
925
908
  const parsedOutput = {
@@ -939,10 +922,9 @@ const de_GetProtocolsListCommandError = async (output, context) => {
939
922
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
940
923
  default:
941
924
  const parsedBody = parsedOutput.body;
942
- throwDefaultError({
925
+ return throwDefaultError({
943
926
  output,
944
927
  parsedBody,
945
- exceptionCtor: __BaseException,
946
928
  errorCode,
947
929
  });
948
930
  }
@@ -958,7 +940,7 @@ export const de_GetResourceSetCommand = async (output, context) => {
958
940
  $metadata: deserializeMetadata(output),
959
941
  ...contents,
960
942
  };
961
- return Promise.resolve(response);
943
+ return response;
962
944
  };
963
945
  const de_GetResourceSetCommandError = async (output, context) => {
964
946
  const parsedOutput = {
@@ -981,10 +963,9 @@ const de_GetResourceSetCommandError = async (output, context) => {
981
963
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
982
964
  default:
983
965
  const parsedBody = parsedOutput.body;
984
- throwDefaultError({
966
+ return throwDefaultError({
985
967
  output,
986
968
  parsedBody,
987
- exceptionCtor: __BaseException,
988
969
  errorCode,
989
970
  });
990
971
  }
@@ -995,12 +976,12 @@ export const de_GetThirdPartyFirewallAssociationStatusCommand = async (output, c
995
976
  }
996
977
  const data = await parseBody(output.body, context);
997
978
  let contents = {};
998
- contents = de_GetThirdPartyFirewallAssociationStatusResponse(data, context);
979
+ contents = _json(data);
999
980
  const response = {
1000
981
  $metadata: deserializeMetadata(output),
1001
982
  ...contents,
1002
983
  };
1003
- return Promise.resolve(response);
984
+ return response;
1004
985
  };
1005
986
  const de_GetThirdPartyFirewallAssociationStatusCommandError = async (output, context) => {
1006
987
  const parsedOutput = {
@@ -1023,10 +1004,9 @@ const de_GetThirdPartyFirewallAssociationStatusCommandError = async (output, con
1023
1004
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1024
1005
  default:
1025
1006
  const parsedBody = parsedOutput.body;
1026
- throwDefaultError({
1007
+ return throwDefaultError({
1027
1008
  output,
1028
1009
  parsedBody,
1029
- exceptionCtor: __BaseException,
1030
1010
  errorCode,
1031
1011
  });
1032
1012
  }
@@ -1042,7 +1022,7 @@ export const de_GetViolationDetailsCommand = async (output, context) => {
1042
1022
  $metadata: deserializeMetadata(output),
1043
1023
  ...contents,
1044
1024
  };
1045
- return Promise.resolve(response);
1025
+ return response;
1046
1026
  };
1047
1027
  const de_GetViolationDetailsCommandError = async (output, context) => {
1048
1028
  const parsedOutput = {
@@ -1062,10 +1042,9 @@ const de_GetViolationDetailsCommandError = async (output, context) => {
1062
1042
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1063
1043
  default:
1064
1044
  const parsedBody = parsedOutput.body;
1065
- throwDefaultError({
1045
+ return throwDefaultError({
1066
1046
  output,
1067
1047
  parsedBody,
1068
- exceptionCtor: __BaseException,
1069
1048
  errorCode,
1070
1049
  });
1071
1050
  }
@@ -1076,12 +1055,12 @@ export const de_ListAppsListsCommand = async (output, context) => {
1076
1055
  }
1077
1056
  const data = await parseBody(output.body, context);
1078
1057
  let contents = {};
1079
- contents = de_ListAppsListsResponse(data, context);
1058
+ contents = _json(data);
1080
1059
  const response = {
1081
1060
  $metadata: deserializeMetadata(output),
1082
1061
  ...contents,
1083
1062
  };
1084
- return Promise.resolve(response);
1063
+ return response;
1085
1064
  };
1086
1065
  const de_ListAppsListsCommandError = async (output, context) => {
1087
1066
  const parsedOutput = {
@@ -1104,10 +1083,9 @@ const de_ListAppsListsCommandError = async (output, context) => {
1104
1083
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1105
1084
  default:
1106
1085
  const parsedBody = parsedOutput.body;
1107
- throwDefaultError({
1086
+ return throwDefaultError({
1108
1087
  output,
1109
1088
  parsedBody,
1110
- exceptionCtor: __BaseException,
1111
1089
  errorCode,
1112
1090
  });
1113
1091
  }
@@ -1123,7 +1101,7 @@ export const de_ListComplianceStatusCommand = async (output, context) => {
1123
1101
  $metadata: deserializeMetadata(output),
1124
1102
  ...contents,
1125
1103
  };
1126
- return Promise.resolve(response);
1104
+ return response;
1127
1105
  };
1128
1106
  const de_ListComplianceStatusCommandError = async (output, context) => {
1129
1107
  const parsedOutput = {
@@ -1140,10 +1118,9 @@ const de_ListComplianceStatusCommandError = async (output, context) => {
1140
1118
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1141
1119
  default:
1142
1120
  const parsedBody = parsedOutput.body;
1143
- throwDefaultError({
1121
+ return throwDefaultError({
1144
1122
  output,
1145
1123
  parsedBody,
1146
- exceptionCtor: __BaseException,
1147
1124
  errorCode,
1148
1125
  });
1149
1126
  }
@@ -1154,12 +1131,12 @@ export const de_ListDiscoveredResourcesCommand = async (output, context) => {
1154
1131
  }
1155
1132
  const data = await parseBody(output.body, context);
1156
1133
  let contents = {};
1157
- contents = de_ListDiscoveredResourcesResponse(data, context);
1134
+ contents = _json(data);
1158
1135
  const response = {
1159
1136
  $metadata: deserializeMetadata(output),
1160
1137
  ...contents,
1161
1138
  };
1162
- return Promise.resolve(response);
1139
+ return response;
1163
1140
  };
1164
1141
  const de_ListDiscoveredResourcesCommandError = async (output, context) => {
1165
1142
  const parsedOutput = {
@@ -1179,10 +1156,9 @@ const de_ListDiscoveredResourcesCommandError = async (output, context) => {
1179
1156
  throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1180
1157
  default:
1181
1158
  const parsedBody = parsedOutput.body;
1182
- throwDefaultError({
1159
+ return throwDefaultError({
1183
1160
  output,
1184
1161
  parsedBody,
1185
- exceptionCtor: __BaseException,
1186
1162
  errorCode,
1187
1163
  });
1188
1164
  }
@@ -1193,12 +1169,12 @@ export const de_ListMemberAccountsCommand = async (output, context) => {
1193
1169
  }
1194
1170
  const data = await parseBody(output.body, context);
1195
1171
  let contents = {};
1196
- contents = de_ListMemberAccountsResponse(data, context);
1172
+ contents = _json(data);
1197
1173
  const response = {
1198
1174
  $metadata: deserializeMetadata(output),
1199
1175
  ...contents,
1200
1176
  };
1201
- return Promise.resolve(response);
1177
+ return response;
1202
1178
  };
1203
1179
  const de_ListMemberAccountsCommandError = async (output, context) => {
1204
1180
  const parsedOutput = {
@@ -1215,10 +1191,9 @@ const de_ListMemberAccountsCommandError = async (output, context) => {
1215
1191
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1216
1192
  default:
1217
1193
  const parsedBody = parsedOutput.body;
1218
- throwDefaultError({
1194
+ return throwDefaultError({
1219
1195
  output,
1220
1196
  parsedBody,
1221
- exceptionCtor: __BaseException,
1222
1197
  errorCode,
1223
1198
  });
1224
1199
  }
@@ -1229,12 +1204,12 @@ export const de_ListPoliciesCommand = async (output, context) => {
1229
1204
  }
1230
1205
  const data = await parseBody(output.body, context);
1231
1206
  let contents = {};
1232
- contents = de_ListPoliciesResponse(data, context);
1207
+ contents = _json(data);
1233
1208
  const response = {
1234
1209
  $metadata: deserializeMetadata(output),
1235
1210
  ...contents,
1236
1211
  };
1237
- return Promise.resolve(response);
1212
+ return response;
1238
1213
  };
1239
1214
  const de_ListPoliciesCommandError = async (output, context) => {
1240
1215
  const parsedOutput = {
@@ -1257,10 +1232,9 @@ const de_ListPoliciesCommandError = async (output, context) => {
1257
1232
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1258
1233
  default:
1259
1234
  const parsedBody = parsedOutput.body;
1260
- throwDefaultError({
1235
+ return throwDefaultError({
1261
1236
  output,
1262
1237
  parsedBody,
1263
- exceptionCtor: __BaseException,
1264
1238
  errorCode,
1265
1239
  });
1266
1240
  }
@@ -1271,12 +1245,12 @@ export const de_ListProtocolsListsCommand = async (output, context) => {
1271
1245
  }
1272
1246
  const data = await parseBody(output.body, context);
1273
1247
  let contents = {};
1274
- contents = de_ListProtocolsListsResponse(data, context);
1248
+ contents = _json(data);
1275
1249
  const response = {
1276
1250
  $metadata: deserializeMetadata(output),
1277
1251
  ...contents,
1278
1252
  };
1279
- return Promise.resolve(response);
1253
+ return response;
1280
1254
  };
1281
1255
  const de_ListProtocolsListsCommandError = async (output, context) => {
1282
1256
  const parsedOutput = {
@@ -1296,10 +1270,9 @@ const de_ListProtocolsListsCommandError = async (output, context) => {
1296
1270
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1297
1271
  default:
1298
1272
  const parsedBody = parsedOutput.body;
1299
- throwDefaultError({
1273
+ return throwDefaultError({
1300
1274
  output,
1301
1275
  parsedBody,
1302
- exceptionCtor: __BaseException,
1303
1276
  errorCode,
1304
1277
  });
1305
1278
  }
@@ -1310,12 +1283,12 @@ export const de_ListResourceSetResourcesCommand = async (output, context) => {
1310
1283
  }
1311
1284
  const data = await parseBody(output.body, context);
1312
1285
  let contents = {};
1313
- contents = de_ListResourceSetResourcesResponse(data, context);
1286
+ contents = _json(data);
1314
1287
  const response = {
1315
1288
  $metadata: deserializeMetadata(output),
1316
1289
  ...contents,
1317
1290
  };
1318
- return Promise.resolve(response);
1291
+ return response;
1319
1292
  };
1320
1293
  const de_ListResourceSetResourcesCommandError = async (output, context) => {
1321
1294
  const parsedOutput = {
@@ -1338,10 +1311,9 @@ const de_ListResourceSetResourcesCommandError = async (output, context) => {
1338
1311
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1339
1312
  default:
1340
1313
  const parsedBody = parsedOutput.body;
1341
- throwDefaultError({
1314
+ return throwDefaultError({
1342
1315
  output,
1343
1316
  parsedBody,
1344
- exceptionCtor: __BaseException,
1345
1317
  errorCode,
1346
1318
  });
1347
1319
  }
@@ -1357,7 +1329,7 @@ export const de_ListResourceSetsCommand = async (output, context) => {
1357
1329
  $metadata: deserializeMetadata(output),
1358
1330
  ...contents,
1359
1331
  };
1360
- return Promise.resolve(response);
1332
+ return response;
1361
1333
  };
1362
1334
  const de_ListResourceSetsCommandError = async (output, context) => {
1363
1335
  const parsedOutput = {
@@ -1377,10 +1349,9 @@ const de_ListResourceSetsCommandError = async (output, context) => {
1377
1349
  throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1378
1350
  default:
1379
1351
  const parsedBody = parsedOutput.body;
1380
- throwDefaultError({
1352
+ return throwDefaultError({
1381
1353
  output,
1382
1354
  parsedBody,
1383
- exceptionCtor: __BaseException,
1384
1355
  errorCode,
1385
1356
  });
1386
1357
  }
@@ -1391,12 +1362,12 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
1391
1362
  }
1392
1363
  const data = await parseBody(output.body, context);
1393
1364
  let contents = {};
1394
- contents = de_ListTagsForResourceResponse(data, context);
1365
+ contents = _json(data);
1395
1366
  const response = {
1396
1367
  $metadata: deserializeMetadata(output),
1397
1368
  ...contents,
1398
1369
  };
1399
- return Promise.resolve(response);
1370
+ return response;
1400
1371
  };
1401
1372
  const de_ListTagsForResourceCommandError = async (output, context) => {
1402
1373
  const parsedOutput = {
@@ -1419,10 +1390,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
1419
1390
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1420
1391
  default:
1421
1392
  const parsedBody = parsedOutput.body;
1422
- throwDefaultError({
1393
+ return throwDefaultError({
1423
1394
  output,
1424
1395
  parsedBody,
1425
- exceptionCtor: __BaseException,
1426
1396
  errorCode,
1427
1397
  });
1428
1398
  }
@@ -1433,12 +1403,12 @@ export const de_ListThirdPartyFirewallFirewallPoliciesCommand = async (output, c
1433
1403
  }
1434
1404
  const data = await parseBody(output.body, context);
1435
1405
  let contents = {};
1436
- contents = de_ListThirdPartyFirewallFirewallPoliciesResponse(data, context);
1406
+ contents = _json(data);
1437
1407
  const response = {
1438
1408
  $metadata: deserializeMetadata(output),
1439
1409
  ...contents,
1440
1410
  };
1441
- return Promise.resolve(response);
1411
+ return response;
1442
1412
  };
1443
1413
  const de_ListThirdPartyFirewallFirewallPoliciesCommandError = async (output, context) => {
1444
1414
  const parsedOutput = {
@@ -1461,10 +1431,9 @@ const de_ListThirdPartyFirewallFirewallPoliciesCommandError = async (output, con
1461
1431
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1462
1432
  default:
1463
1433
  const parsedBody = parsedOutput.body;
1464
- throwDefaultError({
1434
+ return throwDefaultError({
1465
1435
  output,
1466
1436
  parsedBody,
1467
- exceptionCtor: __BaseException,
1468
1437
  errorCode,
1469
1438
  });
1470
1439
  }
@@ -1480,7 +1449,7 @@ export const de_PutAppsListCommand = async (output, context) => {
1480
1449
  $metadata: deserializeMetadata(output),
1481
1450
  ...contents,
1482
1451
  };
1483
- return Promise.resolve(response);
1452
+ return response;
1484
1453
  };
1485
1454
  const de_PutAppsListCommandError = async (output, context) => {
1486
1455
  const parsedOutput = {
@@ -1506,10 +1475,9 @@ const de_PutAppsListCommandError = async (output, context) => {
1506
1475
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1507
1476
  default:
1508
1477
  const parsedBody = parsedOutput.body;
1509
- throwDefaultError({
1478
+ return throwDefaultError({
1510
1479
  output,
1511
1480
  parsedBody,
1512
- exceptionCtor: __BaseException,
1513
1481
  errorCode,
1514
1482
  });
1515
1483
  }
@@ -1522,7 +1490,7 @@ export const de_PutNotificationChannelCommand = async (output, context) => {
1522
1490
  const response = {
1523
1491
  $metadata: deserializeMetadata(output),
1524
1492
  };
1525
- return Promise.resolve(response);
1493
+ return response;
1526
1494
  };
1527
1495
  const de_PutNotificationChannelCommandError = async (output, context) => {
1528
1496
  const parsedOutput = {
@@ -1542,10 +1510,9 @@ const de_PutNotificationChannelCommandError = async (output, context) => {
1542
1510
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1543
1511
  default:
1544
1512
  const parsedBody = parsedOutput.body;
1545
- throwDefaultError({
1513
+ return throwDefaultError({
1546
1514
  output,
1547
1515
  parsedBody,
1548
- exceptionCtor: __BaseException,
1549
1516
  errorCode,
1550
1517
  });
1551
1518
  }
@@ -1556,12 +1523,12 @@ export const de_PutPolicyCommand = async (output, context) => {
1556
1523
  }
1557
1524
  const data = await parseBody(output.body, context);
1558
1525
  let contents = {};
1559
- contents = de_PutPolicyResponse(data, context);
1526
+ contents = _json(data);
1560
1527
  const response = {
1561
1528
  $metadata: deserializeMetadata(output),
1562
1529
  ...contents,
1563
1530
  };
1564
- return Promise.resolve(response);
1531
+ return response;
1565
1532
  };
1566
1533
  const de_PutPolicyCommandError = async (output, context) => {
1567
1534
  const parsedOutput = {
@@ -1590,10 +1557,9 @@ const de_PutPolicyCommandError = async (output, context) => {
1590
1557
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1591
1558
  default:
1592
1559
  const parsedBody = parsedOutput.body;
1593
- throwDefaultError({
1560
+ return throwDefaultError({
1594
1561
  output,
1595
1562
  parsedBody,
1596
- exceptionCtor: __BaseException,
1597
1563
  errorCode,
1598
1564
  });
1599
1565
  }
@@ -1609,7 +1575,7 @@ export const de_PutProtocolsListCommand = async (output, context) => {
1609
1575
  $metadata: deserializeMetadata(output),
1610
1576
  ...contents,
1611
1577
  };
1612
- return Promise.resolve(response);
1578
+ return response;
1613
1579
  };
1614
1580
  const de_PutProtocolsListCommandError = async (output, context) => {
1615
1581
  const parsedOutput = {
@@ -1635,10 +1601,9 @@ const de_PutProtocolsListCommandError = async (output, context) => {
1635
1601
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1636
1602
  default:
1637
1603
  const parsedBody = parsedOutput.body;
1638
- throwDefaultError({
1604
+ return throwDefaultError({
1639
1605
  output,
1640
1606
  parsedBody,
1641
- exceptionCtor: __BaseException,
1642
1607
  errorCode,
1643
1608
  });
1644
1609
  }
@@ -1654,7 +1619,7 @@ export const de_PutResourceSetCommand = async (output, context) => {
1654
1619
  $metadata: deserializeMetadata(output),
1655
1620
  ...contents,
1656
1621
  };
1657
- return Promise.resolve(response);
1622
+ return response;
1658
1623
  };
1659
1624
  const de_PutResourceSetCommandError = async (output, context) => {
1660
1625
  const parsedOutput = {
@@ -1677,10 +1642,9 @@ const de_PutResourceSetCommandError = async (output, context) => {
1677
1642
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
1678
1643
  default:
1679
1644
  const parsedBody = parsedOutput.body;
1680
- throwDefaultError({
1645
+ return throwDefaultError({
1681
1646
  output,
1682
1647
  parsedBody,
1683
- exceptionCtor: __BaseException,
1684
1648
  errorCode,
1685
1649
  });
1686
1650
  }
@@ -1691,12 +1655,12 @@ export const de_TagResourceCommand = async (output, context) => {
1691
1655
  }
1692
1656
  const data = await parseBody(output.body, context);
1693
1657
  let contents = {};
1694
- contents = de_TagResourceResponse(data, context);
1658
+ contents = _json(data);
1695
1659
  const response = {
1696
1660
  $metadata: deserializeMetadata(output),
1697
1661
  ...contents,
1698
1662
  };
1699
- return Promise.resolve(response);
1663
+ return response;
1700
1664
  };
1701
1665
  const de_TagResourceCommandError = async (output, context) => {
1702
1666
  const parsedOutput = {
@@ -1722,10 +1686,9 @@ const de_TagResourceCommandError = async (output, context) => {
1722
1686
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1723
1687
  default:
1724
1688
  const parsedBody = parsedOutput.body;
1725
- throwDefaultError({
1689
+ return throwDefaultError({
1726
1690
  output,
1727
1691
  parsedBody,
1728
- exceptionCtor: __BaseException,
1729
1692
  errorCode,
1730
1693
  });
1731
1694
  }
@@ -1736,12 +1699,12 @@ export const de_UntagResourceCommand = async (output, context) => {
1736
1699
  }
1737
1700
  const data = await parseBody(output.body, context);
1738
1701
  let contents = {};
1739
- contents = de_UntagResourceResponse(data, context);
1702
+ contents = _json(data);
1740
1703
  const response = {
1741
1704
  $metadata: deserializeMetadata(output),
1742
1705
  ...contents,
1743
1706
  };
1744
- return Promise.resolve(response);
1707
+ return response;
1745
1708
  };
1746
1709
  const de_UntagResourceCommandError = async (output, context) => {
1747
1710
  const parsedOutput = {
@@ -1764,17 +1727,16 @@ const de_UntagResourceCommandError = async (output, context) => {
1764
1727
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1765
1728
  default:
1766
1729
  const parsedBody = parsedOutput.body;
1767
- throwDefaultError({
1730
+ return throwDefaultError({
1768
1731
  output,
1769
1732
  parsedBody,
1770
- exceptionCtor: __BaseException,
1771
1733
  errorCode,
1772
1734
  });
1773
1735
  }
1774
1736
  };
1775
1737
  const de_InternalErrorExceptionRes = async (parsedOutput, context) => {
1776
1738
  const body = parsedOutput.body;
1777
- const deserialized = de_InternalErrorException(body, context);
1739
+ const deserialized = _json(body);
1778
1740
  const exception = new InternalErrorException({
1779
1741
  $metadata: deserializeMetadata(parsedOutput),
1780
1742
  ...deserialized,
@@ -1783,7 +1745,7 @@ const de_InternalErrorExceptionRes = async (parsedOutput, context) => {
1783
1745
  };
1784
1746
  const de_InvalidInputExceptionRes = async (parsedOutput, context) => {
1785
1747
  const body = parsedOutput.body;
1786
- const deserialized = de_InvalidInputException(body, context);
1748
+ const deserialized = _json(body);
1787
1749
  const exception = new InvalidInputException({
1788
1750
  $metadata: deserializeMetadata(parsedOutput),
1789
1751
  ...deserialized,
@@ -1792,7 +1754,7 @@ const de_InvalidInputExceptionRes = async (parsedOutput, context) => {
1792
1754
  };
1793
1755
  const de_InvalidOperationExceptionRes = async (parsedOutput, context) => {
1794
1756
  const body = parsedOutput.body;
1795
- const deserialized = de_InvalidOperationException(body, context);
1757
+ const deserialized = _json(body);
1796
1758
  const exception = new InvalidOperationException({
1797
1759
  $metadata: deserializeMetadata(parsedOutput),
1798
1760
  ...deserialized,
@@ -1801,7 +1763,7 @@ const de_InvalidOperationExceptionRes = async (parsedOutput, context) => {
1801
1763
  };
1802
1764
  const de_InvalidTypeExceptionRes = async (parsedOutput, context) => {
1803
1765
  const body = parsedOutput.body;
1804
- const deserialized = de_InvalidTypeException(body, context);
1766
+ const deserialized = _json(body);
1805
1767
  const exception = new InvalidTypeException({
1806
1768
  $metadata: deserializeMetadata(parsedOutput),
1807
1769
  ...deserialized,
@@ -1810,7 +1772,7 @@ const de_InvalidTypeExceptionRes = async (parsedOutput, context) => {
1810
1772
  };
1811
1773
  const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
1812
1774
  const body = parsedOutput.body;
1813
- const deserialized = de_LimitExceededException(body, context);
1775
+ const deserialized = _json(body);
1814
1776
  const exception = new LimitExceededException({
1815
1777
  $metadata: deserializeMetadata(parsedOutput),
1816
1778
  ...deserialized,
@@ -1819,1775 +1781,219 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
1819
1781
  };
1820
1782
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1821
1783
  const body = parsedOutput.body;
1822
- const deserialized = de_ResourceNotFoundException(body, context);
1784
+ const deserialized = _json(body);
1823
1785
  const exception = new ResourceNotFoundException({
1824
1786
  $metadata: deserializeMetadata(parsedOutput),
1825
1787
  ...deserialized,
1826
1788
  });
1827
1789
  return __decorateServiceException(exception, body);
1828
1790
  };
1829
- const se_App = (input, context) => {
1830
- return {
1831
- ...(input.AppName != null && { AppName: input.AppName }),
1832
- ...(input.Port != null && { Port: input.Port }),
1833
- ...(input.Protocol != null && { Protocol: input.Protocol }),
1834
- };
1835
- };
1836
- const se_AppsList = (input, context) => {
1837
- return input
1838
- .filter((e) => e != null)
1839
- .map((entry) => {
1840
- return se_App(entry, context);
1841
- });
1842
- };
1843
- const se_AppsListData = (input, context) => {
1844
- return {
1845
- ...(input.AppsList != null && { AppsList: se_AppsList(input.AppsList, context) }),
1846
- ...(input.CreateTime != null && { CreateTime: Math.round(input.CreateTime.getTime() / 1000) }),
1847
- ...(input.LastUpdateTime != null && { LastUpdateTime: Math.round(input.LastUpdateTime.getTime() / 1000) }),
1848
- ...(input.ListId != null && { ListId: input.ListId }),
1849
- ...(input.ListName != null && { ListName: input.ListName }),
1850
- ...(input.ListUpdateToken != null && { ListUpdateToken: input.ListUpdateToken }),
1851
- ...(input.PreviousAppsList != null && { PreviousAppsList: se_PreviousAppsList(input.PreviousAppsList, context) }),
1852
- };
1853
- };
1854
- const se_AssociateAdminAccountRequest = (input, context) => {
1855
- return {
1856
- ...(input.AdminAccount != null && { AdminAccount: input.AdminAccount }),
1857
- };
1858
- };
1859
- const se_AssociateThirdPartyFirewallRequest = (input, context) => {
1860
- return {
1861
- ...(input.ThirdPartyFirewall != null && { ThirdPartyFirewall: input.ThirdPartyFirewall }),
1862
- };
1863
- };
1864
- const se_AWSAccountIdList = (input, context) => {
1865
- return input
1866
- .filter((e) => e != null)
1867
- .map((entry) => {
1868
- return entry;
1869
- });
1870
- };
1871
- const se_BatchAssociateResourceRequest = (input, context) => {
1872
- return {
1873
- ...(input.Items != null && { Items: se_IdentifierList(input.Items, context) }),
1874
- ...(input.ResourceSetIdentifier != null && { ResourceSetIdentifier: input.ResourceSetIdentifier }),
1875
- };
1876
- };
1877
- const se_BatchDisassociateResourceRequest = (input, context) => {
1878
- return {
1879
- ...(input.Items != null && { Items: se_IdentifierList(input.Items, context) }),
1880
- ...(input.ResourceSetIdentifier != null && { ResourceSetIdentifier: input.ResourceSetIdentifier }),
1881
- };
1882
- };
1883
- const se_CustomerPolicyScopeIdList = (input, context) => {
1884
- return input
1885
- .filter((e) => e != null)
1886
- .map((entry) => {
1887
- return entry;
1888
- });
1889
- };
1890
- const se_CustomerPolicyScopeMap = (input, context) => {
1891
- return Object.entries(input).reduce((acc, [key, value]) => {
1892
- if (value === null) {
1893
- return acc;
1894
- }
1895
- acc[key] = se_CustomerPolicyScopeIdList(value, context);
1896
- return acc;
1897
- }, {});
1898
- };
1899
- const se_DeleteAppsListRequest = (input, context) => {
1900
- return {
1901
- ...(input.ListId != null && { ListId: input.ListId }),
1902
- };
1903
- };
1904
- const se_DeleteNotificationChannelRequest = (input, context) => {
1905
- return {};
1906
- };
1907
- const se_DeletePolicyRequest = (input, context) => {
1908
- return {
1909
- ...(input.DeleteAllPolicyResources != null && { DeleteAllPolicyResources: input.DeleteAllPolicyResources }),
1910
- ...(input.PolicyId != null && { PolicyId: input.PolicyId }),
1911
- };
1912
- };
1913
- const se_DeleteProtocolsListRequest = (input, context) => {
1914
- return {
1915
- ...(input.ListId != null && { ListId: input.ListId }),
1916
- };
1917
- };
1918
- const se_DeleteResourceSetRequest = (input, context) => {
1919
- return {
1920
- ...(input.Identifier != null && { Identifier: input.Identifier }),
1921
- };
1922
- };
1923
- const se_DisassociateAdminAccountRequest = (input, context) => {
1924
- return {};
1925
- };
1926
- const se_DisassociateThirdPartyFirewallRequest = (input, context) => {
1927
- return {
1928
- ...(input.ThirdPartyFirewall != null && { ThirdPartyFirewall: input.ThirdPartyFirewall }),
1929
- };
1930
- };
1931
- const se_GetAdminAccountRequest = (input, context) => {
1932
- return {};
1933
- };
1934
- const se_GetAppsListRequest = (input, context) => {
1935
- return {
1936
- ...(input.DefaultList != null && { DefaultList: input.DefaultList }),
1937
- ...(input.ListId != null && { ListId: input.ListId }),
1938
- };
1939
- };
1940
- const se_GetComplianceDetailRequest = (input, context) => {
1941
- return {
1942
- ...(input.MemberAccount != null && { MemberAccount: input.MemberAccount }),
1943
- ...(input.PolicyId != null && { PolicyId: input.PolicyId }),
1944
- };
1945
- };
1946
- const se_GetNotificationChannelRequest = (input, context) => {
1947
- return {};
1948
- };
1949
- const se_GetPolicyRequest = (input, context) => {
1950
- return {
1951
- ...(input.PolicyId != null && { PolicyId: input.PolicyId }),
1952
- };
1953
- };
1954
- const se_GetProtectionStatusRequest = (input, context) => {
1955
- return {
1956
- ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
1957
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1958
- ...(input.MemberAccountId != null && { MemberAccountId: input.MemberAccountId }),
1959
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1960
- ...(input.PolicyId != null && { PolicyId: input.PolicyId }),
1961
- ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
1962
- };
1963
- };
1964
- const se_GetProtocolsListRequest = (input, context) => {
1965
- return {
1966
- ...(input.DefaultList != null && { DefaultList: input.DefaultList }),
1967
- ...(input.ListId != null && { ListId: input.ListId }),
1968
- };
1969
- };
1970
- const se_GetResourceSetRequest = (input, context) => {
1971
- return {
1972
- ...(input.Identifier != null && { Identifier: input.Identifier }),
1973
- };
1974
- };
1975
- const se_GetThirdPartyFirewallAssociationStatusRequest = (input, context) => {
1976
- return {
1977
- ...(input.ThirdPartyFirewall != null && { ThirdPartyFirewall: input.ThirdPartyFirewall }),
1978
- };
1979
- };
1980
- const se_GetViolationDetailsRequest = (input, context) => {
1981
- return {
1982
- ...(input.MemberAccount != null && { MemberAccount: input.MemberAccount }),
1983
- ...(input.PolicyId != null && { PolicyId: input.PolicyId }),
1984
- ...(input.ResourceId != null && { ResourceId: input.ResourceId }),
1985
- ...(input.ResourceType != null && { ResourceType: input.ResourceType }),
1986
- };
1987
- };
1988
- const se_IdentifierList = (input, context) => {
1989
- return input
1990
- .filter((e) => e != null)
1991
- .map((entry) => {
1992
- return entry;
1993
- });
1994
- };
1995
- const se_ListAppsListsRequest = (input, context) => {
1996
- return {
1997
- ...(input.DefaultLists != null && { DefaultLists: input.DefaultLists }),
1998
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1999
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2000
- };
2001
- };
2002
- const se_ListComplianceStatusRequest = (input, context) => {
2003
- return {
2004
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2005
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2006
- ...(input.PolicyId != null && { PolicyId: input.PolicyId }),
2007
- };
2008
- };
2009
- const se_ListDiscoveredResourcesRequest = (input, context) => {
2010
- return {
2011
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2012
- ...(input.MemberAccountIds != null && { MemberAccountIds: se_AWSAccountIdList(input.MemberAccountIds, context) }),
2013
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2014
- ...(input.ResourceType != null && { ResourceType: input.ResourceType }),
2015
- };
2016
- };
2017
- const se_ListMemberAccountsRequest = (input, context) => {
2018
- return {
2019
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2020
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2021
- };
2022
- };
2023
- const se_ListPoliciesRequest = (input, context) => {
2024
- return {
2025
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2026
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2027
- };
2028
- };
2029
- const se_ListProtocolsListsRequest = (input, context) => {
2030
- return {
2031
- ...(input.DefaultLists != null && { DefaultLists: input.DefaultLists }),
2032
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2033
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2034
- };
2035
- };
2036
- const se_ListResourceSetResourcesRequest = (input, context) => {
2037
- return {
2038
- ...(input.Identifier != null && { Identifier: input.Identifier }),
2039
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2040
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2041
- };
2042
- };
2043
- const se_ListResourceSetsRequest = (input, context) => {
2044
- return {
2045
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2046
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2047
- };
2048
- };
2049
- const se_ListTagsForResourceRequest = (input, context) => {
2050
- return {
2051
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
2052
- };
2053
- };
2054
- const se_ListThirdPartyFirewallFirewallPoliciesRequest = (input, context) => {
2055
- return {
2056
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2057
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2058
- ...(input.ThirdPartyFirewall != null && { ThirdPartyFirewall: input.ThirdPartyFirewall }),
2059
- };
2060
- };
2061
- const se_NetworkFirewallPolicy = (input, context) => {
2062
- return {
2063
- ...(input.FirewallDeploymentModel != null && { FirewallDeploymentModel: input.FirewallDeploymentModel }),
2064
- };
2065
- };
2066
- const se_Policy = (input, context) => {
2067
- return {
2068
- ...(input.DeleteUnusedFMManagedResources != null && {
2069
- DeleteUnusedFMManagedResources: input.DeleteUnusedFMManagedResources,
2070
- }),
2071
- ...(input.ExcludeMap != null && { ExcludeMap: se_CustomerPolicyScopeMap(input.ExcludeMap, context) }),
2072
- ...(input.ExcludeResourceTags != null && { ExcludeResourceTags: input.ExcludeResourceTags }),
2073
- ...(input.IncludeMap != null && { IncludeMap: se_CustomerPolicyScopeMap(input.IncludeMap, context) }),
2074
- ...(input.PolicyDescription != null && { PolicyDescription: input.PolicyDescription }),
2075
- ...(input.PolicyId != null && { PolicyId: input.PolicyId }),
2076
- ...(input.PolicyName != null && { PolicyName: input.PolicyName }),
2077
- ...(input.PolicyUpdateToken != null && { PolicyUpdateToken: input.PolicyUpdateToken }),
2078
- ...(input.RemediationEnabled != null && { RemediationEnabled: input.RemediationEnabled }),
2079
- ...(input.ResourceSetIds != null && { ResourceSetIds: se_ResourceSetIds(input.ResourceSetIds, context) }),
2080
- ...(input.ResourceTags != null && { ResourceTags: se_ResourceTags(input.ResourceTags, context) }),
2081
- ...(input.ResourceType != null && { ResourceType: input.ResourceType }),
2082
- ...(input.ResourceTypeList != null && { ResourceTypeList: se_ResourceTypeList(input.ResourceTypeList, context) }),
2083
- ...(input.SecurityServicePolicyData != null && {
2084
- SecurityServicePolicyData: se_SecurityServicePolicyData(input.SecurityServicePolicyData, context),
2085
- }),
2086
- };
2087
- };
2088
- const se_PolicyOption = (input, context) => {
2089
- return {
2090
- ...(input.NetworkFirewallPolicy != null && {
2091
- NetworkFirewallPolicy: se_NetworkFirewallPolicy(input.NetworkFirewallPolicy, context),
2092
- }),
2093
- ...(input.ThirdPartyFirewallPolicy != null && {
2094
- ThirdPartyFirewallPolicy: se_ThirdPartyFirewallPolicy(input.ThirdPartyFirewallPolicy, context),
2095
- }),
2096
- };
2097
- };
2098
- const se_PreviousAppsList = (input, context) => {
2099
- return Object.entries(input).reduce((acc, [key, value]) => {
2100
- if (value === null) {
2101
- return acc;
2102
- }
2103
- acc[key] = se_AppsList(value, context);
2104
- return acc;
2105
- }, {});
2106
- };
2107
- const se_PreviousProtocolsList = (input, context) => {
2108
- return Object.entries(input).reduce((acc, [key, value]) => {
2109
- if (value === null) {
2110
- return acc;
2111
- }
2112
- acc[key] = se_ProtocolsList(value, context);
2113
- return acc;
2114
- }, {});
2115
- };
2116
- const se_ProtocolsList = (input, context) => {
2117
- return input
2118
- .filter((e) => e != null)
2119
- .map((entry) => {
2120
- return entry;
2121
- });
2122
- };
2123
- const se_ProtocolsListData = (input, context) => {
2124
- return {
2125
- ...(input.CreateTime != null && { CreateTime: Math.round(input.CreateTime.getTime() / 1000) }),
2126
- ...(input.LastUpdateTime != null && { LastUpdateTime: Math.round(input.LastUpdateTime.getTime() / 1000) }),
2127
- ...(input.ListId != null && { ListId: input.ListId }),
2128
- ...(input.ListName != null && { ListName: input.ListName }),
2129
- ...(input.ListUpdateToken != null && { ListUpdateToken: input.ListUpdateToken }),
2130
- ...(input.PreviousProtocolsList != null && {
2131
- PreviousProtocolsList: se_PreviousProtocolsList(input.PreviousProtocolsList, context),
2132
- }),
2133
- ...(input.ProtocolsList != null && { ProtocolsList: se_ProtocolsList(input.ProtocolsList, context) }),
2134
- };
2135
- };
2136
- const se_PutAppsListRequest = (input, context) => {
2137
- return {
2138
- ...(input.AppsList != null && { AppsList: se_AppsListData(input.AppsList, context) }),
2139
- ...(input.TagList != null && { TagList: se_TagList(input.TagList, context) }),
2140
- };
2141
- };
2142
- const se_PutNotificationChannelRequest = (input, context) => {
2143
- return {
2144
- ...(input.SnsRoleName != null && { SnsRoleName: input.SnsRoleName }),
2145
- ...(input.SnsTopicArn != null && { SnsTopicArn: input.SnsTopicArn }),
2146
- };
2147
- };
2148
- const se_PutPolicyRequest = (input, context) => {
2149
- return {
2150
- ...(input.Policy != null && { Policy: se_Policy(input.Policy, context) }),
2151
- ...(input.TagList != null && { TagList: se_TagList(input.TagList, context) }),
2152
- };
2153
- };
2154
- const se_PutProtocolsListRequest = (input, context) => {
2155
- return {
2156
- ...(input.ProtocolsList != null && { ProtocolsList: se_ProtocolsListData(input.ProtocolsList, context) }),
2157
- ...(input.TagList != null && { TagList: se_TagList(input.TagList, context) }),
2158
- };
2159
- };
2160
- const se_PutResourceSetRequest = (input, context) => {
2161
- return {
2162
- ...(input.ResourceSet != null && { ResourceSet: se_ResourceSet(input.ResourceSet, context) }),
2163
- ...(input.TagList != null && { TagList: se_TagList(input.TagList, context) }),
2164
- };
2165
- };
2166
- const se_ResourceSet = (input, context) => {
2167
- return {
2168
- ...(input.Description != null && { Description: input.Description }),
2169
- ...(input.Id != null && { Id: input.Id }),
2170
- ...(input.LastUpdateTime != null && { LastUpdateTime: Math.round(input.LastUpdateTime.getTime() / 1000) }),
2171
- ...(input.Name != null && { Name: input.Name }),
2172
- ...(input.ResourceTypeList != null && { ResourceTypeList: se_ResourceTypeList(input.ResourceTypeList, context) }),
2173
- ...(input.UpdateToken != null && { UpdateToken: input.UpdateToken }),
2174
- };
2175
- };
2176
- const se_ResourceSetIds = (input, context) => {
2177
- return input
2178
- .filter((e) => e != null)
2179
- .map((entry) => {
2180
- return entry;
2181
- });
2182
- };
2183
- const se_ResourceTag = (input, context) => {
2184
- return {
2185
- ...(input.Key != null && { Key: input.Key }),
2186
- ...(input.Value != null && { Value: input.Value }),
2187
- };
2188
- };
2189
- const se_ResourceTags = (input, context) => {
2190
- return input
2191
- .filter((e) => e != null)
2192
- .map((entry) => {
2193
- return se_ResourceTag(entry, context);
2194
- });
2195
- };
2196
- const se_ResourceTypeList = (input, context) => {
2197
- return input
2198
- .filter((e) => e != null)
2199
- .map((entry) => {
2200
- return entry;
2201
- });
2202
- };
2203
- const se_SecurityServicePolicyData = (input, context) => {
2204
- return {
2205
- ...(input.ManagedServiceData != null && { ManagedServiceData: input.ManagedServiceData }),
2206
- ...(input.PolicyOption != null && { PolicyOption: se_PolicyOption(input.PolicyOption, context) }),
2207
- ...(input.Type != null && { Type: input.Type }),
2208
- };
2209
- };
2210
- const se_Tag = (input, context) => {
2211
- return {
2212
- ...(input.Key != null && { Key: input.Key }),
2213
- ...(input.Value != null && { Value: input.Value }),
2214
- };
2215
- };
2216
- const se_TagKeyList = (input, context) => {
2217
- return input
2218
- .filter((e) => e != null)
2219
- .map((entry) => {
2220
- return entry;
2221
- });
2222
- };
2223
- const se_TagList = (input, context) => {
2224
- return input
2225
- .filter((e) => e != null)
2226
- .map((entry) => {
2227
- return se_Tag(entry, context);
2228
- });
2229
- };
2230
- const se_TagResourceRequest = (input, context) => {
2231
- return {
2232
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
2233
- ...(input.TagList != null && { TagList: se_TagList(input.TagList, context) }),
2234
- };
2235
- };
2236
- const se_ThirdPartyFirewallPolicy = (input, context) => {
2237
- return {
2238
- ...(input.FirewallDeploymentModel != null && { FirewallDeploymentModel: input.FirewallDeploymentModel }),
2239
- };
2240
- };
2241
- const se_UntagResourceRequest = (input, context) => {
2242
- return {
2243
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
2244
- ...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
2245
- };
2246
- };
2247
- const de_ActionTarget = (output, context) => {
2248
- return {
2249
- Description: __expectString(output.Description),
2250
- ResourceId: __expectString(output.ResourceId),
2251
- };
2252
- };
2253
- const de_App = (output, context) => {
2254
- return {
2255
- AppName: __expectString(output.AppName),
2256
- Port: __expectLong(output.Port),
2257
- Protocol: __expectString(output.Protocol),
2258
- };
2259
- };
2260
- const de_AppsList = (output, context) => {
2261
- const retVal = (output || [])
2262
- .filter((e) => e != null)
2263
- .map((entry) => {
2264
- if (entry === null) {
2265
- return null;
2266
- }
2267
- return de_App(entry, context);
2268
- });
2269
- return retVal;
2270
- };
2271
- const de_AppsListData = (output, context) => {
2272
- return {
2273
- AppsList: output.AppsList != null ? de_AppsList(output.AppsList, context) : undefined,
2274
- CreateTime: output.CreateTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateTime))) : undefined,
2275
- LastUpdateTime: output.LastUpdateTime != null
2276
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdateTime)))
2277
- : undefined,
2278
- ListId: __expectString(output.ListId),
2279
- ListName: __expectString(output.ListName),
2280
- ListUpdateToken: __expectString(output.ListUpdateToken),
2281
- PreviousAppsList: output.PreviousAppsList != null ? de_PreviousAppsList(output.PreviousAppsList, context) : undefined,
2282
- };
2283
- };
2284
- const de_AppsListDataSummary = (output, context) => {
2285
- return {
2286
- AppsList: output.AppsList != null ? de_AppsList(output.AppsList, context) : undefined,
2287
- ListArn: __expectString(output.ListArn),
2288
- ListId: __expectString(output.ListId),
2289
- ListName: __expectString(output.ListName),
2290
- };
2291
- };
2292
- const de_AppsListsData = (output, context) => {
2293
- const retVal = (output || [])
2294
- .filter((e) => e != null)
2295
- .map((entry) => {
2296
- if (entry === null) {
2297
- return null;
2298
- }
2299
- return de_AppsListDataSummary(entry, context);
2300
- });
2301
- return retVal;
2302
- };
2303
- const de_AssociateThirdPartyFirewallResponse = (output, context) => {
2304
- return {
2305
- ThirdPartyFirewallStatus: __expectString(output.ThirdPartyFirewallStatus),
2306
- };
2307
- };
2308
- const de_AwsEc2InstanceViolation = (output, context) => {
2309
- return {
2310
- AwsEc2NetworkInterfaceViolations: output.AwsEc2NetworkInterfaceViolations != null
2311
- ? de_AwsEc2NetworkInterfaceViolations(output.AwsEc2NetworkInterfaceViolations, context)
2312
- : undefined,
2313
- ViolationTarget: __expectString(output.ViolationTarget),
2314
- };
2315
- };
2316
- const de_AwsEc2NetworkInterfaceViolation = (output, context) => {
2317
- return {
2318
- ViolatingSecurityGroups: output.ViolatingSecurityGroups != null ? de_ResourceIdList(output.ViolatingSecurityGroups, context) : undefined,
2319
- ViolationTarget: __expectString(output.ViolationTarget),
2320
- };
2321
- };
2322
- const de_AwsEc2NetworkInterfaceViolations = (output, context) => {
2323
- const retVal = (output || [])
2324
- .filter((e) => e != null)
2325
- .map((entry) => {
2326
- if (entry === null) {
2327
- return null;
2328
- }
2329
- return de_AwsEc2NetworkInterfaceViolation(entry, context);
2330
- });
2331
- return retVal;
2332
- };
2333
- const de_AwsVPCSecurityGroupViolation = (output, context) => {
2334
- return {
2335
- PartialMatches: output.PartialMatches != null ? de_PartialMatches(output.PartialMatches, context) : undefined,
2336
- PossibleSecurityGroupRemediationActions: output.PossibleSecurityGroupRemediationActions != null
2337
- ? de_SecurityGroupRemediationActions(output.PossibleSecurityGroupRemediationActions, context)
2338
- : undefined,
2339
- ViolationTarget: __expectString(output.ViolationTarget),
2340
- ViolationTargetDescription: __expectString(output.ViolationTargetDescription),
2341
- };
2342
- };
2343
- const de_BatchAssociateResourceResponse = (output, context) => {
2344
- return {
2345
- FailedItems: output.FailedItems != null ? de_FailedItemList(output.FailedItems, context) : undefined,
2346
- ResourceSetIdentifier: __expectString(output.ResourceSetIdentifier),
2347
- };
2348
- };
2349
- const de_BatchDisassociateResourceResponse = (output, context) => {
2350
- return {
2351
- FailedItems: output.FailedItems != null ? de_FailedItemList(output.FailedItems, context) : undefined,
2352
- ResourceSetIdentifier: __expectString(output.ResourceSetIdentifier),
2353
- };
2354
- };
2355
- const de_ComplianceViolator = (output, context) => {
2356
- return {
2357
- Metadata: output.Metadata != null ? de_ComplianceViolatorMetadata(output.Metadata, context) : undefined,
2358
- ResourceId: __expectString(output.ResourceId),
2359
- ResourceType: __expectString(output.ResourceType),
2360
- ViolationReason: __expectString(output.ViolationReason),
2361
- };
2362
- };
2363
- const de_ComplianceViolatorMetadata = (output, context) => {
2364
- return Object.entries(output).reduce((acc, [key, value]) => {
2365
- if (value === null) {
2366
- return acc;
2367
- }
2368
- acc[key] = __expectString(value);
2369
- return acc;
2370
- }, {});
2371
- };
2372
- const de_ComplianceViolators = (output, context) => {
2373
- const retVal = (output || [])
2374
- .filter((e) => e != null)
2375
- .map((entry) => {
2376
- if (entry === null) {
2377
- return null;
2378
- }
2379
- return de_ComplianceViolator(entry, context);
2380
- });
2381
- return retVal;
2382
- };
2383
- const de_CustomerPolicyScopeIdList = (output, context) => {
2384
- const retVal = (output || [])
2385
- .filter((e) => e != null)
2386
- .map((entry) => {
2387
- if (entry === null) {
2388
- return null;
2389
- }
2390
- return __expectString(entry);
2391
- });
2392
- return retVal;
2393
- };
2394
- const de_CustomerPolicyScopeMap = (output, context) => {
2395
- return Object.entries(output).reduce((acc, [key, value]) => {
2396
- if (value === null) {
2397
- return acc;
2398
- }
2399
- acc[key] = de_CustomerPolicyScopeIdList(value, context);
2400
- return acc;
2401
- }, {});
2402
- };
2403
- const de_DisassociateThirdPartyFirewallResponse = (output, context) => {
2404
- return {
2405
- ThirdPartyFirewallStatus: __expectString(output.ThirdPartyFirewallStatus),
2406
- };
2407
- };
2408
- const de_DiscoveredResource = (output, context) => {
2409
- return {
2410
- AccountId: __expectString(output.AccountId),
2411
- Name: __expectString(output.Name),
2412
- Type: __expectString(output.Type),
2413
- URI: __expectString(output.URI),
2414
- };
2415
- };
2416
- const de_DiscoveredResourceList = (output, context) => {
2417
- const retVal = (output || [])
2418
- .filter((e) => e != null)
2419
- .map((entry) => {
2420
- if (entry === null) {
2421
- return null;
2422
- }
2423
- return de_DiscoveredResource(entry, context);
2424
- });
2425
- return retVal;
2426
- };
2427
- const de_DnsDuplicateRuleGroupViolation = (output, context) => {
2428
- return {
2429
- ViolationTarget: __expectString(output.ViolationTarget),
2430
- ViolationTargetDescription: __expectString(output.ViolationTargetDescription),
2431
- };
2432
- };
2433
- const de_DnsRuleGroupLimitExceededViolation = (output, context) => {
2434
- return {
2435
- NumberOfRuleGroupsAlreadyAssociated: __expectInt32(output.NumberOfRuleGroupsAlreadyAssociated),
2436
- ViolationTarget: __expectString(output.ViolationTarget),
2437
- ViolationTargetDescription: __expectString(output.ViolationTargetDescription),
2438
- };
2439
- };
2440
- const de_DnsRuleGroupPriorities = (output, context) => {
2441
- const retVal = (output || [])
2442
- .filter((e) => e != null)
2443
- .map((entry) => {
2444
- if (entry === null) {
2445
- return null;
2446
- }
2447
- return __expectInt32(entry);
2448
- });
2449
- return retVal;
2450
- };
2451
- const de_DnsRuleGroupPriorityConflictViolation = (output, context) => {
2452
- return {
2453
- ConflictingPolicyId: __expectString(output.ConflictingPolicyId),
2454
- ConflictingPriority: __expectInt32(output.ConflictingPriority),
2455
- UnavailablePriorities: output.UnavailablePriorities != null
2456
- ? de_DnsRuleGroupPriorities(output.UnavailablePriorities, context)
2457
- : undefined,
2458
- ViolationTarget: __expectString(output.ViolationTarget),
2459
- ViolationTargetDescription: __expectString(output.ViolationTargetDescription),
2460
- };
2461
- };
2462
- const de_EC2AssociateRouteTableAction = (output, context) => {
2463
- return {
2464
- Description: __expectString(output.Description),
2465
- GatewayId: output.GatewayId != null ? de_ActionTarget(output.GatewayId, context) : undefined,
2466
- RouteTableId: output.RouteTableId != null ? de_ActionTarget(output.RouteTableId, context) : undefined,
2467
- SubnetId: output.SubnetId != null ? de_ActionTarget(output.SubnetId, context) : undefined,
2468
- };
2469
- };
2470
- const de_EC2CopyRouteTableAction = (output, context) => {
2471
- return {
2472
- Description: __expectString(output.Description),
2473
- RouteTableId: output.RouteTableId != null ? de_ActionTarget(output.RouteTableId, context) : undefined,
2474
- VpcId: output.VpcId != null ? de_ActionTarget(output.VpcId, context) : undefined,
2475
- };
2476
- };
2477
- const de_EC2CreateRouteAction = (output, context) => {
2478
- return {
2479
- Description: __expectString(output.Description),
2480
- DestinationCidrBlock: __expectString(output.DestinationCidrBlock),
2481
- DestinationIpv6CidrBlock: __expectString(output.DestinationIpv6CidrBlock),
2482
- DestinationPrefixListId: __expectString(output.DestinationPrefixListId),
2483
- GatewayId: output.GatewayId != null ? de_ActionTarget(output.GatewayId, context) : undefined,
2484
- RouteTableId: output.RouteTableId != null ? de_ActionTarget(output.RouteTableId, context) : undefined,
2485
- VpcEndpointId: output.VpcEndpointId != null ? de_ActionTarget(output.VpcEndpointId, context) : undefined,
2486
- };
2487
- };
2488
- const de_EC2CreateRouteTableAction = (output, context) => {
2489
- return {
2490
- Description: __expectString(output.Description),
2491
- VpcId: output.VpcId != null ? de_ActionTarget(output.VpcId, context) : undefined,
2492
- };
2493
- };
2494
- const de_EC2DeleteRouteAction = (output, context) => {
2495
- return {
2496
- Description: __expectString(output.Description),
2497
- DestinationCidrBlock: __expectString(output.DestinationCidrBlock),
2498
- DestinationIpv6CidrBlock: __expectString(output.DestinationIpv6CidrBlock),
2499
- DestinationPrefixListId: __expectString(output.DestinationPrefixListId),
2500
- RouteTableId: output.RouteTableId != null ? de_ActionTarget(output.RouteTableId, context) : undefined,
2501
- };
2502
- };
2503
- const de_EC2ReplaceRouteAction = (output, context) => {
2504
- return {
2505
- Description: __expectString(output.Description),
2506
- DestinationCidrBlock: __expectString(output.DestinationCidrBlock),
2507
- DestinationIpv6CidrBlock: __expectString(output.DestinationIpv6CidrBlock),
2508
- DestinationPrefixListId: __expectString(output.DestinationPrefixListId),
2509
- GatewayId: output.GatewayId != null ? de_ActionTarget(output.GatewayId, context) : undefined,
2510
- RouteTableId: output.RouteTableId != null ? de_ActionTarget(output.RouteTableId, context) : undefined,
2511
- };
2512
- };
2513
- const de_EC2ReplaceRouteTableAssociationAction = (output, context) => {
2514
- return {
2515
- AssociationId: output.AssociationId != null ? de_ActionTarget(output.AssociationId, context) : undefined,
2516
- Description: __expectString(output.Description),
2517
- RouteTableId: output.RouteTableId != null ? de_ActionTarget(output.RouteTableId, context) : undefined,
2518
- };
2519
- };
2520
- const de_EvaluationResult = (output, context) => {
2521
- return {
2522
- ComplianceStatus: __expectString(output.ComplianceStatus),
2523
- EvaluationLimitExceeded: __expectBoolean(output.EvaluationLimitExceeded),
2524
- ViolatorCount: __expectLong(output.ViolatorCount),
2525
- };
2526
- };
2527
- const de_EvaluationResults = (output, context) => {
2528
- const retVal = (output || [])
2529
- .filter((e) => e != null)
2530
- .map((entry) => {
2531
- if (entry === null) {
2532
- return null;
2533
- }
2534
- return de_EvaluationResult(entry, context);
2535
- });
2536
- return retVal;
2537
- };
2538
- const de_ExpectedRoute = (output, context) => {
2539
- return {
2540
- AllowedTargets: output.AllowedTargets != null ? de_LengthBoundedStringList(output.AllowedTargets, context) : undefined,
2541
- ContributingSubnets: output.ContributingSubnets != null ? de_ResourceIdList(output.ContributingSubnets, context) : undefined,
2542
- IpV4Cidr: __expectString(output.IpV4Cidr),
2543
- IpV6Cidr: __expectString(output.IpV6Cidr),
2544
- PrefixListId: __expectString(output.PrefixListId),
2545
- RouteTableId: __expectString(output.RouteTableId),
2546
- };
2547
- };
2548
- const de_ExpectedRoutes = (output, context) => {
2549
- const retVal = (output || [])
2550
- .filter((e) => e != null)
2551
- .map((entry) => {
2552
- if (entry === null) {
2553
- return null;
2554
- }
2555
- return de_ExpectedRoute(entry, context);
2556
- });
2557
- return retVal;
2558
- };
2559
- const de_FailedItem = (output, context) => {
2560
- return {
2561
- Reason: __expectString(output.Reason),
2562
- URI: __expectString(output.URI),
2563
- };
2564
- };
2565
- const de_FailedItemList = (output, context) => {
2566
- const retVal = (output || [])
2567
- .filter((e) => e != null)
2568
- .map((entry) => {
2569
- if (entry === null) {
2570
- return null;
2571
- }
2572
- return de_FailedItem(entry, context);
2573
- });
2574
- return retVal;
2575
- };
2576
- const de_FirewallSubnetIsOutOfScopeViolation = (output, context) => {
2577
- return {
2578
- FirewallSubnetId: __expectString(output.FirewallSubnetId),
2579
- SubnetAvailabilityZone: __expectString(output.SubnetAvailabilityZone),
2580
- SubnetAvailabilityZoneId: __expectString(output.SubnetAvailabilityZoneId),
2581
- VpcEndpointId: __expectString(output.VpcEndpointId),
2582
- VpcId: __expectString(output.VpcId),
2583
- };
2584
- };
2585
- const de_FirewallSubnetMissingVPCEndpointViolation = (output, context) => {
2586
- return {
2587
- FirewallSubnetId: __expectString(output.FirewallSubnetId),
2588
- SubnetAvailabilityZone: __expectString(output.SubnetAvailabilityZone),
2589
- SubnetAvailabilityZoneId: __expectString(output.SubnetAvailabilityZoneId),
2590
- VpcId: __expectString(output.VpcId),
2591
- };
2592
- };
2593
- const de_FMSPolicyUpdateFirewallCreationConfigAction = (output, context) => {
2594
- return {
2595
- Description: __expectString(output.Description),
2596
- FirewallCreationConfig: __expectString(output.FirewallCreationConfig),
2597
- };
2598
- };
2599
- const de_GetAdminAccountResponse = (output, context) => {
2600
- return {
2601
- AdminAccount: __expectString(output.AdminAccount),
2602
- RoleStatus: __expectString(output.RoleStatus),
2603
- };
2604
- };
2605
- const de_GetAppsListResponse = (output, context) => {
2606
- return {
2607
- AppsList: output.AppsList != null ? de_AppsListData(output.AppsList, context) : undefined,
2608
- AppsListArn: __expectString(output.AppsListArn),
2609
- };
2610
- };
2611
- const de_GetComplianceDetailResponse = (output, context) => {
2612
- return {
2613
- PolicyComplianceDetail: output.PolicyComplianceDetail != null
2614
- ? de_PolicyComplianceDetail(output.PolicyComplianceDetail, context)
2615
- : undefined,
2616
- };
2617
- };
2618
- const de_GetNotificationChannelResponse = (output, context) => {
2619
- return {
2620
- SnsRoleName: __expectString(output.SnsRoleName),
2621
- SnsTopicArn: __expectString(output.SnsTopicArn),
2622
- };
2623
- };
2624
- const de_GetPolicyResponse = (output, context) => {
2625
- return {
2626
- Policy: output.Policy != null ? de_Policy(output.Policy, context) : undefined,
2627
- PolicyArn: __expectString(output.PolicyArn),
2628
- };
2629
- };
2630
- const de_GetProtectionStatusResponse = (output, context) => {
2631
- return {
2632
- AdminAccountId: __expectString(output.AdminAccountId),
2633
- Data: __expectString(output.Data),
2634
- NextToken: __expectString(output.NextToken),
2635
- ServiceType: __expectString(output.ServiceType),
2636
- };
2637
- };
2638
- const de_GetProtocolsListResponse = (output, context) => {
2639
- return {
2640
- ProtocolsList: output.ProtocolsList != null ? de_ProtocolsListData(output.ProtocolsList, context) : undefined,
2641
- ProtocolsListArn: __expectString(output.ProtocolsListArn),
2642
- };
2643
- };
2644
- const de_GetResourceSetResponse = (output, context) => {
2645
- return {
2646
- ResourceSet: output.ResourceSet != null ? de_ResourceSet(output.ResourceSet, context) : undefined,
2647
- ResourceSetArn: __expectString(output.ResourceSetArn),
2648
- };
2649
- };
2650
- const de_GetThirdPartyFirewallAssociationStatusResponse = (output, context) => {
2651
- return {
2652
- MarketplaceOnboardingStatus: __expectString(output.MarketplaceOnboardingStatus),
2653
- ThirdPartyFirewallStatus: __expectString(output.ThirdPartyFirewallStatus),
2654
- };
2655
- };
2656
- const de_GetViolationDetailsResponse = (output, context) => {
2657
- return {
2658
- ViolationDetail: output.ViolationDetail != null ? de_ViolationDetail(output.ViolationDetail, context) : undefined,
2659
- };
2660
- };
2661
- const de_InternalErrorException = (output, context) => {
2662
- return {
2663
- Message: __expectString(output.Message),
2664
- };
2665
- };
2666
- const de_InvalidInputException = (output, context) => {
2667
- return {
2668
- Message: __expectString(output.Message),
2669
- };
2670
- };
2671
- const de_InvalidOperationException = (output, context) => {
2672
- return {
2673
- Message: __expectString(output.Message),
2674
- };
2675
- };
2676
- const de_InvalidTypeException = (output, context) => {
2677
- return {
2678
- Message: __expectString(output.Message),
2679
- };
2680
- };
2681
- const de_IssueInfoMap = (output, context) => {
2682
- return Object.entries(output).reduce((acc, [key, value]) => {
2683
- if (value === null) {
2684
- return acc;
2685
- }
2686
- acc[key] = __expectString(value);
2687
- return acc;
2688
- }, {});
2689
- };
2690
- const de_LengthBoundedStringList = (output, context) => {
2691
- const retVal = (output || [])
2692
- .filter((e) => e != null)
2693
- .map((entry) => {
2694
- if (entry === null) {
2695
- return null;
2696
- }
2697
- return __expectString(entry);
2698
- });
2699
- return retVal;
2700
- };
2701
- const de_LimitExceededException = (output, context) => {
2702
- return {
2703
- Message: __expectString(output.Message),
2704
- };
2705
- };
2706
- const de_ListAppsListsResponse = (output, context) => {
2707
- return {
2708
- AppsLists: output.AppsLists != null ? de_AppsListsData(output.AppsLists, context) : undefined,
2709
- NextToken: __expectString(output.NextToken),
2710
- };
2711
- };
2712
- const de_ListComplianceStatusResponse = (output, context) => {
2713
- return {
2714
- NextToken: __expectString(output.NextToken),
2715
- PolicyComplianceStatusList: output.PolicyComplianceStatusList != null
2716
- ? de_PolicyComplianceStatusList(output.PolicyComplianceStatusList, context)
2717
- : undefined,
2718
- };
2719
- };
2720
- const de_ListDiscoveredResourcesResponse = (output, context) => {
2721
- return {
2722
- Items: output.Items != null ? de_DiscoveredResourceList(output.Items, context) : undefined,
2723
- NextToken: __expectString(output.NextToken),
2724
- };
2725
- };
2726
- const de_ListMemberAccountsResponse = (output, context) => {
2727
- return {
2728
- MemberAccounts: output.MemberAccounts != null ? de_MemberAccounts(output.MemberAccounts, context) : undefined,
2729
- NextToken: __expectString(output.NextToken),
2730
- };
2731
- };
2732
- const de_ListPoliciesResponse = (output, context) => {
2733
- return {
2734
- NextToken: __expectString(output.NextToken),
2735
- PolicyList: output.PolicyList != null ? de_PolicySummaryList(output.PolicyList, context) : undefined,
2736
- };
2737
- };
2738
- const de_ListProtocolsListsResponse = (output, context) => {
2739
- return {
2740
- NextToken: __expectString(output.NextToken),
2741
- ProtocolsLists: output.ProtocolsLists != null ? de_ProtocolsListsData(output.ProtocolsLists, context) : undefined,
2742
- };
2743
- };
2744
- const de_ListResourceSetResourcesResponse = (output, context) => {
2745
- return {
2746
- Items: output.Items != null ? de_ResourceList(output.Items, context) : undefined,
2747
- NextToken: __expectString(output.NextToken),
2748
- };
2749
- };
2750
- const de_ListResourceSetsResponse = (output, context) => {
2751
- return {
2752
- NextToken: __expectString(output.NextToken),
2753
- ResourceSets: output.ResourceSets != null ? de_ResourceSetSummaryList(output.ResourceSets, context) : undefined,
2754
- };
2755
- };
2756
- const de_ListTagsForResourceResponse = (output, context) => {
2757
- return {
2758
- TagList: output.TagList != null ? de_TagList(output.TagList, context) : undefined,
2759
- };
2760
- };
2761
- const de_ListThirdPartyFirewallFirewallPoliciesResponse = (output, context) => {
2762
- return {
2763
- NextToken: __expectString(output.NextToken),
2764
- ThirdPartyFirewallFirewallPolicies: output.ThirdPartyFirewallFirewallPolicies != null
2765
- ? de_ThirdPartyFirewallFirewallPolicies(output.ThirdPartyFirewallFirewallPolicies, context)
2766
- : undefined,
2767
- };
2768
- };
2769
- const de_MemberAccounts = (output, context) => {
2770
- const retVal = (output || [])
2771
- .filter((e) => e != null)
2772
- .map((entry) => {
2773
- if (entry === null) {
2774
- return null;
2775
- }
2776
- return __expectString(entry);
2777
- });
2778
- return retVal;
2779
- };
2780
- const de_NetworkFirewallActionList = (output, context) => {
2781
- const retVal = (output || [])
2782
- .filter((e) => e != null)
2783
- .map((entry) => {
2784
- if (entry === null) {
2785
- return null;
2786
- }
2787
- return __expectString(entry);
2788
- });
2789
- return retVal;
2790
- };
2791
- const de_NetworkFirewallBlackHoleRouteDetectedViolation = (output, context) => {
2792
- return {
2793
- RouteTableId: __expectString(output.RouteTableId),
2794
- ViolatingRoutes: output.ViolatingRoutes != null ? de_Routes(output.ViolatingRoutes, context) : undefined,
2795
- ViolationTarget: __expectString(output.ViolationTarget),
2796
- VpcId: __expectString(output.VpcId),
2797
- };
2798
- };
2799
- const de_NetworkFirewallInternetTrafficNotInspectedViolation = (output, context) => {
2800
- return {
2801
- ActualFirewallSubnetRoutes: output.ActualFirewallSubnetRoutes != null ? de_Routes(output.ActualFirewallSubnetRoutes, context) : undefined,
2802
- ActualInternetGatewayRoutes: output.ActualInternetGatewayRoutes != null ? de_Routes(output.ActualInternetGatewayRoutes, context) : undefined,
2803
- CurrentFirewallSubnetRouteTable: __expectString(output.CurrentFirewallSubnetRouteTable),
2804
- CurrentInternetGatewayRouteTable: __expectString(output.CurrentInternetGatewayRouteTable),
2805
- ExpectedFirewallEndpoint: __expectString(output.ExpectedFirewallEndpoint),
2806
- ExpectedFirewallSubnetRoutes: output.ExpectedFirewallSubnetRoutes != null
2807
- ? de_ExpectedRoutes(output.ExpectedFirewallSubnetRoutes, context)
2808
- : undefined,
2809
- ExpectedInternetGatewayRoutes: output.ExpectedInternetGatewayRoutes != null
2810
- ? de_ExpectedRoutes(output.ExpectedInternetGatewayRoutes, context)
2811
- : undefined,
2812
- FirewallSubnetId: __expectString(output.FirewallSubnetId),
2813
- InternetGatewayId: __expectString(output.InternetGatewayId),
2814
- IsRouteTableUsedInDifferentAZ: __expectBoolean(output.IsRouteTableUsedInDifferentAZ),
2815
- RouteTableId: __expectString(output.RouteTableId),
2816
- SubnetAvailabilityZone: __expectString(output.SubnetAvailabilityZone),
2817
- SubnetId: __expectString(output.SubnetId),
2818
- ViolatingRoutes: output.ViolatingRoutes != null ? de_Routes(output.ViolatingRoutes, context) : undefined,
2819
- VpcId: __expectString(output.VpcId),
2820
- };
2821
- };
2822
- const de_NetworkFirewallInvalidRouteConfigurationViolation = (output, context) => {
2823
- return {
2824
- ActualFirewallEndpoint: __expectString(output.ActualFirewallEndpoint),
2825
- ActualFirewallSubnetId: __expectString(output.ActualFirewallSubnetId),
2826
- ActualFirewallSubnetRoutes: output.ActualFirewallSubnetRoutes != null ? de_Routes(output.ActualFirewallSubnetRoutes, context) : undefined,
2827
- ActualInternetGatewayRoutes: output.ActualInternetGatewayRoutes != null ? de_Routes(output.ActualInternetGatewayRoutes, context) : undefined,
2828
- AffectedSubnets: output.AffectedSubnets != null ? de_ResourceIdList(output.AffectedSubnets, context) : undefined,
2829
- CurrentFirewallSubnetRouteTable: __expectString(output.CurrentFirewallSubnetRouteTable),
2830
- CurrentInternetGatewayRouteTable: __expectString(output.CurrentInternetGatewayRouteTable),
2831
- ExpectedFirewallEndpoint: __expectString(output.ExpectedFirewallEndpoint),
2832
- ExpectedFirewallSubnetId: __expectString(output.ExpectedFirewallSubnetId),
2833
- ExpectedFirewallSubnetRoutes: output.ExpectedFirewallSubnetRoutes != null
2834
- ? de_ExpectedRoutes(output.ExpectedFirewallSubnetRoutes, context)
2835
- : undefined,
2836
- ExpectedInternetGatewayRoutes: output.ExpectedInternetGatewayRoutes != null
2837
- ? de_ExpectedRoutes(output.ExpectedInternetGatewayRoutes, context)
2838
- : undefined,
2839
- InternetGatewayId: __expectString(output.InternetGatewayId),
2840
- IsRouteTableUsedInDifferentAZ: __expectBoolean(output.IsRouteTableUsedInDifferentAZ),
2841
- RouteTableId: __expectString(output.RouteTableId),
2842
- ViolatingRoute: output.ViolatingRoute != null ? de_Route(output.ViolatingRoute, context) : undefined,
2843
- VpcId: __expectString(output.VpcId),
2844
- };
2845
- };
2846
- const de_NetworkFirewallMissingExpectedRoutesViolation = (output, context) => {
2847
- return {
2848
- ExpectedRoutes: output.ExpectedRoutes != null ? de_ExpectedRoutes(output.ExpectedRoutes, context) : undefined,
2849
- ViolationTarget: __expectString(output.ViolationTarget),
2850
- VpcId: __expectString(output.VpcId),
2851
- };
2852
- };
2853
- const de_NetworkFirewallMissingExpectedRTViolation = (output, context) => {
2854
- return {
2855
- AvailabilityZone: __expectString(output.AvailabilityZone),
2856
- CurrentRouteTable: __expectString(output.CurrentRouteTable),
2857
- ExpectedRouteTable: __expectString(output.ExpectedRouteTable),
2858
- VPC: __expectString(output.VPC),
2859
- ViolationTarget: __expectString(output.ViolationTarget),
2860
- };
2861
- };
2862
- const de_NetworkFirewallMissingFirewallViolation = (output, context) => {
2863
- return {
2864
- AvailabilityZone: __expectString(output.AvailabilityZone),
2865
- TargetViolationReason: __expectString(output.TargetViolationReason),
2866
- VPC: __expectString(output.VPC),
2867
- ViolationTarget: __expectString(output.ViolationTarget),
2868
- };
2869
- };
2870
- const de_NetworkFirewallMissingSubnetViolation = (output, context) => {
2871
- return {
2872
- AvailabilityZone: __expectString(output.AvailabilityZone),
2873
- TargetViolationReason: __expectString(output.TargetViolationReason),
2874
- VPC: __expectString(output.VPC),
2875
- ViolationTarget: __expectString(output.ViolationTarget),
2876
- };
2877
- };
2878
- const de_NetworkFirewallPolicy = (output, context) => {
2879
- return {
2880
- FirewallDeploymentModel: __expectString(output.FirewallDeploymentModel),
2881
- };
2882
- };
2883
- const de_NetworkFirewallPolicyDescription = (output, context) => {
2884
- return {
2885
- StatefulDefaultActions: output.StatefulDefaultActions != null
2886
- ? de_NetworkFirewallActionList(output.StatefulDefaultActions, context)
2887
- : undefined,
2888
- StatefulEngineOptions: output.StatefulEngineOptions != null
2889
- ? de_StatefulEngineOptions(output.StatefulEngineOptions, context)
2890
- : undefined,
2891
- StatefulRuleGroups: output.StatefulRuleGroups != null ? de_StatefulRuleGroupList(output.StatefulRuleGroups, context) : undefined,
2892
- StatelessCustomActions: output.StatelessCustomActions != null
2893
- ? de_NetworkFirewallActionList(output.StatelessCustomActions, context)
2894
- : undefined,
2895
- StatelessDefaultActions: output.StatelessDefaultActions != null
2896
- ? de_NetworkFirewallActionList(output.StatelessDefaultActions, context)
2897
- : undefined,
2898
- StatelessFragmentDefaultActions: output.StatelessFragmentDefaultActions != null
2899
- ? de_NetworkFirewallActionList(output.StatelessFragmentDefaultActions, context)
2900
- : undefined,
2901
- StatelessRuleGroups: output.StatelessRuleGroups != null ? de_StatelessRuleGroupList(output.StatelessRuleGroups, context) : undefined,
2902
- };
2903
- };
2904
- const de_NetworkFirewallPolicyModifiedViolation = (output, context) => {
2905
- return {
2906
- CurrentPolicyDescription: output.CurrentPolicyDescription != null
2907
- ? de_NetworkFirewallPolicyDescription(output.CurrentPolicyDescription, context)
2908
- : undefined,
2909
- ExpectedPolicyDescription: output.ExpectedPolicyDescription != null
2910
- ? de_NetworkFirewallPolicyDescription(output.ExpectedPolicyDescription, context)
2911
- : undefined,
2912
- ViolationTarget: __expectString(output.ViolationTarget),
2913
- };
2914
- };
2915
- const de_NetworkFirewallStatefulRuleGroupOverride = (output, context) => {
2916
- return {
2917
- Action: __expectString(output.Action),
2918
- };
2919
- };
2920
- const de_NetworkFirewallUnexpectedFirewallRoutesViolation = (output, context) => {
2921
- return {
2922
- FirewallEndpoint: __expectString(output.FirewallEndpoint),
2923
- FirewallSubnetId: __expectString(output.FirewallSubnetId),
2924
- RouteTableId: __expectString(output.RouteTableId),
2925
- ViolatingRoutes: output.ViolatingRoutes != null ? de_Routes(output.ViolatingRoutes, context) : undefined,
2926
- VpcId: __expectString(output.VpcId),
2927
- };
2928
- };
2929
- const de_NetworkFirewallUnexpectedGatewayRoutesViolation = (output, context) => {
2930
- return {
2931
- GatewayId: __expectString(output.GatewayId),
2932
- RouteTableId: __expectString(output.RouteTableId),
2933
- ViolatingRoutes: output.ViolatingRoutes != null ? de_Routes(output.ViolatingRoutes, context) : undefined,
2934
- VpcId: __expectString(output.VpcId),
2935
- };
2936
- };
2937
- const de_OrderedRemediationActions = (output, context) => {
2938
- const retVal = (output || [])
2939
- .filter((e) => e != null)
2940
- .map((entry) => {
2941
- if (entry === null) {
2942
- return null;
2943
- }
2944
- return de_RemediationActionWithOrder(entry, context);
1791
+ const se_AppsListData = (input, context) => {
1792
+ return take(input, {
1793
+ AppsList: _json,
1794
+ CreateTime: (_) => Math.round(_.getTime() / 1000),
1795
+ LastUpdateTime: (_) => Math.round(_.getTime() / 1000),
1796
+ ListId: [],
1797
+ ListName: [],
1798
+ ListUpdateToken: [],
1799
+ PreviousAppsList: _json,
2945
1800
  });
2946
- return retVal;
2947
1801
  };
2948
- const de_PartialMatch = (output, context) => {
2949
- return {
2950
- Reference: __expectString(output.Reference),
2951
- TargetViolationReasons: output.TargetViolationReasons != null
2952
- ? de_TargetViolationReasons(output.TargetViolationReasons, context)
2953
- : undefined,
2954
- };
2955
- };
2956
- const de_PartialMatches = (output, context) => {
2957
- const retVal = (output || [])
2958
- .filter((e) => e != null)
2959
- .map((entry) => {
2960
- if (entry === null) {
2961
- return null;
2962
- }
2963
- return de_PartialMatch(entry, context);
1802
+ const se_GetProtectionStatusRequest = (input, context) => {
1803
+ return take(input, {
1804
+ EndTime: (_) => Math.round(_.getTime() / 1000),
1805
+ MaxResults: [],
1806
+ MemberAccountId: [],
1807
+ NextToken: [],
1808
+ PolicyId: [],
1809
+ StartTime: (_) => Math.round(_.getTime() / 1000),
2964
1810
  });
2965
- return retVal;
2966
- };
2967
- const de_Policy = (output, context) => {
2968
- return {
2969
- DeleteUnusedFMManagedResources: __expectBoolean(output.DeleteUnusedFMManagedResources),
2970
- ExcludeMap: output.ExcludeMap != null ? de_CustomerPolicyScopeMap(output.ExcludeMap, context) : undefined,
2971
- ExcludeResourceTags: __expectBoolean(output.ExcludeResourceTags),
2972
- IncludeMap: output.IncludeMap != null ? de_CustomerPolicyScopeMap(output.IncludeMap, context) : undefined,
2973
- PolicyDescription: __expectString(output.PolicyDescription),
2974
- PolicyId: __expectString(output.PolicyId),
2975
- PolicyName: __expectString(output.PolicyName),
2976
- PolicyUpdateToken: __expectString(output.PolicyUpdateToken),
2977
- RemediationEnabled: __expectBoolean(output.RemediationEnabled),
2978
- ResourceSetIds: output.ResourceSetIds != null ? de_ResourceSetIds(output.ResourceSetIds, context) : undefined,
2979
- ResourceTags: output.ResourceTags != null ? de_ResourceTags(output.ResourceTags, context) : undefined,
2980
- ResourceType: __expectString(output.ResourceType),
2981
- ResourceTypeList: output.ResourceTypeList != null ? de_ResourceTypeList(output.ResourceTypeList, context) : undefined,
2982
- SecurityServicePolicyData: output.SecurityServicePolicyData != null
2983
- ? de_SecurityServicePolicyData(output.SecurityServicePolicyData, context)
2984
- : undefined,
2985
- };
2986
- };
2987
- const de_PolicyComplianceDetail = (output, context) => {
2988
- return {
2989
- EvaluationLimitExceeded: __expectBoolean(output.EvaluationLimitExceeded),
2990
- ExpiredAt: output.ExpiredAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ExpiredAt))) : undefined,
2991
- IssueInfoMap: output.IssueInfoMap != null ? de_IssueInfoMap(output.IssueInfoMap, context) : undefined,
2992
- MemberAccount: __expectString(output.MemberAccount),
2993
- PolicyId: __expectString(output.PolicyId),
2994
- PolicyOwner: __expectString(output.PolicyOwner),
2995
- Violators: output.Violators != null ? de_ComplianceViolators(output.Violators, context) : undefined,
2996
- };
2997
1811
  };
2998
- const de_PolicyComplianceStatus = (output, context) => {
2999
- return {
3000
- EvaluationResults: output.EvaluationResults != null ? de_EvaluationResults(output.EvaluationResults, context) : undefined,
3001
- IssueInfoMap: output.IssueInfoMap != null ? de_IssueInfoMap(output.IssueInfoMap, context) : undefined,
3002
- LastUpdated: output.LastUpdated != null
3003
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdated)))
3004
- : undefined,
3005
- MemberAccount: __expectString(output.MemberAccount),
3006
- PolicyId: __expectString(output.PolicyId),
3007
- PolicyName: __expectString(output.PolicyName),
3008
- PolicyOwner: __expectString(output.PolicyOwner),
3009
- };
3010
- };
3011
- const de_PolicyComplianceStatusList = (output, context) => {
3012
- const retVal = (output || [])
3013
- .filter((e) => e != null)
3014
- .map((entry) => {
3015
- if (entry === null) {
3016
- return null;
3017
- }
3018
- return de_PolicyComplianceStatus(entry, context);
1812
+ const se_ProtocolsListData = (input, context) => {
1813
+ return take(input, {
1814
+ CreateTime: (_) => Math.round(_.getTime() / 1000),
1815
+ LastUpdateTime: (_) => Math.round(_.getTime() / 1000),
1816
+ ListId: [],
1817
+ ListName: [],
1818
+ ListUpdateToken: [],
1819
+ PreviousProtocolsList: _json,
1820
+ ProtocolsList: _json,
3019
1821
  });
3020
- return retVal;
3021
- };
3022
- const de_PolicyOption = (output, context) => {
3023
- return {
3024
- NetworkFirewallPolicy: output.NetworkFirewallPolicy != null
3025
- ? de_NetworkFirewallPolicy(output.NetworkFirewallPolicy, context)
3026
- : undefined,
3027
- ThirdPartyFirewallPolicy: output.ThirdPartyFirewallPolicy != null
3028
- ? de_ThirdPartyFirewallPolicy(output.ThirdPartyFirewallPolicy, context)
3029
- : undefined,
3030
- };
3031
- };
3032
- const de_PolicySummary = (output, context) => {
3033
- return {
3034
- DeleteUnusedFMManagedResources: __expectBoolean(output.DeleteUnusedFMManagedResources),
3035
- PolicyArn: __expectString(output.PolicyArn),
3036
- PolicyId: __expectString(output.PolicyId),
3037
- PolicyName: __expectString(output.PolicyName),
3038
- RemediationEnabled: __expectBoolean(output.RemediationEnabled),
3039
- ResourceType: __expectString(output.ResourceType),
3040
- SecurityServiceType: __expectString(output.SecurityServiceType),
3041
- };
3042
1822
  };
3043
- const de_PolicySummaryList = (output, context) => {
3044
- const retVal = (output || [])
3045
- .filter((e) => e != null)
3046
- .map((entry) => {
3047
- if (entry === null) {
3048
- return null;
3049
- }
3050
- return de_PolicySummary(entry, context);
1823
+ const se_PutAppsListRequest = (input, context) => {
1824
+ return take(input, {
1825
+ AppsList: (_) => se_AppsListData(_, context),
1826
+ TagList: _json,
3051
1827
  });
3052
- return retVal;
3053
1828
  };
3054
- const de_PossibleRemediationAction = (output, context) => {
3055
- return {
3056
- Description: __expectString(output.Description),
3057
- IsDefaultAction: __expectBoolean(output.IsDefaultAction),
3058
- OrderedRemediationActions: output.OrderedRemediationActions != null
3059
- ? de_OrderedRemediationActions(output.OrderedRemediationActions, context)
3060
- : undefined,
3061
- };
3062
- };
3063
- const de_PossibleRemediationActionList = (output, context) => {
3064
- const retVal = (output || [])
3065
- .filter((e) => e != null)
3066
- .map((entry) => {
3067
- if (entry === null) {
3068
- return null;
3069
- }
3070
- return de_PossibleRemediationAction(entry, context);
1829
+ const se_PutProtocolsListRequest = (input, context) => {
1830
+ return take(input, {
1831
+ ProtocolsList: (_) => se_ProtocolsListData(_, context),
1832
+ TagList: _json,
3071
1833
  });
3072
- return retVal;
3073
- };
3074
- const de_PossibleRemediationActions = (output, context) => {
3075
- return {
3076
- Actions: output.Actions != null ? de_PossibleRemediationActionList(output.Actions, context) : undefined,
3077
- Description: __expectString(output.Description),
3078
- };
3079
1834
  };
3080
- const de_PreviousAppsList = (output, context) => {
3081
- return Object.entries(output).reduce((acc, [key, value]) => {
3082
- if (value === null) {
3083
- return acc;
3084
- }
3085
- acc[key] = de_AppsList(value, context);
3086
- return acc;
3087
- }, {});
3088
- };
3089
- const de_PreviousProtocolsList = (output, context) => {
3090
- return Object.entries(output).reduce((acc, [key, value]) => {
3091
- if (value === null) {
3092
- return acc;
3093
- }
3094
- acc[key] = de_ProtocolsList(value, context);
3095
- return acc;
3096
- }, {});
3097
- };
3098
- const de_ProtocolsList = (output, context) => {
3099
- const retVal = (output || [])
3100
- .filter((e) => e != null)
3101
- .map((entry) => {
3102
- if (entry === null) {
3103
- return null;
3104
- }
3105
- return __expectString(entry);
1835
+ const se_PutResourceSetRequest = (input, context) => {
1836
+ return take(input, {
1837
+ ResourceSet: (_) => se_ResourceSet(_, context),
1838
+ TagList: _json,
3106
1839
  });
3107
- return retVal;
3108
- };
3109
- const de_ProtocolsListData = (output, context) => {
3110
- return {
3111
- CreateTime: output.CreateTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateTime))) : undefined,
3112
- LastUpdateTime: output.LastUpdateTime != null
3113
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdateTime)))
3114
- : undefined,
3115
- ListId: __expectString(output.ListId),
3116
- ListName: __expectString(output.ListName),
3117
- ListUpdateToken: __expectString(output.ListUpdateToken),
3118
- PreviousProtocolsList: output.PreviousProtocolsList != null
3119
- ? de_PreviousProtocolsList(output.PreviousProtocolsList, context)
3120
- : undefined,
3121
- ProtocolsList: output.ProtocolsList != null ? de_ProtocolsList(output.ProtocolsList, context) : undefined,
3122
- };
3123
- };
3124
- const de_ProtocolsListDataSummary = (output, context) => {
3125
- return {
3126
- ListArn: __expectString(output.ListArn),
3127
- ListId: __expectString(output.ListId),
3128
- ListName: __expectString(output.ListName),
3129
- ProtocolsList: output.ProtocolsList != null ? de_ProtocolsList(output.ProtocolsList, context) : undefined,
3130
- };
3131
1840
  };
3132
- const de_ProtocolsListsData = (output, context) => {
3133
- const retVal = (output || [])
3134
- .filter((e) => e != null)
3135
- .map((entry) => {
3136
- if (entry === null) {
3137
- return null;
3138
- }
3139
- return de_ProtocolsListDataSummary(entry, context);
1841
+ const se_ResourceSet = (input, context) => {
1842
+ return take(input, {
1843
+ Description: [],
1844
+ Id: [],
1845
+ LastUpdateTime: (_) => Math.round(_.getTime() / 1000),
1846
+ Name: [],
1847
+ ResourceTypeList: _json,
1848
+ UpdateToken: [],
3140
1849
  });
3141
- return retVal;
3142
- };
3143
- const de_PutAppsListResponse = (output, context) => {
3144
- return {
3145
- AppsList: output.AppsList != null ? de_AppsListData(output.AppsList, context) : undefined,
3146
- AppsListArn: __expectString(output.AppsListArn),
3147
- };
3148
- };
3149
- const de_PutPolicyResponse = (output, context) => {
3150
- return {
3151
- Policy: output.Policy != null ? de_Policy(output.Policy, context) : undefined,
3152
- PolicyArn: __expectString(output.PolicyArn),
3153
- };
3154
- };
3155
- const de_PutProtocolsListResponse = (output, context) => {
3156
- return {
3157
- ProtocolsList: output.ProtocolsList != null ? de_ProtocolsListData(output.ProtocolsList, context) : undefined,
3158
- ProtocolsListArn: __expectString(output.ProtocolsListArn),
3159
- };
3160
- };
3161
- const de_PutResourceSetResponse = (output, context) => {
3162
- return {
3163
- ResourceSet: output.ResourceSet != null ? de_ResourceSet(output.ResourceSet, context) : undefined,
3164
- ResourceSetArn: __expectString(output.ResourceSetArn),
3165
- };
3166
- };
3167
- const de_RemediationAction = (output, context) => {
3168
- return {
3169
- Description: __expectString(output.Description),
3170
- EC2AssociateRouteTableAction: output.EC2AssociateRouteTableAction != null
3171
- ? de_EC2AssociateRouteTableAction(output.EC2AssociateRouteTableAction, context)
3172
- : undefined,
3173
- EC2CopyRouteTableAction: output.EC2CopyRouteTableAction != null
3174
- ? de_EC2CopyRouteTableAction(output.EC2CopyRouteTableAction, context)
3175
- : undefined,
3176
- EC2CreateRouteAction: output.EC2CreateRouteAction != null ? de_EC2CreateRouteAction(output.EC2CreateRouteAction, context) : undefined,
3177
- EC2CreateRouteTableAction: output.EC2CreateRouteTableAction != null
3178
- ? de_EC2CreateRouteTableAction(output.EC2CreateRouteTableAction, context)
3179
- : undefined,
3180
- EC2DeleteRouteAction: output.EC2DeleteRouteAction != null ? de_EC2DeleteRouteAction(output.EC2DeleteRouteAction, context) : undefined,
3181
- EC2ReplaceRouteAction: output.EC2ReplaceRouteAction != null
3182
- ? de_EC2ReplaceRouteAction(output.EC2ReplaceRouteAction, context)
3183
- : undefined,
3184
- EC2ReplaceRouteTableAssociationAction: output.EC2ReplaceRouteTableAssociationAction != null
3185
- ? de_EC2ReplaceRouteTableAssociationAction(output.EC2ReplaceRouteTableAssociationAction, context)
3186
- : undefined,
3187
- FMSPolicyUpdateFirewallCreationConfigAction: output.FMSPolicyUpdateFirewallCreationConfigAction != null
3188
- ? de_FMSPolicyUpdateFirewallCreationConfigAction(output.FMSPolicyUpdateFirewallCreationConfigAction, context)
3189
- : undefined,
3190
- };
3191
- };
3192
- const de_RemediationActionWithOrder = (output, context) => {
3193
- return {
3194
- Order: __expectInt32(output.Order),
3195
- RemediationAction: output.RemediationAction != null ? de_RemediationAction(output.RemediationAction, context) : undefined,
3196
- };
3197
- };
3198
- const de_Resource = (output, context) => {
3199
- return {
3200
- AccountId: __expectString(output.AccountId),
3201
- URI: __expectString(output.URI),
3202
- };
3203
1850
  };
3204
- const de_ResourceIdList = (output, context) => {
3205
- const retVal = (output || [])
3206
- .filter((e) => e != null)
3207
- .map((entry) => {
3208
- if (entry === null) {
3209
- return null;
3210
- }
3211
- return __expectString(entry);
1851
+ const de_AppsListData = (output, context) => {
1852
+ return take(output, {
1853
+ AppsList: _json,
1854
+ CreateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1855
+ LastUpdateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1856
+ ListId: __expectString,
1857
+ ListName: __expectString,
1858
+ ListUpdateToken: __expectString,
1859
+ PreviousAppsList: _json,
3212
1860
  });
3213
- return retVal;
3214
1861
  };
3215
- const de_ResourceList = (output, context) => {
3216
- const retVal = (output || [])
3217
- .filter((e) => e != null)
3218
- .map((entry) => {
3219
- if (entry === null) {
3220
- return null;
3221
- }
3222
- return de_Resource(entry, context);
1862
+ const de_GetAppsListResponse = (output, context) => {
1863
+ return take(output, {
1864
+ AppsList: (_) => de_AppsListData(_, context),
1865
+ AppsListArn: __expectString,
3223
1866
  });
3224
- return retVal;
3225
- };
3226
- const de_ResourceNotFoundException = (output, context) => {
3227
- return {
3228
- Message: __expectString(output.Message),
3229
- };
3230
- };
3231
- const de_ResourceSet = (output, context) => {
3232
- return {
3233
- Description: __expectString(output.Description),
3234
- Id: __expectString(output.Id),
3235
- LastUpdateTime: output.LastUpdateTime != null
3236
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdateTime)))
3237
- : undefined,
3238
- Name: __expectString(output.Name),
3239
- ResourceTypeList: output.ResourceTypeList != null ? de_ResourceTypeList(output.ResourceTypeList, context) : undefined,
3240
- UpdateToken: __expectString(output.UpdateToken),
3241
- };
3242
1867
  };
3243
- const de_ResourceSetIds = (output, context) => {
3244
- const retVal = (output || [])
3245
- .filter((e) => e != null)
3246
- .map((entry) => {
3247
- if (entry === null) {
3248
- return null;
3249
- }
3250
- return __expectString(entry);
1868
+ const de_GetComplianceDetailResponse = (output, context) => {
1869
+ return take(output, {
1870
+ PolicyComplianceDetail: (_) => de_PolicyComplianceDetail(_, context),
3251
1871
  });
3252
- return retVal;
3253
- };
3254
- const de_ResourceSetSummary = (output, context) => {
3255
- return {
3256
- Description: __expectString(output.Description),
3257
- Id: __expectString(output.Id),
3258
- LastUpdateTime: output.LastUpdateTime != null
3259
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdateTime)))
3260
- : undefined,
3261
- Name: __expectString(output.Name),
3262
- };
3263
1872
  };
3264
- const de_ResourceSetSummaryList = (output, context) => {
3265
- const retVal = (output || [])
3266
- .filter((e) => e != null)
3267
- .map((entry) => {
3268
- if (entry === null) {
3269
- return null;
3270
- }
3271
- return de_ResourceSetSummary(entry, context);
1873
+ const de_GetProtocolsListResponse = (output, context) => {
1874
+ return take(output, {
1875
+ ProtocolsList: (_) => de_ProtocolsListData(_, context),
1876
+ ProtocolsListArn: __expectString,
3272
1877
  });
3273
- return retVal;
3274
- };
3275
- const de_ResourceTag = (output, context) => {
3276
- return {
3277
- Key: __expectString(output.Key),
3278
- Value: __expectString(output.Value),
3279
- };
3280
1878
  };
3281
- const de_ResourceTags = (output, context) => {
3282
- const retVal = (output || [])
3283
- .filter((e) => e != null)
3284
- .map((entry) => {
3285
- if (entry === null) {
3286
- return null;
3287
- }
3288
- return de_ResourceTag(entry, context);
1879
+ const de_GetResourceSetResponse = (output, context) => {
1880
+ return take(output, {
1881
+ ResourceSet: (_) => de_ResourceSet(_, context),
1882
+ ResourceSetArn: __expectString,
3289
1883
  });
3290
- return retVal;
3291
1884
  };
3292
- const de_ResourceTypeList = (output, context) => {
3293
- const retVal = (output || [])
3294
- .filter((e) => e != null)
3295
- .map((entry) => {
3296
- if (entry === null) {
3297
- return null;
3298
- }
3299
- return __expectString(entry);
1885
+ const de_GetViolationDetailsResponse = (output, context) => {
1886
+ return take(output, {
1887
+ ViolationDetail: (_) => de_ViolationDetail(_, context),
3300
1888
  });
3301
- return retVal;
3302
1889
  };
3303
- const de_ResourceViolation = (output, context) => {
3304
- return {
3305
- AwsEc2InstanceViolation: output.AwsEc2InstanceViolation != null
3306
- ? de_AwsEc2InstanceViolation(output.AwsEc2InstanceViolation, context)
3307
- : undefined,
3308
- AwsEc2NetworkInterfaceViolation: output.AwsEc2NetworkInterfaceViolation != null
3309
- ? de_AwsEc2NetworkInterfaceViolation(output.AwsEc2NetworkInterfaceViolation, context)
3310
- : undefined,
3311
- AwsVPCSecurityGroupViolation: output.AwsVPCSecurityGroupViolation != null
3312
- ? de_AwsVPCSecurityGroupViolation(output.AwsVPCSecurityGroupViolation, context)
3313
- : undefined,
3314
- DnsDuplicateRuleGroupViolation: output.DnsDuplicateRuleGroupViolation != null
3315
- ? de_DnsDuplicateRuleGroupViolation(output.DnsDuplicateRuleGroupViolation, context)
3316
- : undefined,
3317
- DnsRuleGroupLimitExceededViolation: output.DnsRuleGroupLimitExceededViolation != null
3318
- ? de_DnsRuleGroupLimitExceededViolation(output.DnsRuleGroupLimitExceededViolation, context)
3319
- : undefined,
3320
- DnsRuleGroupPriorityConflictViolation: output.DnsRuleGroupPriorityConflictViolation != null
3321
- ? de_DnsRuleGroupPriorityConflictViolation(output.DnsRuleGroupPriorityConflictViolation, context)
3322
- : undefined,
3323
- FirewallSubnetIsOutOfScopeViolation: output.FirewallSubnetIsOutOfScopeViolation != null
3324
- ? de_FirewallSubnetIsOutOfScopeViolation(output.FirewallSubnetIsOutOfScopeViolation, context)
3325
- : undefined,
3326
- FirewallSubnetMissingVPCEndpointViolation: output.FirewallSubnetMissingVPCEndpointViolation != null
3327
- ? de_FirewallSubnetMissingVPCEndpointViolation(output.FirewallSubnetMissingVPCEndpointViolation, context)
3328
- : undefined,
3329
- NetworkFirewallBlackHoleRouteDetectedViolation: output.NetworkFirewallBlackHoleRouteDetectedViolation != null
3330
- ? de_NetworkFirewallBlackHoleRouteDetectedViolation(output.NetworkFirewallBlackHoleRouteDetectedViolation, context)
3331
- : undefined,
3332
- NetworkFirewallInternetTrafficNotInspectedViolation: output.NetworkFirewallInternetTrafficNotInspectedViolation != null
3333
- ? de_NetworkFirewallInternetTrafficNotInspectedViolation(output.NetworkFirewallInternetTrafficNotInspectedViolation, context)
3334
- : undefined,
3335
- NetworkFirewallInvalidRouteConfigurationViolation: output.NetworkFirewallInvalidRouteConfigurationViolation != null
3336
- ? de_NetworkFirewallInvalidRouteConfigurationViolation(output.NetworkFirewallInvalidRouteConfigurationViolation, context)
3337
- : undefined,
3338
- NetworkFirewallMissingExpectedRTViolation: output.NetworkFirewallMissingExpectedRTViolation != null
3339
- ? de_NetworkFirewallMissingExpectedRTViolation(output.NetworkFirewallMissingExpectedRTViolation, context)
3340
- : undefined,
3341
- NetworkFirewallMissingExpectedRoutesViolation: output.NetworkFirewallMissingExpectedRoutesViolation != null
3342
- ? de_NetworkFirewallMissingExpectedRoutesViolation(output.NetworkFirewallMissingExpectedRoutesViolation, context)
3343
- : undefined,
3344
- NetworkFirewallMissingFirewallViolation: output.NetworkFirewallMissingFirewallViolation != null
3345
- ? de_NetworkFirewallMissingFirewallViolation(output.NetworkFirewallMissingFirewallViolation, context)
3346
- : undefined,
3347
- NetworkFirewallMissingSubnetViolation: output.NetworkFirewallMissingSubnetViolation != null
3348
- ? de_NetworkFirewallMissingSubnetViolation(output.NetworkFirewallMissingSubnetViolation, context)
3349
- : undefined,
3350
- NetworkFirewallPolicyModifiedViolation: output.NetworkFirewallPolicyModifiedViolation != null
3351
- ? de_NetworkFirewallPolicyModifiedViolation(output.NetworkFirewallPolicyModifiedViolation, context)
3352
- : undefined,
3353
- NetworkFirewallUnexpectedFirewallRoutesViolation: output.NetworkFirewallUnexpectedFirewallRoutesViolation != null
3354
- ? de_NetworkFirewallUnexpectedFirewallRoutesViolation(output.NetworkFirewallUnexpectedFirewallRoutesViolation, context)
3355
- : undefined,
3356
- NetworkFirewallUnexpectedGatewayRoutesViolation: output.NetworkFirewallUnexpectedGatewayRoutesViolation != null
3357
- ? de_NetworkFirewallUnexpectedGatewayRoutesViolation(output.NetworkFirewallUnexpectedGatewayRoutesViolation, context)
3358
- : undefined,
3359
- PossibleRemediationActions: output.PossibleRemediationActions != null
3360
- ? de_PossibleRemediationActions(output.PossibleRemediationActions, context)
3361
- : undefined,
3362
- RouteHasOutOfScopeEndpointViolation: output.RouteHasOutOfScopeEndpointViolation != null
3363
- ? de_RouteHasOutOfScopeEndpointViolation(output.RouteHasOutOfScopeEndpointViolation, context)
3364
- : undefined,
3365
- ThirdPartyFirewallMissingExpectedRouteTableViolation: output.ThirdPartyFirewallMissingExpectedRouteTableViolation != null
3366
- ? de_ThirdPartyFirewallMissingExpectedRouteTableViolation(output.ThirdPartyFirewallMissingExpectedRouteTableViolation, context)
3367
- : undefined,
3368
- ThirdPartyFirewallMissingFirewallViolation: output.ThirdPartyFirewallMissingFirewallViolation != null
3369
- ? de_ThirdPartyFirewallMissingFirewallViolation(output.ThirdPartyFirewallMissingFirewallViolation, context)
3370
- : undefined,
3371
- ThirdPartyFirewallMissingSubnetViolation: output.ThirdPartyFirewallMissingSubnetViolation != null
3372
- ? de_ThirdPartyFirewallMissingSubnetViolation(output.ThirdPartyFirewallMissingSubnetViolation, context)
3373
- : undefined,
3374
- };
3375
- };
3376
- const de_ResourceViolations = (output, context) => {
3377
- const retVal = (output || [])
3378
- .filter((e) => e != null)
3379
- .map((entry) => {
3380
- if (entry === null) {
3381
- return null;
3382
- }
3383
- return de_ResourceViolation(entry, context);
1890
+ const de_ListComplianceStatusResponse = (output, context) => {
1891
+ return take(output, {
1892
+ NextToken: __expectString,
1893
+ PolicyComplianceStatusList: (_) => de_PolicyComplianceStatusList(_, context),
3384
1894
  });
3385
- return retVal;
3386
- };
3387
- const de_Route = (output, context) => {
3388
- return {
3389
- Destination: __expectString(output.Destination),
3390
- DestinationType: __expectString(output.DestinationType),
3391
- Target: __expectString(output.Target),
3392
- TargetType: __expectString(output.TargetType),
3393
- };
3394
1895
  };
3395
- const de_RouteHasOutOfScopeEndpointViolation = (output, context) => {
3396
- return {
3397
- CurrentFirewallSubnetRouteTable: __expectString(output.CurrentFirewallSubnetRouteTable),
3398
- CurrentInternetGatewayRouteTable: __expectString(output.CurrentInternetGatewayRouteTable),
3399
- FirewallSubnetId: __expectString(output.FirewallSubnetId),
3400
- FirewallSubnetRoutes: output.FirewallSubnetRoutes != null ? de_Routes(output.FirewallSubnetRoutes, context) : undefined,
3401
- InternetGatewayId: __expectString(output.InternetGatewayId),
3402
- InternetGatewayRoutes: output.InternetGatewayRoutes != null ? de_Routes(output.InternetGatewayRoutes, context) : undefined,
3403
- RouteTableId: __expectString(output.RouteTableId),
3404
- SubnetAvailabilityZone: __expectString(output.SubnetAvailabilityZone),
3405
- SubnetAvailabilityZoneId: __expectString(output.SubnetAvailabilityZoneId),
3406
- SubnetId: __expectString(output.SubnetId),
3407
- ViolatingRoutes: output.ViolatingRoutes != null ? de_Routes(output.ViolatingRoutes, context) : undefined,
3408
- VpcId: __expectString(output.VpcId),
3409
- };
3410
- };
3411
- const de_Routes = (output, context) => {
3412
- const retVal = (output || [])
3413
- .filter((e) => e != null)
3414
- .map((entry) => {
3415
- if (entry === null) {
3416
- return null;
3417
- }
3418
- return de_Route(entry, context);
1896
+ const de_ListResourceSetsResponse = (output, context) => {
1897
+ return take(output, {
1898
+ NextToken: __expectString,
1899
+ ResourceSets: (_) => de_ResourceSetSummaryList(_, context),
3419
1900
  });
3420
- return retVal;
3421
- };
3422
- const de_SecurityGroupRemediationAction = (output, context) => {
3423
- return {
3424
- Description: __expectString(output.Description),
3425
- IsDefaultAction: __expectBoolean(output.IsDefaultAction),
3426
- RemediationActionType: __expectString(output.RemediationActionType),
3427
- RemediationResult: output.RemediationResult != null ? de_SecurityGroupRuleDescription(output.RemediationResult, context) : undefined,
3428
- };
3429
1901
  };
3430
- const de_SecurityGroupRemediationActions = (output, context) => {
3431
- const retVal = (output || [])
3432
- .filter((e) => e != null)
3433
- .map((entry) => {
3434
- if (entry === null) {
3435
- return null;
3436
- }
3437
- return de_SecurityGroupRemediationAction(entry, context);
1902
+ const de_PolicyComplianceDetail = (output, context) => {
1903
+ return take(output, {
1904
+ EvaluationLimitExceeded: __expectBoolean,
1905
+ ExpiredAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1906
+ IssueInfoMap: _json,
1907
+ MemberAccount: __expectString,
1908
+ PolicyId: __expectString,
1909
+ PolicyOwner: __expectString,
1910
+ Violators: _json,
3438
1911
  });
3439
- return retVal;
3440
- };
3441
- const de_SecurityGroupRuleDescription = (output, context) => {
3442
- return {
3443
- FromPort: __expectLong(output.FromPort),
3444
- IPV4Range: __expectString(output.IPV4Range),
3445
- IPV6Range: __expectString(output.IPV6Range),
3446
- PrefixListId: __expectString(output.PrefixListId),
3447
- Protocol: __expectString(output.Protocol),
3448
- ToPort: __expectLong(output.ToPort),
3449
- };
3450
- };
3451
- const de_SecurityServicePolicyData = (output, context) => {
3452
- return {
3453
- ManagedServiceData: __expectString(output.ManagedServiceData),
3454
- PolicyOption: output.PolicyOption != null ? de_PolicyOption(output.PolicyOption, context) : undefined,
3455
- Type: __expectString(output.Type),
3456
- };
3457
- };
3458
- const de_StatefulEngineOptions = (output, context) => {
3459
- return {
3460
- RuleOrder: __expectString(output.RuleOrder),
3461
- };
3462
1912
  };
3463
- const de_StatefulRuleGroup = (output, context) => {
3464
- return {
3465
- Override: output.Override != null ? de_NetworkFirewallStatefulRuleGroupOverride(output.Override, context) : undefined,
3466
- Priority: __expectInt32(output.Priority),
3467
- ResourceId: __expectString(output.ResourceId),
3468
- RuleGroupName: __expectString(output.RuleGroupName),
3469
- };
1913
+ const de_PolicyComplianceStatus = (output, context) => {
1914
+ return take(output, {
1915
+ EvaluationResults: _json,
1916
+ IssueInfoMap: _json,
1917
+ LastUpdated: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1918
+ MemberAccount: __expectString,
1919
+ PolicyId: __expectString,
1920
+ PolicyName: __expectString,
1921
+ PolicyOwner: __expectString,
1922
+ });
3470
1923
  };
3471
- const de_StatefulRuleGroupList = (output, context) => {
1924
+ const de_PolicyComplianceStatusList = (output, context) => {
3472
1925
  const retVal = (output || [])
3473
1926
  .filter((e) => e != null)
3474
1927
  .map((entry) => {
3475
- if (entry === null) {
3476
- return null;
3477
- }
3478
- return de_StatefulRuleGroup(entry, context);
1928
+ return de_PolicyComplianceStatus(entry, context);
3479
1929
  });
3480
1930
  return retVal;
3481
1931
  };
3482
- const de_StatelessRuleGroup = (output, context) => {
3483
- return {
3484
- Priority: __expectInt32(output.Priority),
3485
- ResourceId: __expectString(output.ResourceId),
3486
- RuleGroupName: __expectString(output.RuleGroupName),
3487
- };
1932
+ const de_ProtocolsListData = (output, context) => {
1933
+ return take(output, {
1934
+ CreateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1935
+ LastUpdateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1936
+ ListId: __expectString,
1937
+ ListName: __expectString,
1938
+ ListUpdateToken: __expectString,
1939
+ PreviousProtocolsList: _json,
1940
+ ProtocolsList: _json,
1941
+ });
3488
1942
  };
3489
- const de_StatelessRuleGroupList = (output, context) => {
3490
- const retVal = (output || [])
3491
- .filter((e) => e != null)
3492
- .map((entry) => {
3493
- if (entry === null) {
3494
- return null;
3495
- }
3496
- return de_StatelessRuleGroup(entry, context);
1943
+ const de_PutAppsListResponse = (output, context) => {
1944
+ return take(output, {
1945
+ AppsList: (_) => de_AppsListData(_, context),
1946
+ AppsListArn: __expectString,
3497
1947
  });
3498
- return retVal;
3499
1948
  };
3500
- const de_Tag = (output, context) => {
3501
- return {
3502
- Key: __expectString(output.Key),
3503
- Value: __expectString(output.Value),
3504
- };
1949
+ const de_PutProtocolsListResponse = (output, context) => {
1950
+ return take(output, {
1951
+ ProtocolsList: (_) => de_ProtocolsListData(_, context),
1952
+ ProtocolsListArn: __expectString,
1953
+ });
3505
1954
  };
3506
- const de_TagList = (output, context) => {
3507
- const retVal = (output || [])
3508
- .filter((e) => e != null)
3509
- .map((entry) => {
3510
- if (entry === null) {
3511
- return null;
3512
- }
3513
- return de_Tag(entry, context);
1955
+ const de_PutResourceSetResponse = (output, context) => {
1956
+ return take(output, {
1957
+ ResourceSet: (_) => de_ResourceSet(_, context),
1958
+ ResourceSetArn: __expectString,
3514
1959
  });
3515
- return retVal;
3516
1960
  };
3517
- const de_TagResourceResponse = (output, context) => {
3518
- return {};
1961
+ const de_ResourceSet = (output, context) => {
1962
+ return take(output, {
1963
+ Description: __expectString,
1964
+ Id: __expectString,
1965
+ LastUpdateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1966
+ Name: __expectString,
1967
+ ResourceTypeList: _json,
1968
+ UpdateToken: __expectString,
1969
+ });
3519
1970
  };
3520
- const de_TargetViolationReasons = (output, context) => {
3521
- const retVal = (output || [])
3522
- .filter((e) => e != null)
3523
- .map((entry) => {
3524
- if (entry === null) {
3525
- return null;
3526
- }
3527
- return __expectString(entry);
1971
+ const de_ResourceSetSummary = (output, context) => {
1972
+ return take(output, {
1973
+ Description: __expectString,
1974
+ Id: __expectString,
1975
+ LastUpdateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1976
+ Name: __expectString,
3528
1977
  });
3529
- return retVal;
3530
1978
  };
3531
- const de_ThirdPartyFirewallFirewallPolicies = (output, context) => {
1979
+ const de_ResourceSetSummaryList = (output, context) => {
3532
1980
  const retVal = (output || [])
3533
1981
  .filter((e) => e != null)
3534
1982
  .map((entry) => {
3535
- if (entry === null) {
3536
- return null;
3537
- }
3538
- return de_ThirdPartyFirewallFirewallPolicy(entry, context);
1983
+ return de_ResourceSetSummary(entry, context);
3539
1984
  });
3540
1985
  return retVal;
3541
1986
  };
3542
- const de_ThirdPartyFirewallFirewallPolicy = (output, context) => {
3543
- return {
3544
- FirewallPolicyId: __expectString(output.FirewallPolicyId),
3545
- FirewallPolicyName: __expectString(output.FirewallPolicyName),
3546
- };
3547
- };
3548
- const de_ThirdPartyFirewallMissingExpectedRouteTableViolation = (output, context) => {
3549
- return {
3550
- AvailabilityZone: __expectString(output.AvailabilityZone),
3551
- CurrentRouteTable: __expectString(output.CurrentRouteTable),
3552
- ExpectedRouteTable: __expectString(output.ExpectedRouteTable),
3553
- VPC: __expectString(output.VPC),
3554
- ViolationTarget: __expectString(output.ViolationTarget),
3555
- };
3556
- };
3557
- const de_ThirdPartyFirewallMissingFirewallViolation = (output, context) => {
3558
- return {
3559
- AvailabilityZone: __expectString(output.AvailabilityZone),
3560
- TargetViolationReason: __expectString(output.TargetViolationReason),
3561
- VPC: __expectString(output.VPC),
3562
- ViolationTarget: __expectString(output.ViolationTarget),
3563
- };
3564
- };
3565
- const de_ThirdPartyFirewallMissingSubnetViolation = (output, context) => {
3566
- return {
3567
- AvailabilityZone: __expectString(output.AvailabilityZone),
3568
- TargetViolationReason: __expectString(output.TargetViolationReason),
3569
- VPC: __expectString(output.VPC),
3570
- ViolationTarget: __expectString(output.ViolationTarget),
3571
- };
3572
- };
3573
- const de_ThirdPartyFirewallPolicy = (output, context) => {
3574
- return {
3575
- FirewallDeploymentModel: __expectString(output.FirewallDeploymentModel),
3576
- };
3577
- };
3578
- const de_UntagResourceResponse = (output, context) => {
3579
- return {};
3580
- };
3581
1987
  const de_ViolationDetail = (output, context) => {
3582
- return {
3583
- MemberAccount: __expectString(output.MemberAccount),
3584
- PolicyId: __expectString(output.PolicyId),
3585
- ResourceDescription: __expectString(output.ResourceDescription),
3586
- ResourceId: __expectString(output.ResourceId),
3587
- ResourceTags: output.ResourceTags != null ? de_TagList(output.ResourceTags, context) : undefined,
3588
- ResourceType: __expectString(output.ResourceType),
3589
- ResourceViolations: output.ResourceViolations != null ? de_ResourceViolations(output.ResourceViolations, context) : undefined,
3590
- };
1988
+ return take(output, {
1989
+ MemberAccount: __expectString,
1990
+ PolicyId: __expectString,
1991
+ ResourceDescription: __expectString,
1992
+ ResourceId: __expectString,
1993
+ ResourceTags: _json,
1994
+ ResourceType: __expectString,
1995
+ ResourceViolations: _json,
1996
+ });
3591
1997
  };
3592
1998
  const deserializeMetadata = (output) => ({
3593
1999
  httpStatusCode: output.statusCode,
@@ -3602,6 +2008,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
3602
2008
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
3603
2009
  };
3604
2010
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
2011
+ const throwDefaultError = withBaseException(__BaseException);
3605
2012
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
3606
2013
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3607
2014
  const contents = {