@aws-sdk/client-fms 3.310.0 → 3.315.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,382 +7,268 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const FMSServiceException_1 = require("../models/FMSServiceException");
8
8
  const models_0_1 = require("../models/models_0");
9
9
  const se_AssociateAdminAccountCommand = async (input, context) => {
10
- const headers = {
11
- "content-type": "application/x-amz-json-1.1",
12
- "x-amz-target": "AWSFMS_20180101.AssociateAdminAccount",
13
- };
10
+ const headers = sharedHeaders("AssociateAdminAccount");
14
11
  let body;
15
- body = JSON.stringify(se_AssociateAdminAccountRequest(input, context));
12
+ body = JSON.stringify((0, smithy_client_1._json)(input));
16
13
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
17
14
  };
18
15
  exports.se_AssociateAdminAccountCommand = se_AssociateAdminAccountCommand;
19
16
  const se_AssociateThirdPartyFirewallCommand = async (input, context) => {
20
- const headers = {
21
- "content-type": "application/x-amz-json-1.1",
22
- "x-amz-target": "AWSFMS_20180101.AssociateThirdPartyFirewall",
23
- };
17
+ const headers = sharedHeaders("AssociateThirdPartyFirewall");
24
18
  let body;
25
- body = JSON.stringify(se_AssociateThirdPartyFirewallRequest(input, context));
19
+ body = JSON.stringify((0, smithy_client_1._json)(input));
26
20
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
27
21
  };
28
22
  exports.se_AssociateThirdPartyFirewallCommand = se_AssociateThirdPartyFirewallCommand;
29
23
  const se_BatchAssociateResourceCommand = async (input, context) => {
30
- const headers = {
31
- "content-type": "application/x-amz-json-1.1",
32
- "x-amz-target": "AWSFMS_20180101.BatchAssociateResource",
33
- };
24
+ const headers = sharedHeaders("BatchAssociateResource");
34
25
  let body;
35
- body = JSON.stringify(se_BatchAssociateResourceRequest(input, context));
26
+ body = JSON.stringify((0, smithy_client_1._json)(input));
36
27
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
37
28
  };
38
29
  exports.se_BatchAssociateResourceCommand = se_BatchAssociateResourceCommand;
39
30
  const se_BatchDisassociateResourceCommand = async (input, context) => {
40
- const headers = {
41
- "content-type": "application/x-amz-json-1.1",
42
- "x-amz-target": "AWSFMS_20180101.BatchDisassociateResource",
43
- };
31
+ const headers = sharedHeaders("BatchDisassociateResource");
44
32
  let body;
45
- body = JSON.stringify(se_BatchDisassociateResourceRequest(input, context));
33
+ body = JSON.stringify((0, smithy_client_1._json)(input));
46
34
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
47
35
  };
48
36
  exports.se_BatchDisassociateResourceCommand = se_BatchDisassociateResourceCommand;
49
37
  const se_DeleteAppsListCommand = async (input, context) => {
50
- const headers = {
51
- "content-type": "application/x-amz-json-1.1",
52
- "x-amz-target": "AWSFMS_20180101.DeleteAppsList",
53
- };
38
+ const headers = sharedHeaders("DeleteAppsList");
54
39
  let body;
55
- body = JSON.stringify(se_DeleteAppsListRequest(input, context));
40
+ body = JSON.stringify((0, smithy_client_1._json)(input));
56
41
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
57
42
  };
58
43
  exports.se_DeleteAppsListCommand = se_DeleteAppsListCommand;
59
44
  const se_DeleteNotificationChannelCommand = async (input, context) => {
60
- const headers = {
61
- "content-type": "application/x-amz-json-1.1",
62
- "x-amz-target": "AWSFMS_20180101.DeleteNotificationChannel",
63
- };
45
+ const headers = sharedHeaders("DeleteNotificationChannel");
64
46
  let body;
65
- body = JSON.stringify(se_DeleteNotificationChannelRequest(input, context));
47
+ body = JSON.stringify((0, smithy_client_1._json)(input));
66
48
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
67
49
  };
68
50
  exports.se_DeleteNotificationChannelCommand = se_DeleteNotificationChannelCommand;
69
51
  const se_DeletePolicyCommand = async (input, context) => {
70
- const headers = {
71
- "content-type": "application/x-amz-json-1.1",
72
- "x-amz-target": "AWSFMS_20180101.DeletePolicy",
73
- };
52
+ const headers = sharedHeaders("DeletePolicy");
74
53
  let body;
75
- body = JSON.stringify(se_DeletePolicyRequest(input, context));
54
+ body = JSON.stringify((0, smithy_client_1._json)(input));
76
55
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
77
56
  };
78
57
  exports.se_DeletePolicyCommand = se_DeletePolicyCommand;
79
58
  const se_DeleteProtocolsListCommand = async (input, context) => {
80
- const headers = {
81
- "content-type": "application/x-amz-json-1.1",
82
- "x-amz-target": "AWSFMS_20180101.DeleteProtocolsList",
83
- };
59
+ const headers = sharedHeaders("DeleteProtocolsList");
84
60
  let body;
85
- body = JSON.stringify(se_DeleteProtocolsListRequest(input, context));
61
+ body = JSON.stringify((0, smithy_client_1._json)(input));
86
62
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
87
63
  };
88
64
  exports.se_DeleteProtocolsListCommand = se_DeleteProtocolsListCommand;
89
65
  const se_DeleteResourceSetCommand = async (input, context) => {
90
- const headers = {
91
- "content-type": "application/x-amz-json-1.1",
92
- "x-amz-target": "AWSFMS_20180101.DeleteResourceSet",
93
- };
66
+ const headers = sharedHeaders("DeleteResourceSet");
94
67
  let body;
95
- body = JSON.stringify(se_DeleteResourceSetRequest(input, context));
68
+ body = JSON.stringify((0, smithy_client_1._json)(input));
96
69
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
97
70
  };
98
71
  exports.se_DeleteResourceSetCommand = se_DeleteResourceSetCommand;
99
72
  const se_DisassociateAdminAccountCommand = async (input, context) => {
100
- const headers = {
101
- "content-type": "application/x-amz-json-1.1",
102
- "x-amz-target": "AWSFMS_20180101.DisassociateAdminAccount",
103
- };
73
+ const headers = sharedHeaders("DisassociateAdminAccount");
104
74
  let body;
105
- body = JSON.stringify(se_DisassociateAdminAccountRequest(input, context));
75
+ body = JSON.stringify((0, smithy_client_1._json)(input));
106
76
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
107
77
  };
108
78
  exports.se_DisassociateAdminAccountCommand = se_DisassociateAdminAccountCommand;
109
79
  const se_DisassociateThirdPartyFirewallCommand = async (input, context) => {
110
- const headers = {
111
- "content-type": "application/x-amz-json-1.1",
112
- "x-amz-target": "AWSFMS_20180101.DisassociateThirdPartyFirewall",
113
- };
80
+ const headers = sharedHeaders("DisassociateThirdPartyFirewall");
114
81
  let body;
115
- body = JSON.stringify(se_DisassociateThirdPartyFirewallRequest(input, context));
82
+ body = JSON.stringify((0, smithy_client_1._json)(input));
116
83
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
117
84
  };
118
85
  exports.se_DisassociateThirdPartyFirewallCommand = se_DisassociateThirdPartyFirewallCommand;
119
86
  const se_GetAdminAccountCommand = async (input, context) => {
120
- const headers = {
121
- "content-type": "application/x-amz-json-1.1",
122
- "x-amz-target": "AWSFMS_20180101.GetAdminAccount",
123
- };
87
+ const headers = sharedHeaders("GetAdminAccount");
124
88
  let body;
125
- body = JSON.stringify(se_GetAdminAccountRequest(input, context));
89
+ body = JSON.stringify((0, smithy_client_1._json)(input));
126
90
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
127
91
  };
128
92
  exports.se_GetAdminAccountCommand = se_GetAdminAccountCommand;
129
93
  const se_GetAppsListCommand = async (input, context) => {
130
- const headers = {
131
- "content-type": "application/x-amz-json-1.1",
132
- "x-amz-target": "AWSFMS_20180101.GetAppsList",
133
- };
94
+ const headers = sharedHeaders("GetAppsList");
134
95
  let body;
135
- body = JSON.stringify(se_GetAppsListRequest(input, context));
96
+ body = JSON.stringify((0, smithy_client_1._json)(input));
136
97
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
137
98
  };
138
99
  exports.se_GetAppsListCommand = se_GetAppsListCommand;
139
100
  const se_GetComplianceDetailCommand = async (input, context) => {
140
- const headers = {
141
- "content-type": "application/x-amz-json-1.1",
142
- "x-amz-target": "AWSFMS_20180101.GetComplianceDetail",
143
- };
101
+ const headers = sharedHeaders("GetComplianceDetail");
144
102
  let body;
145
- body = JSON.stringify(se_GetComplianceDetailRequest(input, context));
103
+ body = JSON.stringify((0, smithy_client_1._json)(input));
146
104
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
147
105
  };
148
106
  exports.se_GetComplianceDetailCommand = se_GetComplianceDetailCommand;
149
107
  const se_GetNotificationChannelCommand = async (input, context) => {
150
- const headers = {
151
- "content-type": "application/x-amz-json-1.1",
152
- "x-amz-target": "AWSFMS_20180101.GetNotificationChannel",
153
- };
108
+ const headers = sharedHeaders("GetNotificationChannel");
154
109
  let body;
155
- body = JSON.stringify(se_GetNotificationChannelRequest(input, context));
110
+ body = JSON.stringify((0, smithy_client_1._json)(input));
156
111
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
157
112
  };
158
113
  exports.se_GetNotificationChannelCommand = se_GetNotificationChannelCommand;
159
114
  const se_GetPolicyCommand = async (input, context) => {
160
- const headers = {
161
- "content-type": "application/x-amz-json-1.1",
162
- "x-amz-target": "AWSFMS_20180101.GetPolicy",
163
- };
115
+ const headers = sharedHeaders("GetPolicy");
164
116
  let body;
165
- body = JSON.stringify(se_GetPolicyRequest(input, context));
117
+ body = JSON.stringify((0, smithy_client_1._json)(input));
166
118
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
167
119
  };
168
120
  exports.se_GetPolicyCommand = se_GetPolicyCommand;
169
121
  const se_GetProtectionStatusCommand = async (input, context) => {
170
- const headers = {
171
- "content-type": "application/x-amz-json-1.1",
172
- "x-amz-target": "AWSFMS_20180101.GetProtectionStatus",
173
- };
122
+ const headers = sharedHeaders("GetProtectionStatus");
174
123
  let body;
175
124
  body = JSON.stringify(se_GetProtectionStatusRequest(input, context));
176
125
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
177
126
  };
178
127
  exports.se_GetProtectionStatusCommand = se_GetProtectionStatusCommand;
179
128
  const se_GetProtocolsListCommand = async (input, context) => {
180
- const headers = {
181
- "content-type": "application/x-amz-json-1.1",
182
- "x-amz-target": "AWSFMS_20180101.GetProtocolsList",
183
- };
129
+ const headers = sharedHeaders("GetProtocolsList");
184
130
  let body;
185
- body = JSON.stringify(se_GetProtocolsListRequest(input, context));
131
+ body = JSON.stringify((0, smithy_client_1._json)(input));
186
132
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
187
133
  };
188
134
  exports.se_GetProtocolsListCommand = se_GetProtocolsListCommand;
189
135
  const se_GetResourceSetCommand = async (input, context) => {
190
- const headers = {
191
- "content-type": "application/x-amz-json-1.1",
192
- "x-amz-target": "AWSFMS_20180101.GetResourceSet",
193
- };
136
+ const headers = sharedHeaders("GetResourceSet");
194
137
  let body;
195
- body = JSON.stringify(se_GetResourceSetRequest(input, context));
138
+ body = JSON.stringify((0, smithy_client_1._json)(input));
196
139
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
197
140
  };
198
141
  exports.se_GetResourceSetCommand = se_GetResourceSetCommand;
199
142
  const se_GetThirdPartyFirewallAssociationStatusCommand = async (input, context) => {
200
- const headers = {
201
- "content-type": "application/x-amz-json-1.1",
202
- "x-amz-target": "AWSFMS_20180101.GetThirdPartyFirewallAssociationStatus",
203
- };
143
+ const headers = sharedHeaders("GetThirdPartyFirewallAssociationStatus");
204
144
  let body;
205
- body = JSON.stringify(se_GetThirdPartyFirewallAssociationStatusRequest(input, context));
145
+ body = JSON.stringify((0, smithy_client_1._json)(input));
206
146
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
207
147
  };
208
148
  exports.se_GetThirdPartyFirewallAssociationStatusCommand = se_GetThirdPartyFirewallAssociationStatusCommand;
209
149
  const se_GetViolationDetailsCommand = async (input, context) => {
210
- const headers = {
211
- "content-type": "application/x-amz-json-1.1",
212
- "x-amz-target": "AWSFMS_20180101.GetViolationDetails",
213
- };
150
+ const headers = sharedHeaders("GetViolationDetails");
214
151
  let body;
215
- body = JSON.stringify(se_GetViolationDetailsRequest(input, context));
152
+ body = JSON.stringify((0, smithy_client_1._json)(input));
216
153
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
217
154
  };
218
155
  exports.se_GetViolationDetailsCommand = se_GetViolationDetailsCommand;
219
156
  const se_ListAppsListsCommand = async (input, context) => {
220
- const headers = {
221
- "content-type": "application/x-amz-json-1.1",
222
- "x-amz-target": "AWSFMS_20180101.ListAppsLists",
223
- };
157
+ const headers = sharedHeaders("ListAppsLists");
224
158
  let body;
225
- body = JSON.stringify(se_ListAppsListsRequest(input, context));
159
+ body = JSON.stringify((0, smithy_client_1._json)(input));
226
160
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
227
161
  };
228
162
  exports.se_ListAppsListsCommand = se_ListAppsListsCommand;
229
163
  const se_ListComplianceStatusCommand = async (input, context) => {
230
- const headers = {
231
- "content-type": "application/x-amz-json-1.1",
232
- "x-amz-target": "AWSFMS_20180101.ListComplianceStatus",
233
- };
164
+ const headers = sharedHeaders("ListComplianceStatus");
234
165
  let body;
235
- body = JSON.stringify(se_ListComplianceStatusRequest(input, context));
166
+ body = JSON.stringify((0, smithy_client_1._json)(input));
236
167
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
237
168
  };
238
169
  exports.se_ListComplianceStatusCommand = se_ListComplianceStatusCommand;
239
170
  const se_ListDiscoveredResourcesCommand = async (input, context) => {
240
- const headers = {
241
- "content-type": "application/x-amz-json-1.1",
242
- "x-amz-target": "AWSFMS_20180101.ListDiscoveredResources",
243
- };
171
+ const headers = sharedHeaders("ListDiscoveredResources");
244
172
  let body;
245
- body = JSON.stringify(se_ListDiscoveredResourcesRequest(input, context));
173
+ body = JSON.stringify((0, smithy_client_1._json)(input));
246
174
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
247
175
  };
248
176
  exports.se_ListDiscoveredResourcesCommand = se_ListDiscoveredResourcesCommand;
249
177
  const se_ListMemberAccountsCommand = async (input, context) => {
250
- const headers = {
251
- "content-type": "application/x-amz-json-1.1",
252
- "x-amz-target": "AWSFMS_20180101.ListMemberAccounts",
253
- };
178
+ const headers = sharedHeaders("ListMemberAccounts");
254
179
  let body;
255
- body = JSON.stringify(se_ListMemberAccountsRequest(input, context));
180
+ body = JSON.stringify((0, smithy_client_1._json)(input));
256
181
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
257
182
  };
258
183
  exports.se_ListMemberAccountsCommand = se_ListMemberAccountsCommand;
259
184
  const se_ListPoliciesCommand = async (input, context) => {
260
- const headers = {
261
- "content-type": "application/x-amz-json-1.1",
262
- "x-amz-target": "AWSFMS_20180101.ListPolicies",
263
- };
185
+ const headers = sharedHeaders("ListPolicies");
264
186
  let body;
265
- body = JSON.stringify(se_ListPoliciesRequest(input, context));
187
+ body = JSON.stringify((0, smithy_client_1._json)(input));
266
188
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
267
189
  };
268
190
  exports.se_ListPoliciesCommand = se_ListPoliciesCommand;
269
191
  const se_ListProtocolsListsCommand = async (input, context) => {
270
- const headers = {
271
- "content-type": "application/x-amz-json-1.1",
272
- "x-amz-target": "AWSFMS_20180101.ListProtocolsLists",
273
- };
192
+ const headers = sharedHeaders("ListProtocolsLists");
274
193
  let body;
275
- body = JSON.stringify(se_ListProtocolsListsRequest(input, context));
194
+ body = JSON.stringify((0, smithy_client_1._json)(input));
276
195
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
277
196
  };
278
197
  exports.se_ListProtocolsListsCommand = se_ListProtocolsListsCommand;
279
198
  const se_ListResourceSetResourcesCommand = async (input, context) => {
280
- const headers = {
281
- "content-type": "application/x-amz-json-1.1",
282
- "x-amz-target": "AWSFMS_20180101.ListResourceSetResources",
283
- };
199
+ const headers = sharedHeaders("ListResourceSetResources");
284
200
  let body;
285
- body = JSON.stringify(se_ListResourceSetResourcesRequest(input, context));
201
+ body = JSON.stringify((0, smithy_client_1._json)(input));
286
202
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
287
203
  };
288
204
  exports.se_ListResourceSetResourcesCommand = se_ListResourceSetResourcesCommand;
289
205
  const se_ListResourceSetsCommand = async (input, context) => {
290
- const headers = {
291
- "content-type": "application/x-amz-json-1.1",
292
- "x-amz-target": "AWSFMS_20180101.ListResourceSets",
293
- };
206
+ const headers = sharedHeaders("ListResourceSets");
294
207
  let body;
295
- body = JSON.stringify(se_ListResourceSetsRequest(input, context));
208
+ body = JSON.stringify((0, smithy_client_1._json)(input));
296
209
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
297
210
  };
298
211
  exports.se_ListResourceSetsCommand = se_ListResourceSetsCommand;
299
212
  const se_ListTagsForResourceCommand = async (input, context) => {
300
- const headers = {
301
- "content-type": "application/x-amz-json-1.1",
302
- "x-amz-target": "AWSFMS_20180101.ListTagsForResource",
303
- };
213
+ const headers = sharedHeaders("ListTagsForResource");
304
214
  let body;
305
- body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
215
+ body = JSON.stringify((0, smithy_client_1._json)(input));
306
216
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
307
217
  };
308
218
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
309
219
  const se_ListThirdPartyFirewallFirewallPoliciesCommand = async (input, context) => {
310
- const headers = {
311
- "content-type": "application/x-amz-json-1.1",
312
- "x-amz-target": "AWSFMS_20180101.ListThirdPartyFirewallFirewallPolicies",
313
- };
220
+ const headers = sharedHeaders("ListThirdPartyFirewallFirewallPolicies");
314
221
  let body;
315
- body = JSON.stringify(se_ListThirdPartyFirewallFirewallPoliciesRequest(input, context));
222
+ body = JSON.stringify((0, smithy_client_1._json)(input));
316
223
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
317
224
  };
318
225
  exports.se_ListThirdPartyFirewallFirewallPoliciesCommand = se_ListThirdPartyFirewallFirewallPoliciesCommand;
319
226
  const se_PutAppsListCommand = async (input, context) => {
320
- const headers = {
321
- "content-type": "application/x-amz-json-1.1",
322
- "x-amz-target": "AWSFMS_20180101.PutAppsList",
323
- };
227
+ const headers = sharedHeaders("PutAppsList");
324
228
  let body;
325
229
  body = JSON.stringify(se_PutAppsListRequest(input, context));
326
230
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
327
231
  };
328
232
  exports.se_PutAppsListCommand = se_PutAppsListCommand;
329
233
  const se_PutNotificationChannelCommand = async (input, context) => {
330
- const headers = {
331
- "content-type": "application/x-amz-json-1.1",
332
- "x-amz-target": "AWSFMS_20180101.PutNotificationChannel",
333
- };
234
+ const headers = sharedHeaders("PutNotificationChannel");
334
235
  let body;
335
- body = JSON.stringify(se_PutNotificationChannelRequest(input, context));
236
+ body = JSON.stringify((0, smithy_client_1._json)(input));
336
237
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
337
238
  };
338
239
  exports.se_PutNotificationChannelCommand = se_PutNotificationChannelCommand;
339
240
  const se_PutPolicyCommand = async (input, context) => {
340
- const headers = {
341
- "content-type": "application/x-amz-json-1.1",
342
- "x-amz-target": "AWSFMS_20180101.PutPolicy",
343
- };
241
+ const headers = sharedHeaders("PutPolicy");
344
242
  let body;
345
- body = JSON.stringify(se_PutPolicyRequest(input, context));
243
+ body = JSON.stringify((0, smithy_client_1._json)(input));
346
244
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
347
245
  };
