@aws-sdk/client-fms 3.490.0 → 3.495.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.
Files changed (64) hide show
  1. package/dist-cjs/FMS.js +1 -95
  2. package/dist-cjs/FMSClient.js +1 -43
  3. package/dist-cjs/commands/AssociateAdminAccountCommand.js +1 -28
  4. package/dist-cjs/commands/AssociateThirdPartyFirewallCommand.js +1 -28
  5. package/dist-cjs/commands/BatchAssociateResourceCommand.js +1 -28
  6. package/dist-cjs/commands/BatchDisassociateResourceCommand.js +1 -28
  7. package/dist-cjs/commands/DeleteAppsListCommand.js +1 -28
  8. package/dist-cjs/commands/DeleteNotificationChannelCommand.js +1 -28
  9. package/dist-cjs/commands/DeletePolicyCommand.js +1 -28
  10. package/dist-cjs/commands/DeleteProtocolsListCommand.js +1 -28
  11. package/dist-cjs/commands/DeleteResourceSetCommand.js +1 -28
  12. package/dist-cjs/commands/DisassociateAdminAccountCommand.js +1 -28
  13. package/dist-cjs/commands/DisassociateThirdPartyFirewallCommand.js +1 -28
  14. package/dist-cjs/commands/GetAdminAccountCommand.js +1 -28
  15. package/dist-cjs/commands/GetAdminScopeCommand.js +1 -28
  16. package/dist-cjs/commands/GetAppsListCommand.js +1 -28
  17. package/dist-cjs/commands/GetComplianceDetailCommand.js +1 -28
  18. package/dist-cjs/commands/GetNotificationChannelCommand.js +1 -28
  19. package/dist-cjs/commands/GetPolicyCommand.js +1 -28
  20. package/dist-cjs/commands/GetProtectionStatusCommand.js +1 -28
  21. package/dist-cjs/commands/GetProtocolsListCommand.js +1 -28
  22. package/dist-cjs/commands/GetResourceSetCommand.js +1 -28
  23. package/dist-cjs/commands/GetThirdPartyFirewallAssociationStatusCommand.js +1 -28
  24. package/dist-cjs/commands/GetViolationDetailsCommand.js +1 -28
  25. package/dist-cjs/commands/ListAdminAccountsForOrganizationCommand.js +1 -28
  26. package/dist-cjs/commands/ListAdminsManagingAccountCommand.js +1 -28
  27. package/dist-cjs/commands/ListAppsListsCommand.js +1 -28
  28. package/dist-cjs/commands/ListComplianceStatusCommand.js +1 -28
  29. package/dist-cjs/commands/ListDiscoveredResourcesCommand.js +1 -28
  30. package/dist-cjs/commands/ListMemberAccountsCommand.js +1 -28
  31. package/dist-cjs/commands/ListPoliciesCommand.js +1 -28
  32. package/dist-cjs/commands/ListProtocolsListsCommand.js +1 -28
  33. package/dist-cjs/commands/ListResourceSetResourcesCommand.js +1 -28
  34. package/dist-cjs/commands/ListResourceSetsCommand.js +1 -28
  35. package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
  36. package/dist-cjs/commands/ListThirdPartyFirewallFirewallPoliciesCommand.js +1 -28
  37. package/dist-cjs/commands/PutAdminAccountCommand.js +1 -28
  38. package/dist-cjs/commands/PutAppsListCommand.js +1 -28
  39. package/dist-cjs/commands/PutNotificationChannelCommand.js +1 -28
  40. package/dist-cjs/commands/PutPolicyCommand.js +1 -28
  41. package/dist-cjs/commands/PutProtocolsListCommand.js +1 -28
  42. package/dist-cjs/commands/PutResourceSetCommand.js +1 -28
  43. package/dist-cjs/commands/TagResourceCommand.js +1 -28
  44. package/dist-cjs/commands/UntagResourceCommand.js +1 -28
  45. package/dist-cjs/commands/index.js +1 -45
  46. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  47. package/dist-cjs/extensionConfiguration.js +1 -2
  48. package/dist-cjs/index.js +3588 -11
  49. package/dist-cjs/models/FMSServiceException.js +1 -12
  50. package/dist-cjs/models/index.js +1 -4
  51. package/dist-cjs/models/models_0.js +1 -221
  52. package/dist-cjs/pagination/Interfaces.js +1 -2
  53. package/dist-cjs/pagination/ListAdminAccountsForOrganizationPaginator.js +1 -7
  54. package/dist-cjs/pagination/ListAdminsManagingAccountPaginator.js +1 -7
  55. package/dist-cjs/pagination/ListAppsListsPaginator.js +1 -7
  56. package/dist-cjs/pagination/ListComplianceStatusPaginator.js +1 -7
  57. package/dist-cjs/pagination/ListMemberAccountsPaginator.js +1 -7
  58. package/dist-cjs/pagination/ListPoliciesPaginator.js +1 -7
  59. package/dist-cjs/pagination/ListProtocolsListsPaginator.js +1 -7
  60. package/dist-cjs/pagination/ListThirdPartyFirewallFirewallPoliciesPaginator.js +1 -7
  61. package/dist-cjs/pagination/index.js +1 -12
  62. package/dist-cjs/protocols/Aws_json1_1.js +1 -2345
  63. package/dist-cjs/runtimeExtensions.js +1 -22
  64. package/package.json +40 -40