348
246
  exports.se_PutPolicyCommand = se_PutPolicyCommand;
349
247
  const se_PutProtocolsListCommand = async (input, context) => {
350
- const headers = {
351
- "content-type": "application/x-amz-json-1.1",
352
- "x-amz-target": "AWSFMS_20180101.PutProtocolsList",
353
- };
248
+ const headers = sharedHeaders("PutProtocolsList");
354
249
  let body;
355
250
  body = JSON.stringify(se_PutProtocolsListRequest(input, context));
356
251
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
357
252
  };
358
253
  exports.se_PutProtocolsListCommand = se_PutProtocolsListCommand;
359
254
  const se_PutResourceSetCommand = async (input, context) => {
360
- const headers = {
361
- "content-type": "application/x-amz-json-1.1",
362
- "x-amz-target": "AWSFMS_20180101.PutResourceSet",
363
- };
255
+ const headers = sharedHeaders("PutResourceSet");
364
256
  let body;
365
257
  body = JSON.stringify(se_PutResourceSetRequest(input, context));
366
258
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
367
259
  };
368
260
  exports.se_PutResourceSetCommand = se_PutResourceSetCommand;
369
261
  const se_TagResourceCommand = async (input, context) => {
370
- const headers = {
371
- "content-type": "application/x-amz-json-1.1",
372
- "x-amz-target": "AWSFMS_20180101.TagResource",
373
- };
262
+ const headers = sharedHeaders("TagResource");
374
263
  let body;
375
- body = JSON.stringify(se_TagResourceRequest(input, context));
264
+ body = JSON.stringify((0, smithy_client_1._json)(input));
376
265
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
377
266
  };
378
267
  exports.se_TagResourceCommand = se_TagResourceCommand;
379
268
  const se_UntagResourceCommand = async (input, context) => {
380
- const headers = {
381
- "content-type": "application/x-amz-json-1.1",
382
- "x-amz-target": "AWSFMS_20180101.UntagResource",
383
- };
269
+ const headers = sharedHeaders("UntagResource");
384
270
  let body;
385
- body = JSON.stringify(se_UntagResourceRequest(input, context));
271
+ body = JSON.stringify((0, smithy_client_1._json)(input));
386
272
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
387
273
  };
388
274
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
@@ -394,7 +280,7 @@ const de_AssociateAdminAccountCommand = async (output, context) => {
394
280
  const response = {
395
281
  $metadata: deserializeMetadata(output),
396
282
  };
397
- return Promise.resolve(response);
283
+ return response;
398
284
  };
399
285
  exports.de_AssociateAdminAccountCommand = de_AssociateAdminAccountCommand;