@@ -1,2345 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_DeleteProtocolsListCommand = exports.de_DeletePolicyCommand = exports.de_DeleteNotificationChannelCommand = exports.de_DeleteAppsListCommand = exports.de_BatchDisassociateResourceCommand = exports.de_BatchAssociateResourceCommand = exports.de_AssociateThirdPartyFirewallCommand = exports.de_AssociateAdminAccountCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_PutResourceSetCommand = exports.se_PutProtocolsListCommand = exports.se_PutPolicyCommand = exports.se_PutNotificationChannelCommand = exports.se_PutAppsListCommand = exports.se_PutAdminAccountCommand = exports.se_ListThirdPartyFirewallFirewallPoliciesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListResourceSetsCommand = exports.se_ListResourceSetResourcesCommand = exports.se_ListProtocolsListsCommand = exports.se_ListPoliciesCommand = exports.se_ListMemberAccountsCommand = exports.se_ListDiscoveredResourcesCommand = exports.se_ListComplianceStatusCommand = exports.se_ListAppsListsCommand = exports.se_ListAdminsManagingAccountCommand = exports.se_ListAdminAccountsForOrganizationCommand = exports.se_GetViolationDetailsCommand = exports.se_GetThirdPartyFirewallAssociationStatusCommand = exports.se_GetResourceSetCommand = exports.se_GetProtocolsListCommand = exports.se_GetProtectionStatusCommand = exports.se_GetPolicyCommand = exports.se_GetNotificationChannelCommand = exports.se_GetComplianceDetailCommand = exports.se_GetAppsListCommand = exports.se_GetAdminScopeCommand = exports.se_GetAdminAccountCommand = exports.se_DisassociateThirdPartyFirewallCommand = exports.se_DisassociateAdminAccountCommand = exports.se_DeleteResourceSetCommand = exports.se_DeleteProtocolsListCommand = exports.se_DeletePolicyCommand = exports.se_DeleteNotificationChannelCommand = exports.se_DeleteAppsListCommand = exports.se_BatchDisassociateResourceCommand = exports.se_BatchAssociateResourceCommand = exports.se_AssociateThirdPartyFirewallCommand = exports.se_AssociateAdminAccountCommand = void 0;
4
- exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_PutResourceSetCommand = exports.de_PutProtocolsListCommand = exports.de_PutPolicyCommand = exports.de_PutNotificationChannelCommand = exports.de_PutAppsListCommand = exports.de_PutAdminAccountCommand = exports.de_ListThirdPartyFirewallFirewallPoliciesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListResourceSetsCommand = exports.de_ListResourceSetResourcesCommand = exports.de_ListProtocolsListsCommand = exports.de_ListPoliciesCommand = exports.de_ListMemberAccountsCommand = exports.de_ListDiscoveredResourcesCommand = exports.de_ListComplianceStatusCommand = exports.de_ListAppsListsCommand = exports.de_ListAdminsManagingAccountCommand = exports.de_ListAdminAccountsForOrganizationCommand = exports.de_GetViolationDetailsCommand = exports.de_GetThirdPartyFirewallAssociationStatusCommand = exports.de_GetResourceSetCommand = exports.de_GetProtocolsListCommand = exports.de_GetProtectionStatusCommand = exports.de_GetPolicyCommand = exports.de_GetNotificationChannelCommand = exports.de_GetComplianceDetailCommand = exports.de_GetAppsListCommand = exports.de_GetAdminScopeCommand = exports.de_GetAdminAccountCommand = exports.de_DisassociateThirdPartyFirewallCommand = exports.de_DisassociateAdminAccountCommand = exports.de_DeleteResourceSetCommand = void 0;
5
- const protocol_http_1 = require("@smithy/protocol-http");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- const FMSServiceException_1 = require("../models/FMSServiceException");
8
- const models_0_1 = require("../models/models_0");
9
- const se_AssociateAdminAccountCommand = async (input, context) => {
10
- const headers = sharedHeaders("AssociateAdminAccount");
11
- let body;
12
- body = JSON.stringify((0, smithy_client_1._json)(input));
13
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
14
- };
15
- exports.se_AssociateAdminAccountCommand = se_AssociateAdminAccountCommand;
16
- const se_AssociateThirdPartyFirewallCommand = async (input, context) => {
17
- const headers = sharedHeaders("AssociateThirdPartyFirewall");
18
- let body;
19
- body = JSON.stringify((0, smithy_client_1._json)(input));
20
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
21
- };
22
- exports.se_AssociateThirdPartyFirewallCommand = se_AssociateThirdPartyFirewallCommand;
23
- const se_BatchAssociateResourceCommand = async (input, context) => {
24
- const headers = sharedHeaders("BatchAssociateResource");
25
- let body;
26
- body = JSON.stringify((0, smithy_client_1._json)(input));
27
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
28
- };
29
- exports.se_BatchAssociateResourceCommand = se_BatchAssociateResourceCommand;
30
- const se_BatchDisassociateResourceCommand = async (input, context) => {
31
- const headers = sharedHeaders("BatchDisassociateResource");
32
- let body;
33
- body = JSON.stringify((0, smithy_client_1._json)(input));
34
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
35
- };
36
- exports.se_BatchDisassociateResourceCommand = se_BatchDisassociateResourceCommand;
37
- const se_DeleteAppsListCommand = async (input, context) => {
38
- const headers = sharedHeaders("DeleteAppsList");
39
- let body;
40
- body = JSON.stringify((0, smithy_client_1._json)(input));
41
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
42
- };
43
- exports.se_DeleteAppsListCommand = se_DeleteAppsListCommand;
44
- const se_DeleteNotificationChannelCommand = async (input, context) => {
45
- const headers = sharedHeaders("DeleteNotificationChannel");
46
- let body;
47
- body = JSON.stringify((0, smithy_client_1._json)(input));
48
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
49
- };
50
- exports.se_DeleteNotificationChannelCommand = se_DeleteNotificationChannelCommand;
51
- const se_DeletePolicyCommand = async (input, context) => {
52
- const headers = sharedHeaders("DeletePolicy");
53
- let body;
54
- body = JSON.stringify((0, smithy_client_1._json)(input));
55
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
56
- };
57
- exports.se_DeletePolicyCommand = se_DeletePolicyCommand;
58
- const se_DeleteProtocolsListCommand = async (input, context) => {
59
- const headers = sharedHeaders("DeleteProtocolsList");
60
- let body;
61
- body = JSON.stringify((0, smithy_client_1._json)(input));
62
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
63
- };
64
- exports.se_DeleteProtocolsListCommand = se_DeleteProtocolsListCommand;
65
- const se_DeleteResourceSetCommand = async (input, context) => {
66
- const headers = sharedHeaders("DeleteResourceSet");
67
- let body;
68
- body = JSON.stringify((0, smithy_client_1._json)(input));
69
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
70
- };
71
- exports.se_DeleteResourceSetCommand = se_DeleteResourceSetCommand;
72
- const se_DisassociateAdminAccountCommand = async (input, context) => {
73
- const headers = sharedHeaders("DisassociateAdminAccount");
74
- let body;
75
- body = JSON.stringify((0, smithy_client_1._json)(input));
76
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
77
- };
78
- exports.se_DisassociateAdminAccountCommand = se_DisassociateAdminAccountCommand;
79
- const se_DisassociateThirdPartyFirewallCommand = async (input, context) => {
80
- const headers = sharedHeaders("DisassociateThirdPartyFirewall");
81
- let body;
82
- body = JSON.stringify((0, smithy_client_1._json)(input));
83
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
84
- };
85
- exports.se_DisassociateThirdPartyFirewallCommand = se_DisassociateThirdPartyFirewallCommand;
86
- const se_GetAdminAccountCommand = async (input, context) => {
87
- const headers = sharedHeaders("GetAdminAccount");
88
- let body;
89
- body = JSON.stringify((0, smithy_client_1._json)(input));
90
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
91
- };
92
- exports.se_GetAdminAccountCommand = se_GetAdminAccountCommand;
93
- const se_GetAdminScopeCommand = async (input, context) => {
94
- const headers = sharedHeaders("GetAdminScope");
95
- let body;
96
- body = JSON.stringify((0, smithy_client_1._json)(input));
97
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
98
- };
99
- exports.se_GetAdminScopeCommand = se_GetAdminScopeCommand;
100
- const se_GetAppsListCommand = async (input, context) => {
101
- const headers = sharedHeaders("GetAppsList");
102
- let body;
103
- body = JSON.stringify((0, smithy_client_1._json)(input));
104
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
105
- };
106
- exports.se_GetAppsListCommand = se_GetAppsListCommand;
107
- const se_GetComplianceDetailCommand = async (input, context) => {
108
- const headers = sharedHeaders("GetComplianceDetail");
109
- let body;
110
- body = JSON.stringify((0, smithy_client_1._json)(input));
111
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
112
- };
113
- exports.se_GetComplianceDetailCommand = se_GetComplianceDetailCommand;
114
- const se_GetNotificationChannelCommand = async (input, context) => {
115
- const headers = sharedHeaders("GetNotificationChannel");
116
- let body;
117
- body = JSON.stringify((0, smithy_client_1._json)(input));
118
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
119
- };
120
- exports.se_GetNotificationChannelCommand = se_GetNotificationChannelCommand;
121
- const se_GetPolicyCommand = async (input, context) => {
122
- const headers = sharedHeaders("GetPolicy");
123
- let body;
124
- body = JSON.stringify((0, smithy_client_1._json)(input));
125
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
126
- };
127
- exports.se_GetPolicyCommand = se_GetPolicyCommand;
128
- const se_GetProtectionStatusCommand = async (input, context) => {
129
- const headers = sharedHeaders("GetProtectionStatus");
130
- let body;
131
- body = JSON.stringify(se_GetProtectionStatusRequest(input, context));
132
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
133
- };
134
- exports.se_GetProtectionStatusCommand = se_GetProtectionStatusCommand;
135
- const se_GetProtocolsListCommand = async (input, context) => {
136
- const headers = sharedHeaders("GetProtocolsList");
137
- let body;
138
- body = JSON.stringify((0, smithy_client_1._json)(input));
139
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
140
- };
141
- exports.se_GetProtocolsListCommand = se_GetProtocolsListCommand;
142
- const se_GetResourceSetCommand = async (input, context) => {
143
- const headers = sharedHeaders("GetResourceSet");
144
- let body;
145
- body = JSON.stringify((0, smithy_client_1._json)(input));
146
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
147
- };
148
- exports.se_GetResourceSetCommand = se_GetResourceSetCommand;
149
- const se_GetThirdPartyFirewallAssociationStatusCommand = async (input, context) => {
150
- const headers = sharedHeaders("GetThirdPartyFirewallAssociationStatus");
151
- let body;
152
- body = JSON.stringify((0, smithy_client_1._json)(input));
153
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
154
- };
155
- exports.se_GetThirdPartyFirewallAssociationStatusCommand = se_GetThirdPartyFirewallAssociationStatusCommand;
156
- const se_GetViolationDetailsCommand = async (input, context) => {
157
- const headers = sharedHeaders("GetViolationDetails");
158
- let body;
159
- body = JSON.stringify((0, smithy_client_1._json)(input));
160
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
161
- };
162
- exports.se_GetViolationDetailsCommand = se_GetViolationDetailsCommand;
163
- const se_ListAdminAccountsForOrganizationCommand = async (input, context) => {
164
- const headers = sharedHeaders("ListAdminAccountsForOrganization");
165
- let body;
166
- body = JSON.stringify((0, smithy_client_1._json)(input));
167
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
168
- };
169
- exports.se_ListAdminAccountsForOrganizationCommand = se_ListAdminAccountsForOrganizationCommand;
170
- const se_ListAdminsManagingAccountCommand = async (input, context) => {
171
- const headers = sharedHeaders("ListAdminsManagingAccount");
172
- let body;
173
- body = JSON.stringify((0, smithy_client_1._json)(input));
174
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
175
- };
176
- exports.se_ListAdminsManagingAccountCommand = se_ListAdminsManagingAccountCommand;
177
- const se_ListAppsListsCommand = async (input, context) => {
178
- const headers = sharedHeaders("ListAppsLists");
179
- let body;
180
- body = JSON.stringify((0, smithy_client_1._json)(input));
181
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
182
- };
183
- exports.se_ListAppsListsCommand = se_ListAppsListsCommand;
184
- const se_ListComplianceStatusCommand = async (input, context) => {
185
- const headers = sharedHeaders("ListComplianceStatus");
186
- let body;
187
- body = JSON.stringify((0, smithy_client_1._json)(input));
188
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
189
- };
190
- exports.se_ListComplianceStatusCommand = se_ListComplianceStatusCommand;
191
- const se_ListDiscoveredResourcesCommand = async (input, context) => {
192
- const headers = sharedHeaders("ListDiscoveredResources");
193
- let body;
194
- body = JSON.stringify((0, smithy_client_1._json)(input));
195
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
196
- };
197
- exports.se_ListDiscoveredResourcesCommand = se_ListDiscoveredResourcesCommand;
198
- const se_ListMemberAccountsCommand = async (input, context) => {
199
- const headers = sharedHeaders("ListMemberAccounts");
200
- let body;
201
- body = JSON.stringify((0, smithy_client_1._json)(input));
202
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
203
- };
204
- exports.se_ListMemberAccountsCommand = se_ListMemberAccountsCommand;
205
- const se_ListPoliciesCommand = async (input, context) => {
206
- const headers = sharedHeaders("ListPolicies");
207
- let body;
208
- body = JSON.stringify((0, smithy_client_1._json)(input));
209
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
210
- };
211
- exports.se_ListPoliciesCommand = se_ListPoliciesCommand;
212
- const se_ListProtocolsListsCommand = async (input, context) => {
213
- const headers = sharedHeaders("ListProtocolsLists");
214
- let body;
215
- body = JSON.stringify((0, smithy_client_1._json)(input));
216
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
217
- };
218
- exports.se_ListProtocolsListsCommand = se_ListProtocolsListsCommand;
219
- const se_ListResourceSetResourcesCommand = async (input, context) => {
220
- const headers = sharedHeaders("ListResourceSetResources");
221
- let body;
222
- body = JSON.stringify((0, smithy_client_1._json)(input));
223
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
224
- };
225
- exports.se_ListResourceSetResourcesCommand = se_ListResourceSetResourcesCommand;
226
- const se_ListResourceSetsCommand = async (input, context) => {
227
- const headers = sharedHeaders("ListResourceSets");
228
- let body;
229
- body = JSON.stringify((0, smithy_client_1._json)(input));
230
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
231
- };
232
- exports.se_ListResourceSetsCommand = se_ListResourceSetsCommand;
233
- const se_ListTagsForResourceCommand = async (input, context) => {
234
- const headers = sharedHeaders("ListTagsForResource");
235
- let body;
236
- body = JSON.stringify((0, smithy_client_1._json)(input));
237
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
238
- };
239
- exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
240
- const se_ListThirdPartyFirewallFirewallPoliciesCommand = async (input, context) => {
241
- const headers = sharedHeaders("ListThirdPartyFirewallFirewallPolicies");
242
- let body;
243
- body = JSON.stringify((0, smithy_client_1._json)(input));
244
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
245
- };
246
- exports.se_ListThirdPartyFirewallFirewallPoliciesCommand = se_ListThirdPartyFirewallFirewallPoliciesCommand;
247
- const se_PutAdminAccountCommand = async (input, context) => {
248
- const headers = sharedHeaders("PutAdminAccount");
249
- let body;
250
- body = JSON.stringify((0, smithy_client_1._json)(input));
251
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
252
- };
253
- exports.se_PutAdminAccountCommand = se_PutAdminAccountCommand;
254
- const se_PutAppsListCommand = async (input, context) => {
255
- const headers = sharedHeaders("PutAppsList");
256
- let body;
257
- body = JSON.stringify(se_PutAppsListRequest(input, context));
258
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
259
- };
260
- exports.se_PutAppsListCommand = se_PutAppsListCommand;
261
- const se_PutNotificationChannelCommand = async (input, context) => {
262
- const headers = sharedHeaders("PutNotificationChannel");
263
- let body;
264
- body = JSON.stringify((0, smithy_client_1._json)(input));
265
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
266
- };
267
- exports.se_PutNotificationChannelCommand = se_PutNotificationChannelCommand;
268
- const se_PutPolicyCommand = async (input, context) => {
269
- const headers = sharedHeaders("PutPolicy");
270
- let body;
271
- body = JSON.stringify((0, smithy_client_1._json)(input));
272
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
273
- };
274
- exports.se_PutPolicyCommand = se_PutPolicyCommand;
275
- const se_PutProtocolsListCommand = async (input, context) => {
276
- const headers = sharedHeaders("PutProtocolsList");
277
- let body;
278
- body = JSON.stringify(se_PutProtocolsListRequest(input, context));
279
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
280
- };
281
- exports.se_PutProtocolsListCommand = se_PutProtocolsListCommand;
282
- const se_PutResourceSetCommand = async (input, context) => {
283
- const headers = sharedHeaders("PutResourceSet");
284
- let body;
285
- body = JSON.stringify(se_PutResourceSetRequest(input, context));
286
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
287
- };
288
- exports.se_PutResourceSetCommand = se_PutResourceSetCommand;
289
- const se_TagResourceCommand = async (input, context) => {
290
- const headers = sharedHeaders("TagResource");
291
- let body;
292
- body = JSON.stringify((0, smithy_client_1._json)(input));
293
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
294
- };
295
- exports.se_TagResourceCommand = se_TagResourceCommand;
296
- const se_UntagResourceCommand = async (input, context) => {
297
- const headers = sharedHeaders("UntagResource");
298
- let body;
299
- body = JSON.stringify((0, smithy_client_1._json)(input));
300
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
301
- };
302
- exports.se_UntagResourceCommand = se_UntagResourceCommand;
303
- const de_AssociateAdminAccountCommand = async (output, context) => {
304
- if (output.statusCode >= 300) {
305
- return de_AssociateAdminAccountCommandError(output, context);
306
- }
307
- await (0, smithy_client_1.collectBody)(output.body, context);
308
- const response = {
309
- $metadata: deserializeMetadata(output),
310
- };
311
- return response;
312
- };
313
- exports.de_AssociateAdminAccountCommand = de_AssociateAdminAccountCommand;
314
- const de_AssociateAdminAccountCommandError = async (output, context) => {
315
- const parsedOutput = {
316
- ...output,
317
- body: await parseErrorBody(output.body, context),
318
- };
319
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
320
- switch (errorCode) {
321
- case "InternalErrorException":
322
- case "com.amazonaws.fms#InternalErrorException":
323
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
324
- case "InvalidInputException":
325
- case "com.amazonaws.fms#InvalidInputException":
326
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
327
- case "InvalidOperationException":
328
- case "com.amazonaws.fms#InvalidOperationException":
329
- throw await de_InvalidOperationExceptionRes(parsedOutput, context);
330
- case "LimitExceededException":
331
- case "com.amazonaws.fms#LimitExceededException":
332
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
333
- case "ResourceNotFoundException":
334
- case "com.amazonaws.fms#ResourceNotFoundException":
335
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
336
- default:
337
- const parsedBody = parsedOutput.body;
338
- return throwDefaultError({
339
- output,
340
- parsedBody,
341
- errorCode,
342
- });
343
- }
344
- };
345
- const de_AssociateThirdPartyFirewallCommand = async (output, context) => {
346
- if (output.statusCode >= 300) {
347
- return de_AssociateThirdPartyFirewallCommandError(output, context);
348
- }
349
- const data = await parseBody(output.body, context);
350
- let contents = {};
351
- contents = (0, smithy_client_1._json)(data);
352
- const response = {
353
- $metadata: deserializeMetadata(output),
354
- ...contents,
355
- };
356
- return response;
357
- };
358
- exports.de_AssociateThirdPartyFirewallCommand = de_AssociateThirdPartyFirewallCommand;
359
- const de_AssociateThirdPartyFirewallCommandError = async (output, context) => {
360
- const parsedOutput = {
361
- ...output,
362
- body: await parseErrorBody(output.body, context),
363
- };
364
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
365
- switch (errorCode) {
366
- case "InternalErrorException":
367
- case "com.amazonaws.fms#InternalErrorException":
368
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
369
- case "InvalidInputException":
370
- case "com.amazonaws.fms#InvalidInputException":
371
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
372
- case "InvalidOperationException":
373
- case "com.amazonaws.fms#InvalidOperationException":
374
- throw await de_InvalidOperationExceptionRes(parsedOutput, context);
375
- case "ResourceNotFoundException":
376
- case "com.amazonaws.fms#ResourceNotFoundException":
377
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
378
- default:
379
- const parsedBody = parsedOutput.body;
380
- return throwDefaultError({
381
- output,
382
- parsedBody,
383
- errorCode,
384
- });
385
- }
386
- };
387
- const de_BatchAssociateResourceCommand = async (output, context) => {
388
- if (output.statusCode >= 300) {
389
- return de_BatchAssociateResourceCommandError(output, context);
390
- }
391
- const data = await parseBody(output.body, context);
392
- let contents = {};
393
- contents = (0, smithy_client_1._json)(data);
394
- const response = {
395
- $metadata: deserializeMetadata(output),
396
- ...contents,
397
- };
398
- return response;
399
- };
400
- exports.de_BatchAssociateResourceCommand = de_BatchAssociateResourceCommand;
401
- const de_BatchAssociateResourceCommandError = async (output, context) => {
402
- const parsedOutput = {
403
- ...output,
404
- body: await parseErrorBody(output.body, context),
405
- };
406
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
407
- switch (errorCode) {
408
- case "InternalErrorException":
409
- case "com.amazonaws.fms#InternalErrorException":
410
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
411
- case "InvalidInputException":
412
- case "com.amazonaws.fms#InvalidInputException":
413
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
414
- case "InvalidOperationException":
415
- case "com.amazonaws.fms#InvalidOperationException":
416
- throw await de_InvalidOperationExceptionRes(parsedOutput, context);
417
- case "LimitExceededException":
418
- case "com.amazonaws.fms#LimitExceededException":
419
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
420
- case "ResourceNotFoundException":
421
- case "com.amazonaws.fms#ResourceNotFoundException":
422
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
423
- default:
424
- const parsedBody = parsedOutput.body;
425
- return throwDefaultError({
426
- output,
427
- parsedBody,
428
- errorCode,
429
- });
430
- }
431
- };
432
- const de_BatchDisassociateResourceCommand = async (output, context) => {
433
- if (output.statusCode >= 300) {
434
- return de_BatchDisassociateResourceCommandError(output, context);
435
- }
436
- const data = await parseBody(output.body, context);
437
- let contents = {};
438
- contents = (0, smithy_client_1._json)(data);
439
- const response = {
440
- $metadata: deserializeMetadata(output),
441
- ...contents,
442
- };
443
- return response;
444
- };
445
- exports.de_BatchDisassociateResourceCommand = de_BatchDisassociateResourceCommand;
446
- const de_BatchDisassociateResourceCommandError = async (output, context) => {
447
- const parsedOutput = {
448
- ...output,
449
- body: await parseErrorBody(output.body, context),
450
- };
451
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
452
- switch (errorCode) {
453
- case "InternalErrorException":
454
- case "com.amazonaws.fms#InternalErrorException":
455
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
456
- case "InvalidInputException":
457
- case "com.amazonaws.fms#InvalidInputException":
458
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
459
- case "InvalidOperationException":
460
- case "com.amazonaws.fms#InvalidOperationException":
461
- throw await de_InvalidOperationExceptionRes(parsedOutput, context);
462
- case "ResourceNotFoundException":
463
- case "com.amazonaws.fms#ResourceNotFoundException":
464
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
465
- default:
466
- const parsedBody = parsedOutput.body;
467
- return throwDefaultError({
468
- output,
469
- parsedBody,
470
- errorCode,
471
- });
472
- }
473
- };
474
- const de_DeleteAppsListCommand = async (output, context) => {
475
- if (output.statusCode >= 300) {
476
- return de_DeleteAppsListCommandError(output, context);
477
- }
478
- await (0, smithy_client_1.collectBody)(output.body, context);
479
- const response = {
480
- $metadata: deserializeMetadata(output),
481
- };
482
- return response;
483
- };
484
- exports.de_DeleteAppsListCommand = de_DeleteAppsListCommand;
485
- const de_DeleteAppsListCommandError = async (output, context) => {
486
- const parsedOutput = {
487
- ...output,
488
- body: await parseErrorBody(output.body, context),
489
- };
490
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
491
- switch (errorCode) {
492
- case "InternalErrorException":
493
- case "com.amazonaws.fms#InternalErrorException":
494
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
495
- case "InvalidOperationException":
496
- case "com.amazonaws.fms#InvalidOperationException":
497
- throw await de_InvalidOperationExceptionRes(parsedOutput, context);
498
- case "ResourceNotFoundException":
499
- case "com.amazonaws.fms#ResourceNotFoundException":
500
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
501
- default:
502
- const parsedBody = parsedOutput.body;
503
- return throwDefaultError({
504
- output,
505
- parsedBody,
506
- errorCode,
507
- });
508
- }
509
- };
510
- const de_DeleteNotificationChannelCommand = async (output, context) => {
511
- if (output.statusCode >= 300) {
512
- return de_DeleteNotificationChannelCommandError(output, context);
513
- }
514
- await (0, smithy_client_1.collectBody)(output.body, context);
515
- const response = {
516
- $metadata: deserializeMetadata(output),
517
- };
518
- return response;
519
- };
520
- exports.de_DeleteNotificationChannelCommand = de_DeleteNotificationChannelCommand;
521
- const de_DeleteNotificationChannelCommandError = async (output, context) => {
522
- const parsedOutput = {
523
- ...output,
524
- body: await parseErrorBody(output.body, context),
525
- };
526
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
527
- switch (errorCode) {
528
- case "InternalErrorException":
529
- case "com.amazonaws.fms#InternalErrorException":
530
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
531
- case "InvalidOperationException":
532
- case "com.amazonaws.fms#InvalidOperationException":
533
- throw await de_InvalidOperationExceptionRes(parsedOutput, context);
534
- case "ResourceNotFoundException":
535
- case "com.amazonaws.fms#ResourceNotFoundException":
536
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
537
- default:
538
- const parsedBody = parsedOutput.body;
539
- return throwDefaultError({
540
- output,
541
- parsedBody,
542
- errorCode,
543
- });
544
- }
545
- };
546
- const de_DeletePolicyCommand = async (output, context) => {
547
- if (output.statusCode >= 300) {
548
- return de_DeletePolicyCommandError(output, context);
549
- }
550
- await (0, smithy_client_1.collectBody)(output.body, context);
551
- const response = {
552
- $metadata: deserializeMetadata(output),
553
- };
554
- return response;
555
- };
556
- exports.de_DeletePolicyCommand = de_DeletePolicyCommand;
557
- const de_DeletePolicyCommandError = async (output, context) => {
558
- const parsedOutput = {
559
- ...output,
560
- body: await parseErrorBody(output.body, context),
561
- };
562
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
563
- switch (errorCode) {
564
- case "InternalErrorException":
565
- case "com.amazonaws.fms#InternalErrorException":
566
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
567
- case "InvalidInputException":
568
- case "com.amazonaws.fms#InvalidInputException":
569
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
570
- case "InvalidOperationException":
571
- case "com.amazonaws.fms#InvalidOperationException":
572
- throw await de_InvalidOperationExceptionRes(parsedOutput, context);
573
- case "LimitExceededException":
574
- case "com.amazonaws.fms#LimitExceededException":
575
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
576
- case "ResourceNotFoundException":
577
- case "com.amazonaws.fms#ResourceNotFoundException":
578
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
579
- default:
580
- const parsedBody = parsedOutput.body;
581
- return throwDefaultError({
582
- output,
583
- parsedBody,
584
- errorCode,
585
- });
586
- }
587
- };
588
- const de_DeleteProtocolsListCommand = async (output, context) => {
589
- if (output.statusCode >= 300) {
590
- return de_DeleteProtocolsListCommandError(output, context);
591
- }
592
- await (0, smithy_client_1.collectBody)(output.body, context);
593
- const response = {
594
- $metadata: deserializeMetadata(output),
595
- };
596
- return response;
597
- };
598
- exports.de_DeleteProtocolsListCommand = de_DeleteProtocolsListCommand;
599
- const de_DeleteProtocolsListCommandError = async (output, context) => {
600
- const parsedOutput = {
601
- ...output,
602
- body: await parseErrorBody(output.body, context),
603
- };
604
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
605
- switch (errorCode) {
606
- case "InternalErrorException":
607
- case "com.amazonaws.fms#InternalErrorException":
608
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
609
- case "InvalidOperationException":
610
- case "com.amazonaws.fms#InvalidOperationException":
611
- throw await de_InvalidOperationExceptionRes(parsedOutput, context);
612
- case "ResourceNotFoundException":
613
- case "com.amazonaws.fms#ResourceNotFoundException":
614
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
615
- default:
616
- const parsedBody = parsedOutput.body;
617
- return throwDefaultError({
618
- output,
619
- parsedBody,
620
- errorCode,
621
- });
622
- }
623
- };
624
- const de_DeleteResourceSetCommand = async (output, context) => {
625
- if (output.statusCode >= 300) {
626
- return de_DeleteResourceSetCommandError(output, context);
627
- }
628
- await (0, smithy_client_1.collectBody)(output.body, context);
629
- const response = {
630
- $metadata: deserializeMetadata(output),
631
- };
632
- return response;
633
- };
634
- exports.de_DeleteResourceSetCommand = de_DeleteResourceSetCommand;
635
- const de_DeleteResourceSetCommandError = async (output, context) => {
636
- const parsedOutput = {
637
- ...output,
638
- body: await parseErrorBody(output.body, context),
639
- };
640
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
641
- switch (errorCode) {
642
- case "InternalErrorException":
643
- case "com.amazonaws.fms#InternalErrorException":
644
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
645
- case "InvalidInputException":
646
- case "com.amazonaws.fms#InvalidInputException":
647
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
648
- case "InvalidOperationException":
649
- case "com.amazonaws.fms#InvalidOperationException":
650
- throw await de_InvalidOperationExceptionRes(parsedOutput, context);
651
- case "ResourceNotFoundException":
652
- case "com.amazonaws.fms#ResourceNotFoundException":
653
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
654
- default:
655
- const parsedBody = parsedOutput.body;
656
- return throwDefaultError({
657
- output,
658
- parsedBody,
659
- errorCode,
660
- });
661
- }
662
- };
663
- const de_DisassociateAdminAccountCommand = async (output, context) => {
664
- if (output.statusCode >= 300) {
665
- return de_DisassociateAdminAccountCommandError(output, context);
666
- }
667
- await (0, smithy_client_1.collectBody)(output.body, context);
668
- const response = {
669
- $metadata: deserializeMetadata(output),
670
- };
671
- return response;
672
- };
673
- exports.de_DisassociateAdminAccountCommand = de_DisassociateAdminAccountCommand;
674
- const de_DisassociateAdminAccountCommandError = async (output, context) => {
675
- const parsedOutput = {
676
- ...output,
677
- body: await parseErrorBody(output.body, context),
678
- };
679
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
680
- switch (errorCode) {
681
- case "InternalErrorException":
682
- case "com.amazonaws.fms#InternalErrorException":
683
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
684
- case "InvalidOperationException":
685
- case "com.amazonaws.fms#InvalidOperationException":
686
- throw await de_InvalidOperationExceptionRes(parsedOutput, context);
687
- case "ResourceNotFoundException":
688
- case "com.amazonaws.fms#ResourceNotFoundException":
689
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
690
- default:
691
- const parsedBody = parsedOutput.body;
692
- return throwDefaultError({
693
- output,
694
- parsedBody,
695
- errorCode,
696
- });
697
- }
698
- };
699
- const de_DisassociateThirdPartyFirewallCommand = async (output, context) => {
700
- if (output.statusCode >= 300) {
701
- return de_DisassociateThirdPartyFirewallCommandError(output, context);
702
- }
703
- const data = await parseBody(output.body, context);
704
- let contents = {};
705
- contents = (0, smithy_client_1._json)(data);
706
- const response = {
707
- $metadata: deserializeMetadata(output),
708
- ...contents,
709
- };
710
- return response;
711
- };
712
- exports.de_DisassociateThirdPartyFirewallCommand = de_DisassociateThirdPartyFirewallCommand;
713
- const de_DisassociateThirdPartyFirewallCommandError = async (output, context) => {
714
- const parsedOutput = {
715
- ...output,
716
- body: await parseErrorBody(output.body, context),
717
- };
718
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
719
- switch (errorCode) {
720
- case "InternalErrorException":
721
- case "com.amazonaws.fms#InternalErrorException":
722
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
723
- case "InvalidInputException":
724
- case "com.amazonaws.fms#InvalidInputException":
725
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
726
- case "InvalidOperationException":
727
- case "com.amazonaws.fms#InvalidOperationException":
728
- throw await de_InvalidOperationExceptionRes(parsedOutput, context);
729
- case "ResourceNotFoundException":
730
- case "com.amazonaws.fms#ResourceNotFoundException":
731
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
732
- default:
733
- const parsedBody = parsedOutput.body;
734
- return throwDefaultError({
735
- output,
736
- parsedBody,
737
- errorCode,
738
- });
739
- }
740
- };
741
- const de_GetAdminAccountCommand = async (output, context) => {
742
- if (output.statusCode >= 300) {
743
- return de_GetAdminAccountCommandError(output, context);
744
- }
745
- const data = await parseBody(output.body, context);
746
- let contents = {};
747
- contents = (0, smithy_client_1._json)(data);
748
- const response = {
749
- $metadata: deserializeMetadata(output),
750
- ...contents,
751
- };
752
- return response;
753
- };
754
- exports.de_GetAdminAccountCommand = de_GetAdminAccountCommand;
755
- const de_GetAdminAccountCommandError = async (output, context) => {
756
- const parsedOutput = {
757
- ...output,
758
- body: await parseErrorBody(output.body, context),
759
- };
760
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
761
- switch (errorCode) {
762
- case "InternalErrorException":
763
- case "com.amazonaws.fms#InternalErrorException":
764
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
765
- case "InvalidOperationException":
766
- case "com.amazonaws.fms#InvalidOperationException":
767
- throw await de_InvalidOperationExceptionRes(parsedOutput, context);
768
- case "ResourceNotFoundException":
769
- case "com.amazonaws.fms#ResourceNotFoundException":
770
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
771
- default:
772
- const parsedBody = parsedOutput.body;
773
- return throwDefaultError({
774
- output,
775
- parsedBody,
776
- errorCode,
777
- });
778
- }
779
- };
780
- const de_GetAdminScopeCommand = async (output, context) => {
781
- if (output.statusCode >= 300) {
782
- return de_GetAdminScopeCommandError(output, context);
783
- }
784
- const data = await parseBody(output.body, context);
785
- let contents = {};
786
- contents = (0, smithy_client_1._json)(data);
787
- const response = {
788
- $metadata: deserializeMetadata(output),
789
- ...contents,
790
- };
791
- return response;
792
- };
793
- exports.de_GetAdminScopeCommand = de_GetAdminScopeCommand;
794
- const de_GetAdminScopeCommandError = async (output, context) => {
795
- const parsedOutput = {
796
- ...output,
797
- body: await parseErrorBody(output.body, context),
798
- };
799
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
800
- switch (errorCode) {
801
- case "InternalErrorException":
802
- case "com.amazonaws.fms#InternalErrorException":
803
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
804
- case "InvalidInputException":
805
- case "com.amazonaws.fms#InvalidInputException":
806
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
807
- case "InvalidOperationException":
808
- case "com.amazonaws.fms#InvalidOperationException":
809
- throw await de_InvalidOperationExceptionRes(parsedOutput, context);
810
- case "LimitExceededException":
811
- case "com.amazonaws.fms#LimitExceededException":
812
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
813
- case "ResourceNotFoundException":
814
- case "com.amazonaws.fms#ResourceNotFoundException":
815
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
816
- default:
817
- const parsedBody = parsedOutput.body;
818
- return throwDefaultError({
819
- output,
820
- parsedBody,
821
- errorCode,
822
- });
823
- }
824
- };
825
- const de_GetAppsListCommand = async (output, context) => {
826
- if (output.statusCode >= 300) {
827
- return de_GetAppsListCommandError(output, context);
828
- }
829
- const data = await parseBody(output.body, context);
830
- let contents = {};
831
- contents = de_GetAppsListResponse(data, context);
832
- const response = {
833
- $metadata: deserializeMetadata(output),
834
- ...contents,
835
- };
836
- return response;
837
- };
838
- exports.de_GetAppsListCommand = de_GetAppsListCommand;
839
- const de_GetAppsListCommandError = async (output, context) => {
840
- const parsedOutput = {
841
- ...output,
842
- body: await parseErrorBody(output.body, context),
843
- };
844
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
845
- switch (errorCode) {
846
- case "InternalErrorException":
847
- case "com.amazonaws.fms#InternalErrorException":
848
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
849
- case "InvalidOperationException":
850
- case "com.amazonaws.fms#InvalidOperationException":
851
- throw await de_InvalidOperationExceptionRes(parsedOutput, context);
852
- case "ResourceNotFoundException":
853
- case "com.amazonaws.fms#ResourceNotFoundException":
854
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
855
- default:
856
- const parsedBody = parsedOutput.body;
857
- return throwDefaultError({
858
- output,
859
- parsedBody,
860
- errorCode,
861
- });
862
- }
863
- };
864
- const de_GetComplianceDetailCommand = async (output, context) => {
865
- if (output.statusCode >= 300) {
866
- return de_GetComplianceDetailCommandError(output, context);
867
- }
868
- const data = await parseBody(output.body, context);
869
- let contents = {};
870
- contents = de_GetComplianceDetailResponse(data, context);
871
- const response = {
872
- $metadata: deserializeMetadata(output),
873
- ...contents,
874
- };
875
- return response;
876
- };
877
- exports.de_GetComplianceDetailCommand = de_GetComplianceDetailCommand;
878
- const de_GetComplianceDetailCommandError = async (output, context) => {
879
- const parsedOutput = {
880
- ...output,
881
- body: await parseErrorBody(output.body, context),
882
- };
883
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
884
- switch (errorCode) {
885
- case "InternalErrorException":
886
- case "com.amazonaws.fms#InternalErrorException":
887
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
888
- case "InvalidInputException":
889
- case "com.amazonaws.fms#InvalidInputException":
890
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
891
- case "InvalidOperationException":
892
- case "com.amazonaws.fms#InvalidOperationException":
893
- throw await de_InvalidOperationExceptionRes(parsedOutput, context);
894
- case "ResourceNotFoundException":
895
- case "com.amazonaws.fms#ResourceNotFoundException":
896
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
897
- default:
898
- const parsedBody = parsedOutput.body;
899
- return throwDefaultError({
900
- output,
901
- parsedBody,
902
- errorCode,
903
- });
904
- }
905
- };
906
- const de_GetNotificationChannelCommand = async (output, context) => {
907
- if (output.statusCode >= 300) {
908
- return de_GetNotificationChannelCommandError(output, context);
909
- }
910
- const data = await parseBody(output.body, context);
911
- let contents = {};
912
- contents = (0, smithy_client_1._json)(data);
913
- const response = {
914
- $metadata: deserializeMetadata(output),
915
- ...contents,
916
- };
917
- return response;
918
- };
919
- exports.de_GetNotificationChannelCommand = de_GetNotificationChannelCommand;
920
- const de_GetNotificationChannelCommandError = async (output, context) => {
921
- const parsedOutput = {
922
- ...output,
923
- body: await parseErrorBody(output.body, context),
924
- };
925
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
926
- switch (errorCode) {
927
- case "InternalErrorException":
928
- case "com.amazonaws.fms#InternalErrorException":
929
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
930
- case "InvalidOperationException":
931
- case "com.amazonaws.fms#InvalidOperationException":
932
- throw await de_InvalidOperationExceptionRes(parsedOutput, context);
933
- case "ResourceNotFoundException":
934
- case "com.amazonaws.fms#ResourceNotFoundException":
935
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
936
- default:
937
- const parsedBody = parsedOutput.body;
938
- return throwDefaultError({
939
- output,
940
- parsedBody,
941
- errorCode,
942
- });
943
- }
944
- };
945
- const de_GetPolicyCommand = async (output, context) => {
946
- if (output.statusCode >= 300) {
947
- return de_GetPolicyCommandError(output, context);
948
- }
949
- const data = await parseBody(output.body, context);
950
- let contents = {};
951
- contents = (0, smithy_client_1._json)(data);
952
- const response = {
953
- $metadata: deserializeMetadata(output),
954
- ...contents,
955
- };
956
- return response;
957
- };
958
- exports.de_GetPolicyCommand = de_GetPolicyCommand;
959
- const de_GetPolicyCommandError = async (output, context) => {
960
- const parsedOutput = {
961
- ...output,
962
- body: await parseErrorBody(output.body, context),
963
- };
964
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
965
- switch (errorCode) {
966
- case "InternalErrorException":
967
- case "com.amazonaws.fms#InternalErrorException":
968
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
969
- case "InvalidOperationException":
970
- case "com.amazonaws.fms#InvalidOperationException":
971
- throw await de_InvalidOperationExceptionRes(parsedOutput, context);
972
- case "InvalidTypeException":
973
- case "com.amazonaws.fms#InvalidTypeException":
974
- throw await de_InvalidTypeExceptionRes(parsedOutput, context);
975
- case "ResourceNotFoundException":
976
- case "com.amazonaws.fms#ResourceNotFoundException":
977
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
978
- default:
979
- const parsedBody = parsedOutput.body;
980
- return throwDefaultError({
981
- output,
982
- parsedBody,
983
- errorCode,
984
- });
985
- }
986
- };
987
- const de_GetProtectionStatusCommand = async (output, context) => {
988
- if (output.statusCode >= 300) {
989
- return de_GetProtectionStatusCommandError(output, context);
990
- }
991
- const data = await parseBody(output.body, context);
992
- let contents = {};
993
- contents = (0, smithy_client_1._json)(data);
994
- const response = {
995
- $metadata: deserializeMetadata(output),
996
- ...contents,
997
- };
998
- return response;
999
- };
1000
- exports.de_GetProtectionStatusCommand = de_GetProtectionStatusCommand;
1001
- const de_GetProtectionStatusCommandError = async (output, context) => {
1002
- const parsedOutput = {
1003
- ...output,
1004
- body: await parseErrorBody(output.body, context),
1005
- };
1006
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1007
- switch (errorCode) {
1008
- case "InternalErrorException":
1009
- case "com.amazonaws.fms#InternalErrorException":
1010
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1011
- case "InvalidInputException":
1012
- case "com.amazonaws.fms#InvalidInputException":
1013
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1014
- case "ResourceNotFoundException":
1015
- case "com.amazonaws.fms#ResourceNotFoundException":
1016
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1017
- default:
1018
- const parsedBody = parsedOutput.body;
1019
- return throwDefaultError({
1020
- output,
1021
- parsedBody,
1022
- errorCode,
1023
- });
1024
- }
1025
- };
1026
- const de_GetProtocolsListCommand = async (output, context) => {
1027
- if (output.statusCode >= 300) {
1028
- return de_GetProtocolsListCommandError(output, context);
1029
- }
1030
- const data = await parseBody(output.body, context);
1031
- let contents = {};
1032
- contents = de_GetProtocolsListResponse(data, context);
1033
- const response = {
1034
- $metadata: deserializeMetadata(output),
1035
- ...contents,
1036
- };
1037
- return response;
1038
- };
1039
- exports.de_GetProtocolsListCommand = de_GetProtocolsListCommand;
1040
- const de_GetProtocolsListCommandError = async (output, context) => {
1041
- const parsedOutput = {
1042
- ...output,
1043
- body: await parseErrorBody(output.body, context),
1044
- };
1045
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1046
- switch (errorCode) {
1047
- case "InternalErrorException":
1048
- case "com.amazonaws.fms#InternalErrorException":
1049
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1050
- case "InvalidOperationException":
1051
- case "com.amazonaws.fms#InvalidOperationException":
1052
- throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1053
- case "ResourceNotFoundException":
1054
- case "com.amazonaws.fms#ResourceNotFoundException":
1055
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1056
- default:
1057
- const parsedBody = parsedOutput.body;
1058
- return throwDefaultError({
1059
- output,
1060
- parsedBody,
1061
- errorCode,
1062
- });
1063
- }
1064
- };
1065
- const de_GetResourceSetCommand = async (output, context) => {
1066
- if (output.statusCode >= 300) {
1067
- return de_GetResourceSetCommandError(output, context);
1068
- }
1069
- const data = await parseBody(output.body, context);
1070
- let contents = {};
1071
- contents = de_GetResourceSetResponse(data, context);
1072
- const response = {
1073
- $metadata: deserializeMetadata(output),
1074
- ...contents,
1075
- };
1076
- return response;
1077
- };
1078
- exports.de_GetResourceSetCommand = de_GetResourceSetCommand;
1079
- const de_GetResourceSetCommandError = async (output, context) => {
1080
- const parsedOutput = {
1081
- ...output,
1082
- body: await parseErrorBody(output.body, context),
1083
- };
1084
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1085
- switch (errorCode) {
1086
- case "InternalErrorException":
1087
- case "com.amazonaws.fms#InternalErrorException":
1088
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1089
- case "InvalidInputException":
1090
- case "com.amazonaws.fms#InvalidInputException":
1091
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1092
- case "InvalidOperationException":
1093
- case "com.amazonaws.fms#InvalidOperationException":
1094
- throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1095
- case "ResourceNotFoundException":
1096
- case "com.amazonaws.fms#ResourceNotFoundException":
1097
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1098
- default:
1099
- const parsedBody = parsedOutput.body;
1100
- return throwDefaultError({
1101
- output,
1102
- parsedBody,
1103
- errorCode,
1104
- });
1105
- }
1106
- };
1107
- const de_GetThirdPartyFirewallAssociationStatusCommand = async (output, context) => {
1108
- if (output.statusCode >= 300) {
1109
- return de_GetThirdPartyFirewallAssociationStatusCommandError(output, context);
1110
- }
1111
- const data = await parseBody(output.body, context);
1112
- let contents = {};
1113
- contents = (0, smithy_client_1._json)(data);
1114
- const response = {
1115
- $metadata: deserializeMetadata(output),
1116
- ...contents,
1117
- };
1118
- return response;
1119
- };
1120
- exports.de_GetThirdPartyFirewallAssociationStatusCommand = de_GetThirdPartyFirewallAssociationStatusCommand;
1121
- const de_GetThirdPartyFirewallAssociationStatusCommandError = async (output, context) => {
1122
- const parsedOutput = {
1123
- ...output,
1124
- body: await parseErrorBody(output.body, context),
1125
- };
1126
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1127
- switch (errorCode) {
1128
- case "InternalErrorException":
1129
- case "com.amazonaws.fms#InternalErrorException":
1130
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1131
- case "InvalidInputException":
1132
- case "com.amazonaws.fms#InvalidInputException":
1133
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1134
- case "InvalidOperationException":
1135
- case "com.amazonaws.fms#InvalidOperationException":
1136
- throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1137
- case "ResourceNotFoundException":
1138
- case "com.amazonaws.fms#ResourceNotFoundException":
1139
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1140
- default:
1141
- const parsedBody = parsedOutput.body;
1142
- return throwDefaultError({
1143
- output,
1144
- parsedBody,
1145
- errorCode,
1146
- });
1147
- }
1148
- };
1149
- const de_GetViolationDetailsCommand = async (output, context) => {
1150
- if (output.statusCode >= 300) {
1151
- return de_GetViolationDetailsCommandError(output, context);
1152
- }
1153
- const data = await parseBody(output.body, context);
1154
- let contents = {};
1155
- contents = de_GetViolationDetailsResponse(data, context);
1156
- const response = {
1157
- $metadata: deserializeMetadata(output),
1158
- ...contents,
1159
- };
1160
- return response;
1161
- };
1162
- exports.de_GetViolationDetailsCommand = de_GetViolationDetailsCommand;
1163
- const de_GetViolationDetailsCommandError = async (output, context) => {
1164
- const parsedOutput = {
1165
- ...output,
1166
- body: await parseErrorBody(output.body, context),
1167
- };
1168
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1169
- switch (errorCode) {
1170
- case "InternalErrorException":
1171
- case "com.amazonaws.fms#InternalErrorException":
1172
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1173
- case "InvalidInputException":
1174
- case "com.amazonaws.fms#InvalidInputException":
1175
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1176
- case "ResourceNotFoundException":
1177
- case "com.amazonaws.fms#ResourceNotFoundException":
1178
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1179
- default:
1180
- const parsedBody = parsedOutput.body;
1181
- return throwDefaultError({
1182
- output,
1183
- parsedBody,
1184
- errorCode,
1185
- });
1186
- }
1187
- };
1188
- const de_ListAdminAccountsForOrganizationCommand = async (output, context) => {
1189
- if (output.statusCode >= 300) {
1190
- return de_ListAdminAccountsForOrganizationCommandError(output, context);
1191
- }
1192
- const data = await parseBody(output.body, context);
1193
- let contents = {};
1194
- contents = (0, smithy_client_1._json)(data);
1195
- const response = {
1196
- $metadata: deserializeMetadata(output),
1197
- ...contents,
1198
- };
1199
- return response;
1200
- };
1201
- exports.de_ListAdminAccountsForOrganizationCommand = de_ListAdminAccountsForOrganizationCommand;
1202
- const de_ListAdminAccountsForOrganizationCommandError = async (output, context) => {
1203
- const parsedOutput = {
1204
- ...output,
1205
- body: await parseErrorBody(output.body, context),
1206
- };
1207
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1208
- switch (errorCode) {
1209
- case "InternalErrorException":
1210
- case "com.amazonaws.fms#InternalErrorException":
1211
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1212
- case "InvalidOperationException":
1213
- case "com.amazonaws.fms#InvalidOperationException":
1214
- throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1215
- case "LimitExceededException":
1216
- case "com.amazonaws.fms#LimitExceededException":
1217
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1218
- case "ResourceNotFoundException":
1219
- case "com.amazonaws.fms#ResourceNotFoundException":
1220
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1221
- default:
1222
- const parsedBody = parsedOutput.body;
1223
- return throwDefaultError({
1224
- output,
1225
- parsedBody,
1226
- errorCode,
1227
- });
1228
- }
1229
- };
1230
- const de_ListAdminsManagingAccountCommand = async (output, context) => {
1231
- if (output.statusCode >= 300) {
1232
- return de_ListAdminsManagingAccountCommandError(output, context);
1233
- }
1234
- const data = await parseBody(output.body, context);
1235
- let contents = {};
1236
- contents = (0, smithy_client_1._json)(data);
1237
- const response = {
1238
- $metadata: deserializeMetadata(output),
1239
- ...contents,
1240
- };
1241
- return response;
1242
- };
1243
- exports.de_ListAdminsManagingAccountCommand = de_ListAdminsManagingAccountCommand;
1244
- const de_ListAdminsManagingAccountCommandError = async (output, context) => {
1245
- const parsedOutput = {
1246
- ...output,
1247
- body: await parseErrorBody(output.body, context),
1248
- };
1249
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1250
- switch (errorCode) {
1251
- case "InternalErrorException":
1252
- case "com.amazonaws.fms#InternalErrorException":
1253
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1254
- case "InvalidInputException":
1255
- case "com.amazonaws.fms#InvalidInputException":
1256
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1257
- case "ResourceNotFoundException":
1258
- case "com.amazonaws.fms#ResourceNotFoundException":
1259
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1260
- default:
1261
- const parsedBody = parsedOutput.body;
1262
- return throwDefaultError({
1263
- output,
1264
- parsedBody,
1265
- errorCode,
1266
- });
1267
- }
1268
- };
1269
- const de_ListAppsListsCommand = async (output, context) => {
1270
- if (output.statusCode >= 300) {
1271
- return de_ListAppsListsCommandError(output, context);
1272
- }
1273
- const data = await parseBody(output.body, context);
1274
- let contents = {};
1275
- contents = (0, smithy_client_1._json)(data);
1276
- const response = {
1277
- $metadata: deserializeMetadata(output),
1278
- ...contents,
1279
- };
1280
- return response;
1281
- };
1282
- exports.de_ListAppsListsCommand = de_ListAppsListsCommand;
1283
- const de_ListAppsListsCommandError = async (output, context) => {
1284
- const parsedOutput = {
1285
- ...output,
1286
- body: await parseErrorBody(output.body, context),
1287
- };
1288
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1289
- switch (errorCode) {
1290
- case "InternalErrorException":
1291
- case "com.amazonaws.fms#InternalErrorException":
1292
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1293
- case "InvalidOperationException":
1294
- case "com.amazonaws.fms#InvalidOperationException":
1295
- throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1296
- case "LimitExceededException":
1297
- case "com.amazonaws.fms#LimitExceededException":
1298
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1299
- case "ResourceNotFoundException":
1300
- case "com.amazonaws.fms#ResourceNotFoundException":
1301
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1302
- default:
1303
- const parsedBody = parsedOutput.body;
1304
- return throwDefaultError({
1305
- output,
1306
- parsedBody,
1307
- errorCode,
1308
- });
1309
- }
1310
- };
1311
- const de_ListComplianceStatusCommand = async (output, context) => {
1312
- if (output.statusCode >= 300) {
1313
- return de_ListComplianceStatusCommandError(output, context);
1314
- }
1315
- const data = await parseBody(output.body, context);
1316
- let contents = {};
1317
- contents = de_ListComplianceStatusResponse(data, context);
1318
- const response = {
1319
- $metadata: deserializeMetadata(output),
1320
- ...contents,
1321
- };
1322
- return response;
1323
- };
1324
- exports.de_ListComplianceStatusCommand = de_ListComplianceStatusCommand;
1325
- const de_ListComplianceStatusCommandError = async (output, context) => {
1326
- const parsedOutput = {
1327
- ...output,
1328
- body: await parseErrorBody(output.body, context),
1329
- };
1330
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1331
- switch (errorCode) {
1332
- case "InternalErrorException":
1333
- case "com.amazonaws.fms#InternalErrorException":
1334
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1335
- case "ResourceNotFoundException":
1336
- case "com.amazonaws.fms#ResourceNotFoundException":
1337
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1338
- default:
1339
- const parsedBody = parsedOutput.body;
1340
- return throwDefaultError({
1341
- output,
1342
- parsedBody,
1343
- errorCode,
1344
- });
1345
- }
1346
- };
1347
- const de_ListDiscoveredResourcesCommand = async (output, context) => {
1348
- if (output.statusCode >= 300) {
1349
- return de_ListDiscoveredResourcesCommandError(output, context);
1350
- }
1351
- const data = await parseBody(output.body, context);
1352
- let contents = {};
1353
- contents = (0, smithy_client_1._json)(data);
1354
- const response = {
1355
- $metadata: deserializeMetadata(output),
1356
- ...contents,
1357
- };
1358
- return response;
1359
- };
1360
- exports.de_ListDiscoveredResourcesCommand = de_ListDiscoveredResourcesCommand;
1361
- const de_ListDiscoveredResourcesCommandError = async (output, context) => {
1362
- const parsedOutput = {
1363
- ...output,
1364
- body: await parseErrorBody(output.body, context),
1365
- };
1366
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1367
- switch (errorCode) {
1368
- case "InternalErrorException":
1369
- case "com.amazonaws.fms#InternalErrorException":
1370
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1371
- case "InvalidInputException":
1372
- case "com.amazonaws.fms#InvalidInputException":
1373
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1374
- case "InvalidOperationException":
1375
- case "com.amazonaws.fms#InvalidOperationException":
1376
- throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1377
- default:
1378
- const parsedBody = parsedOutput.body;
1379
- return throwDefaultError({
1380
- output,
1381
- parsedBody,
1382
- errorCode,
1383
- });
1384
- }
1385
- };
1386
- const de_ListMemberAccountsCommand = async (output, context) => {
1387
- if (output.statusCode >= 300) {
1388
- return de_ListMemberAccountsCommandError(output, context);
1389
- }
1390
- const data = await parseBody(output.body, context);
1391
- let contents = {};
1392
- contents = (0, smithy_client_1._json)(data);
1393
- const response = {
1394
- $metadata: deserializeMetadata(output),
1395
- ...contents,
1396
- };
1397
- return response;
1398
- };
1399
- exports.de_ListMemberAccountsCommand = de_ListMemberAccountsCommand;
1400
- const de_ListMemberAccountsCommandError = async (output, context) => {
1401
- const parsedOutput = {
1402
- ...output,
1403
- body: await parseErrorBody(output.body, context),
1404
- };
1405
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1406
- switch (errorCode) {
1407
- case "InternalErrorException":
1408
- case "com.amazonaws.fms#InternalErrorException":
1409
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1410
- case "ResourceNotFoundException":
1411
- case "com.amazonaws.fms#ResourceNotFoundException":
1412
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1413
- default:
1414
- const parsedBody = parsedOutput.body;
1415
- return throwDefaultError({
1416
- output,
1417
- parsedBody,
1418
- errorCode,
1419
- });
1420
- }
1421
- };
1422
- const de_ListPoliciesCommand = async (output, context) => {
1423
- if (output.statusCode >= 300) {
1424
- return de_ListPoliciesCommandError(output, context);
1425
- }
1426
- const data = await parseBody(output.body, context);
1427
- let contents = {};
1428
- contents = (0, smithy_client_1._json)(data);
1429
- const response = {
1430
- $metadata: deserializeMetadata(output),
1431
- ...contents,
1432
- };
1433
- return response;
1434
- };
1435
- exports.de_ListPoliciesCommand = de_ListPoliciesCommand;
1436
- const de_ListPoliciesCommandError = async (output, context) => {
1437
- const parsedOutput = {
1438
- ...output,
1439
- body: await parseErrorBody(output.body, context),
1440
- };
1441
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1442
- switch (errorCode) {
1443
- case "InternalErrorException":
1444
- case "com.amazonaws.fms#InternalErrorException":
1445
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1446
- case "InvalidOperationException":
1447
- case "com.amazonaws.fms#InvalidOperationException":
1448
- throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1449
- case "LimitExceededException":
1450
- case "com.amazonaws.fms#LimitExceededException":
1451
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1452
- case "ResourceNotFoundException":
1453
- case "com.amazonaws.fms#ResourceNotFoundException":
1454
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1455
- default:
1456
- const parsedBody = parsedOutput.body;
1457
- return throwDefaultError({
1458
- output,
1459
- parsedBody,
1460
- errorCode,
1461
- });
1462
- }
1463
- };
1464
- const de_ListProtocolsListsCommand = async (output, context) => {
1465
- if (output.statusCode >= 300) {
1466
- return de_ListProtocolsListsCommandError(output, context);
1467
- }
1468
- const data = await parseBody(output.body, context);
1469
- let contents = {};
1470
- contents = (0, smithy_client_1._json)(data);
1471
- const response = {
1472
- $metadata: deserializeMetadata(output),
1473
- ...contents,
1474
- };
1475
- return response;
1476
- };
1477
- exports.de_ListProtocolsListsCommand = de_ListProtocolsListsCommand;
1478
- const de_ListProtocolsListsCommandError = async (output, context) => {
1479
- const parsedOutput = {
1480
- ...output,
1481
- body: await parseErrorBody(output.body, context),
1482
- };
1483
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1484
- switch (errorCode) {
1485
- case "InternalErrorException":
1486
- case "com.amazonaws.fms#InternalErrorException":
1487
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1488
- case "InvalidOperationException":
1489
- case "com.amazonaws.fms#InvalidOperationException":
1490
- throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1491
- case "ResourceNotFoundException":
1492
- case "com.amazonaws.fms#ResourceNotFoundException":
1493
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1494
- default:
1495
- const parsedBody = parsedOutput.body;
1496
- return throwDefaultError({
1497
- output,
1498
- parsedBody,
1499
- errorCode,
1500
- });
1501
- }
1502
- };
1503
- const de_ListResourceSetResourcesCommand = async (output, context) => {
1504
- if (output.statusCode >= 300) {
1505
- return de_ListResourceSetResourcesCommandError(output, context);
1506
- }
1507
- const data = await parseBody(output.body, context);
1508
- let contents = {};
1509
- contents = (0, smithy_client_1._json)(data);
1510
- const response = {
1511
- $metadata: deserializeMetadata(output),
1512
- ...contents,
1513
- };
1514
- return response;
1515
- };
1516
- exports.de_ListResourceSetResourcesCommand = de_ListResourceSetResourcesCommand;
1517
- const de_ListResourceSetResourcesCommandError = async (output, context) => {
1518
- const parsedOutput = {
1519
- ...output,
1520
- body: await parseErrorBody(output.body, context),
1521
- };
1522
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1523
- switch (errorCode) {
1524
- case "InternalErrorException":
1525
- case "com.amazonaws.fms#InternalErrorException":
1526
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1527
- case "InvalidInputException":
1528
- case "com.amazonaws.fms#InvalidInputException":
1529
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1530
- case "InvalidOperationException":
1531
- case "com.amazonaws.fms#InvalidOperationException":
1532
- throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1533
- case "ResourceNotFoundException":
1534
- case "com.amazonaws.fms#ResourceNotFoundException":
1535
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1536
- default:
1537
- const parsedBody = parsedOutput.body;
1538
- return throwDefaultError({
1539
- output,
1540
- parsedBody,
1541
- errorCode,
1542
- });
1543
- }
1544
- };
1545
- const de_ListResourceSetsCommand = async (output, context) => {
1546
- if (output.statusCode >= 300) {
1547
- return de_ListResourceSetsCommandError(output, context);
1548
- }
1549
- const data = await parseBody(output.body, context);
1550
- let contents = {};
1551
- contents = de_ListResourceSetsResponse(data, context);
1552
- const response = {
1553
- $metadata: deserializeMetadata(output),
1554
- ...contents,
1555
- };
1556
- return response;
1557
- };
1558
- exports.de_ListResourceSetsCommand = de_ListResourceSetsCommand;
1559
- const de_ListResourceSetsCommandError = async (output, context) => {
1560
- const parsedOutput = {
1561
- ...output,
1562
- body: await parseErrorBody(output.body, context),
1563
- };
1564
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1565
- switch (errorCode) {
1566
- case "InternalErrorException":
1567
- case "com.amazonaws.fms#InternalErrorException":
1568
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1569
- case "InvalidInputException":
1570
- case "com.amazonaws.fms#InvalidInputException":
1571
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1572
- case "InvalidOperationException":
1573
- case "com.amazonaws.fms#InvalidOperationException":
1574
- throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1575
- default:
1576
- const parsedBody = parsedOutput.body;
1577
- return throwDefaultError({
1578
- output,
1579
- parsedBody,
1580
- errorCode,
1581
- });
1582
- }
1583
- };
1584
- const de_ListTagsForResourceCommand = async (output, context) => {
1585
- if (output.statusCode >= 300) {
1586
- return de_ListTagsForResourceCommandError(output, context);
1587
- }
1588
- const data = await parseBody(output.body, context);
1589
- let contents = {};
1590
- contents = (0, smithy_client_1._json)(data);
1591
- const response = {
1592
- $metadata: deserializeMetadata(output),
1593
- ...contents,
1594
- };
1595
- return response;
1596
- };
1597
- exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
1598
- const de_ListTagsForResourceCommandError = async (output, context) => {
1599
- const parsedOutput = {
1600
- ...output,
1601
- body: await parseErrorBody(output.body, context),
1602
- };
1603
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1604
- switch (errorCode) {
1605
- case "InternalErrorException":
1606
- case "com.amazonaws.fms#InternalErrorException":
1607
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1608
- case "InvalidInputException":
1609
- case "com.amazonaws.fms#InvalidInputException":
1610
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1611
- case "InvalidOperationException":
1612
- case "com.amazonaws.fms#InvalidOperationException":
1613
- throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1614
- case "ResourceNotFoundException":
1615
- case "com.amazonaws.fms#ResourceNotFoundException":
1616
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1617
- default:
1618
- const parsedBody = parsedOutput.body;
1619
- return throwDefaultError({
1620
- output,
1621
- parsedBody,
1622
- errorCode,
1623
- });
1624
- }
1625
- };
1626
- const de_ListThirdPartyFirewallFirewallPoliciesCommand = async (output, context) => {
1627
- if (output.statusCode >= 300) {
1628
- return de_ListThirdPartyFirewallFirewallPoliciesCommandError(output, context);
1629
- }
1630
- const data = await parseBody(output.body, context);
1631
- let contents = {};
1632
- contents = (0, smithy_client_1._json)(data);
1633
- const response = {
1634
- $metadata: deserializeMetadata(output),
1635
- ...contents,
1636
- };
1637
- return response;
1638
- };
1639
- exports.de_ListThirdPartyFirewallFirewallPoliciesCommand = de_ListThirdPartyFirewallFirewallPoliciesCommand;
1640
- const de_ListThirdPartyFirewallFirewallPoliciesCommandError = async (output, context) => {
1641
- const parsedOutput = {
1642
- ...output,
1643
- body: await parseErrorBody(output.body, context),
1644
- };
1645
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1646
- switch (errorCode) {
1647
- case "InternalErrorException":
1648
- case "com.amazonaws.fms#InternalErrorException":
1649
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1650
- case "InvalidInputException":
1651
- case "com.amazonaws.fms#InvalidInputException":
1652
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1653
- case "InvalidOperationException":
1654
- case "com.amazonaws.fms#InvalidOperationException":
1655
- throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1656
- case "ResourceNotFoundException":
1657
- case "com.amazonaws.fms#ResourceNotFoundException":
1658
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1659
- default:
1660
- const parsedBody = parsedOutput.body;
1661
- return throwDefaultError({
1662
- output,
1663
- parsedBody,
1664
- errorCode,
1665
- });
1666
- }
1667
- };
1668
- const de_PutAdminAccountCommand = async (output, context) => {
1669
- if (output.statusCode >= 300) {
1670
- return de_PutAdminAccountCommandError(output, context);
1671
- }
1672
- await (0, smithy_client_1.collectBody)(output.body, context);
1673
- const response = {
1674
- $metadata: deserializeMetadata(output),
1675
- };
1676
- return response;
1677
- };
1678
- exports.de_PutAdminAccountCommand = de_PutAdminAccountCommand;
1679
- const de_PutAdminAccountCommandError = async (output, context) => {
1680
- const parsedOutput = {
1681
- ...output,
1682
- body: await parseErrorBody(output.body, context),
1683
- };
1684
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1685
- switch (errorCode) {
1686
- case "InternalErrorException":
1687
- case "com.amazonaws.fms#InternalErrorException":
1688
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1689
- case "InvalidInputException":
1690
- case "com.amazonaws.fms#InvalidInputException":
1691
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1692
- case "InvalidOperationException":
1693
- case "com.amazonaws.fms#InvalidOperationException":
1694
- throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1695
- case "LimitExceededException":
1696
- case "com.amazonaws.fms#LimitExceededException":
1697
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1698
- default:
1699
- const parsedBody = parsedOutput.body;
1700
- return throwDefaultError({
1701
- output,
1702
- parsedBody,
1703
- errorCode,
1704
- });
1705
- }
1706
- };
1707
- const de_PutAppsListCommand = async (output, context) => {
1708
- if (output.statusCode >= 300) {
1709
- return de_PutAppsListCommandError(output, context);
1710
- }
1711
- const data = await parseBody(output.body, context);
1712
- let contents = {};
1713
- contents = de_PutAppsListResponse(data, context);
1714
- const response = {
1715
- $metadata: deserializeMetadata(output),
1716
- ...contents,
1717
- };
1718
- return response;
1719
- };
1720
- exports.de_PutAppsListCommand = de_PutAppsListCommand;
1721
- const de_PutAppsListCommandError = async (output, context) => {
1722
- const parsedOutput = {
1723
- ...output,
1724
- body: await parseErrorBody(output.body, context),
1725
- };
1726
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1727
- switch (errorCode) {
1728
- case "InternalErrorException":
1729
- case "com.amazonaws.fms#InternalErrorException":
1730
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1731
- case "InvalidInputException":
1732
- case "com.amazonaws.fms#InvalidInputException":
1733
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1734
- case "InvalidOperationException":
1735
- case "com.amazonaws.fms#InvalidOperationException":
1736
- throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1737
- case "LimitExceededException":
1738
- case "com.amazonaws.fms#LimitExceededException":
1739
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1740
- case "ResourceNotFoundException":
1741
- case "com.amazonaws.fms#ResourceNotFoundException":
1742
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1743
- default:
1744
- const parsedBody = parsedOutput.body;
1745
- return throwDefaultError({
1746
- output,
1747
- parsedBody,
1748
- errorCode,
1749
- });
1750
- }
1751
- };
1752
- const de_PutNotificationChannelCommand = async (output, context) => {
1753
- if (output.statusCode >= 300) {
1754
- return de_PutNotificationChannelCommandError(output, context);
1755
- }
1756
- await (0, smithy_client_1.collectBody)(output.body, context);
1757
- const response = {
1758
- $metadata: deserializeMetadata(output),
1759
- };
1760
- return response;
1761
- };
1762
- exports.de_PutNotificationChannelCommand = de_PutNotificationChannelCommand;
1763
- const de_PutNotificationChannelCommandError = async (output, context) => {
1764
- const parsedOutput = {
1765
- ...output,
1766
- body: await parseErrorBody(output.body, context),
1767
- };
1768
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1769
- switch (errorCode) {
1770
- case "InternalErrorException":
1771
- case "com.amazonaws.fms#InternalErrorException":
1772
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1773
- case "InvalidOperationException":
1774
- case "com.amazonaws.fms#InvalidOperationException":
1775
- throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1776
- case "ResourceNotFoundException":
1777
- case "com.amazonaws.fms#ResourceNotFoundException":
1778
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1779
- default:
1780
- const parsedBody = parsedOutput.body;
1781
- return throwDefaultError({
1782
- output,
1783
- parsedBody,
1784
- errorCode,
1785
- });
1786
- }
1787
- };
1788
- const de_PutPolicyCommand = async (output, context) => {
1789
- if (output.statusCode >= 300) {
1790
- return de_PutPolicyCommandError(output, context);
1791
- }
1792
- const data = await parseBody(output.body, context);
1793
- let contents = {};
1794
- contents = (0, smithy_client_1._json)(data);
1795
- const response = {
1796
- $metadata: deserializeMetadata(output),
1797
- ...contents,
1798
- };
1799
- return response;
1800
- };
1801
- exports.de_PutPolicyCommand = de_PutPolicyCommand;
1802
- const de_PutPolicyCommandError = async (output, context) => {
1803
- const parsedOutput = {
1804
- ...output,
1805
- body: await parseErrorBody(output.body, context),
1806
- };
1807
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1808
- switch (errorCode) {
1809
- case "InternalErrorException":
1810
- case "com.amazonaws.fms#InternalErrorException":
1811
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1812
- case "InvalidInputException":
1813
- case "com.amazonaws.fms#InvalidInputException":
1814
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1815
- case "InvalidOperationException":
1816
- case "com.amazonaws.fms#InvalidOperationException":
1817
- throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1818
- case "InvalidTypeException":
1819
- case "com.amazonaws.fms#InvalidTypeException":
1820
- throw await de_InvalidTypeExceptionRes(parsedOutput, context);
1821
- case "LimitExceededException":
1822
- case "com.amazonaws.fms#LimitExceededException":
1823
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1824
- case "ResourceNotFoundException":
1825
- case "com.amazonaws.fms#ResourceNotFoundException":
1826
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1827
- default:
1828
- const parsedBody = parsedOutput.body;
1829
- return throwDefaultError({
1830
- output,
1831
- parsedBody,
1832
- errorCode,
1833
- });
1834
- }
1835
- };
1836
- const de_PutProtocolsListCommand = async (output, context) => {
1837
- if (output.statusCode >= 300) {
1838
- return de_PutProtocolsListCommandError(output, context);
1839
- }
1840
- const data = await parseBody(output.body, context);
1841
- let contents = {};
1842
- contents = de_PutProtocolsListResponse(data, context);
1843
- const response = {
1844
- $metadata: deserializeMetadata(output),
1845
- ...contents,
1846
- };
1847
- return response;
1848
- };
1849
- exports.de_PutProtocolsListCommand = de_PutProtocolsListCommand;
1850
- const de_PutProtocolsListCommandError = async (output, context) => {
1851
- const parsedOutput = {
1852
- ...output,
1853
- body: await parseErrorBody(output.body, context),
1854
- };
1855
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1856
- switch (errorCode) {
1857
- case "InternalErrorException":
1858
- case "com.amazonaws.fms#InternalErrorException":
1859
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1860
- case "InvalidInputException":
1861
- case "com.amazonaws.fms#InvalidInputException":
1862
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1863
- case "InvalidOperationException":
1864
- case "com.amazonaws.fms#InvalidOperationException":
1865
- throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1866
- case "LimitExceededException":
1867
- case "com.amazonaws.fms#LimitExceededException":
1868
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1869
- case "ResourceNotFoundException":
1870
- case "com.amazonaws.fms#ResourceNotFoundException":
1871
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1872
- default:
1873
- const parsedBody = parsedOutput.body;
1874
- return throwDefaultError({
1875
- output,
1876
- parsedBody,
1877
- errorCode,
1878
- });
1879
- }
1880
- };
1881
- const de_PutResourceSetCommand = async (output, context) => {
1882
- if (output.statusCode >= 300) {
1883
- return de_PutResourceSetCommandError(output, context);
1884
- }
1885
- const data = await parseBody(output.body, context);
1886
- let contents = {};
1887
- contents = de_PutResourceSetResponse(data, context);
1888
- const response = {
1889
- $metadata: deserializeMetadata(output),
1890
- ...contents,
1891
- };
1892
- return response;
1893
- };
1894
- exports.de_PutResourceSetCommand = de_PutResourceSetCommand;
1895
- const de_PutResourceSetCommandError = async (output, context) => {
1896
- const parsedOutput = {
1897
- ...output,
1898
- body: await parseErrorBody(output.body, context),
1899
- };
1900
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1901
- switch (errorCode) {
1902
- case "InternalErrorException":
1903
- case "com.amazonaws.fms#InternalErrorException":
1904
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1905
- case "InvalidInputException":
1906
- case "com.amazonaws.fms#InvalidInputException":
1907
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1908
- case "InvalidOperationException":
1909
- case "com.amazonaws.fms#InvalidOperationException":
1910
- throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1911
- case "LimitExceededException":
1912
- case "com.amazonaws.fms#LimitExceededException":
1913
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1914
- default:
1915
- const parsedBody = parsedOutput.body;
1916
- return throwDefaultError({
1917
- output,
1918
- parsedBody,
1919
- errorCode,
1920
- });
1921
- }
1922
- };
1923
- const de_TagResourceCommand = async (output, context) => {
1924
- if (output.statusCode >= 300) {
1925
- return de_TagResourceCommandError(output, context);
1926
- }
1927
- const data = await parseBody(output.body, context);
1928
- let contents = {};
1929
- contents = (0, smithy_client_1._json)(data);
1930
- const response = {
1931
- $metadata: deserializeMetadata(output),
1932
- ...contents,
1933
- };
1934
- return response;
1935
- };
1936
- exports.de_TagResourceCommand = de_TagResourceCommand;
1937
- const de_TagResourceCommandError = async (output, context) => {
1938
- const parsedOutput = {
1939
- ...output,
1940
- body: await parseErrorBody(output.body, context),
1941
- };
1942
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1943
- switch (errorCode) {
1944
- case "InternalErrorException":
1945
- case "com.amazonaws.fms#InternalErrorException":
1946
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1947
- case "InvalidInputException":
1948
- case "com.amazonaws.fms#InvalidInputException":
1949
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1950
- case "InvalidOperationException":
1951
- case "com.amazonaws.fms#InvalidOperationException":
1952
- throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1953
- case "LimitExceededException":
1954
- case "com.amazonaws.fms#LimitExceededException":
1955
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1956
- case "ResourceNotFoundException":
1957
- case "com.amazonaws.fms#ResourceNotFoundException":
1958
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1959
- default:
1960
- const parsedBody = parsedOutput.body;
1961
- return throwDefaultError({
1962
- output,
1963
- parsedBody,
1964
- errorCode,
1965
- });
1966
- }
1967
- };
1968
- const de_UntagResourceCommand = async (output, context) => {
1969
- if (output.statusCode >= 300) {
1970
- return de_UntagResourceCommandError(output, context);
1971
- }
1972
- const data = await parseBody(output.body, context);
1973
- let contents = {};
1974
- contents = (0, smithy_client_1._json)(data);
1975
- const response = {
1976
- $metadata: deserializeMetadata(output),
1977
- ...contents,
1978
- };
1979
- return response;
1980
- };
1981
- exports.de_UntagResourceCommand = de_UntagResourceCommand;
1982
- const de_UntagResourceCommandError = async (output, context) => {
1983
- const parsedOutput = {
1984
- ...output,
1985
- body: await parseErrorBody(output.body, context),
1986
- };
1987
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1988
- switch (errorCode) {
1989
- case "InternalErrorException":
1990
- case "com.amazonaws.fms#InternalErrorException":
1991
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1992
- case "InvalidInputException":
1993
- case "com.amazonaws.fms#InvalidInputException":
1994
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1995
- case "InvalidOperationException":
1996
- case "com.amazonaws.fms#InvalidOperationException":
1997
- throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1998
- case "ResourceNotFoundException":
1999
- case "com.amazonaws.fms#ResourceNotFoundException":
2000
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2001
- default:
2002
- const parsedBody = parsedOutput.body;
2003
- return throwDefaultError({
2004
- output,
2005
- parsedBody,
2006
- errorCode,
2007
- });
2008
- }
2009
- };
2010
- const de_InternalErrorExceptionRes = async (parsedOutput, context) => {
2011
- const body = parsedOutput.body;
2012
- const deserialized = (0, smithy_client_1._json)(body);
2013
- const exception = new models_0_1.InternalErrorException({
2014
- $metadata: deserializeMetadata(parsedOutput),
2015
- ...deserialized,
2016
- });
2017
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2018
- };
2019
- const de_InvalidInputExceptionRes = async (parsedOutput, context) => {
2020
- const body = parsedOutput.body;
2021
- const deserialized = (0, smithy_client_1._json)(body);
2022
- const exception = new models_0_1.InvalidInputException({
2023
- $metadata: deserializeMetadata(parsedOutput),
2024
- ...deserialized,
2025
- });
2026
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2027
- };
2028
- const de_InvalidOperationExceptionRes = async (parsedOutput, context) => {
2029
- const body = parsedOutput.body;
2030
- const deserialized = (0, smithy_client_1._json)(body);
2031
- const exception = new models_0_1.InvalidOperationException({
2032
- $metadata: deserializeMetadata(parsedOutput),
2033
- ...deserialized,
2034
- });
2035
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2036
- };
2037
- const de_InvalidTypeExceptionRes = async (parsedOutput, context) => {
2038
- const body = parsedOutput.body;
2039
- const deserialized = (0, smithy_client_1._json)(body);
2040
- const exception = new models_0_1.InvalidTypeException({
2041
- $metadata: deserializeMetadata(parsedOutput),
2042
- ...deserialized,
2043
- });
2044
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2045
- };
2046
- const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
2047
- const body = parsedOutput.body;
2048
- const deserialized = (0, smithy_client_1._json)(body);
2049
- const exception = new models_0_1.LimitExceededException({
2050
- $metadata: deserializeMetadata(parsedOutput),
2051
- ...deserialized,
2052
- });
2053
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2054
- };
2055
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
2056
- const body = parsedOutput.body;
2057
- const deserialized = (0, smithy_client_1._json)(body);
2058
- const exception = new models_0_1.ResourceNotFoundException({
2059
- $metadata: deserializeMetadata(parsedOutput),
2060
- ...deserialized,
2061
- });
2062
- return (0, smithy_client_1.decorateServiceException)(exception, body);
2063
- };
2064
- const se_AppsListData = (input, context) => {
2065
- return (0, smithy_client_1.take)(input, {
2066
- AppsList: smithy_client_1._json,
2067
- CreateTime: (_) => Math.round(_.getTime() / 1000),
2068
- LastUpdateTime: (_) => Math.round(_.getTime() / 1000),
2069
- ListId: [],
2070
- ListName: [],
2071
- ListUpdateToken: [],
2072
- PreviousAppsList: smithy_client_1._json,
2073
- });
2074
- };
2075
- const se_GetProtectionStatusRequest = (input, context) => {
2076
- return (0, smithy_client_1.take)(input, {
2077
- EndTime: (_) => Math.round(_.getTime() / 1000),
2078
- MaxResults: [],
2079
- MemberAccountId: [],
2080
- NextToken: [],
2081
- PolicyId: [],
2082
- StartTime: (_) => Math.round(_.getTime() / 1000),
2083
- });
2084
- };
2085
- const se_ProtocolsListData = (input, context) => {
2086
- return (0, smithy_client_1.take)(input, {
2087
- CreateTime: (_) => Math.round(_.getTime() / 1000),
2088
- LastUpdateTime: (_) => Math.round(_.getTime() / 1000),
2089
- ListId: [],
2090
- ListName: [],
2091
- ListUpdateToken: [],
2092
- PreviousProtocolsList: smithy_client_1._json,
2093
- ProtocolsList: smithy_client_1._json,
2094
- });
2095
- };
2096
- const se_PutAppsListRequest = (input, context) => {
2097
- return (0, smithy_client_1.take)(input, {
2098
- AppsList: (_) => se_AppsListData(_, context),
2099
- TagList: smithy_client_1._json,
2100
- });
2101
- };
2102
- const se_PutProtocolsListRequest = (input, context) => {
2103
- return (0, smithy_client_1.take)(input, {
2104
- ProtocolsList: (_) => se_ProtocolsListData(_, context),
2105
- TagList: smithy_client_1._json,
2106
- });
2107
- };
2108
- const se_PutResourceSetRequest = (input, context) => {
2109
- return (0, smithy_client_1.take)(input, {
2110
- ResourceSet: (_) => se_ResourceSet(_, context),
2111
- TagList: smithy_client_1._json,
2112
- });
2113
- };
2114
- const se_ResourceSet = (input, context) => {
2115
- return (0, smithy_client_1.take)(input, {
2116
- Description: [],
2117
- Id: [],
2118
- LastUpdateTime: (_) => Math.round(_.getTime() / 1000),
2119
- Name: [],
2120
- ResourceSetStatus: [],
2121
- ResourceTypeList: smithy_client_1._json,
2122
- UpdateToken: [],
2123
- });
2124
- };
2125
- const de_AppsListData = (output, context) => {
2126
- return (0, smithy_client_1.take)(output, {
2127
- AppsList: smithy_client_1._json,
2128
- CreateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2129
- LastUpdateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2130
- ListId: smithy_client_1.expectString,
2131
- ListName: smithy_client_1.expectString,
2132
- ListUpdateToken: smithy_client_1.expectString,
2133
- PreviousAppsList: smithy_client_1._json,
2134
- });
2135
- };
2136
- const de_GetAppsListResponse = (output, context) => {
2137
- return (0, smithy_client_1.take)(output, {
2138
- AppsList: (_) => de_AppsListData(_, context),
2139
- AppsListArn: smithy_client_1.expectString,
2140
- });
2141
- };
2142
- const de_GetComplianceDetailResponse = (output, context) => {
2143
- return (0, smithy_client_1.take)(output, {
2144
- PolicyComplianceDetail: (_) => de_PolicyComplianceDetail(_, context),
2145
- });
2146
- };
2147
- const de_GetProtocolsListResponse = (output, context) => {
2148
- return (0, smithy_client_1.take)(output, {
2149
- ProtocolsList: (_) => de_ProtocolsListData(_, context),
2150
- ProtocolsListArn: smithy_client_1.expectString,
2151
- });
2152
- };
2153
- const de_GetResourceSetResponse = (output, context) => {
2154
- return (0, smithy_client_1.take)(output, {
2155
- ResourceSet: (_) => de_ResourceSet(_, context),
2156
- ResourceSetArn: smithy_client_1.expectString,
2157
- });
2158
- };
2159
- const de_GetViolationDetailsResponse = (output, context) => {
2160
- return (0, smithy_client_1.take)(output, {
2161
- ViolationDetail: (_) => de_ViolationDetail(_, context),
2162
- });
2163
- };
2164
- const de_ListComplianceStatusResponse = (output, context) => {
2165
- return (0, smithy_client_1.take)(output, {
2166
- NextToken: smithy_client_1.expectString,
2167
- PolicyComplianceStatusList: (_) => de_PolicyComplianceStatusList(_, context),
2168
- });
2169
- };
2170
- const de_ListResourceSetsResponse = (output, context) => {
2171
- return (0, smithy_client_1.take)(output, {
2172
- NextToken: smithy_client_1.expectString,
2173
- ResourceSets: (_) => de_ResourceSetSummaryList(_, context),
2174
- });
2175
- };
2176
- const de_PolicyComplianceDetail = (output, context) => {
2177
- return (0, smithy_client_1.take)(output, {
2178
- EvaluationLimitExceeded: smithy_client_1.expectBoolean,
2179
- ExpiredAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2180
- IssueInfoMap: smithy_client_1._json,
2181
- MemberAccount: smithy_client_1.expectString,
2182
- PolicyId: smithy_client_1.expectString,
2183
- PolicyOwner: smithy_client_1.expectString,
2184
- Violators: smithy_client_1._json,
2185
- });
2186
- };
2187
- const de_PolicyComplianceStatus = (output, context) => {
2188
- return (0, smithy_client_1.take)(output, {
2189
- EvaluationResults: smithy_client_1._json,
2190
- IssueInfoMap: smithy_client_1._json,
2191
- LastUpdated: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2192
- MemberAccount: smithy_client_1.expectString,
2193
- PolicyId: smithy_client_1.expectString,
2194
- PolicyName: smithy_client_1.expectString,
2195
- PolicyOwner: smithy_client_1.expectString,
2196
- });
2197
- };
2198
- const de_PolicyComplianceStatusList = (output, context) => {
2199
- const retVal = (output || [])
2200
- .filter((e) => e != null)
2201
- .map((entry) => {
2202
- return de_PolicyComplianceStatus(entry, context);
2203
- });
2204
- return retVal;
2205
- };
2206
- const de_ProtocolsListData = (output, context) => {
2207
- return (0, smithy_client_1.take)(output, {
2208
- CreateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2209
- LastUpdateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2210
- ListId: smithy_client_1.expectString,
2211
- ListName: smithy_client_1.expectString,
2212
- ListUpdateToken: smithy_client_1.expectString,
2213
- PreviousProtocolsList: smithy_client_1._json,
2214
- ProtocolsList: smithy_client_1._json,
2215
- });
2216
- };
2217
- const de_PutAppsListResponse = (output, context) => {
2218
- return (0, smithy_client_1.take)(output, {
2219
- AppsList: (_) => de_AppsListData(_, context),
2220
- AppsListArn: smithy_client_1.expectString,
2221
- });
2222
- };
2223
- const de_PutProtocolsListResponse = (output, context) => {
2224
- return (0, smithy_client_1.take)(output, {
2225
- ProtocolsList: (_) => de_ProtocolsListData(_, context),
2226
- ProtocolsListArn: smithy_client_1.expectString,
2227
- });
2228
- };
2229
- const de_PutResourceSetResponse = (output, context) => {
2230
- return (0, smithy_client_1.take)(output, {
2231
- ResourceSet: (_) => de_ResourceSet(_, context),
2232
- ResourceSetArn: smithy_client_1.expectString,
2233
- });
2234
- };
2235
- const de_ResourceSet = (output, context) => {
2236
- return (0, smithy_client_1.take)(output, {
2237
- Description: smithy_client_1.expectString,
2238
- Id: smithy_client_1.expectString,
2239
- LastUpdateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2240
- Name: smithy_client_1.expectString,
2241
- ResourceSetStatus: smithy_client_1.expectString,
2242
- ResourceTypeList: smithy_client_1._json,
2243
- UpdateToken: smithy_client_1.expectString,
2244
- });
2245
- };
2246
- const de_ResourceSetSummary = (output, context) => {
2247
- return (0, smithy_client_1.take)(output, {
2248
- Description: smithy_client_1.expectString,
2249
- Id: smithy_client_1.expectString,
2250
- LastUpdateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2251
- Name: smithy_client_1.expectString,
2252
- ResourceSetStatus: smithy_client_1.expectString,
2253
- });
2254
- };
2255
- const de_ResourceSetSummaryList = (output, context) => {
2256
- const retVal = (output || [])
2257
- .filter((e) => e != null)
2258
- .map((entry) => {
2259
- return de_ResourceSetSummary(entry, context);
2260
- });
2261
- return retVal;
2262
- };
2263
- const de_ViolationDetail = (output, context) => {
2264
- return (0, smithy_client_1.take)(output, {
2265
- MemberAccount: smithy_client_1.expectString,
2266
- PolicyId: smithy_client_1.expectString,
2267
- ResourceDescription: smithy_client_1.expectString,
2268
- ResourceId: smithy_client_1.expectString,
2269
- ResourceTags: smithy_client_1._json,
2270
- ResourceType: smithy_client_1.expectString,
2271
- ResourceViolations: smithy_client_1._json,
2272
- });
2273
- };
2274
- const deserializeMetadata = (output) => ({
2275
- httpStatusCode: output.statusCode,
2276
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2277
- extendedRequestId: output.headers["x-amz-id-2"],
2278
- cfId: output.headers["x-amz-cf-id"],
2279
- });
2280
- const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
2281
- const throwDefaultError = (0, smithy_client_1.withBaseException)(FMSServiceException_1.FMSServiceException);
2282
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
2283
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2284
- const contents = {
2285
- protocol,
2286
- hostname,
2287
- port,
2288
- method: "POST",
2289
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
2290
- headers,
2291
- };
2292
- if (resolvedHostname !== undefined) {
2293
- contents.hostname = resolvedHostname;
2294
- }
2295
- if (body !== undefined) {
2296
- contents.body = body;
2297
- }
2298
- return new protocol_http_1.HttpRequest(contents);
2299
- };
2300
- function sharedHeaders(operation) {
2301
- return {
2302
- "content-type": "application/x-amz-json-1.1",
2303
- "x-amz-target": `AWSFMS_20180101.${operation}`,
2304
- };
2305
- }
2306
- const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2307
- if (encoded.length) {
2308
- return JSON.parse(encoded);
2309
- }
2310
- return {};
2311
- });
2312
- const parseErrorBody = async (errorBody, context) => {
2313
- const value = await parseBody(errorBody, context);
2314
- value.message = value.message ?? value.Message;
2315
- return value;
2316
- };
2317
- const loadRestJsonErrorCode = (output, data) => {
2318
- const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
2319
- const sanitizeErrorCode = (rawValue) => {
2320
- let cleanValue = rawValue;
2321
- if (typeof cleanValue === "number") {
2322
- cleanValue = cleanValue.toString();
2323
- }
2324
- if (cleanValue.indexOf(",") >= 0) {
2325
- cleanValue = cleanValue.split(",")[0];
2326
- }
2327
- if (cleanValue.indexOf(":") >= 0) {
2328
- cleanValue = cleanValue.split(":")[0];
2329
- }
2330
- if (cleanValue.indexOf("#") >= 0) {
2331
- cleanValue = cleanValue.split("#")[1];
2332
- }
2333
- return cleanValue;
2334
- };
2335
- const headerKey = findKey(output.headers, "x-amzn-errortype");
2336
- if (headerKey !== undefined) {
2337
- return sanitizeErrorCode(output.headers[headerKey]);
2338
- }
2339
- if (data.code !== undefined) {
2340
- return sanitizeErrorCode(data.code);
2341
- }
2342
- if (data["__type"] !== undefined) {
2343
- return sanitizeErrorCode(data["__type"]);
2344
- }
2345
- };
1
+ module.exports = require("../index.js");