400
286
  const de_AssociateAdminAccountCommandError = async (output, context) => {
@@ -421,10 +307,9 @@ const de_AssociateAdminAccountCommandError = async (output, context) => {
421
307
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
422
308
  default:
423
309
  const parsedBody = parsedOutput.body;
424
- (0, smithy_client_1.throwDefaultError)({
310
+ return throwDefaultError({
425
311
  output,
426
312
  parsedBody,
427
- exceptionCtor: FMSServiceException_1.FMSServiceException,
428
313
  errorCode,
429
314
  });
430
315
  }
@@ -435,12 +320,12 @@ const de_AssociateThirdPartyFirewallCommand = async (output, context) => {
435
320
  }
436
321
  const data = await parseBody(output.body, context);
437
322
  let contents = {};
438
- contents = de_AssociateThirdPartyFirewallResponse(data, context);
323
+ contents = (0, smithy_client_1._json)(data);
439
324
  const response = {
440
325
  $metadata: deserializeMetadata(output),
441
326
  ...contents,
442
327
  };
443
- return Promise.resolve(response);
328
+ return response;
444
329
  };
445
330
  exports.de_AssociateThirdPartyFirewallCommand = de_AssociateThirdPartyFirewallCommand;
446
331
  const de_AssociateThirdPartyFirewallCommandError = async (output, context) => {
@@ -464,10 +349,9 @@ const de_AssociateThirdPartyFirewallCommandError = async (output, context) => {
464
349
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
465
350
  default:
466
351
  const parsedBody = parsedOutput.body;
467
- (0, smithy_client_1.throwDefaultError)({
352
+ return throwDefaultError({
468
353
  output,
469
354
  parsedBody,
470
- exceptionCtor: FMSServiceException_1.FMSServiceException,
471
355
  errorCode,
472
356
  });
473
357
  }
@@ -478,12 +362,12 @@ const de_BatchAssociateResourceCommand = async (output, context) => {
478
362
  }
479
363
  const data = await parseBody(output.body, context);
480
364
  let contents = {};
481
- contents = de_BatchAssociateResourceResponse(data, context);
365
+ contents = (0, smithy_client_1._json)(data);
482
366
  const response = {
483
367
  $metadata: deserializeMetadata(output),
484
368
  ...contents,
485
369
  };
486
- return Promise.resolve(response);
370
+ return response;
487
371
  };
488
372
  exports.de_BatchAssociateResourceCommand = de_BatchAssociateResourceCommand;
489
373
  const de_BatchAssociateResourceCommandError = async (output, context) => {
@@ -510,10 +394,9 @@ const de_BatchAssociateResourceCommandError = async (output, context) => {
510
394
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
511
395
  default:
512
396
  const parsedBody = parsedOutput.body;
513
- (0, smithy_client_1.throwDefaultError)({
397
+ return throwDefaultError({
514
398
  output,
515
399
  parsedBody,
516
- exceptionCtor: FMSServiceException_1.FMSServiceException,
517
400
  errorCode,
518
401
  });
519
402
  }
@@ -524,12 +407,12 @@ const de_BatchDisassociateResourceCommand = async (output, context) => {
524
407
  }
525
408
  const data = await parseBody(output.body, context);
526
409
  let contents = {};
527
- contents = de_BatchDisassociateResourceResponse(data, context);
410
+ contents = (0, smithy_client_1._json)(data);
528
411
  const response = {
529
412
  $metadata: deserializeMetadata(output),
530
413
  ...contents,
531
414
  };
532
- return Promise.resolve(response);
415
+ return response;
533
416
  };
534
417
  exports.de_BatchDisassociateResourceCommand = de_BatchDisassociateResourceCommand;
535
418
  const de_BatchDisassociateResourceCommandError = async (output, context) => {
@@ -553,10 +436,9 @@ const de_BatchDisassociateResourceCommandError = async (output, context) => {
553
436
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
554
437
  default:
555
438
  const parsedBody = parsedOutput.body;
556
- (0, smithy_client_1.throwDefaultError)({
439
+ return throwDefaultError({
557
440
  output,
558
441
  parsedBody,
559
- exceptionCtor: FMSServiceException_1.FMSServiceException,
560
442
  errorCode,
561
443
  });
562
444
  }
@@ -569,7 +451,7 @@ const de_DeleteAppsListCommand = async (output, context) => {
569
451
  const response = {
570
452
  $metadata: deserializeMetadata(output),
571
453
  };
572
- return Promise.resolve(response);
454
+ return response;
573
455
  };
574
456
  exports.de_DeleteAppsListCommand = de_DeleteAppsListCommand;
575
457
  const de_DeleteAppsListCommandError = async (output, context) => {
@@ -590,10 +472,9 @@ const de_DeleteAppsListCommandError = async (output, context) => {
590
472
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
591
473
  default:
592
474
  const parsedBody = parsedOutput.body;
593
- (0, smithy_client_1.throwDefaultError)({
475
+ return throwDefaultError({
594
476
  output,
595
477
  parsedBody,
596
- exceptionCtor: FMSServiceException_1.FMSServiceException,
597
478
  errorCode,
598
479
  });
599
480
  }
@@ -606,7 +487,7 @@ const de_DeleteNotificationChannelCommand = async (output, context) => {
606
487
  const response = {
607
488
  $metadata: deserializeMetadata(output),
608
489
  };
609
- return Promise.resolve(response);
490
+ return response;
610
491
  };
611
492
  exports.de_DeleteNotificationChannelCommand = de_DeleteNotificationChannelCommand;
612
493
  const de_DeleteNotificationChannelCommandError = async (output, context) => {
@@ -627,10 +508,9 @@ const de_DeleteNotificationChannelCommandError = async (output, context) => {
627
508
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
628
509
  default:
629
510
  const parsedBody = parsedOutput.body;
630
- (0, smithy_client_1.throwDefaultError)({
511
+ return throwDefaultError({
631
512
  output,
632
513
  parsedBody,
633
- exceptionCtor: FMSServiceException_1.FMSServiceException,
634
514
  errorCode,
635
515
  });
636
516
  }
@@ -643,7 +523,7 @@ const de_DeletePolicyCommand = async (output, context) => {
643
523
  const response = {
644
524
  $metadata: deserializeMetadata(output),
645
525
  };
646
- return Promise.resolve(response);
526
+ return response;
647
527
  };
648
528
  exports.de_DeletePolicyCommand = de_DeletePolicyCommand;
649
529
  const de_DeletePolicyCommandError = async (output, context) => {
@@ -670,10 +550,9 @@ const de_DeletePolicyCommandError = async (output, context) => {
670
550
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
671
551
  default:
672
552
  const parsedBody = parsedOutput.body;
673
- (0, smithy_client_1.throwDefaultError)({
553
+ return throwDefaultError({
674
554
  output,
675
555
  parsedBody,
676
- exceptionCtor: FMSServiceException_1.FMSServiceException,
677
556
  errorCode,
678
557
  });
679
558
  }
@@ -686,7 +565,7 @@ const de_DeleteProtocolsListCommand = async (output, context) => {
686
565
  const response = {
687
566
  $metadata: deserializeMetadata(output),
688
567
  };
689
- return Promise.resolve(response);
568
+ return response;
690
569
  };
691
570
  exports.de_DeleteProtocolsListCommand = de_DeleteProtocolsListCommand;
692
571
  const de_DeleteProtocolsListCommandError = async (output, context) => {
@@ -707,10 +586,9 @@ const de_DeleteProtocolsListCommandError = async (output, context) => {
707
586
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
708
587
  default:
709
588
  const parsedBody = parsedOutput.body;
710
- (0, smithy_client_1.throwDefaultError)({
589
+ return throwDefaultError({
711
590
  output,
712
591
  parsedBody,
713
- exceptionCtor: FMSServiceException_1.FMSServiceException,
714
592
  errorCode,
715
593
  });
716
594
  }
@@ -723,7 +601,7 @@ const de_DeleteResourceSetCommand = async (output, context) => {
723
601
  const response = {
724
602
  $metadata: deserializeMetadata(output),
725
603
  };
726
- return Promise.resolve(response);
604
+ return response;
727
605
  };
728
606
  exports.de_DeleteResourceSetCommand = de_DeleteResourceSetCommand;
729
607
  const de_DeleteResourceSetCommandError = async (output, context) => {
@@ -747,10 +625,9 @@ const de_DeleteResourceSetCommandError = async (output, context) => {
747
625
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
748
626
  default:
749
627
  const parsedBody = parsedOutput.body;
750
- (0, smithy_client_1.throwDefaultError)({
628
+ return throwDefaultError({
751
629
  output,
752
630
  parsedBody,
753
- exceptionCtor: FMSServiceException_1.FMSServiceException,
754
631
  errorCode,
755
632
  });
756
633
  }
@@ -763,7 +640,7 @@ const de_DisassociateAdminAccountCommand = async (output, context) => {
763
640
  const response = {
764
641
  $metadata: deserializeMetadata(output),
765
642
  };
766
- return Promise.resolve(response);
643
+ return response;
767
644
  };
768
645
  exports.de_DisassociateAdminAccountCommand = de_DisassociateAdminAccountCommand;
769
646
  const de_DisassociateAdminAccountCommandError = async (output, context) => {
@@ -784,10 +661,9 @@ const de_DisassociateAdminAccountCommandError = async (output, context) => {
784
661
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
785
662
  default:
786
663
  const parsedBody = parsedOutput.body;
787
- (0, smithy_client_1.throwDefaultError)({
664
+ return throwDefaultError({
788
665
  output,
789
666
  parsedBody,
790
- exceptionCtor: FMSServiceException_1.FMSServiceException,
791
667
  errorCode,
792
668
  });
793
669
  }
@@ -798,12 +674,12 @@ const de_DisassociateThirdPartyFirewallCommand = async (output, context) => {
798
674
  }
799
675
  const data = await parseBody(output.body, context);
800
676
  let contents = {};
801
- contents = de_DisassociateThirdPartyFirewallResponse(data, context);
677
+ contents = (0, smithy_client_1._json)(data);
802
678
  const response = {
803
679
  $metadata: deserializeMetadata(output),
804
680
  ...contents,
805
681
  };
806
- return Promise.resolve(response);
682
+ return response;
807
683
  };
808
684
  exports.de_DisassociateThirdPartyFirewallCommand = de_DisassociateThirdPartyFirewallCommand;
809
685
  const de_DisassociateThirdPartyFirewallCommandError = async (output, context) => {
@@ -827,10 +703,9 @@ const de_DisassociateThirdPartyFirewallCommandError = async (output, context) =>
827
703
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
828
704
  default:
829
705
  const parsedBody = parsedOutput.body;
830
- (0, smithy_client_1.throwDefaultError)({
706
+ return throwDefaultError({
831
707
  output,
832
708
  parsedBody,
833
- exceptionCtor: FMSServiceException_1.FMSServiceException,
834
709
  errorCode,
835
710
  });
836
711
  }
@@ -841,12 +716,12 @@ const de_GetAdminAccountCommand = async (output, context) => {
841
716
  }
842
717
  const data = await parseBody(output.body, context);
843
718
  let contents = {};
844
- contents = de_GetAdminAccountResponse(data, context);
719
+ contents = (0, smithy_client_1._json)(data);
845
720
  const response = {
846
721
  $metadata: deserializeMetadata(output),
847
722
  ...contents,
848
723
  };
849
- return Promise.resolve(response);
724
+ return response;
850
725
  };
851
726
  exports.de_GetAdminAccountCommand = de_GetAdminAccountCommand;
852
727
  const de_GetAdminAccountCommandError = async (output, context) => {
@@ -867,10 +742,9 @@ const de_GetAdminAccountCommandError = async (output, context) => {
867
742
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
868
743
  default:
869
744
  const parsedBody = parsedOutput.body;
870
- (0, smithy_client_1.throwDefaultError)({
745
+ return throwDefaultError({
871
746
  output,
872
747
  parsedBody,
873
- exceptionCtor: FMSServiceException_1.FMSServiceException,
874
748
  errorCode,
875
749
  });
876
750
  }
@@ -886,7 +760,7 @@ const de_GetAppsListCommand = async (output, context) => {
886
760
  $metadata: deserializeMetadata(output),
887
761
  ...contents,
888
762
  };
889
- return Promise.resolve(response);
763
+ return response;
890
764
  };
891
765
  exports.de_GetAppsListCommand = de_GetAppsListCommand;
892
766
  const de_GetAppsListCommandError = async (output, context) => {
@@ -907,10 +781,9 @@ const de_GetAppsListCommandError = async (output, context) => {
907
781
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
908
782
  default:
909
783
  const parsedBody = parsedOutput.body;
910
- (0, smithy_client_1.throwDefaultError)({
784
+ return throwDefaultError({
911
785
  output,
912
786
  parsedBody,
913
- exceptionCtor: FMSServiceException_1.FMSServiceException,
914
787
  errorCode,
915
788
  });
916
789
  }
@@ -926,7 +799,7 @@ const de_GetComplianceDetailCommand = async (output, context) => {
926
799
  $metadata: deserializeMetadata(output),
927
800
  ...contents,
928
801
  };
929
- return Promise.resolve(response);
802
+ return response;
930
803
  };
931
804
  exports.de_GetComplianceDetailCommand = de_GetComplianceDetailCommand;
932
805
  const de_GetComplianceDetailCommandError = async (output, context) => {
@@ -950,10 +823,9 @@ const de_GetComplianceDetailCommandError = async (output, context) => {
950
823
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
951
824
  default:
952
825
  const parsedBody = parsedOutput.body;
953
- (0, smithy_client_1.throwDefaultError)({
826
+ return throwDefaultError({
954
827
  output,
955
828
  parsedBody,
956
- exceptionCtor: FMSServiceException_1.FMSServiceException,
957
829
  errorCode,
958
830
  });
959
831
  }
@@ -964,12 +836,12 @@ const de_GetNotificationChannelCommand = async (output, context) => {
964
836
  }
965
837
  const data = await parseBody(output.body, context);
966
838
  let contents = {};
967
- contents = de_GetNotificationChannelResponse(data, context);
839
+ contents = (0, smithy_client_1._json)(data);
968
840
  const response = {
969
841
  $metadata: deserializeMetadata(output),
970
842
  ...contents,
971
843
  };
972
- return Promise.resolve(response);
844
+ return response;
973
845
  };
974
846
  exports.de_GetNotificationChannelCommand = de_GetNotificationChannelCommand;
975
847
  const de_GetNotificationChannelCommandError = async (output, context) => {
@@ -990,10 +862,9 @@ const de_GetNotificationChannelCommandError = async (output, context) => {
990
862
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
991
863
  default:
992
864
  const parsedBody = parsedOutput.body;
993
- (0, smithy_client_1.throwDefaultError)({
865
+ return throwDefaultError({
994
866
  output,
995
867
  parsedBody,
996
- exceptionCtor: FMSServiceException_1.FMSServiceException,
997
868
  errorCode,
998
869
  });
999
870
  }
@@ -1004,12 +875,12 @@ const de_GetPolicyCommand = async (output, context) => {
1004
875
  }
1005
876
  const data = await parseBody(output.body, context);
1006
877
  let contents = {};
1007
- contents = de_GetPolicyResponse(data, context);
878
+ contents = (0, smithy_client_1._json)(data);
1008
879
  const response = {
1009
880
  $metadata: deserializeMetadata(output),
1010
881
  ...contents,
1011
882
  };
1012
- return Promise.resolve(response);
883
+ return response;
1013
884
  };
1014
885
  exports.de_GetPolicyCommand = de_GetPolicyCommand;
1015
886
  const de_GetPolicyCommandError = async (output, context) => {
@@ -1033,10 +904,9 @@ const de_GetPolicyCommandError = async (output, context) => {
1033
904
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1034
905
  default:
1035
906
  const parsedBody = parsedOutput.body;
1036
- (0, smithy_client_1.throwDefaultError)({
907
+ return throwDefaultError({
1037
908
  output,
1038
909
  parsedBody,
1039
- exceptionCtor: FMSServiceException_1.FMSServiceException,
1040
910
  errorCode,
1041
911
  });
1042
912
  }
@@ -1047,12 +917,12 @@ const de_GetProtectionStatusCommand = async (output, context) => {
1047
917
  }
1048
918
  const data = await parseBody(output.body, context);
1049
919
  let contents = {};
1050
- contents = de_GetProtectionStatusResponse(data, context);
920
+ contents = (0, smithy_client_1._json)(data);
1051
921
  const response = {
1052
922
  $metadata: deserializeMetadata(output),
1053
923
  ...contents,
1054
924
  };
1055
- return Promise.resolve(response);
925
+ return response;
1056
926
  };
1057
927
  exports.de_GetProtectionStatusCommand = de_GetProtectionStatusCommand;
1058
928
  const de_GetProtectionStatusCommandError = async (output, context) => {
@@ -1073,10 +943,9 @@ const de_GetProtectionStatusCommandError = async (output, context) => {
1073
943
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1074
944
  default:
1075
945
  const parsedBody = parsedOutput.body;
1076
- (0, smithy_client_1.throwDefaultError)({
946
+ return throwDefaultError({
1077
947
  output,
1078
948
  parsedBody,
1079
- exceptionCtor: FMSServiceException_1.FMSServiceException,
1080
949
  errorCode,
1081
950
  });
1082
951
  }
@@ -1092,7 +961,7 @@ const de_GetProtocolsListCommand = async (output, context) => {
1092
961
  $metadata: deserializeMetadata(output),
1093
962
  ...contents,
1094
963
  };
1095
- return Promise.resolve(response);
964
+ return response;
1096
965
  };
1097
966
  exports.de_GetProtocolsListCommand = de_GetProtocolsListCommand;
1098
967
  const de_GetProtocolsListCommandError = async (output, context) => {
@@ -1113,10 +982,9 @@ const de_GetProtocolsListCommandError = async (output, context) => {
1113
982
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1114
983
  default:
1115
984
  const parsedBody = parsedOutput.body;
1116
- (0, smithy_client_1.throwDefaultError)({
985
+ return throwDefaultError({
1117
986
  output,
1118
987
  parsedBody,
1119
- exceptionCtor: FMSServiceException_1.FMSServiceException,
1120
988
  errorCode,
1121
989
  });
1122
990
  }
@@ -1132,7 +1000,7 @@ const de_GetResourceSetCommand = async (output, context) => {
1132
1000
  $metadata: deserializeMetadata(output),
1133
1001
  ...contents,
1134
1002
  };
1135
- return Promise.resolve(response);
1003
+ return response;
1136
1004
  };
1137
1005
  exports.de_GetResourceSetCommand = de_GetResourceSetCommand;
1138
1006
  const de_GetResourceSetCommandError = async (output, context) => {
@@ -1156,10 +1024,9 @@ const de_GetResourceSetCommandError = async (output, context) => {
1156
1024
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1157
1025
  default:
1158
1026
  const parsedBody = parsedOutput.body;
1159
- (0, smithy_client_1.throwDefaultError)({
1027
+ return throwDefaultError({
1160
1028
  output,
1161
1029
  parsedBody,
1162
- exceptionCtor: FMSServiceException_1.FMSServiceException,
1163
1030
  errorCode,
1164
1031
  });
1165
1032
  }
@@ -1170,12 +1037,12 @@ const de_GetThirdPartyFirewallAssociationStatusCommand = async (output, context)
1170
1037
  }
1171
1038
  const data = await parseBody(output.body, context);
1172
1039
  let contents = {};
1173
- contents = de_GetThirdPartyFirewallAssociationStatusResponse(data, context);
1040
+ contents = (0, smithy_client_1._json)(data);
1174
1041
  const response = {
1175
1042
  $metadata: deserializeMetadata(output),
1176
1043
  ...contents,
1177
1044
  };
1178
- return Promise.resolve(response);
1045
+ return response;
1179
1046
  };
1180
1047
  exports.de_GetThirdPartyFirewallAssociationStatusCommand = de_GetThirdPartyFirewallAssociationStatusCommand;
1181
1048
  const de_GetThirdPartyFirewallAssociationStatusCommandError = async (output, context) => {
@@ -1199,10 +1066,9 @@ const de_GetThirdPartyFirewallAssociationStatusCommandError = async (output, con
1199
1066
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1200
1067
  default:
1201
1068
  const parsedBody = parsedOutput.body;
1202
- (0, smithy_client_1.throwDefaultError)({
1069
+ return throwDefaultError({
1203
1070
  output,
1204
1071
  parsedBody,
1205
- exceptionCtor: FMSServiceException_1.FMSServiceException,
1206
1072
  errorCode,
1207
1073
  });
1208
1074
  }
@@ -1218,7 +1084,7 @@ const de_GetViolationDetailsCommand = async (output, context) => {
1218
1084
  $metadata: deserializeMetadata(output),
1219
1085
  ...contents,
1220
1086
  };
1221
- return Promise.resolve(response);
1087
+ return response;
1222
1088
  };
1223
1089
  exports.de_GetViolationDetailsCommand = de_GetViolationDetailsCommand;
1224
1090
  const de_GetViolationDetailsCommandError = async (output, context) => {
@@ -1239,10 +1105,9 @@ const de_GetViolationDetailsCommandError = async (output, context) => {
1239
1105
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1240
1106
  default:
1241
1107
  const parsedBody = parsedOutput.body;
1242
- (0, smithy_client_1.throwDefaultError)({
1108
+ return throwDefaultError({
1243
1109
  output,
1244
1110
  parsedBody,
1245
- exceptionCtor: FMSServiceException_1.FMSServiceException,
1246
1111
  errorCode,
1247
1112
  });
1248
1113
  }
@@ -1253,12 +1118,12 @@ const de_ListAppsListsCommand = async (output, context) => {
1253
1118
  }
1254
1119
  const data = await parseBody(output.body, context);
1255
1120
  let contents = {};
1256
- contents = de_ListAppsListsResponse(data, context);
1121
+ contents = (0, smithy_client_1._json)(data);
1257
1122
  const response = {
1258
1123
  $metadata: deserializeMetadata(output),
1259
1124
  ...contents,
1260
1125
  };
1261
- return Promise.resolve(response);
1126
+ return response;
1262
1127
  };
1263
1128
  exports.de_ListAppsListsCommand = de_ListAppsListsCommand;
1264
1129
  const de_ListAppsListsCommandError = async (output, context) => {
@@ -1282,10 +1147,9 @@ const de_ListAppsListsCommandError = async (output, context) => {
1282
1147
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1283
1148
  default:
1284
1149
  const parsedBody = parsedOutput.body;
1285
- (0, smithy_client_1.throwDefaultError)({
1150
+ return throwDefaultError({
1286
1151
  output,
1287
1152
  parsedBody,
1288
- exceptionCtor: FMSServiceException_1.FMSServiceException,
1289
1153
  errorCode,
1290
1154
  });
1291
1155
  }
@@ -1301,7 +1165,7 @@ const de_ListComplianceStatusCommand = async (output, context) => {
1301
1165
  $metadata: deserializeMetadata(output),
1302
1166
  ...contents,
1303
1167
  };
1304
- return Promise.resolve(response);
1168
+ return response;
1305
1169
  };
1306
1170
  exports.de_ListComplianceStatusCommand = de_ListComplianceStatusCommand;
1307
1171
  const de_ListComplianceStatusCommandError = async (output, context) => {
@@ -1319,10 +1183,9 @@ const de_ListComplianceStatusCommandError = async (output, context) => {
1319
1183
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1320
1184
  default:
1321
1185
  const parsedBody = parsedOutput.body;
1322
- (0, smithy_client_1.throwDefaultError)({
1186
+ return throwDefaultError({
1323
1187
  output,
1324
1188
  parsedBody,
1325
- exceptionCtor: FMSServiceException_1.FMSServiceException,
1326
1189
  errorCode,
1327
1190
  });
1328
1191
  }
@@ -1333,12 +1196,12 @@ const de_ListDiscoveredResourcesCommand = async (output, context) => {
1333
1196
  }
1334
1197
  const data = await parseBody(output.body, context);
1335
1198
  let contents = {};
1336
- contents = de_ListDiscoveredResourcesResponse(data, context);
1199
+ contents = (0, smithy_client_1._json)(data);
1337
1200
  const response = {
1338
1201
  $metadata: deserializeMetadata(output),
1339
1202
  ...contents,
1340
1203
  };
1341
- return Promise.resolve(response);
1204
+ return response;
1342
1205
  };
1343
1206
  exports.de_ListDiscoveredResourcesCommand = de_ListDiscoveredResourcesCommand;
1344
1207
  const de_ListDiscoveredResourcesCommandError = async (output, context) => {
@@ -1359,10 +1222,9 @@ const de_ListDiscoveredResourcesCommandError = async (output, context) => {
1359
1222
  throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1360
1223
  default:
1361
1224
  const parsedBody = parsedOutput.body;
1362
- (0, smithy_client_1.throwDefaultError)({
1225
+ return throwDefaultError({
1363
1226
  output,
1364
1227
  parsedBody,
1365
- exceptionCtor: FMSServiceException_1.FMSServiceException,
1366
1228
  errorCode,
1367
1229
  });
1368
1230
  }
@@ -1373,12 +1235,12 @@ const de_ListMemberAccountsCommand = async (output, context) => {
1373
1235
  }
1374
1236
  const data = await parseBody(output.body, context);
1375
1237
  let contents = {};
1376
- contents = de_ListMemberAccountsResponse(data, context);
1238
+ contents = (0, smithy_client_1._json)(data);
1377
1239
  const response = {
1378
1240
  $metadata: deserializeMetadata(output),
1379
1241
  ...contents,
1380
1242
  };
1381
- return Promise.resolve(response);
1243
+ return response;
1382
1244
  };
1383
1245
  exports.de_ListMemberAccountsCommand = de_ListMemberAccountsCommand;
1384
1246
  const de_ListMemberAccountsCommandError = async (output, context) => {
@@ -1396,10 +1258,9 @@ const de_ListMemberAccountsCommandError = async (output, context) => {
1396
1258
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1397
1259
  default:
1398
1260
  const parsedBody = parsedOutput.body;
1399
- (0, smithy_client_1.throwDefaultError)({
1261
+ return throwDefaultError({
1400
1262
  output,
1401
1263
  parsedBody,
1402
- exceptionCtor: FMSServiceException_1.FMSServiceException,
1403
1264
  errorCode,
1404
1265
  });
1405
1266
  }
@@ -1410,12 +1271,12 @@ const de_ListPoliciesCommand = async (output, context) => {
1410
1271
  }
1411
1272
  const data = await parseBody(output.body, context);
1412
1273
  let contents = {};
1413
- contents = de_ListPoliciesResponse(data, context);
1274
+ contents = (0, smithy_client_1._json)(data);
1414
1275
  const response = {
1415
1276
  $metadata: deserializeMetadata(output),
1416
1277
  ...contents,
1417
1278
  };
1418
- return Promise.resolve(response);
1279
+ return response;
1419
1280
  };
1420
1281
  exports.de_ListPoliciesCommand = de_ListPoliciesCommand;
1421
1282
  const de_ListPoliciesCommandError = async (output, context) => {
@@ -1439,10 +1300,9 @@ const de_ListPoliciesCommandError = async (output, context) => {
1439
1300
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1440
1301
  default:
1441
1302
  const parsedBody = parsedOutput.body;
1442
- (0, smithy_client_1.throwDefaultError)({
1303
+ return throwDefaultError({
1443
1304
  output,
1444
1305
  parsedBody,
1445
- exceptionCtor: FMSServiceException_1.FMSServiceException,
1446
1306
  errorCode,
1447
1307
  });
1448
1308
  }
@@ -1453,12 +1313,12 @@ const de_ListProtocolsListsCommand = async (output, context) => {
1453
1313
  }
1454
1314
  const data = await parseBody(output.body, context);
1455
1315
  let contents = {};
1456
- contents = de_ListProtocolsListsResponse(data, context);
1316
+ contents = (0, smithy_client_1._json)(data);
1457
1317
  const response = {
1458
1318
  $metadata: deserializeMetadata(output),
1459
1319
  ...contents,
1460
1320
  };
1461
- return Promise.resolve(response);
1321
+ return response;
1462
1322
  };
1463
1323
  exports.de_ListProtocolsListsCommand = de_ListProtocolsListsCommand;
1464
1324
  const de_ListProtocolsListsCommandError = async (output, context) => {
@@ -1479,10 +1339,9 @@ const de_ListProtocolsListsCommandError = async (output, context) => {
1479
1339
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1480
1340
  default:
1481
1341
  const parsedBody = parsedOutput.body;
1482
- (0, smithy_client_1.throwDefaultError)({
1342
+ return throwDefaultError({
1483
1343
  output,
1484
1344
  parsedBody,
1485
- exceptionCtor: FMSServiceException_1.FMSServiceException,
1486
1345
  errorCode,
1487
1346
  });
1488
1347
  }
@@ -1493,12 +1352,12 @@ const de_ListResourceSetResourcesCommand = async (output, context) => {
1493
1352
  }
1494
1353
  const data = await parseBody(output.body, context);
1495
1354
  let contents = {};
1496
- contents = de_ListResourceSetResourcesResponse(data, context);
1355
+ contents = (0, smithy_client_1._json)(data);
1497
1356
  const response = {
1498
1357
  $metadata: deserializeMetadata(output),
1499
1358
  ...contents,
1500
1359
  };
1501
- return Promise.resolve(response);
1360
+ return response;
1502
1361
  };
1503
1362
  exports.de_ListResourceSetResourcesCommand = de_ListResourceSetResourcesCommand;
1504
1363
  const de_ListResourceSetResourcesCommandError = async (output, context) => {
@@ -1522,10 +1381,9 @@ const de_ListResourceSetResourcesCommandError = async (output, context) => {
1522
1381
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1523
1382
  default:
1524
1383
  const parsedBody = parsedOutput.body;
1525
- (0, smithy_client_1.throwDefaultError)({
1384
+ return throwDefaultError({
1526
1385
  output,
1527
1386
  parsedBody,
1528
- exceptionCtor: FMSServiceException_1.FMSServiceException,
1529
1387
  errorCode,
1530
1388
  });
1531
1389
  }
@@ -1541,7 +1399,7 @@ const de_ListResourceSetsCommand = async (output, context) => {
1541
1399
  $metadata: deserializeMetadata(output),
1542
1400
  ...contents,
1543
1401
  };
1544
- return Promise.resolve(response);
1402
+ return response;
1545
1403
  };
1546
1404
  exports.de_ListResourceSetsCommand = de_ListResourceSetsCommand;
1547
1405
  const de_ListResourceSetsCommandError = async (output, context) => {
@@ -1562,10 +1420,9 @@ const de_ListResourceSetsCommandError = async (output, context) => {
1562
1420
  throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1563
1421
  default:
1564
1422
  const parsedBody = parsedOutput.body;
1565
- (0, smithy_client_1.throwDefaultError)({
1423
+ return throwDefaultError({
1566
1424
  output,
1567
1425
  parsedBody,
1568
- exceptionCtor: FMSServiceException_1.FMSServiceException,
1569
1426
  errorCode,
1570
1427
  });
1571
1428
  }
@@ -1576,12 +1433,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
1576
1433
  }
1577
1434
  const data = await parseBody(output.body, context);
1578
1435
  let contents = {};
1579
- contents = de_ListTagsForResourceResponse(data, context);
1436
+ contents = (0, smithy_client_1._json)(data);
1580
1437
  const response = {
1581
1438
  $metadata: deserializeMetadata(output),
1582
1439
  ...contents,
1583
1440
  };
1584
- return Promise.resolve(response);
1441
+ return response;
1585
1442
  };
1586
1443
  exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
1587
1444
  const de_ListTagsForResourceCommandError = async (output, context) => {
@@ -1605,10 +1462,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
1605
1462
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1606
1463
  default:
1607
1464
  const parsedBody = parsedOutput.body;
1608
- (0, smithy_client_1.throwDefaultError)({
1465
+ return throwDefaultError({
1609
1466
  output,
1610
1467
  parsedBody,
1611
- exceptionCtor: FMSServiceException_1.FMSServiceException,
1612
1468
  errorCode,
1613
1469
  });
1614
1470
  }
@@ -1619,12 +1475,12 @@ const de_ListThirdPartyFirewallFirewallPoliciesCommand = async (output, context)
1619
1475
  }
1620
1476
  const data = await parseBody(output.body, context);
1621
1477
  let contents = {};
1622
- contents = de_ListThirdPartyFirewallFirewallPoliciesResponse(data, context);
1478
+ contents = (0, smithy_client_1._json)(data);
1623
1479
  const response = {
1624
1480
  $metadata: deserializeMetadata(output),
1625
1481
  ...contents,
1626
1482
  };
1627
- return Promise.resolve(response);
1483
+ return response;
1628
1484
  };
1629
1485
  exports.de_ListThirdPartyFirewallFirewallPoliciesCommand = de_ListThirdPartyFirewallFirewallPoliciesCommand;
1630
1486
  const de_ListThirdPartyFirewallFirewallPoliciesCommandError = async (output, context) => {
@@ -1648,10 +1504,9 @@ const de_ListThirdPartyFirewallFirewallPoliciesCommandError = async (output, con
1648
1504
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1649
1505
  default:
1650
1506
  const parsedBody = parsedOutput.body;
1651
- (0, smithy_client_1.throwDefaultError)({
1507
+ return throwDefaultError({
1652
1508
  output,
1653
1509
  parsedBody,
1654
- exceptionCtor: FMSServiceException_1.FMSServiceException,
1655
1510
  errorCode,
1656
1511
  });
1657
1512
  }
@@ -1667,7 +1522,7 @@ const de_PutAppsListCommand = async (output, context) => {
1667
1522
  $metadata: deserializeMetadata(output),
1668
1523
  ...contents,
1669
1524
  };
1670
- return Promise.resolve(response);
1525
+ return response;
1671
1526
  };
1672
1527
  exports.de_PutAppsListCommand = de_PutAppsListCommand;
1673
1528
  const de_PutAppsListCommandError = async (output, context) => {
@@ -1694,10 +1549,9 @@ const de_PutAppsListCommandError = async (output, context) => {
1694
1549
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1695
1550
  default:
1696
1551
  const parsedBody = parsedOutput.body;
1697
- (0, smithy_client_1.throwDefaultError)({
1552
+ return throwDefaultError({
1698
1553
  output,
1699
1554
  parsedBody,
1700
- exceptionCtor: FMSServiceException_1.FMSServiceException,
1701
1555
  errorCode,
1702
1556
  });
1703
1557
  }
@@ -1710,7 +1564,7 @@ const de_PutNotificationChannelCommand = async (output, context) => {
1710
1564
  const response = {
1711
1565
  $metadata: deserializeMetadata(output),
1712
1566
  };
1713
- return Promise.resolve(response);
1567
+ return response;
1714
1568
  };
1715
1569
  exports.de_PutNotificationChannelCommand = de_PutNotificationChannelCommand;
1716
1570
  const de_PutNotificationChannelCommandError = async (output, context) => {
@@ -1731,10 +1585,9 @@ const de_PutNotificationChannelCommandError = async (output, context) => {
1731
1585
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1732
1586
  default:
1733
1587
  const parsedBody = parsedOutput.body;
1734
- (0, smithy_client_1.throwDefaultError)({
1588
+ return throwDefaultError({
1735
1589
  output,
1736
1590
  parsedBody,
1737
- exceptionCtor: FMSServiceException_1.FMSServiceException,
1738
1591
  errorCode,
1739
1592
  });
1740
1593
  }
@@ -1745,12 +1598,12 @@ const de_PutPolicyCommand = async (output, context) => {
1745
1598
  }
1746
1599
  const data = await parseBody(output.body, context);
1747
1600
  let contents = {};
1748
- contents = de_PutPolicyResponse(data, context);
1601
+ contents = (0, smithy_client_1._json)(data);
1749
1602
  const response = {
1750
1603
  $metadata: deserializeMetadata(output),
1751
1604
  ...contents,
1752
1605
  };
1753
- return Promise.resolve(response);
1606
+ return response;
1754
1607
  };
1755
1608
  exports.de_PutPolicyCommand = de_PutPolicyCommand;
1756
1609
  const de_PutPolicyCommandError = async (output, context) => {
@@ -1780,10 +1633,9 @@ const de_PutPolicyCommandError = async (output, context) => {
1780
1633
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1781
1634
  default:
1782
1635
  const parsedBody = parsedOutput.body;
1783
- (0, smithy_client_1.throwDefaultError)({
1636
+ return throwDefaultError({
1784
1637
  output,
1785
1638
  parsedBody,
1786
- exceptionCtor: FMSServiceException_1.FMSServiceException,
1787
1639
  errorCode,
1788
1640
  });
1789
1641
  }
@@ -1799,7 +1651,7 @@ const de_PutProtocolsListCommand = async (output, context) => {
1799
1651
  $metadata: deserializeMetadata(output),
1800
1652
  ...contents,
1801
1653
  };
1802
- return Promise.resolve(response);
1654
+ return response;
1803
1655
  };
1804
1656
  exports.de_PutProtocolsListCommand = de_PutProtocolsListCommand;
1805
1657
  const de_PutProtocolsListCommandError = async (output, context) => {
@@ -1826,10 +1678,9 @@ const de_PutProtocolsListCommandError = async (output, context) => {
1826
1678
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1827
1679
  default:
1828
1680
  const parsedBody = parsedOutput.body;
1829
- (0, smithy_client_1.throwDefaultError)({
1681
+ return throwDefaultError({
1830
1682
  output,
1831
1683
  parsedBody,
1832
- exceptionCtor: FMSServiceException_1.FMSServiceException,
1833
1684
  errorCode,
1834
1685
  });
1835
1686
  }
@@ -1845,7 +1696,7 @@ const de_PutResourceSetCommand = async (output, context) => {
1845
1696
  $metadata: deserializeMetadata(output),
1846
1697
  ...contents,
1847
1698
  };
1848
- return Promise.resolve(response);
1699
+ return response;
1849
1700
  };
1850
1701
  exports.de_PutResourceSetCommand = de_PutResourceSetCommand;
1851
1702
  const de_PutResourceSetCommandError = async (output, context) => {
@@ -1869,10 +1720,9 @@ const de_PutResourceSetCommandError = async (output, context) => {
1869
1720
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
1870
1721
  default:
1871
1722
  const parsedBody = parsedOutput.body;
1872
- (0, smithy_client_1.throwDefaultError)({
1723
+ return throwDefaultError({
1873
1724
  output,
1874
1725
  parsedBody,
1875
- exceptionCtor: FMSServiceException_1.FMSServiceException,
1876
1726
  errorCode,
1877
1727
  });
1878
1728
  }
@@ -1883,12 +1733,12 @@ const de_TagResourceCommand = async (output, context) => {
1883
1733
  }
1884
1734
  const data = await parseBody(output.body, context);
1885
1735
  let contents = {};
1886
- contents = de_TagResourceResponse(data, context);
1736
+ contents = (0, smithy_client_1._json)(data);
1887
1737
  const response = {
1888
1738
  $metadata: deserializeMetadata(output),
1889
1739
  ...contents,
1890
1740
  };
1891
- return Promise.resolve(response);
1741
+ return response;
1892
1742
  };
1893
1743
  exports.de_TagResourceCommand = de_TagResourceCommand;
1894
1744
  const de_TagResourceCommandError = async (output, context) => {
@@ -1915,10 +1765,9 @@ const de_TagResourceCommandError = async (output, context) => {
1915
1765
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1916
1766
  default:
1917
1767
  const parsedBody = parsedOutput.body;
1918
- (0, smithy_client_1.throwDefaultError)({
1768
+ return throwDefaultError({
1919
1769
  output,
1920
1770
  parsedBody,
1921
- exceptionCtor: FMSServiceException_1.FMSServiceException,
1922
1771
  errorCode,
1923
1772
  });
1924
1773
  }
@@ -1929,12 +1778,12 @@ const de_UntagResourceCommand = async (output, context) => {
1929
1778
  }
1930
1779
  const data = await parseBody(output.body, context);
1931
1780
  let contents = {};
1932
- contents = de_UntagResourceResponse(data, context);
1781
+ contents = (0, smithy_client_1._json)(data);
1933
1782
  const response = {
1934
1783
  $metadata: deserializeMetadata(output),
1935
1784
  ...contents,
1936
1785
  };
1937
- return Promise.resolve(response);
1786
+ return response;
1938
1787
  };
1939
1788
  exports.de_UntagResourceCommand = de_UntagResourceCommand;
1940
1789
  const de_UntagResourceCommandError = async (output, context) => {
@@ -1958,17 +1807,16 @@ const de_UntagResourceCommandError = async (output, context) => {
1958
1807
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1959
1808
  default:
1960
1809
  const parsedBody = parsedOutput.body;
1961
- (0, smithy_client_1.throwDefaultError)({
1810
+ return throwDefaultError({
1962
1811
  output,
1963
1812
  parsedBody,
1964
- exceptionCtor: FMSServiceException_1.FMSServiceException,
1965
1813
  errorCode,
1966
1814
  });
1967
1815
  }
1968
1816
  };
1969
1817
  const de_InternalErrorExceptionRes = async (parsedOutput, context) => {
1970
1818
  const body = parsedOutput.body;
1971
- const deserialized = de_InternalErrorException(body, context);
1819
+ const deserialized = (0, smithy_client_1._json)(body);
1972
1820
  const exception = new models_0_1.InternalErrorException({
1973
1821
  $metadata: deserializeMetadata(parsedOutput),
1974
1822
  ...deserialized,
@@ -1977,7 +1825,7 @@ const de_InternalErrorExceptionRes = async (parsedOutput, context) => {
1977
1825
  };
1978
1826
  const de_InvalidInputExceptionRes = async (parsedOutput, context) => {
1979
1827
  const body = parsedOutput.body;
1980
- const deserialized = de_InvalidInputException(body, context);
1828
+ const deserialized = (0, smithy_client_1._json)(body);
1981
1829
  const exception = new models_0_1.InvalidInputException({
1982
1830
  $metadata: deserializeMetadata(parsedOutput),
1983
1831
  ...deserialized,
@@ -1986,7 +1834,7 @@ const de_InvalidInputExceptionRes = async (parsedOutput, context) => {
1986
1834
  };
1987
1835
  const de_InvalidOperationExceptionRes = async (parsedOutput, context) => {
1988
1836
  const body = parsedOutput.body;
1989
- const deserialized = de_InvalidOperationException(body, context);
1837
+ const deserialized = (0, smithy_client_1._json)(body);
1990
1838
  const exception = new models_0_1.InvalidOperationException({
1991
1839
  $metadata: deserializeMetadata(parsedOutput),
1992
1840
  ...deserialized,
@@ -1995,7 +1843,7 @@ const de_InvalidOperationExceptionRes = async (parsedOutput, context) => {
1995
1843
  };
1996
1844
  const de_InvalidTypeExceptionRes = async (parsedOutput, context) => {
1997
1845
  const body = parsedOutput.body;
1998
- const deserialized = de_InvalidTypeException(body, context);
1846
+ const deserialized = (0, smithy_client_1._json)(body);
1999
1847
  const exception = new models_0_1.InvalidTypeException({
2000
1848
  $metadata: deserializeMetadata(parsedOutput),
2001
1849
  ...deserialized,
@@ -2004,7 +1852,7 @@ const de_InvalidTypeExceptionRes = async (parsedOutput, context) => {
2004
1852
  };
2005
1853
  const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
2006
1854
  const body = parsedOutput.body;
2007
- const deserialized = de_LimitExceededException(body, context);
1855
+ const deserialized = (0, smithy_client_1._json)(body);
2008
1856
  const exception = new models_0_1.LimitExceededException({
2009
1857
  $metadata: deserializeMetadata(parsedOutput),
2010
1858
  ...deserialized,
@@ -2013,1776 +1861,220 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
2013
1861
  };
2014
1862
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
2015
1863
  const body = parsedOutput.body;
2016
- const deserialized = de_ResourceNotFoundException(body, context);
1864
+ const deserialized = (0, smithy_client_1._json)(body);
2017
1865
  const exception = new models_0_1.ResourceNotFoundException({
2018
1866
  $metadata: deserializeMetadata(parsedOutput),
2019
1867
  ...deserialized,
2020
1868
  });
2021
1869
  return (0, smithy_client_1.decorateServiceException)(exception, body);
2022
1870
  };
2023
- const se_App = (input, context) => {
2024
- return {
2025
- ...(input.AppName != null && { AppName: input.AppName }),
2026
- ...(input.Port != null && { Port: input.Port }),
2027
- ...(input.Protocol != null && { Protocol: input.Protocol }),
2028
- };
2029
- };
2030
- const se_AppsList = (input, context) => {
2031
- return input
2032
- .filter((e) => e != null)
2033
- .map((entry) => {
2034
- return se_App(entry, context);
2035
- });
2036
- };
2037
1871
  const se_AppsListData = (input, context) => {
2038
- return {
2039
- ...(input.AppsList != null && { AppsList: se_AppsList(input.AppsList, context) }),
2040
- ...(input.CreateTime != null && { CreateTime: Math.round(input.CreateTime.getTime() / 1000) }),
2041
- ...(input.LastUpdateTime != null && { LastUpdateTime: Math.round(input.LastUpdateTime.getTime() / 1000) }),
2042
- ...(input.ListId != null && { ListId: input.ListId }),
2043
- ...(input.ListName != null && { ListName: input.ListName }),
2044
- ...(input.ListUpdateToken != null && { ListUpdateToken: input.ListUpdateToken }),
2045
- ...(input.PreviousAppsList != null && { PreviousAppsList: se_PreviousAppsList(input.PreviousAppsList, context) }),
2046
- };
2047
- };
2048
- const se_AssociateAdminAccountRequest = (input, context) => {
2049
- return {
2050
- ...(input.AdminAccount != null && { AdminAccount: input.AdminAccount }),
2051
- };
2052
- };
2053
- const se_AssociateThirdPartyFirewallRequest = (input, context) => {
2054
- return {
2055
- ...(input.ThirdPartyFirewall != null && { ThirdPartyFirewall: input.ThirdPartyFirewall }),
2056
- };
2057
- };
2058
- const se_AWSAccountIdList = (input, context) => {
2059
- return input
2060
- .filter((e) => e != null)
2061
- .map((entry) => {
2062
- return entry;
2063
- });
2064
- };
2065
- const se_BatchAssociateResourceRequest = (input, context) => {
2066
- return {
2067
- ...(input.Items != null && { Items: se_IdentifierList(input.Items, context) }),
2068
- ...(input.ResourceSetIdentifier != null && { ResourceSetIdentifier: input.ResourceSetIdentifier }),
2069
- };
2070
- };
2071
- const se_BatchDisassociateResourceRequest = (input, context) => {
2072
- return {
2073
- ...(input.Items != null && { Items: se_IdentifierList(input.Items, context) }),
2074
- ...(input.ResourceSetIdentifier != null && { ResourceSetIdentifier: input.ResourceSetIdentifier }),
2075
- };
2076
- };
2077
- const se_CustomerPolicyScopeIdList = (input, context) => {
2078
- return input
2079
- .filter((e) => e != null)
2080
- .map((entry) => {
2081
- return entry;
1872
+ return (0, smithy_client_1.take)(input, {
1873
+ AppsList: smithy_client_1._json,
1874
+ CreateTime: (_) => Math.round(_.getTime() / 1000),
1875
+ LastUpdateTime: (_) => Math.round(_.getTime() / 1000),
1876
+ ListId: [],
1877
+ ListName: [],
1878
+ ListUpdateToken: [],
1879
+ PreviousAppsList: smithy_client_1._json,
2082
1880
  });
2083
1881
  };
2084
- const se_CustomerPolicyScopeMap = (input, context) => {
2085
- return Object.entries(input).reduce((acc, [key, value]) => {
2086
- if (value === null) {
2087
- return acc;
2088
- }
2089
- acc[key] = se_CustomerPolicyScopeIdList(value, context);
2090
- return acc;
2091
- }, {});
2092
- };
2093
- const se_DeleteAppsListRequest = (input, context) => {
2094
- return {
2095
- ...(input.ListId != null && { ListId: input.ListId }),
2096
- };
2097
- };
2098
- const se_DeleteNotificationChannelRequest = (input, context) => {
2099
- return {};
2100
- };
2101
- const se_DeletePolicyRequest = (input, context) => {
2102
- return {
2103
- ...(input.DeleteAllPolicyResources != null && { DeleteAllPolicyResources: input.DeleteAllPolicyResources }),
2104
- ...(input.PolicyId != null && { PolicyId: input.PolicyId }),
2105
- };
2106
- };
2107
- const se_DeleteProtocolsListRequest = (input, context) => {
2108
- return {
2109
- ...(input.ListId != null && { ListId: input.ListId }),
2110
- };
2111
- };
2112
- const se_DeleteResourceSetRequest = (input, context) => {
2113
- return {
2114
- ...(input.Identifier != null && { Identifier: input.Identifier }),
2115
- };
2116
- };
2117
- const se_DisassociateAdminAccountRequest = (input, context) => {
2118
- return {};
2119
- };
2120
- const se_DisassociateThirdPartyFirewallRequest = (input, context) => {
2121
- return {
2122
- ...(input.ThirdPartyFirewall != null && { ThirdPartyFirewall: input.ThirdPartyFirewall }),
2123
- };
2124
- };
2125
- const se_GetAdminAccountRequest = (input, context) => {
2126
- return {};
2127
- };
2128
- const se_GetAppsListRequest = (input, context) => {
2129
- return {
2130
- ...(input.DefaultList != null && { DefaultList: input.DefaultList }),
2131
- ...(input.ListId != null && { ListId: input.ListId }),
2132
- };
2133
- };
2134
- const se_GetComplianceDetailRequest = (input, context) => {
2135
- return {
2136
- ...(input.MemberAccount != null && { MemberAccount: input.MemberAccount }),
2137
- ...(input.PolicyId != null && { PolicyId: input.PolicyId }),
2138
- };
2139
- };
2140
- const se_GetNotificationChannelRequest = (input, context) => {
2141
- return {};
2142
- };
2143
- const se_GetPolicyRequest = (input, context) => {
2144
- return {
2145
- ...(input.PolicyId != null && { PolicyId: input.PolicyId }),
2146
- };
2147
- };
2148
1882
  const se_GetProtectionStatusRequest = (input, context) => {
2149
- return {
2150
- ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
2151
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2152
- ...(input.MemberAccountId != null && { MemberAccountId: input.MemberAccountId }),
2153
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2154
- ...(input.PolicyId != null && { PolicyId: input.PolicyId }),
2155
- ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
2156
- };
2157
- };
2158
- const se_GetProtocolsListRequest = (input, context) => {
2159
- return {
2160
- ...(input.DefaultList != null && { DefaultList: input.DefaultList }),
2161
- ...(input.ListId != null && { ListId: input.ListId }),
2162
- };
2163
- };
2164
- const se_GetResourceSetRequest = (input, context) => {
2165
- return {
2166
- ...(input.Identifier != null && { Identifier: input.Identifier }),
2167
- };
1883
+ return (0, smithy_client_1.take)(input, {
1884
+ EndTime: (_) => Math.round(_.getTime() / 1000),
1885
+ MaxResults: [],
1886
+ MemberAccountId: [],
1887
+ NextToken: [],
1888
+ PolicyId: [],
1889
+ StartTime: (_) => Math.round(_.getTime() / 1000),
1890
+ });
2168
1891
  };
2169
- const se_GetThirdPartyFirewallAssociationStatusRequest = (input, context) => {
2170
- return {
2171
- ...(input.ThirdPartyFirewall != null && { ThirdPartyFirewall: input.ThirdPartyFirewall }),
2172
- };
1892
+ const se_ProtocolsListData = (input, context) => {
1893
+ return (0, smithy_client_1.take)(input, {
1894
+ CreateTime: (_) => Math.round(_.getTime() / 1000),
1895
+ LastUpdateTime: (_) => Math.round(_.getTime() / 1000),
1896
+ ListId: [],
1897
+ ListName: [],
1898
+ ListUpdateToken: [],
1899
+ PreviousProtocolsList: smithy_client_1._json,
1900
+ ProtocolsList: smithy_client_1._json,
1901
+ });
2173
1902
  };
2174
- const se_GetViolationDetailsRequest = (input, context) => {
2175
- return {
2176
- ...(input.MemberAccount != null && { MemberAccount: input.MemberAccount }),
2177
- ...(input.PolicyId != null && { PolicyId: input.PolicyId }),
2178
- ...(input.ResourceId != null && { ResourceId: input.ResourceId }),
2179
- ...(input.ResourceType != null && { ResourceType: input.ResourceType }),
2180
- };
1903
+ const se_PutAppsListRequest = (input, context) => {
1904
+ return (0, smithy_client_1.take)(input, {
1905
+ AppsList: (_) => se_AppsListData(_, context),
1906
+ TagList: smithy_client_1._json,
1907
+ });
2181
1908
  };
2182
- const se_IdentifierList = (input, context) => {
2183
- return input
2184
- .filter((e) => e != null)
2185
- .map((entry) => {
2186
- return entry;
1909
+ const se_PutProtocolsListRequest = (input, context) => {
1910
+ return (0, smithy_client_1.take)(input, {
1911
+ ProtocolsList: (_) => se_ProtocolsListData(_, context),
1912
+ TagList: smithy_client_1._json,
2187
1913
  });
2188
1914
  };
2189
- const se_ListAppsListsRequest = (input, context) => {
2190
- return {
2191
- ...(input.DefaultLists != null && { DefaultLists: input.DefaultLists }),
2192
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2193
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2194
- };
1915
+ const se_PutResourceSetRequest = (input, context) => {
1916
+ return (0, smithy_client_1.take)(input, {
1917
+ ResourceSet: (_) => se_ResourceSet(_, context),
1918
+ TagList: smithy_client_1._json,
1919
+ });
2195
1920
  };
2196
- const se_ListComplianceStatusRequest = (input, context) => {
2197
- return {
2198
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2199
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2200
- ...(input.PolicyId != null && { PolicyId: input.PolicyId }),
2201
- };
1921
+ const se_ResourceSet = (input, context) => {
1922
+ return (0, smithy_client_1.take)(input, {
1923
+ Description: [],
1924
+ Id: [],
1925
+ LastUpdateTime: (_) => Math.round(_.getTime() / 1000),
1926
+ Name: [],
1927
+ ResourceTypeList: smithy_client_1._json,
1928
+ UpdateToken: [],
1929
+ });
2202
1930
  };
2203
- const se_ListDiscoveredResourcesRequest = (input, context) => {
2204
- return {
2205
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2206
- ...(input.MemberAccountIds != null && { MemberAccountIds: se_AWSAccountIdList(input.MemberAccountIds, context) }),
2207
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2208
- ...(input.ResourceType != null && { ResourceType: input.ResourceType }),
2209
- };
1931
+ const de_AppsListData = (output, context) => {
1932
+ return (0, smithy_client_1.take)(output, {
1933
+ AppsList: smithy_client_1._json,
1934
+ CreateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1935
+ LastUpdateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1936
+ ListId: smithy_client_1.expectString,
1937
+ ListName: smithy_client_1.expectString,
1938
+ ListUpdateToken: smithy_client_1.expectString,
1939
+ PreviousAppsList: smithy_client_1._json,
1940
+ });
2210
1941
  };
2211
- const se_ListMemberAccountsRequest = (input, context) => {
2212
- return {
2213
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2214
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2215
- };
1942
+ const de_GetAppsListResponse = (output, context) => {
1943
+ return (0, smithy_client_1.take)(output, {
1944
+ AppsList: (_) => de_AppsListData(_, context),
1945
+ AppsListArn: smithy_client_1.expectString,
1946
+ });
2216
1947
  };
2217
- const se_ListPoliciesRequest = (input, context) => {
2218
- return {
2219
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2220
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2221
- };
1948
+ const de_GetComplianceDetailResponse = (output, context) => {
1949
+ return (0, smithy_client_1.take)(output, {
1950
+ PolicyComplianceDetail: (_) => de_PolicyComplianceDetail(_, context),
1951
+ });
2222
1952
  };
2223
- const se_ListProtocolsListsRequest = (input, context) => {
2224
- return {
2225
- ...(input.DefaultLists != null && { DefaultLists: input.DefaultLists }),
2226
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2227
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2228
- };
1953
+ const de_GetProtocolsListResponse = (output, context) => {
1954
+ return (0, smithy_client_1.take)(output, {
1955
+ ProtocolsList: (_) => de_ProtocolsListData(_, context),
1956
+ ProtocolsListArn: smithy_client_1.expectString,
1957
+ });
2229
1958
  };
2230
- const se_ListResourceSetResourcesRequest = (input, context) => {
2231
- return {
2232
- ...(input.Identifier != null && { Identifier: input.Identifier }),
2233
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2234
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2235
- };
1959
+ const de_GetResourceSetResponse = (output, context) => {
1960
+ return (0, smithy_client_1.take)(output, {
1961
+ ResourceSet: (_) => de_ResourceSet(_, context),
1962
+ ResourceSetArn: smithy_client_1.expectString,
1963
+ });
2236
1964
  };
2237
- const se_ListResourceSetsRequest = (input, context) => {
2238
- return {
2239
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2240
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2241
- };
1965
+ const de_GetViolationDetailsResponse = (output, context) => {
1966
+ return (0, smithy_client_1.take)(output, {
1967
+ ViolationDetail: (_) => de_ViolationDetail(_, context),
1968
+ });
2242
1969
  };
2243
- const se_ListTagsForResourceRequest = (input, context) => {
2244
- return {
2245
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
2246
- };
1970
+ const de_ListComplianceStatusResponse = (output, context) => {
1971
+ return (0, smithy_client_1.take)(output, {
1972
+ NextToken: smithy_client_1.expectString,
1973
+ PolicyComplianceStatusList: (_) => de_PolicyComplianceStatusList(_, context),
1974
+ });
2247
1975
  };
2248
- const se_ListThirdPartyFirewallFirewallPoliciesRequest = (input, context) => {
2249
- return {
2250
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2251
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2252
- ...(input.ThirdPartyFirewall != null && { ThirdPartyFirewall: input.ThirdPartyFirewall }),
2253
- };
1976
+ const de_ListResourceSetsResponse = (output, context) => {
1977
+ return (0, smithy_client_1.take)(output, {
1978
+ NextToken: smithy_client_1.expectString,
1979
+ ResourceSets: (_) => de_ResourceSetSummaryList(_, context),
1980
+ });
2254
1981
  };
2255
- const se_NetworkFirewallPolicy = (input, context) => {
2256
- return {
2257
- ...(input.FirewallDeploymentModel != null && { FirewallDeploymentModel: input.FirewallDeploymentModel }),
2258
- };
1982
+ const de_PolicyComplianceDetail = (output, context) => {
1983
+ return (0, smithy_client_1.take)(output, {
1984
+ EvaluationLimitExceeded: smithy_client_1.expectBoolean,
1985
+ ExpiredAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1986
+ IssueInfoMap: smithy_client_1._json,
1987
+ MemberAccount: smithy_client_1.expectString,
1988
+ PolicyId: smithy_client_1.expectString,
1989
+ PolicyOwner: smithy_client_1.expectString,
1990
+ Violators: smithy_client_1._json,
1991
+ });
2259
1992
  };
2260
- const se_Policy = (input, context) => {
2261
- return {
2262
- ...(input.DeleteUnusedFMManagedResources != null && {
2263
- DeleteUnusedFMManagedResources: input.DeleteUnusedFMManagedResources,
2264
- }),
2265
- ...(input.ExcludeMap != null && { ExcludeMap: se_CustomerPolicyScopeMap(input.ExcludeMap, context) }),
2266
- ...(input.ExcludeResourceTags != null && { ExcludeResourceTags: input.ExcludeResourceTags }),
2267
- ...(input.IncludeMap != null && { IncludeMap: se_CustomerPolicyScopeMap(input.IncludeMap, context) }),
2268
- ...(input.PolicyDescription != null && { PolicyDescription: input.PolicyDescription }),
2269
- ...(input.PolicyId != null && { PolicyId: input.PolicyId }),
2270
- ...(input.PolicyName != null && { PolicyName: input.PolicyName }),
2271
- ...(input.PolicyUpdateToken != null && { PolicyUpdateToken: input.PolicyUpdateToken }),
2272
- ...(input.RemediationEnabled != null && { RemediationEnabled: input.RemediationEnabled }),
2273
- ...(input.ResourceSetIds != null && { ResourceSetIds: se_ResourceSetIds(input.ResourceSetIds, context) }),
2274
- ...(input.ResourceTags != null && { ResourceTags: se_ResourceTags(input.ResourceTags, context) }),
2275
- ...(input.ResourceType != null && { ResourceType: input.ResourceType }),
2276
- ...(input.ResourceTypeList != null && { ResourceTypeList: se_ResourceTypeList(input.ResourceTypeList, context) }),
2277
- ...(input.SecurityServicePolicyData != null && {
2278
- SecurityServicePolicyData: se_SecurityServicePolicyData(input.SecurityServicePolicyData, context),
2279
- }),
2280
- };
2281
- };
2282
- const se_PolicyOption = (input, context) => {
2283
- return {
2284
- ...(input.NetworkFirewallPolicy != null && {
2285
- NetworkFirewallPolicy: se_NetworkFirewallPolicy(input.NetworkFirewallPolicy, context),
2286
- }),
2287
- ...(input.ThirdPartyFirewallPolicy != null && {
2288
- ThirdPartyFirewallPolicy: se_ThirdPartyFirewallPolicy(input.ThirdPartyFirewallPolicy, context),
2289
- }),
2290
- };
2291
- };
2292
- const se_PreviousAppsList = (input, context) => {
2293
- return Object.entries(input).reduce((acc, [key, value]) => {
2294
- if (value === null) {
2295
- return acc;
2296
- }
2297
- acc[key] = se_AppsList(value, context);
2298
- return acc;
2299
- }, {});
2300
- };
2301
- const se_PreviousProtocolsList = (input, context) => {
2302
- return Object.entries(input).reduce((acc, [key, value]) => {
2303
- if (value === null) {
2304
- return acc;
2305
- }
2306
- acc[key] = se_ProtocolsList(value, context);
2307
- return acc;
2308
- }, {});
1993
+ const de_PolicyComplianceStatus = (output, context) => {
1994
+ return (0, smithy_client_1.take)(output, {
1995
+ EvaluationResults: smithy_client_1._json,
1996
+ IssueInfoMap: smithy_client_1._json,
1997
+ LastUpdated: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1998
+ MemberAccount: smithy_client_1.expectString,
1999
+ PolicyId: smithy_client_1.expectString,
2000
+ PolicyName: smithy_client_1.expectString,
2001
+ PolicyOwner: smithy_client_1.expectString,
2002
+ });
2309
2003
  };
2310
- const se_ProtocolsList = (input, context) => {
2311
- return input
2004
+ const de_PolicyComplianceStatusList = (output, context) => {
2005
+ const retVal = (output || [])
2312
2006
  .filter((e) => e != null)
2313
2007
  .map((entry) => {
2314
- return entry;
2008
+ return de_PolicyComplianceStatus(entry, context);
2315
2009
  });
2010
+ return retVal;
2316
2011
  };
2317
- const se_ProtocolsListData = (input, context) => {
2318
- return {
2319
- ...(input.CreateTime != null && { CreateTime: Math.round(input.CreateTime.getTime() / 1000) }),
2320
- ...(input.LastUpdateTime != null && { LastUpdateTime: Math.round(input.LastUpdateTime.getTime() / 1000) }),
2321
- ...(input.ListId != null && { ListId: input.ListId }),
2322
- ...(input.ListName != null && { ListName: input.ListName }),
2323
- ...(input.ListUpdateToken != null && { ListUpdateToken: input.ListUpdateToken }),
2324
- ...(input.PreviousProtocolsList != null && {
2325
- PreviousProtocolsList: se_PreviousProtocolsList(input.PreviousProtocolsList, context),
2326
- }),
2327
- ...(input.ProtocolsList != null && { ProtocolsList: se_ProtocolsList(input.ProtocolsList, context) }),
2328
- };
2329
- };
2330
- const se_PutAppsListRequest = (input, context) => {
2331
- return {
2332
- ...(input.AppsList != null && { AppsList: se_AppsListData(input.AppsList, context) }),
2333
- ...(input.TagList != null && { TagList: se_TagList(input.TagList, context) }),
2334
- };
2335
- };
2336
- const se_PutNotificationChannelRequest = (input, context) => {
2337
- return {
2338
- ...(input.SnsRoleName != null && { SnsRoleName: input.SnsRoleName }),
2339
- ...(input.SnsTopicArn != null && { SnsTopicArn: input.SnsTopicArn }),
2340
- };
2341
- };
2342
- const se_PutPolicyRequest = (input, context) => {
2343
- return {
2344
- ...(input.Policy != null && { Policy: se_Policy(input.Policy, context) }),
2345
- ...(input.TagList != null && { TagList: se_TagList(input.TagList, context) }),
2346
- };
2012
+ const de_ProtocolsListData = (output, context) => {
2013
+ return (0, smithy_client_1.take)(output, {
2014
+ CreateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2015
+ LastUpdateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2016
+ ListId: smithy_client_1.expectString,
2017
+ ListName: smithy_client_1.expectString,
2018
+ ListUpdateToken: smithy_client_1.expectString,
2019
+ PreviousProtocolsList: smithy_client_1._json,
2020
+ ProtocolsList: smithy_client_1._json,
2021
+ });
2347
2022
  };
2348
- const se_PutProtocolsListRequest = (input, context) => {
2349
- return {
2350
- ...(input.ProtocolsList != null && { ProtocolsList: se_ProtocolsListData(input.ProtocolsList, context) }),
2351
- ...(input.TagList != null && { TagList: se_TagList(input.TagList, context) }),
2352
- };
2023
+ const de_PutAppsListResponse = (output, context) => {
2024
+ return (0, smithy_client_1.take)(output, {
2025
+ AppsList: (_) => de_AppsListData(_, context),
2026
+ AppsListArn: smithy_client_1.expectString,
2027
+ });
2353
2028
  };
2354
- const se_PutResourceSetRequest = (input, context) => {
2355
- return {
2356
- ...(input.ResourceSet != null && { ResourceSet: se_ResourceSet(input.ResourceSet, context) }),
2357
- ...(input.TagList != null && { TagList: se_TagList(input.TagList, context) }),
2358
- };
2029
+ const de_PutProtocolsListResponse = (output, context) => {
2030
+ return (0, smithy_client_1.take)(output, {
2031
+ ProtocolsList: (_) => de_ProtocolsListData(_, context),
2032
+ ProtocolsListArn: smithy_client_1.expectString,
2033
+ });
2359
2034
  };
2360
- const se_ResourceSet = (input, context) => {
2361
- return {
2362
- ...(input.Description != null && { Description: input.Description }),
2363
- ...(input.Id != null && { Id: input.Id }),
2364
- ...(input.LastUpdateTime != null && { LastUpdateTime: Math.round(input.LastUpdateTime.getTime() / 1000) }),
2365
- ...(input.Name != null && { Name: input.Name }),
2366
- ...(input.ResourceTypeList != null && { ResourceTypeList: se_ResourceTypeList(input.ResourceTypeList, context) }),
2367
- ...(input.UpdateToken != null && { UpdateToken: input.UpdateToken }),
2368
- };
2035
+ const de_PutResourceSetResponse = (output, context) => {
2036
+ return (0, smithy_client_1.take)(output, {
2037
+ ResourceSet: (_) => de_ResourceSet(_, context),
2038
+ ResourceSetArn: smithy_client_1.expectString,
2039
+ });
2369
2040
  };
2370
- const se_ResourceSetIds = (input, context) => {
2371
- return input
2372
- .filter((e) => e != null)
2373
- .map((entry) => {
2374
- return entry;
2041
+ const de_ResourceSet = (output, context) => {
2042
+ return (0, smithy_client_1.take)(output, {
2043
+ Description: smithy_client_1.expectString,
2044
+ Id: smithy_client_1.expectString,
2045
+ LastUpdateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2046
+ Name: smithy_client_1.expectString,
2047
+ ResourceTypeList: smithy_client_1._json,
2048
+ UpdateToken: smithy_client_1.expectString,
2375
2049
  });
2376
2050
  };
2377
- const se_ResourceTag = (input, context) => {
2378
- return {
2379
- ...(input.Key != null && { Key: input.Key }),
2380
- ...(input.Value != null && { Value: input.Value }),
2381
- };
2051
+ const de_ResourceSetSummary = (output, context) => {
2052
+ return (0, smithy_client_1.take)(output, {
2053
+ Description: smithy_client_1.expectString,
2054
+ Id: smithy_client_1.expectString,
2055
+ LastUpdateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2056
+ Name: smithy_client_1.expectString,
2057
+ });
2382
2058
  };
2383
- const se_ResourceTags = (input, context) => {
2384
- return input
2059
+ const de_ResourceSetSummaryList = (output, context) => {
2060
+ const retVal = (output || [])
2385
2061
  .filter((e) => e != null)
2386
2062
  .map((entry) => {
2387
- return se_ResourceTag(entry, context);
2063
+ return de_ResourceSetSummary(entry, context);
2388
2064
  });
2065
+ return retVal;
2389
2066
  };
2390
- const se_ResourceTypeList = (input, context) => {
2391
- return input
2392
- .filter((e) => e != null)
2393
- .map((entry) => {
2394
- return entry;
2067
+ const de_ViolationDetail = (output, context) => {
2068
+ return (0, smithy_client_1.take)(output, {
2069
+ MemberAccount: smithy_client_1.expectString,
2070
+ PolicyId: smithy_client_1.expectString,
2071
+ ResourceDescription: smithy_client_1.expectString,
2072
+ ResourceId: smithy_client_1.expectString,
2073
+ ResourceTags: smithy_client_1._json,
2074
+ ResourceType: smithy_client_1.expectString,
2075
+ ResourceViolations: smithy_client_1._json,
2395
2076
  });
2396
2077
  };
2397
- const se_SecurityServicePolicyData = (input, context) => {
2398
- return {
2399
- ...(input.ManagedServiceData != null && { ManagedServiceData: input.ManagedServiceData }),
2400
- ...(input.PolicyOption != null && { PolicyOption: se_PolicyOption(input.PolicyOption, context) }),
2401
- ...(input.Type != null && { Type: input.Type }),
2402
- };
2403
- };
2404
- const se_Tag = (input, context) => {
2405
- return {
2406
- ...(input.Key != null && { Key: input.Key }),
2407
- ...(input.Value != null && { Value: input.Value }),
2408
- };
2409
- };
2410
- const se_TagKeyList = (input, context) => {
2411
- return input
2412
- .filter((e) => e != null)
2413
- .map((entry) => {
2414
- return entry;
2415
- });
2416
- };
2417
- const se_TagList = (input, context) => {
2418
- return input
2419
- .filter((e) => e != null)
2420
- .map((entry) => {
2421
- return se_Tag(entry, context);
2422
- });
2423
- };
2424
- const se_TagResourceRequest = (input, context) => {
2425
- return {
2426
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
2427
- ...(input.TagList != null && { TagList: se_TagList(input.TagList, context) }),
2428
- };
2429
- };
2430
- const se_ThirdPartyFirewallPolicy = (input, context) => {
2431
- return {
2432
- ...(input.FirewallDeploymentModel != null && { FirewallDeploymentModel: input.FirewallDeploymentModel }),
2433
- };
2434
- };
2435
- const se_UntagResourceRequest = (input, context) => {
2436
- return {
2437
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
2438
- ...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
2439
- };
2440
- };
2441
- const de_ActionTarget = (output, context) => {
2442
- return {
2443
- Description: (0, smithy_client_1.expectString)(output.Description),
2444
- ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
2445
- };
2446
- };
2447
- const de_App = (output, context) => {
2448
- return {
2449
- AppName: (0, smithy_client_1.expectString)(output.AppName),
2450
- Port: (0, smithy_client_1.expectLong)(output.Port),
2451
- Protocol: (0, smithy_client_1.expectString)(output.Protocol),
2452
- };
2453
- };
2454
- const de_AppsList = (output, context) => {
2455
- const retVal = (output || [])
2456
- .filter((e) => e != null)
2457
- .map((entry) => {
2458
- if (entry === null) {
2459
- return null;
2460
- }
2461
- return de_App(entry, context);
2462
- });
2463
- return retVal;
2464
- };
2465
- const de_AppsListData = (output, context) => {
2466
- return {
2467
- AppsList: output.AppsList != null ? de_AppsList(output.AppsList, context) : undefined,
2468
- CreateTime: output.CreateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateTime))) : undefined,
2469
- LastUpdateTime: output.LastUpdateTime != null
2470
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdateTime)))
2471
- : undefined,
2472
- ListId: (0, smithy_client_1.expectString)(output.ListId),
2473
- ListName: (0, smithy_client_1.expectString)(output.ListName),
2474
- ListUpdateToken: (0, smithy_client_1.expectString)(output.ListUpdateToken),
2475
- PreviousAppsList: output.PreviousAppsList != null ? de_PreviousAppsList(output.PreviousAppsList, context) : undefined,
2476
- };
2477
- };
2478
- const de_AppsListDataSummary = (output, context) => {
2479
- return {
2480
- AppsList: output.AppsList != null ? de_AppsList(output.AppsList, context) : undefined,
2481
- ListArn: (0, smithy_client_1.expectString)(output.ListArn),
2482
- ListId: (0, smithy_client_1.expectString)(output.ListId),
2483
- ListName: (0, smithy_client_1.expectString)(output.ListName),
2484
- };
2485
- };
2486
- const de_AppsListsData = (output, context) => {
2487
- const retVal = (output || [])
2488
- .filter((e) => e != null)
2489
- .map((entry) => {
2490
- if (entry === null) {
2491
- return null;
2492
- }
2493
- return de_AppsListDataSummary(entry, context);
2494
- });
2495
- return retVal;
2496
- };
2497
- const de_AssociateThirdPartyFirewallResponse = (output, context) => {
2498
- return {
2499
- ThirdPartyFirewallStatus: (0, smithy_client_1.expectString)(output.ThirdPartyFirewallStatus),
2500
- };
2501
- };
2502
- const de_AwsEc2InstanceViolation = (output, context) => {
2503
- return {
2504
- AwsEc2NetworkInterfaceViolations: output.AwsEc2NetworkInterfaceViolations != null
2505
- ? de_AwsEc2NetworkInterfaceViolations(output.AwsEc2NetworkInterfaceViolations, context)
2506
- : undefined,
2507
- ViolationTarget: (0, smithy_client_1.expectString)(output.ViolationTarget),
2508
- };
2509
- };
2510
- const de_AwsEc2NetworkInterfaceViolation = (output, context) => {
2511
- return {
2512
- ViolatingSecurityGroups: output.ViolatingSecurityGroups != null ? de_ResourceIdList(output.ViolatingSecurityGroups, context) : undefined,
2513
- ViolationTarget: (0, smithy_client_1.expectString)(output.ViolationTarget),
2514
- };
2515
- };
2516
- const de_AwsEc2NetworkInterfaceViolations = (output, context) => {
2517
- const retVal = (output || [])
2518
- .filter((e) => e != null)
2519
- .map((entry) => {
2520
- if (entry === null) {
2521
- return null;
2522
- }
2523
- return de_AwsEc2NetworkInterfaceViolation(entry, context);
2524
- });
2525
- return retVal;
2526
- };
2527
- const de_AwsVPCSecurityGroupViolation = (output, context) => {
2528
- return {
2529
- PartialMatches: output.PartialMatches != null ? de_PartialMatches(output.PartialMatches, context) : undefined,
2530
- PossibleSecurityGroupRemediationActions: output.PossibleSecurityGroupRemediationActions != null
2531
- ? de_SecurityGroupRemediationActions(output.PossibleSecurityGroupRemediationActions, context)
2532
- : undefined,
2533
- ViolationTarget: (0, smithy_client_1.expectString)(output.ViolationTarget),
2534
- ViolationTargetDescription: (0, smithy_client_1.expectString)(output.ViolationTargetDescription),
2535
- };
2536
- };
2537
- const de_BatchAssociateResourceResponse = (output, context) => {
2538
- return {
2539
- FailedItems: output.FailedItems != null ? de_FailedItemList(output.FailedItems, context) : undefined,
2540
- ResourceSetIdentifier: (0, smithy_client_1.expectString)(output.ResourceSetIdentifier),
2541
- };
2542
- };
2543
- const de_BatchDisassociateResourceResponse = (output, context) => {
2544
- return {
2545
- FailedItems: output.FailedItems != null ? de_FailedItemList(output.FailedItems, context) : undefined,
2546
- ResourceSetIdentifier: (0, smithy_client_1.expectString)(output.ResourceSetIdentifier),
2547
- };
2548
- };
2549
- const de_ComplianceViolator = (output, context) => {
2550
- return {
2551
- Metadata: output.Metadata != null ? de_ComplianceViolatorMetadata(output.Metadata, context) : undefined,
2552
- ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
2553
- ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
2554
- ViolationReason: (0, smithy_client_1.expectString)(output.ViolationReason),
2555
- };
2556
- };
2557
- const de_ComplianceViolatorMetadata = (output, context) => {
2558
- return Object.entries(output).reduce((acc, [key, value]) => {
2559
- if (value === null) {
2560
- return acc;
2561
- }
2562
- acc[key] = (0, smithy_client_1.expectString)(value);
2563
- return acc;
2564
- }, {});
2565
- };
2566
- const de_ComplianceViolators = (output, context) => {
2567
- const retVal = (output || [])
2568
- .filter((e) => e != null)
2569
- .map((entry) => {
2570
- if (entry === null) {
2571
- return null;
2572
- }
2573
- return de_ComplianceViolator(entry, context);
2574
- });
2575
- return retVal;
2576
- };
2577
- const de_CustomerPolicyScopeIdList = (output, context) => {
2578
- const retVal = (output || [])
2579
- .filter((e) => e != null)
2580
- .map((entry) => {
2581
- if (entry === null) {
2582
- return null;
2583
- }
2584
- return (0, smithy_client_1.expectString)(entry);
2585
- });
2586
- return retVal;
2587
- };
2588
- const de_CustomerPolicyScopeMap = (output, context) => {
2589
- return Object.entries(output).reduce((acc, [key, value]) => {
2590
- if (value === null) {
2591
- return acc;
2592
- }
2593
- acc[key] = de_CustomerPolicyScopeIdList(value, context);
2594
- return acc;
2595
- }, {});
2596
- };
2597
- const de_DisassociateThirdPartyFirewallResponse = (output, context) => {
2598
- return {
2599
- ThirdPartyFirewallStatus: (0, smithy_client_1.expectString)(output.ThirdPartyFirewallStatus),
2600
- };
2601
- };
2602
- const de_DiscoveredResource = (output, context) => {
2603
- return {
2604
- AccountId: (0, smithy_client_1.expectString)(output.AccountId),
2605
- Name: (0, smithy_client_1.expectString)(output.Name),
2606
- Type: (0, smithy_client_1.expectString)(output.Type),
2607
- URI: (0, smithy_client_1.expectString)(output.URI),
2608
- };
2609
- };
2610
- const de_DiscoveredResourceList = (output, context) => {
2611
- const retVal = (output || [])
2612
- .filter((e) => e != null)
2613
- .map((entry) => {
2614
- if (entry === null) {
2615
- return null;
2616
- }
2617
- return de_DiscoveredResource(entry, context);
2618
- });
2619
- return retVal;
2620
- };
2621
- const de_DnsDuplicateRuleGroupViolation = (output, context) => {
2622
- return {
2623
- ViolationTarget: (0, smithy_client_1.expectString)(output.ViolationTarget),
2624
- ViolationTargetDescription: (0, smithy_client_1.expectString)(output.ViolationTargetDescription),
2625
- };
2626
- };
2627
- const de_DnsRuleGroupLimitExceededViolation = (output, context) => {
2628
- return {
2629
- NumberOfRuleGroupsAlreadyAssociated: (0, smithy_client_1.expectInt32)(output.NumberOfRuleGroupsAlreadyAssociated),
2630
- ViolationTarget: (0, smithy_client_1.expectString)(output.ViolationTarget),
2631
- ViolationTargetDescription: (0, smithy_client_1.expectString)(output.ViolationTargetDescription),
2632
- };
2633
- };
2634
- const de_DnsRuleGroupPriorities = (output, context) => {
2635
- const retVal = (output || [])
2636
- .filter((e) => e != null)
2637
- .map((entry) => {
2638
- if (entry === null) {
2639
- return null;
2640
- }
2641
- return (0, smithy_client_1.expectInt32)(entry);
2642
- });
2643
- return retVal;
2644
- };
2645
- const de_DnsRuleGroupPriorityConflictViolation = (output, context) => {
2646
- return {
2647
- ConflictingPolicyId: (0, smithy_client_1.expectString)(output.ConflictingPolicyId),
2648
- ConflictingPriority: (0, smithy_client_1.expectInt32)(output.ConflictingPriority),
2649
- UnavailablePriorities: output.UnavailablePriorities != null
2650
- ? de_DnsRuleGroupPriorities(output.UnavailablePriorities, context)
2651
- : undefined,
2652
- ViolationTarget: (0, smithy_client_1.expectString)(output.ViolationTarget),
2653
- ViolationTargetDescription: (0, smithy_client_1.expectString)(output.ViolationTargetDescription),
2654
- };
2655
- };
2656
- const de_EC2AssociateRouteTableAction = (output, context) => {
2657
- return {
2658
- Description: (0, smithy_client_1.expectString)(output.Description),
2659
- GatewayId: output.GatewayId != null ? de_ActionTarget(output.GatewayId, context) : undefined,
2660
- RouteTableId: output.RouteTableId != null ? de_ActionTarget(output.RouteTableId, context) : undefined,
2661
- SubnetId: output.SubnetId != null ? de_ActionTarget(output.SubnetId, context) : undefined,
2662
- };
2663
- };
2664
- const de_EC2CopyRouteTableAction = (output, context) => {
2665
- return {
2666
- Description: (0, smithy_client_1.expectString)(output.Description),
2667
- RouteTableId: output.RouteTableId != null ? de_ActionTarget(output.RouteTableId, context) : undefined,
2668
- VpcId: output.VpcId != null ? de_ActionTarget(output.VpcId, context) : undefined,
2669
- };
2670
- };
2671
- const de_EC2CreateRouteAction = (output, context) => {
2672
- return {
2673
- Description: (0, smithy_client_1.expectString)(output.Description),
2674
- DestinationCidrBlock: (0, smithy_client_1.expectString)(output.DestinationCidrBlock),
2675
- DestinationIpv6CidrBlock: (0, smithy_client_1.expectString)(output.DestinationIpv6CidrBlock),
2676
- DestinationPrefixListId: (0, smithy_client_1.expectString)(output.DestinationPrefixListId),
2677
- GatewayId: output.GatewayId != null ? de_ActionTarget(output.GatewayId, context) : undefined,
2678
- RouteTableId: output.RouteTableId != null ? de_ActionTarget(output.RouteTableId, context) : undefined,
2679
- VpcEndpointId: output.VpcEndpointId != null ? de_ActionTarget(output.VpcEndpointId, context) : undefined,
2680
- };
2681
- };
2682
- const de_EC2CreateRouteTableAction = (output, context) => {
2683
- return {
2684
- Description: (0, smithy_client_1.expectString)(output.Description),
2685
- VpcId: output.VpcId != null ? de_ActionTarget(output.VpcId, context) : undefined,
2686
- };
2687
- };
2688
- const de_EC2DeleteRouteAction = (output, context) => {
2689
- return {
2690
- Description: (0, smithy_client_1.expectString)(output.Description),
2691
- DestinationCidrBlock: (0, smithy_client_1.expectString)(output.DestinationCidrBlock),
2692
- DestinationIpv6CidrBlock: (0, smithy_client_1.expectString)(output.DestinationIpv6CidrBlock),
2693
- DestinationPrefixListId: (0, smithy_client_1.expectString)(output.DestinationPrefixListId),
2694
- RouteTableId: output.RouteTableId != null ? de_ActionTarget(output.RouteTableId, context) : undefined,
2695
- };
2696
- };
2697
- const de_EC2ReplaceRouteAction = (output, context) => {
2698
- return {
2699
- Description: (0, smithy_client_1.expectString)(output.Description),
2700
- DestinationCidrBlock: (0, smithy_client_1.expectString)(output.DestinationCidrBlock),
2701
- DestinationIpv6CidrBlock: (0, smithy_client_1.expectString)(output.DestinationIpv6CidrBlock),
2702
- DestinationPrefixListId: (0, smithy_client_1.expectString)(output.DestinationPrefixListId),
2703
- GatewayId: output.GatewayId != null ? de_ActionTarget(output.GatewayId, context) : undefined,
2704
- RouteTableId: output.RouteTableId != null ? de_ActionTarget(output.RouteTableId, context) : undefined,
2705
- };
2706
- };
2707
- const de_EC2ReplaceRouteTableAssociationAction = (output, context) => {
2708
- return {
2709
- AssociationId: output.AssociationId != null ? de_ActionTarget(output.AssociationId, context) : undefined,
2710
- Description: (0, smithy_client_1.expectString)(output.Description),
2711
- RouteTableId: output.RouteTableId != null ? de_ActionTarget(output.RouteTableId, context) : undefined,
2712
- };
2713
- };
2714
- const de_EvaluationResult = (output, context) => {
2715
- return {
2716
- ComplianceStatus: (0, smithy_client_1.expectString)(output.ComplianceStatus),
2717
- EvaluationLimitExceeded: (0, smithy_client_1.expectBoolean)(output.EvaluationLimitExceeded),
2718
- ViolatorCount: (0, smithy_client_1.expectLong)(output.ViolatorCount),
2719
- };
2720
- };
2721
- const de_EvaluationResults = (output, context) => {
2722
- const retVal = (output || [])
2723
- .filter((e) => e != null)
2724
- .map((entry) => {
2725
- if (entry === null) {
2726
- return null;
2727
- }
2728
- return de_EvaluationResult(entry, context);
2729
- });
2730
- return retVal;
2731
- };
2732
- const de_ExpectedRoute = (output, context) => {
2733
- return {
2734
- AllowedTargets: output.AllowedTargets != null ? de_LengthBoundedStringList(output.AllowedTargets, context) : undefined,
2735
- ContributingSubnets: output.ContributingSubnets != null ? de_ResourceIdList(output.ContributingSubnets, context) : undefined,
2736
- IpV4Cidr: (0, smithy_client_1.expectString)(output.IpV4Cidr),
2737
- IpV6Cidr: (0, smithy_client_1.expectString)(output.IpV6Cidr),
2738
- PrefixListId: (0, smithy_client_1.expectString)(output.PrefixListId),
2739
- RouteTableId: (0, smithy_client_1.expectString)(output.RouteTableId),
2740
- };
2741
- };
2742
- const de_ExpectedRoutes = (output, context) => {
2743
- const retVal = (output || [])
2744
- .filter((e) => e != null)
2745
- .map((entry) => {
2746
- if (entry === null) {
2747
- return null;
2748
- }
2749
- return de_ExpectedRoute(entry, context);
2750
- });
2751
- return retVal;
2752
- };
2753
- const de_FailedItem = (output, context) => {
2754
- return {
2755
- Reason: (0, smithy_client_1.expectString)(output.Reason),
2756
- URI: (0, smithy_client_1.expectString)(output.URI),
2757
- };
2758
- };
2759
- const de_FailedItemList = (output, context) => {
2760
- const retVal = (output || [])
2761
- .filter((e) => e != null)
2762
- .map((entry) => {
2763
- if (entry === null) {
2764
- return null;
2765
- }
2766
- return de_FailedItem(entry, context);
2767
- });
2768
- return retVal;
2769
- };
2770
- const de_FirewallSubnetIsOutOfScopeViolation = (output, context) => {
2771
- return {
2772
- FirewallSubnetId: (0, smithy_client_1.expectString)(output.FirewallSubnetId),
2773
- SubnetAvailabilityZone: (0, smithy_client_1.expectString)(output.SubnetAvailabilityZone),
2774
- SubnetAvailabilityZoneId: (0, smithy_client_1.expectString)(output.SubnetAvailabilityZoneId),
2775
- VpcEndpointId: (0, smithy_client_1.expectString)(output.VpcEndpointId),
2776
- VpcId: (0, smithy_client_1.expectString)(output.VpcId),
2777
- };
2778
- };
2779
- const de_FirewallSubnetMissingVPCEndpointViolation = (output, context) => {
2780
- return {
2781
- FirewallSubnetId: (0, smithy_client_1.expectString)(output.FirewallSubnetId),
2782
- SubnetAvailabilityZone: (0, smithy_client_1.expectString)(output.SubnetAvailabilityZone),
2783
- SubnetAvailabilityZoneId: (0, smithy_client_1.expectString)(output.SubnetAvailabilityZoneId),
2784
- VpcId: (0, smithy_client_1.expectString)(output.VpcId),
2785
- };
2786
- };
2787
- const de_FMSPolicyUpdateFirewallCreationConfigAction = (output, context) => {
2788
- return {
2789
- Description: (0, smithy_client_1.expectString)(output.Description),
2790
- FirewallCreationConfig: (0, smithy_client_1.expectString)(output.FirewallCreationConfig),
2791
- };
2792
- };
2793
- const de_GetAdminAccountResponse = (output, context) => {
2794
- return {
2795
- AdminAccount: (0, smithy_client_1.expectString)(output.AdminAccount),
2796
- RoleStatus: (0, smithy_client_1.expectString)(output.RoleStatus),
2797
- };
2798
- };
2799
- const de_GetAppsListResponse = (output, context) => {
2800
- return {
2801
- AppsList: output.AppsList != null ? de_AppsListData(output.AppsList, context) : undefined,
2802
- AppsListArn: (0, smithy_client_1.expectString)(output.AppsListArn),
2803
- };
2804
- };
2805
- const de_GetComplianceDetailResponse = (output, context) => {
2806
- return {
2807
- PolicyComplianceDetail: output.PolicyComplianceDetail != null
2808
- ? de_PolicyComplianceDetail(output.PolicyComplianceDetail, context)
2809
- : undefined,
2810
- };
2811
- };
2812
- const de_GetNotificationChannelResponse = (output, context) => {
2813
- return {
2814
- SnsRoleName: (0, smithy_client_1.expectString)(output.SnsRoleName),
2815
- SnsTopicArn: (0, smithy_client_1.expectString)(output.SnsTopicArn),
2816
- };
2817
- };
2818
- const de_GetPolicyResponse = (output, context) => {
2819
- return {
2820
- Policy: output.Policy != null ? de_Policy(output.Policy, context) : undefined,
2821
- PolicyArn: (0, smithy_client_1.expectString)(output.PolicyArn),
2822
- };
2823
- };
2824
- const de_GetProtectionStatusResponse = (output, context) => {
2825
- return {
2826
- AdminAccountId: (0, smithy_client_1.expectString)(output.AdminAccountId),
2827
- Data: (0, smithy_client_1.expectString)(output.Data),
2828
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2829
- ServiceType: (0, smithy_client_1.expectString)(output.ServiceType),
2830
- };
2831
- };
2832
- const de_GetProtocolsListResponse = (output, context) => {
2833
- return {
2834
- ProtocolsList: output.ProtocolsList != null ? de_ProtocolsListData(output.ProtocolsList, context) : undefined,
2835
- ProtocolsListArn: (0, smithy_client_1.expectString)(output.ProtocolsListArn),
2836
- };
2837
- };
2838
- const de_GetResourceSetResponse = (output, context) => {
2839
- return {
2840
- ResourceSet: output.ResourceSet != null ? de_ResourceSet(output.ResourceSet, context) : undefined,
2841
- ResourceSetArn: (0, smithy_client_1.expectString)(output.ResourceSetArn),
2842
- };
2843
- };
2844
- const de_GetThirdPartyFirewallAssociationStatusResponse = (output, context) => {
2845
- return {
2846
- MarketplaceOnboardingStatus: (0, smithy_client_1.expectString)(output.MarketplaceOnboardingStatus),
2847
- ThirdPartyFirewallStatus: (0, smithy_client_1.expectString)(output.ThirdPartyFirewallStatus),
2848
- };
2849
- };
2850
- const de_GetViolationDetailsResponse = (output, context) => {
2851
- return {
2852
- ViolationDetail: output.ViolationDetail != null ? de_ViolationDetail(output.ViolationDetail, context) : undefined,
2853
- };
2854
- };
2855
- const de_InternalErrorException = (output, context) => {
2856
- return {
2857
- Message: (0, smithy_client_1.expectString)(output.Message),
2858
- };
2859
- };
2860
- const de_InvalidInputException = (output, context) => {
2861
- return {
2862
- Message: (0, smithy_client_1.expectString)(output.Message),
2863
- };
2864
- };
2865
- const de_InvalidOperationException = (output, context) => {
2866
- return {
2867
- Message: (0, smithy_client_1.expectString)(output.Message),
2868
- };
2869
- };
2870
- const de_InvalidTypeException = (output, context) => {
2871
- return {
2872
- Message: (0, smithy_client_1.expectString)(output.Message),
2873
- };
2874
- };
2875
- const de_IssueInfoMap = (output, context) => {
2876
- return Object.entries(output).reduce((acc, [key, value]) => {
2877
- if (value === null) {
2878
- return acc;
2879
- }
2880
- acc[key] = (0, smithy_client_1.expectString)(value);
2881
- return acc;
2882
- }, {});
2883
- };
2884
- const de_LengthBoundedStringList = (output, context) => {
2885
- const retVal = (output || [])
2886
- .filter((e) => e != null)
2887
- .map((entry) => {
2888
- if (entry === null) {
2889
- return null;
2890
- }
2891
- return (0, smithy_client_1.expectString)(entry);
2892
- });
2893
- return retVal;
2894
- };
2895
- const de_LimitExceededException = (output, context) => {
2896
- return {
2897
- Message: (0, smithy_client_1.expectString)(output.Message),
2898
- };
2899
- };
2900
- const de_ListAppsListsResponse = (output, context) => {
2901
- return {
2902
- AppsLists: output.AppsLists != null ? de_AppsListsData(output.AppsLists, context) : undefined,
2903
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2904
- };
2905
- };
2906
- const de_ListComplianceStatusResponse = (output, context) => {
2907
- return {
2908
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2909
- PolicyComplianceStatusList: output.PolicyComplianceStatusList != null
2910
- ? de_PolicyComplianceStatusList(output.PolicyComplianceStatusList, context)
2911
- : undefined,
2912
- };
2913
- };
2914
- const de_ListDiscoveredResourcesResponse = (output, context) => {
2915
- return {
2916
- Items: output.Items != null ? de_DiscoveredResourceList(output.Items, context) : undefined,
2917
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2918
- };
2919
- };
2920
- const de_ListMemberAccountsResponse = (output, context) => {
2921
- return {
2922
- MemberAccounts: output.MemberAccounts != null ? de_MemberAccounts(output.MemberAccounts, context) : undefined,
2923
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2924
- };
2925
- };
2926
- const de_ListPoliciesResponse = (output, context) => {
2927
- return {
2928
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2929
- PolicyList: output.PolicyList != null ? de_PolicySummaryList(output.PolicyList, context) : undefined,
2930
- };
2931
- };
2932
- const de_ListProtocolsListsResponse = (output, context) => {
2933
- return {
2934
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2935
- ProtocolsLists: output.ProtocolsLists != null ? de_ProtocolsListsData(output.ProtocolsLists, context) : undefined,
2936
- };
2937
- };
2938
- const de_ListResourceSetResourcesResponse = (output, context) => {
2939
- return {
2940
- Items: output.Items != null ? de_ResourceList(output.Items, context) : undefined,
2941
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2942
- };
2943
- };
2944
- const de_ListResourceSetsResponse = (output, context) => {
2945
- return {
2946
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2947
- ResourceSets: output.ResourceSets != null ? de_ResourceSetSummaryList(output.ResourceSets, context) : undefined,
2948
- };
2949
- };
2950
- const de_ListTagsForResourceResponse = (output, context) => {
2951
- return {
2952
- TagList: output.TagList != null ? de_TagList(output.TagList, context) : undefined,
2953
- };
2954
- };
2955
- const de_ListThirdPartyFirewallFirewallPoliciesResponse = (output, context) => {
2956
- return {
2957
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2958
- ThirdPartyFirewallFirewallPolicies: output.ThirdPartyFirewallFirewallPolicies != null
2959
- ? de_ThirdPartyFirewallFirewallPolicies(output.ThirdPartyFirewallFirewallPolicies, context)
2960
- : undefined,
2961
- };
2962
- };
2963
- const de_MemberAccounts = (output, context) => {
2964
- const retVal = (output || [])
2965
- .filter((e) => e != null)
2966
- .map((entry) => {
2967
- if (entry === null) {
2968
- return null;
2969
- }
2970
- return (0, smithy_client_1.expectString)(entry);
2971
- });
2972
- return retVal;
2973
- };
2974
- const de_NetworkFirewallActionList = (output, context) => {
2975
- const retVal = (output || [])
2976
- .filter((e) => e != null)
2977
- .map((entry) => {
2978
- if (entry === null) {
2979
- return null;
2980
- }
2981
- return (0, smithy_client_1.expectString)(entry);
2982
- });
2983
- return retVal;
2984
- };
2985
- const de_NetworkFirewallBlackHoleRouteDetectedViolation = (output, context) => {
2986
- return {
2987
- RouteTableId: (0, smithy_client_1.expectString)(output.RouteTableId),
2988
- ViolatingRoutes: output.ViolatingRoutes != null ? de_Routes(output.ViolatingRoutes, context) : undefined,
2989
- ViolationTarget: (0, smithy_client_1.expectString)(output.ViolationTarget),
2990
- VpcId: (0, smithy_client_1.expectString)(output.VpcId),
2991
- };
2992
- };
2993
- const de_NetworkFirewallInternetTrafficNotInspectedViolation = (output, context) => {
2994
- return {
2995
- ActualFirewallSubnetRoutes: output.ActualFirewallSubnetRoutes != null ? de_Routes(output.ActualFirewallSubnetRoutes, context) : undefined,
2996
- ActualInternetGatewayRoutes: output.ActualInternetGatewayRoutes != null ? de_Routes(output.ActualInternetGatewayRoutes, context) : undefined,
2997
- CurrentFirewallSubnetRouteTable: (0, smithy_client_1.expectString)(output.CurrentFirewallSubnetRouteTable),
2998
- CurrentInternetGatewayRouteTable: (0, smithy_client_1.expectString)(output.CurrentInternetGatewayRouteTable),
2999
- ExpectedFirewallEndpoint: (0, smithy_client_1.expectString)(output.ExpectedFirewallEndpoint),
3000
- ExpectedFirewallSubnetRoutes: output.ExpectedFirewallSubnetRoutes != null
3001
- ? de_ExpectedRoutes(output.ExpectedFirewallSubnetRoutes, context)
3002
- : undefined,
3003
- ExpectedInternetGatewayRoutes: output.ExpectedInternetGatewayRoutes != null
3004
- ? de_ExpectedRoutes(output.ExpectedInternetGatewayRoutes, context)
3005
- : undefined,
3006
- FirewallSubnetId: (0, smithy_client_1.expectString)(output.FirewallSubnetId),
3007
- InternetGatewayId: (0, smithy_client_1.expectString)(output.InternetGatewayId),
3008
- IsRouteTableUsedInDifferentAZ: (0, smithy_client_1.expectBoolean)(output.IsRouteTableUsedInDifferentAZ),
3009
- RouteTableId: (0, smithy_client_1.expectString)(output.RouteTableId),
3010
- SubnetAvailabilityZone: (0, smithy_client_1.expectString)(output.SubnetAvailabilityZone),
3011
- SubnetId: (0, smithy_client_1.expectString)(output.SubnetId),
3012
- ViolatingRoutes: output.ViolatingRoutes != null ? de_Routes(output.ViolatingRoutes, context) : undefined,
3013
- VpcId: (0, smithy_client_1.expectString)(output.VpcId),
3014
- };
3015
- };
3016
- const de_NetworkFirewallInvalidRouteConfigurationViolation = (output, context) => {
3017
- return {
3018
- ActualFirewallEndpoint: (0, smithy_client_1.expectString)(output.ActualFirewallEndpoint),
3019
- ActualFirewallSubnetId: (0, smithy_client_1.expectString)(output.ActualFirewallSubnetId),
3020
- ActualFirewallSubnetRoutes: output.ActualFirewallSubnetRoutes != null ? de_Routes(output.ActualFirewallSubnetRoutes, context) : undefined,
3021
- ActualInternetGatewayRoutes: output.ActualInternetGatewayRoutes != null ? de_Routes(output.ActualInternetGatewayRoutes, context) : undefined,
3022
- AffectedSubnets: output.AffectedSubnets != null ? de_ResourceIdList(output.AffectedSubnets, context) : undefined,
3023
- CurrentFirewallSubnetRouteTable: (0, smithy_client_1.expectString)(output.CurrentFirewallSubnetRouteTable),
3024
- CurrentInternetGatewayRouteTable: (0, smithy_client_1.expectString)(output.CurrentInternetGatewayRouteTable),
3025
- ExpectedFirewallEndpoint: (0, smithy_client_1.expectString)(output.ExpectedFirewallEndpoint),
3026
- ExpectedFirewallSubnetId: (0, smithy_client_1.expectString)(output.ExpectedFirewallSubnetId),
3027
- ExpectedFirewallSubnetRoutes: output.ExpectedFirewallSubnetRoutes != null
3028
- ? de_ExpectedRoutes(output.ExpectedFirewallSubnetRoutes, context)
3029
- : undefined,
3030
- ExpectedInternetGatewayRoutes: output.ExpectedInternetGatewayRoutes != null
3031
- ? de_ExpectedRoutes(output.ExpectedInternetGatewayRoutes, context)
3032
- : undefined,
3033
- InternetGatewayId: (0, smithy_client_1.expectString)(output.InternetGatewayId),
3034
- IsRouteTableUsedInDifferentAZ: (0, smithy_client_1.expectBoolean)(output.IsRouteTableUsedInDifferentAZ),
3035
- RouteTableId: (0, smithy_client_1.expectString)(output.RouteTableId),
3036
- ViolatingRoute: output.ViolatingRoute != null ? de_Route(output.ViolatingRoute, context) : undefined,
3037
- VpcId: (0, smithy_client_1.expectString)(output.VpcId),
3038
- };
3039
- };
3040
- const de_NetworkFirewallMissingExpectedRoutesViolation = (output, context) => {
3041
- return {
3042
- ExpectedRoutes: output.ExpectedRoutes != null ? de_ExpectedRoutes(output.ExpectedRoutes, context) : undefined,
3043
- ViolationTarget: (0, smithy_client_1.expectString)(output.ViolationTarget),
3044
- VpcId: (0, smithy_client_1.expectString)(output.VpcId),
3045
- };
3046
- };
3047
- const de_NetworkFirewallMissingExpectedRTViolation = (output, context) => {
3048
- return {
3049
- AvailabilityZone: (0, smithy_client_1.expectString)(output.AvailabilityZone),
3050
- CurrentRouteTable: (0, smithy_client_1.expectString)(output.CurrentRouteTable),
3051
- ExpectedRouteTable: (0, smithy_client_1.expectString)(output.ExpectedRouteTable),
3052
- VPC: (0, smithy_client_1.expectString)(output.VPC),
3053
- ViolationTarget: (0, smithy_client_1.expectString)(output.ViolationTarget),
3054
- };
3055
- };
3056
- const de_NetworkFirewallMissingFirewallViolation = (output, context) => {
3057
- return {
3058
- AvailabilityZone: (0, smithy_client_1.expectString)(output.AvailabilityZone),
3059
- TargetViolationReason: (0, smithy_client_1.expectString)(output.TargetViolationReason),
3060
- VPC: (0, smithy_client_1.expectString)(output.VPC),
3061
- ViolationTarget: (0, smithy_client_1.expectString)(output.ViolationTarget),
3062
- };
3063
- };
3064
- const de_NetworkFirewallMissingSubnetViolation = (output, context) => {
3065
- return {
3066
- AvailabilityZone: (0, smithy_client_1.expectString)(output.AvailabilityZone),
3067
- TargetViolationReason: (0, smithy_client_1.expectString)(output.TargetViolationReason),
3068
- VPC: (0, smithy_client_1.expectString)(output.VPC),
3069
- ViolationTarget: (0, smithy_client_1.expectString)(output.ViolationTarget),
3070
- };
3071
- };
3072
- const de_NetworkFirewallPolicy = (output, context) => {
3073
- return {
3074
- FirewallDeploymentModel: (0, smithy_client_1.expectString)(output.FirewallDeploymentModel),
3075
- };
3076
- };
3077
- const de_NetworkFirewallPolicyDescription = (output, context) => {
3078
- return {
3079
- StatefulDefaultActions: output.StatefulDefaultActions != null
3080
- ? de_NetworkFirewallActionList(output.StatefulDefaultActions, context)
3081
- : undefined,
3082
- StatefulEngineOptions: output.StatefulEngineOptions != null
3083
- ? de_StatefulEngineOptions(output.StatefulEngineOptions, context)
3084
- : undefined,
3085
- StatefulRuleGroups: output.StatefulRuleGroups != null ? de_StatefulRuleGroupList(output.StatefulRuleGroups, context) : undefined,
3086
- StatelessCustomActions: output.StatelessCustomActions != null
3087
- ? de_NetworkFirewallActionList(output.StatelessCustomActions, context)
3088
- : undefined,
3089
- StatelessDefaultActions: output.StatelessDefaultActions != null
3090
- ? de_NetworkFirewallActionList(output.StatelessDefaultActions, context)
3091
- : undefined,
3092
- StatelessFragmentDefaultActions: output.StatelessFragmentDefaultActions != null
3093
- ? de_NetworkFirewallActionList(output.StatelessFragmentDefaultActions, context)
3094
- : undefined,
3095
- StatelessRuleGroups: output.StatelessRuleGroups != null ? de_StatelessRuleGroupList(output.StatelessRuleGroups, context) : undefined,
3096
- };
3097
- };
3098
- const de_NetworkFirewallPolicyModifiedViolation = (output, context) => {
3099
- return {
3100
- CurrentPolicyDescription: output.CurrentPolicyDescription != null
3101
- ? de_NetworkFirewallPolicyDescription(output.CurrentPolicyDescription, context)
3102
- : undefined,
3103
- ExpectedPolicyDescription: output.ExpectedPolicyDescription != null
3104
- ? de_NetworkFirewallPolicyDescription(output.ExpectedPolicyDescription, context)
3105
- : undefined,
3106
- ViolationTarget: (0, smithy_client_1.expectString)(output.ViolationTarget),
3107
- };
3108
- };
3109
- const de_NetworkFirewallStatefulRuleGroupOverride = (output, context) => {
3110
- return {
3111
- Action: (0, smithy_client_1.expectString)(output.Action),
3112
- };
3113
- };
3114
- const de_NetworkFirewallUnexpectedFirewallRoutesViolation = (output, context) => {
3115
- return {
3116
- FirewallEndpoint: (0, smithy_client_1.expectString)(output.FirewallEndpoint),
3117
- FirewallSubnetId: (0, smithy_client_1.expectString)(output.FirewallSubnetId),
3118
- RouteTableId: (0, smithy_client_1.expectString)(output.RouteTableId),
3119
- ViolatingRoutes: output.ViolatingRoutes != null ? de_Routes(output.ViolatingRoutes, context) : undefined,
3120
- VpcId: (0, smithy_client_1.expectString)(output.VpcId),
3121
- };
3122
- };
3123
- const de_NetworkFirewallUnexpectedGatewayRoutesViolation = (output, context) => {
3124
- return {
3125
- GatewayId: (0, smithy_client_1.expectString)(output.GatewayId),
3126
- RouteTableId: (0, smithy_client_1.expectString)(output.RouteTableId),
3127
- ViolatingRoutes: output.ViolatingRoutes != null ? de_Routes(output.ViolatingRoutes, context) : undefined,
3128
- VpcId: (0, smithy_client_1.expectString)(output.VpcId),
3129
- };
3130
- };
3131
- const de_OrderedRemediationActions = (output, context) => {
3132
- const retVal = (output || [])
3133
- .filter((e) => e != null)
3134
- .map((entry) => {
3135
- if (entry === null) {
3136
- return null;
3137
- }
3138
- return de_RemediationActionWithOrder(entry, context);
3139
- });
3140
- return retVal;
3141
- };
3142
- const de_PartialMatch = (output, context) => {
3143
- return {
3144
- Reference: (0, smithy_client_1.expectString)(output.Reference),
3145
- TargetViolationReasons: output.TargetViolationReasons != null
3146
- ? de_TargetViolationReasons(output.TargetViolationReasons, context)
3147
- : undefined,
3148
- };
3149
- };
3150
- const de_PartialMatches = (output, context) => {
3151
- const retVal = (output || [])
3152
- .filter((e) => e != null)
3153
- .map((entry) => {
3154
- if (entry === null) {
3155
- return null;
3156
- }
3157
- return de_PartialMatch(entry, context);
3158
- });
3159
- return retVal;
3160
- };
3161
- const de_Policy = (output, context) => {
3162
- return {
3163
- DeleteUnusedFMManagedResources: (0, smithy_client_1.expectBoolean)(output.DeleteUnusedFMManagedResources),
3164
- ExcludeMap: output.ExcludeMap != null ? de_CustomerPolicyScopeMap(output.ExcludeMap, context) : undefined,
3165
- ExcludeResourceTags: (0, smithy_client_1.expectBoolean)(output.ExcludeResourceTags),
3166
- IncludeMap: output.IncludeMap != null ? de_CustomerPolicyScopeMap(output.IncludeMap, context) : undefined,
3167
- PolicyDescription: (0, smithy_client_1.expectString)(output.PolicyDescription),
3168
- PolicyId: (0, smithy_client_1.expectString)(output.PolicyId),
3169
- PolicyName: (0, smithy_client_1.expectString)(output.PolicyName),
3170
- PolicyUpdateToken: (0, smithy_client_1.expectString)(output.PolicyUpdateToken),
3171
- RemediationEnabled: (0, smithy_client_1.expectBoolean)(output.RemediationEnabled),
3172
- ResourceSetIds: output.ResourceSetIds != null ? de_ResourceSetIds(output.ResourceSetIds, context) : undefined,
3173
- ResourceTags: output.ResourceTags != null ? de_ResourceTags(output.ResourceTags, context) : undefined,
3174
- ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
3175
- ResourceTypeList: output.ResourceTypeList != null ? de_ResourceTypeList(output.ResourceTypeList, context) : undefined,
3176
- SecurityServicePolicyData: output.SecurityServicePolicyData != null
3177
- ? de_SecurityServicePolicyData(output.SecurityServicePolicyData, context)
3178
- : undefined,
3179
- };
3180
- };
3181
- const de_PolicyComplianceDetail = (output, context) => {
3182
- return {
3183
- EvaluationLimitExceeded: (0, smithy_client_1.expectBoolean)(output.EvaluationLimitExceeded),
3184
- ExpiredAt: output.ExpiredAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExpiredAt))) : undefined,
3185
- IssueInfoMap: output.IssueInfoMap != null ? de_IssueInfoMap(output.IssueInfoMap, context) : undefined,
3186
- MemberAccount: (0, smithy_client_1.expectString)(output.MemberAccount),
3187
- PolicyId: (0, smithy_client_1.expectString)(output.PolicyId),
3188
- PolicyOwner: (0, smithy_client_1.expectString)(output.PolicyOwner),
3189
- Violators: output.Violators != null ? de_ComplianceViolators(output.Violators, context) : undefined,
3190
- };
3191
- };
3192
- const de_PolicyComplianceStatus = (output, context) => {
3193
- return {
3194
- EvaluationResults: output.EvaluationResults != null ? de_EvaluationResults(output.EvaluationResults, context) : undefined,
3195
- IssueInfoMap: output.IssueInfoMap != null ? de_IssueInfoMap(output.IssueInfoMap, context) : undefined,
3196
- LastUpdated: output.LastUpdated != null
3197
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdated)))
3198
- : undefined,
3199
- MemberAccount: (0, smithy_client_1.expectString)(output.MemberAccount),
3200
- PolicyId: (0, smithy_client_1.expectString)(output.PolicyId),
3201
- PolicyName: (0, smithy_client_1.expectString)(output.PolicyName),
3202
- PolicyOwner: (0, smithy_client_1.expectString)(output.PolicyOwner),
3203
- };
3204
- };
3205
- const de_PolicyComplianceStatusList = (output, context) => {
3206
- const retVal = (output || [])
3207
- .filter((e) => e != null)
3208
- .map((entry) => {
3209
- if (entry === null) {
3210
- return null;
3211
- }
3212
- return de_PolicyComplianceStatus(entry, context);
3213
- });
3214
- return retVal;
3215
- };
3216
- const de_PolicyOption = (output, context) => {
3217
- return {
3218
- NetworkFirewallPolicy: output.NetworkFirewallPolicy != null
3219
- ? de_NetworkFirewallPolicy(output.NetworkFirewallPolicy, context)
3220
- : undefined,
3221
- ThirdPartyFirewallPolicy: output.ThirdPartyFirewallPolicy != null
3222
- ? de_ThirdPartyFirewallPolicy(output.ThirdPartyFirewallPolicy, context)
3223
- : undefined,
3224
- };
3225
- };
3226
- const de_PolicySummary = (output, context) => {
3227
- return {
3228
- DeleteUnusedFMManagedResources: (0, smithy_client_1.expectBoolean)(output.DeleteUnusedFMManagedResources),
3229
- PolicyArn: (0, smithy_client_1.expectString)(output.PolicyArn),
3230
- PolicyId: (0, smithy_client_1.expectString)(output.PolicyId),
3231
- PolicyName: (0, smithy_client_1.expectString)(output.PolicyName),
3232
- RemediationEnabled: (0, smithy_client_1.expectBoolean)(output.RemediationEnabled),
3233
- ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
3234
- SecurityServiceType: (0, smithy_client_1.expectString)(output.SecurityServiceType),
3235
- };
3236
- };
3237
- const de_PolicySummaryList = (output, context) => {
3238
- const retVal = (output || [])
3239
- .filter((e) => e != null)
3240
- .map((entry) => {
3241
- if (entry === null) {
3242
- return null;
3243
- }
3244
- return de_PolicySummary(entry, context);
3245
- });
3246
- return retVal;
3247
- };
3248
- const de_PossibleRemediationAction = (output, context) => {
3249
- return {
3250
- Description: (0, smithy_client_1.expectString)(output.Description),
3251
- IsDefaultAction: (0, smithy_client_1.expectBoolean)(output.IsDefaultAction),
3252
- OrderedRemediationActions: output.OrderedRemediationActions != null
3253
- ? de_OrderedRemediationActions(output.OrderedRemediationActions, context)
3254
- : undefined,
3255
- };
3256
- };
3257
- const de_PossibleRemediationActionList = (output, context) => {
3258
- const retVal = (output || [])
3259
- .filter((e) => e != null)
3260
- .map((entry) => {
3261
- if (entry === null) {
3262
- return null;
3263
- }
3264
- return de_PossibleRemediationAction(entry, context);
3265
- });
3266
- return retVal;
3267
- };
3268
- const de_PossibleRemediationActions = (output, context) => {
3269
- return {
3270
- Actions: output.Actions != null ? de_PossibleRemediationActionList(output.Actions, context) : undefined,
3271
- Description: (0, smithy_client_1.expectString)(output.Description),
3272
- };
3273
- };
3274
- const de_PreviousAppsList = (output, context) => {
3275
- return Object.entries(output).reduce((acc, [key, value]) => {
3276
- if (value === null) {
3277
- return acc;
3278
- }
3279
- acc[key] = de_AppsList(value, context);
3280
- return acc;
3281
- }, {});
3282
- };
3283
- const de_PreviousProtocolsList = (output, context) => {
3284
- return Object.entries(output).reduce((acc, [key, value]) => {
3285
- if (value === null) {
3286
- return acc;
3287
- }
3288
- acc[key] = de_ProtocolsList(value, context);
3289
- return acc;
3290
- }, {});
3291
- };
3292
- const de_ProtocolsList = (output, context) => {
3293
- const retVal = (output || [])
3294
- .filter((e) => e != null)
3295
- .map((entry) => {
3296
- if (entry === null) {
3297
- return null;
3298
- }
3299
- return (0, smithy_client_1.expectString)(entry);
3300
- });
3301
- return retVal;
3302
- };
3303
- const de_ProtocolsListData = (output, context) => {
3304
- return {
3305
- CreateTime: output.CreateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateTime))) : undefined,
3306
- LastUpdateTime: output.LastUpdateTime != null
3307
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdateTime)))
3308
- : undefined,
3309
- ListId: (0, smithy_client_1.expectString)(output.ListId),
3310
- ListName: (0, smithy_client_1.expectString)(output.ListName),
3311
- ListUpdateToken: (0, smithy_client_1.expectString)(output.ListUpdateToken),
3312
- PreviousProtocolsList: output.PreviousProtocolsList != null
3313
- ? de_PreviousProtocolsList(output.PreviousProtocolsList, context)
3314
- : undefined,
3315
- ProtocolsList: output.ProtocolsList != null ? de_ProtocolsList(output.ProtocolsList, context) : undefined,
3316
- };
3317
- };
3318
- const de_ProtocolsListDataSummary = (output, context) => {
3319
- return {
3320
- ListArn: (0, smithy_client_1.expectString)(output.ListArn),
3321
- ListId: (0, smithy_client_1.expectString)(output.ListId),
3322
- ListName: (0, smithy_client_1.expectString)(output.ListName),
3323
- ProtocolsList: output.ProtocolsList != null ? de_ProtocolsList(output.ProtocolsList, context) : undefined,
3324
- };
3325
- };
3326
- const de_ProtocolsListsData = (output, context) => {
3327
- const retVal = (output || [])
3328
- .filter((e) => e != null)
3329
- .map((entry) => {
3330
- if (entry === null) {
3331
- return null;
3332
- }
3333
- return de_ProtocolsListDataSummary(entry, context);
3334
- });
3335
- return retVal;
3336
- };
3337
- const de_PutAppsListResponse = (output, context) => {
3338
- return {
3339
- AppsList: output.AppsList != null ? de_AppsListData(output.AppsList, context) : undefined,
3340
- AppsListArn: (0, smithy_client_1.expectString)(output.AppsListArn),
3341
- };
3342
- };
3343
- const de_PutPolicyResponse = (output, context) => {
3344
- return {
3345
- Policy: output.Policy != null ? de_Policy(output.Policy, context) : undefined,
3346
- PolicyArn: (0, smithy_client_1.expectString)(output.PolicyArn),
3347
- };
3348
- };
3349
- const de_PutProtocolsListResponse = (output, context) => {
3350
- return {
3351
- ProtocolsList: output.ProtocolsList != null ? de_ProtocolsListData(output.ProtocolsList, context) : undefined,
3352
- ProtocolsListArn: (0, smithy_client_1.expectString)(output.ProtocolsListArn),
3353
- };
3354
- };
3355
- const de_PutResourceSetResponse = (output, context) => {
3356
- return {
3357
- ResourceSet: output.ResourceSet != null ? de_ResourceSet(output.ResourceSet, context) : undefined,
3358
- ResourceSetArn: (0, smithy_client_1.expectString)(output.ResourceSetArn),
3359
- };
3360
- };
3361
- const de_RemediationAction = (output, context) => {
3362
- return {
3363
- Description: (0, smithy_client_1.expectString)(output.Description),
3364
- EC2AssociateRouteTableAction: output.EC2AssociateRouteTableAction != null
3365
- ? de_EC2AssociateRouteTableAction(output.EC2AssociateRouteTableAction, context)
3366
- : undefined,
3367
- EC2CopyRouteTableAction: output.EC2CopyRouteTableAction != null
3368
- ? de_EC2CopyRouteTableAction(output.EC2CopyRouteTableAction, context)
3369
- : undefined,
3370
- EC2CreateRouteAction: output.EC2CreateRouteAction != null ? de_EC2CreateRouteAction(output.EC2CreateRouteAction, context) : undefined,
3371
- EC2CreateRouteTableAction: output.EC2CreateRouteTableAction != null
3372
- ? de_EC2CreateRouteTableAction(output.EC2CreateRouteTableAction, context)
3373
- : undefined,
3374
- EC2DeleteRouteAction: output.EC2DeleteRouteAction != null ? de_EC2DeleteRouteAction(output.EC2DeleteRouteAction, context) : undefined,
3375
- EC2ReplaceRouteAction: output.EC2ReplaceRouteAction != null
3376
- ? de_EC2ReplaceRouteAction(output.EC2ReplaceRouteAction, context)
3377
- : undefined,
3378
- EC2ReplaceRouteTableAssociationAction: output.EC2ReplaceRouteTableAssociationAction != null
3379
- ? de_EC2ReplaceRouteTableAssociationAction(output.EC2ReplaceRouteTableAssociationAction, context)
3380
- : undefined,
3381
- FMSPolicyUpdateFirewallCreationConfigAction: output.FMSPolicyUpdateFirewallCreationConfigAction != null
3382
- ? de_FMSPolicyUpdateFirewallCreationConfigAction(output.FMSPolicyUpdateFirewallCreationConfigAction, context)
3383
- : undefined,
3384
- };
3385
- };
3386
- const de_RemediationActionWithOrder = (output, context) => {
3387
- return {
3388
- Order: (0, smithy_client_1.expectInt32)(output.Order),
3389
- RemediationAction: output.RemediationAction != null ? de_RemediationAction(output.RemediationAction, context) : undefined,
3390
- };
3391
- };
3392
- const de_Resource = (output, context) => {
3393
- return {
3394
- AccountId: (0, smithy_client_1.expectString)(output.AccountId),
3395
- URI: (0, smithy_client_1.expectString)(output.URI),
3396
- };
3397
- };
3398
- const de_ResourceIdList = (output, context) => {
3399
- const retVal = (output || [])
3400
- .filter((e) => e != null)
3401
- .map((entry) => {
3402
- if (entry === null) {
3403
- return null;
3404
- }
3405
- return (0, smithy_client_1.expectString)(entry);
3406
- });
3407
- return retVal;
3408
- };
3409
- const de_ResourceList = (output, context) => {
3410
- const retVal = (output || [])
3411
- .filter((e) => e != null)
3412
- .map((entry) => {
3413
- if (entry === null) {
3414
- return null;
3415
- }
3416
- return de_Resource(entry, context);
3417
- });
3418
- return retVal;
3419
- };
3420
- const de_ResourceNotFoundException = (output, context) => {
3421
- return {
3422
- Message: (0, smithy_client_1.expectString)(output.Message),
3423
- };
3424
- };
3425
- const de_ResourceSet = (output, context) => {
3426
- return {
3427
- Description: (0, smithy_client_1.expectString)(output.Description),
3428
- Id: (0, smithy_client_1.expectString)(output.Id),
3429
- LastUpdateTime: output.LastUpdateTime != null
3430
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdateTime)))
3431
- : undefined,
3432
- Name: (0, smithy_client_1.expectString)(output.Name),
3433
- ResourceTypeList: output.ResourceTypeList != null ? de_ResourceTypeList(output.ResourceTypeList, context) : undefined,
3434
- UpdateToken: (0, smithy_client_1.expectString)(output.UpdateToken),
3435
- };
3436
- };
3437
- const de_ResourceSetIds = (output, context) => {
3438
- const retVal = (output || [])
3439
- .filter((e) => e != null)
3440
- .map((entry) => {
3441
- if (entry === null) {
3442
- return null;
3443
- }
3444
- return (0, smithy_client_1.expectString)(entry);
3445
- });
3446
- return retVal;
3447
- };
3448
- const de_ResourceSetSummary = (output, context) => {
3449
- return {
3450
- Description: (0, smithy_client_1.expectString)(output.Description),
3451
- Id: (0, smithy_client_1.expectString)(output.Id),
3452
- LastUpdateTime: output.LastUpdateTime != null
3453
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdateTime)))
3454
- : undefined,
3455
- Name: (0, smithy_client_1.expectString)(output.Name),
3456
- };
3457
- };
3458
- const de_ResourceSetSummaryList = (output, context) => {
3459
- const retVal = (output || [])
3460
- .filter((e) => e != null)
3461
- .map((entry) => {
3462
- if (entry === null) {
3463
- return null;
3464
- }
3465
- return de_ResourceSetSummary(entry, context);
3466
- });
3467
- return retVal;
3468
- };
3469
- const de_ResourceTag = (output, context) => {
3470
- return {
3471
- Key: (0, smithy_client_1.expectString)(output.Key),
3472
- Value: (0, smithy_client_1.expectString)(output.Value),
3473
- };
3474
- };
3475
- const de_ResourceTags = (output, context) => {
3476
- const retVal = (output || [])
3477
- .filter((e) => e != null)
3478
- .map((entry) => {
3479
- if (entry === null) {
3480
- return null;
3481
- }
3482
- return de_ResourceTag(entry, context);
3483
- });
3484
- return retVal;
3485
- };
3486
- const de_ResourceTypeList = (output, context) => {
3487
- const retVal = (output || [])
3488
- .filter((e) => e != null)
3489
- .map((entry) => {
3490
- if (entry === null) {
3491
- return null;
3492
- }
3493
- return (0, smithy_client_1.expectString)(entry);
3494
- });
3495
- return retVal;
3496
- };
3497
- const de_ResourceViolation = (output, context) => {
3498
- return {
3499
- AwsEc2InstanceViolation: output.AwsEc2InstanceViolation != null
3500
- ? de_AwsEc2InstanceViolation(output.AwsEc2InstanceViolation, context)
3501
- : undefined,
3502
- AwsEc2NetworkInterfaceViolation: output.AwsEc2NetworkInterfaceViolation != null
3503
- ? de_AwsEc2NetworkInterfaceViolation(output.AwsEc2NetworkInterfaceViolation, context)
3504
- : undefined,
3505
- AwsVPCSecurityGroupViolation: output.AwsVPCSecurityGroupViolation != null
3506
- ? de_AwsVPCSecurityGroupViolation(output.AwsVPCSecurityGroupViolation, context)
3507
- : undefined,
3508
- DnsDuplicateRuleGroupViolation: output.DnsDuplicateRuleGroupViolation != null
3509
- ? de_DnsDuplicateRuleGroupViolation(output.DnsDuplicateRuleGroupViolation, context)
3510
- : undefined,
3511
- DnsRuleGroupLimitExceededViolation: output.DnsRuleGroupLimitExceededViolation != null
3512
- ? de_DnsRuleGroupLimitExceededViolation(output.DnsRuleGroupLimitExceededViolation, context)
3513
- : undefined,
3514
- DnsRuleGroupPriorityConflictViolation: output.DnsRuleGroupPriorityConflictViolation != null
3515
- ? de_DnsRuleGroupPriorityConflictViolation(output.DnsRuleGroupPriorityConflictViolation, context)
3516
- : undefined,
3517
- FirewallSubnetIsOutOfScopeViolation: output.FirewallSubnetIsOutOfScopeViolation != null
3518
- ? de_FirewallSubnetIsOutOfScopeViolation(output.FirewallSubnetIsOutOfScopeViolation, context)
3519
- : undefined,
3520
- FirewallSubnetMissingVPCEndpointViolation: output.FirewallSubnetMissingVPCEndpointViolation != null
3521
- ? de_FirewallSubnetMissingVPCEndpointViolation(output.FirewallSubnetMissingVPCEndpointViolation, context)
3522
- : undefined,
3523
- NetworkFirewallBlackHoleRouteDetectedViolation: output.NetworkFirewallBlackHoleRouteDetectedViolation != null
3524
- ? de_NetworkFirewallBlackHoleRouteDetectedViolation(output.NetworkFirewallBlackHoleRouteDetectedViolation, context)
3525
- : undefined,
3526
- NetworkFirewallInternetTrafficNotInspectedViolation: output.NetworkFirewallInternetTrafficNotInspectedViolation != null
3527
- ? de_NetworkFirewallInternetTrafficNotInspectedViolation(output.NetworkFirewallInternetTrafficNotInspectedViolation, context)
3528
- : undefined,
3529
- NetworkFirewallInvalidRouteConfigurationViolation: output.NetworkFirewallInvalidRouteConfigurationViolation != null
3530
- ? de_NetworkFirewallInvalidRouteConfigurationViolation(output.NetworkFirewallInvalidRouteConfigurationViolation, context)
3531
- : undefined,
3532
- NetworkFirewallMissingExpectedRTViolation: output.NetworkFirewallMissingExpectedRTViolation != null
3533
- ? de_NetworkFirewallMissingExpectedRTViolation(output.NetworkFirewallMissingExpectedRTViolation, context)
3534
- : undefined,
3535
- NetworkFirewallMissingExpectedRoutesViolation: output.NetworkFirewallMissingExpectedRoutesViolation != null
3536
- ? de_NetworkFirewallMissingExpectedRoutesViolation(output.NetworkFirewallMissingExpectedRoutesViolation, context)
3537
- : undefined,
3538
- NetworkFirewallMissingFirewallViolation: output.NetworkFirewallMissingFirewallViolation != null
3539
- ? de_NetworkFirewallMissingFirewallViolation(output.NetworkFirewallMissingFirewallViolation, context)
3540
- : undefined,
3541
- NetworkFirewallMissingSubnetViolation: output.NetworkFirewallMissingSubnetViolation != null
3542
- ? de_NetworkFirewallMissingSubnetViolation(output.NetworkFirewallMissingSubnetViolation, context)
3543
- : undefined,
3544
- NetworkFirewallPolicyModifiedViolation: output.NetworkFirewallPolicyModifiedViolation != null
3545
- ? de_NetworkFirewallPolicyModifiedViolation(output.NetworkFirewallPolicyModifiedViolation, context)
3546
- : undefined,
3547
- NetworkFirewallUnexpectedFirewallRoutesViolation: output.NetworkFirewallUnexpectedFirewallRoutesViolation != null
3548
- ? de_NetworkFirewallUnexpectedFirewallRoutesViolation(output.NetworkFirewallUnexpectedFirewallRoutesViolation, context)
3549
- : undefined,
3550
- NetworkFirewallUnexpectedGatewayRoutesViolation: output.NetworkFirewallUnexpectedGatewayRoutesViolation != null
3551
- ? de_NetworkFirewallUnexpectedGatewayRoutesViolation(output.NetworkFirewallUnexpectedGatewayRoutesViolation, context)
3552
- : undefined,
3553
- PossibleRemediationActions: output.PossibleRemediationActions != null
3554
- ? de_PossibleRemediationActions(output.PossibleRemediationActions, context)
3555
- : undefined,
3556
- RouteHasOutOfScopeEndpointViolation: output.RouteHasOutOfScopeEndpointViolation != null
3557
- ? de_RouteHasOutOfScopeEndpointViolation(output.RouteHasOutOfScopeEndpointViolation, context)
3558
- : undefined,
3559
- ThirdPartyFirewallMissingExpectedRouteTableViolation: output.ThirdPartyFirewallMissingExpectedRouteTableViolation != null
3560
- ? de_ThirdPartyFirewallMissingExpectedRouteTableViolation(output.ThirdPartyFirewallMissingExpectedRouteTableViolation, context)
3561
- : undefined,
3562
- ThirdPartyFirewallMissingFirewallViolation: output.ThirdPartyFirewallMissingFirewallViolation != null
3563
- ? de_ThirdPartyFirewallMissingFirewallViolation(output.ThirdPartyFirewallMissingFirewallViolation, context)
3564
- : undefined,
3565
- ThirdPartyFirewallMissingSubnetViolation: output.ThirdPartyFirewallMissingSubnetViolation != null
3566
- ? de_ThirdPartyFirewallMissingSubnetViolation(output.ThirdPartyFirewallMissingSubnetViolation, context)
3567
- : undefined,
3568
- };
3569
- };
3570
- const de_ResourceViolations = (output, context) => {
3571
- const retVal = (output || [])
3572
- .filter((e) => e != null)
3573
- .map((entry) => {
3574
- if (entry === null) {
3575
- return null;
3576
- }
3577
- return de_ResourceViolation(entry, context);
3578
- });
3579
- return retVal;
3580
- };
3581
- const de_Route = (output, context) => {
3582
- return {
3583
- Destination: (0, smithy_client_1.expectString)(output.Destination),
3584
- DestinationType: (0, smithy_client_1.expectString)(output.DestinationType),
3585
- Target: (0, smithy_client_1.expectString)(output.Target),
3586
- TargetType: (0, smithy_client_1.expectString)(output.TargetType),
3587
- };
3588
- };
3589
- const de_RouteHasOutOfScopeEndpointViolation = (output, context) => {
3590
- return {
3591
- CurrentFirewallSubnetRouteTable: (0, smithy_client_1.expectString)(output.CurrentFirewallSubnetRouteTable),
3592
- CurrentInternetGatewayRouteTable: (0, smithy_client_1.expectString)(output.CurrentInternetGatewayRouteTable),
3593
- FirewallSubnetId: (0, smithy_client_1.expectString)(output.FirewallSubnetId),
3594
- FirewallSubnetRoutes: output.FirewallSubnetRoutes != null ? de_Routes(output.FirewallSubnetRoutes, context) : undefined,
3595
- InternetGatewayId: (0, smithy_client_1.expectString)(output.InternetGatewayId),
3596
- InternetGatewayRoutes: output.InternetGatewayRoutes != null ? de_Routes(output.InternetGatewayRoutes, context) : undefined,
3597
- RouteTableId: (0, smithy_client_1.expectString)(output.RouteTableId),
3598
- SubnetAvailabilityZone: (0, smithy_client_1.expectString)(output.SubnetAvailabilityZone),
3599
- SubnetAvailabilityZoneId: (0, smithy_client_1.expectString)(output.SubnetAvailabilityZoneId),
3600
- SubnetId: (0, smithy_client_1.expectString)(output.SubnetId),
3601
- ViolatingRoutes: output.ViolatingRoutes != null ? de_Routes(output.ViolatingRoutes, context) : undefined,
3602
- VpcId: (0, smithy_client_1.expectString)(output.VpcId),
3603
- };
3604
- };
3605
- const de_Routes = (output, context) => {
3606
- const retVal = (output || [])
3607
- .filter((e) => e != null)
3608
- .map((entry) => {
3609
- if (entry === null) {
3610
- return null;
3611
- }
3612
- return de_Route(entry, context);
3613
- });
3614
- return retVal;
3615
- };
3616
- const de_SecurityGroupRemediationAction = (output, context) => {
3617
- return {
3618
- Description: (0, smithy_client_1.expectString)(output.Description),
3619
- IsDefaultAction: (0, smithy_client_1.expectBoolean)(output.IsDefaultAction),
3620
- RemediationActionType: (0, smithy_client_1.expectString)(output.RemediationActionType),
3621
- RemediationResult: output.RemediationResult != null ? de_SecurityGroupRuleDescription(output.RemediationResult, context) : undefined,
3622
- };
3623
- };
3624
- const de_SecurityGroupRemediationActions = (output, context) => {
3625
- const retVal = (output || [])
3626
- .filter((e) => e != null)
3627
- .map((entry) => {
3628
- if (entry === null) {
3629
- return null;
3630
- }
3631
- return de_SecurityGroupRemediationAction(entry, context);
3632
- });
3633
- return retVal;
3634
- };
3635
- const de_SecurityGroupRuleDescription = (output, context) => {
3636
- return {
3637
- FromPort: (0, smithy_client_1.expectLong)(output.FromPort),
3638
- IPV4Range: (0, smithy_client_1.expectString)(output.IPV4Range),
3639
- IPV6Range: (0, smithy_client_1.expectString)(output.IPV6Range),
3640
- PrefixListId: (0, smithy_client_1.expectString)(output.PrefixListId),
3641
- Protocol: (0, smithy_client_1.expectString)(output.Protocol),
3642
- ToPort: (0, smithy_client_1.expectLong)(output.ToPort),
3643
- };
3644
- };
3645
- const de_SecurityServicePolicyData = (output, context) => {
3646
- return {
3647
- ManagedServiceData: (0, smithy_client_1.expectString)(output.ManagedServiceData),
3648
- PolicyOption: output.PolicyOption != null ? de_PolicyOption(output.PolicyOption, context) : undefined,
3649
- Type: (0, smithy_client_1.expectString)(output.Type),
3650
- };
3651
- };
3652
- const de_StatefulEngineOptions = (output, context) => {
3653
- return {
3654
- RuleOrder: (0, smithy_client_1.expectString)(output.RuleOrder),
3655
- };
3656
- };
3657
- const de_StatefulRuleGroup = (output, context) => {
3658
- return {
3659
- Override: output.Override != null ? de_NetworkFirewallStatefulRuleGroupOverride(output.Override, context) : undefined,
3660
- Priority: (0, smithy_client_1.expectInt32)(output.Priority),
3661
- ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
3662
- RuleGroupName: (0, smithy_client_1.expectString)(output.RuleGroupName),
3663
- };
3664
- };
3665
- const de_StatefulRuleGroupList = (output, context) => {
3666
- const retVal = (output || [])
3667
- .filter((e) => e != null)
3668
- .map((entry) => {
3669
- if (entry === null) {
3670
- return null;
3671
- }
3672
- return de_StatefulRuleGroup(entry, context);
3673
- });
3674
- return retVal;
3675
- };
3676
- const de_StatelessRuleGroup = (output, context) => {
3677
- return {
3678
- Priority: (0, smithy_client_1.expectInt32)(output.Priority),
3679
- ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
3680
- RuleGroupName: (0, smithy_client_1.expectString)(output.RuleGroupName),
3681
- };
3682
- };
3683
- const de_StatelessRuleGroupList = (output, context) => {
3684
- const retVal = (output || [])
3685
- .filter((e) => e != null)
3686
- .map((entry) => {
3687
- if (entry === null) {
3688
- return null;
3689
- }
3690
- return de_StatelessRuleGroup(entry, context);
3691
- });
3692
- return retVal;
3693
- };
3694
- const de_Tag = (output, context) => {
3695
- return {
3696
- Key: (0, smithy_client_1.expectString)(output.Key),
3697
- Value: (0, smithy_client_1.expectString)(output.Value),
3698
- };
3699
- };
3700
- const de_TagList = (output, context) => {
3701
- const retVal = (output || [])
3702
- .filter((e) => e != null)
3703
- .map((entry) => {
3704
- if (entry === null) {
3705
- return null;
3706
- }
3707
- return de_Tag(entry, context);
3708
- });
3709
- return retVal;
3710
- };
3711
- const de_TagResourceResponse = (output, context) => {
3712
- return {};
3713
- };
3714
- const de_TargetViolationReasons = (output, context) => {
3715
- const retVal = (output || [])
3716
- .filter((e) => e != null)
3717
- .map((entry) => {
3718
- if (entry === null) {
3719
- return null;
3720
- }
3721
- return (0, smithy_client_1.expectString)(entry);
3722
- });
3723
- return retVal;
3724
- };
3725
- const de_ThirdPartyFirewallFirewallPolicies = (output, context) => {
3726
- const retVal = (output || [])
3727
- .filter((e) => e != null)
3728
- .map((entry) => {
3729
- if (entry === null) {
3730
- return null;
3731
- }
3732
- return de_ThirdPartyFirewallFirewallPolicy(entry, context);
3733
- });
3734
- return retVal;
3735
- };
3736
- const de_ThirdPartyFirewallFirewallPolicy = (output, context) => {
3737
- return {
3738
- FirewallPolicyId: (0, smithy_client_1.expectString)(output.FirewallPolicyId),
3739
- FirewallPolicyName: (0, smithy_client_1.expectString)(output.FirewallPolicyName),
3740
- };
3741
- };
3742
- const de_ThirdPartyFirewallMissingExpectedRouteTableViolation = (output, context) => {
3743
- return {
3744
- AvailabilityZone: (0, smithy_client_1.expectString)(output.AvailabilityZone),
3745
- CurrentRouteTable: (0, smithy_client_1.expectString)(output.CurrentRouteTable),
3746
- ExpectedRouteTable: (0, smithy_client_1.expectString)(output.ExpectedRouteTable),
3747
- VPC: (0, smithy_client_1.expectString)(output.VPC),
3748
- ViolationTarget: (0, smithy_client_1.expectString)(output.ViolationTarget),
3749
- };
3750
- };
3751
- const de_ThirdPartyFirewallMissingFirewallViolation = (output, context) => {
3752
- return {
3753
- AvailabilityZone: (0, smithy_client_1.expectString)(output.AvailabilityZone),
3754
- TargetViolationReason: (0, smithy_client_1.expectString)(output.TargetViolationReason),
3755
- VPC: (0, smithy_client_1.expectString)(output.VPC),
3756
- ViolationTarget: (0, smithy_client_1.expectString)(output.ViolationTarget),
3757
- };
3758
- };
3759
- const de_ThirdPartyFirewallMissingSubnetViolation = (output, context) => {
3760
- return {
3761
- AvailabilityZone: (0, smithy_client_1.expectString)(output.AvailabilityZone),
3762
- TargetViolationReason: (0, smithy_client_1.expectString)(output.TargetViolationReason),
3763
- VPC: (0, smithy_client_1.expectString)(output.VPC),
3764
- ViolationTarget: (0, smithy_client_1.expectString)(output.ViolationTarget),
3765
- };
3766
- };
3767
- const de_ThirdPartyFirewallPolicy = (output, context) => {
3768
- return {
3769
- FirewallDeploymentModel: (0, smithy_client_1.expectString)(output.FirewallDeploymentModel),
3770
- };
3771
- };
3772
- const de_UntagResourceResponse = (output, context) => {
3773
- return {};
3774
- };
3775
- const de_ViolationDetail = (output, context) => {
3776
- return {
3777
- MemberAccount: (0, smithy_client_1.expectString)(output.MemberAccount),
3778
- PolicyId: (0, smithy_client_1.expectString)(output.PolicyId),
3779
- ResourceDescription: (0, smithy_client_1.expectString)(output.ResourceDescription),
3780
- ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
3781
- ResourceTags: output.ResourceTags != null ? de_TagList(output.ResourceTags, context) : undefined,
3782
- ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
3783
- ResourceViolations: output.ResourceViolations != null ? de_ResourceViolations(output.ResourceViolations, context) : undefined,
3784
- };
3785
- };
3786
2078
  const deserializeMetadata = (output) => ({
3787
2079
  httpStatusCode: output.statusCode,
3788
2080
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
@@ -3796,6 +2088,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
3796
2088
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
3797
2089
  };
3798
2090
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
2091
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(FMSServiceException_1.FMSServiceException);
3799
2092
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
3800
2093
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3801
2094
  const contents = {
@@ -3814,6 +2107,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
3814
2107
  }
3815
2108
  return new protocol_http_1.HttpRequest(contents);
3816
2109
  };
2110
+ function sharedHeaders(operation) {
2111
+ return {
2112
+ "content-type": "application/x-amz-json-1.1",
2113
+ "x-amz-target": `AWSFMS_20180101.${operation}`,
2114
+ };
2115
+ }
3817
2116
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
3818
2117
  if (encoded.length) {
3819
2118
  return JSON.parse(encoded);