@aws-sdk/client-fms 3.927.0 → 3.929.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +1770 -1458
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/FMSClient.js +2 -0
- package/dist-es/commands/AssociateAdminAccountCommand.js +3 -9
- package/dist-es/commands/AssociateThirdPartyFirewallCommand.js +3 -9
- package/dist-es/commands/BatchAssociateResourceCommand.js +3 -9
- package/dist-es/commands/BatchDisassociateResourceCommand.js +3 -9
- package/dist-es/commands/DeleteAppsListCommand.js +3 -9
- package/dist-es/commands/DeleteNotificationChannelCommand.js +3 -9
- package/dist-es/commands/DeletePolicyCommand.js +3 -9
- package/dist-es/commands/DeleteProtocolsListCommand.js +3 -9
- package/dist-es/commands/DeleteResourceSetCommand.js +3 -9
- package/dist-es/commands/DisassociateAdminAccountCommand.js +3 -9
- package/dist-es/commands/DisassociateThirdPartyFirewallCommand.js +3 -9
- package/dist-es/commands/GetAdminAccountCommand.js +3 -9
- package/dist-es/commands/GetAdminScopeCommand.js +3 -9
- package/dist-es/commands/GetAppsListCommand.js +3 -9
- package/dist-es/commands/GetComplianceDetailCommand.js +3 -9
- package/dist-es/commands/GetNotificationChannelCommand.js +3 -9
- package/dist-es/commands/GetPolicyCommand.js +3 -9
- package/dist-es/commands/GetProtectionStatusCommand.js +3 -9
- package/dist-es/commands/GetProtocolsListCommand.js +3 -9
- package/dist-es/commands/GetResourceSetCommand.js +3 -9
- package/dist-es/commands/GetThirdPartyFirewallAssociationStatusCommand.js +3 -9
- package/dist-es/commands/GetViolationDetailsCommand.js +3 -9
- package/dist-es/commands/ListAdminAccountsForOrganizationCommand.js +3 -9
- package/dist-es/commands/ListAdminsManagingAccountCommand.js +3 -9
- package/dist-es/commands/ListAppsListsCommand.js +3 -9
- package/dist-es/commands/ListComplianceStatusCommand.js +3 -9
- package/dist-es/commands/ListDiscoveredResourcesCommand.js +3 -9
- package/dist-es/commands/ListMemberAccountsCommand.js +3 -9
- package/dist-es/commands/ListPoliciesCommand.js +3 -9
- package/dist-es/commands/ListProtocolsListsCommand.js +3 -9
- package/dist-es/commands/ListResourceSetResourcesCommand.js +3 -9
- package/dist-es/commands/ListResourceSetsCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/ListThirdPartyFirewallFirewallPoliciesCommand.js +3 -9
- package/dist-es/commands/PutAdminAccountCommand.js +3 -9
- package/dist-es/commands/PutAppsListCommand.js +3 -9
- package/dist-es/commands/PutNotificationChannelCommand.js +3 -9
- package/dist-es/commands/PutPolicyCommand.js +3 -9
- package/dist-es/commands/PutProtocolsListCommand.js +3 -9
- package/dist-es/commands/PutResourceSetCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +1689 -0
- package/dist-types/FMSClient.d.ts +10 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +269 -0
- package/dist-types/ts3.4/FMSClient.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +275 -0
- package/package.json +5 -5
- package/dist-es/protocols/Aws_json1_1.js +0 -1150
- package/dist-types/protocols/Aws_json1_1.d.ts +0 -380
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -509
|
@@ -1,1150 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { FMSServiceException as __BaseException } from "../models/FMSServiceException";
|
|
5
|
-
import { InternalErrorException, InvalidInputException, InvalidOperationException, InvalidTypeException, LimitExceededException, ResourceNotFoundException, } from "../models/models_0";
|
|
6
|
-
export const se_AssociateAdminAccountCommand = async (input, context) => {
|
|
7
|
-
const headers = sharedHeaders("AssociateAdminAccount");
|
|
8
|
-
let body;
|
|
9
|
-
body = JSON.stringify(_json(input));
|
|
10
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
11
|
-
};
|
|
12
|
-
export const se_AssociateThirdPartyFirewallCommand = async (input, context) => {
|
|
13
|
-
const headers = sharedHeaders("AssociateThirdPartyFirewall");
|
|
14
|
-
let body;
|
|
15
|
-
body = JSON.stringify(_json(input));
|
|
16
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
|
-
};
|
|
18
|
-
export const se_BatchAssociateResourceCommand = async (input, context) => {
|
|
19
|
-
const headers = sharedHeaders("BatchAssociateResource");
|
|
20
|
-
let body;
|
|
21
|
-
body = JSON.stringify(_json(input));
|
|
22
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
|
-
};
|
|
24
|
-
export const se_BatchDisassociateResourceCommand = async (input, context) => {
|
|
25
|
-
const headers = sharedHeaders("BatchDisassociateResource");
|
|
26
|
-
let body;
|
|
27
|
-
body = JSON.stringify(_json(input));
|
|
28
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
|
-
};
|
|
30
|
-
export const se_DeleteAppsListCommand = async (input, context) => {
|
|
31
|
-
const headers = sharedHeaders("DeleteAppsList");
|
|
32
|
-
let body;
|
|
33
|
-
body = JSON.stringify(_json(input));
|
|
34
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
|
-
};
|
|
36
|
-
export const se_DeleteNotificationChannelCommand = async (input, context) => {
|
|
37
|
-
const headers = sharedHeaders("DeleteNotificationChannel");
|
|
38
|
-
let body;
|
|
39
|
-
body = JSON.stringify(_json(input));
|
|
40
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
|
-
};
|
|
42
|
-
export const se_DeletePolicyCommand = async (input, context) => {
|
|
43
|
-
const headers = sharedHeaders("DeletePolicy");
|
|
44
|
-
let body;
|
|
45
|
-
body = JSON.stringify(_json(input));
|
|
46
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
|
-
};
|
|
48
|
-
export const se_DeleteProtocolsListCommand = async (input, context) => {
|
|
49
|
-
const headers = sharedHeaders("DeleteProtocolsList");
|
|
50
|
-
let body;
|
|
51
|
-
body = JSON.stringify(_json(input));
|
|
52
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
53
|
-
};
|
|
54
|
-
export const se_DeleteResourceSetCommand = async (input, context) => {
|
|
55
|
-
const headers = sharedHeaders("DeleteResourceSet");
|
|
56
|
-
let body;
|
|
57
|
-
body = JSON.stringify(_json(input));
|
|
58
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
|
-
};
|
|
60
|
-
export const se_DisassociateAdminAccountCommand = async (input, context) => {
|
|
61
|
-
const headers = sharedHeaders("DisassociateAdminAccount");
|
|
62
|
-
let body;
|
|
63
|
-
body = JSON.stringify(_json(input));
|
|
64
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
|
-
};
|
|
66
|
-
export const se_DisassociateThirdPartyFirewallCommand = async (input, context) => {
|
|
67
|
-
const headers = sharedHeaders("DisassociateThirdPartyFirewall");
|
|
68
|
-
let body;
|
|
69
|
-
body = JSON.stringify(_json(input));
|
|
70
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
71
|
-
};
|
|
72
|
-
export const se_GetAdminAccountCommand = async (input, context) => {
|
|
73
|
-
const headers = sharedHeaders("GetAdminAccount");
|
|
74
|
-
let body;
|
|
75
|
-
body = JSON.stringify(_json(input));
|
|
76
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
|
-
};
|
|
78
|
-
export const se_GetAdminScopeCommand = async (input, context) => {
|
|
79
|
-
const headers = sharedHeaders("GetAdminScope");
|
|
80
|
-
let body;
|
|
81
|
-
body = JSON.stringify(_json(input));
|
|
82
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
83
|
-
};
|
|
84
|
-
export const se_GetAppsListCommand = async (input, context) => {
|
|
85
|
-
const headers = sharedHeaders("GetAppsList");
|
|
86
|
-
let body;
|
|
87
|
-
body = JSON.stringify(_json(input));
|
|
88
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
89
|
-
};
|
|
90
|
-
export const se_GetComplianceDetailCommand = async (input, context) => {
|
|
91
|
-
const headers = sharedHeaders("GetComplianceDetail");
|
|
92
|
-
let body;
|
|
93
|
-
body = JSON.stringify(_json(input));
|
|
94
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
95
|
-
};
|
|
96
|
-
export const se_GetNotificationChannelCommand = async (input, context) => {
|
|
97
|
-
const headers = sharedHeaders("GetNotificationChannel");
|
|
98
|
-
let body;
|
|
99
|
-
body = JSON.stringify(_json(input));
|
|
100
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
101
|
-
};
|
|
102
|
-
export const se_GetPolicyCommand = async (input, context) => {
|
|
103
|
-
const headers = sharedHeaders("GetPolicy");
|
|
104
|
-
let body;
|
|
105
|
-
body = JSON.stringify(_json(input));
|
|
106
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
|
-
};
|
|
108
|
-
export const se_GetProtectionStatusCommand = async (input, context) => {
|
|
109
|
-
const headers = sharedHeaders("GetProtectionStatus");
|
|
110
|
-
let body;
|
|
111
|
-
body = JSON.stringify(se_GetProtectionStatusRequest(input, context));
|
|
112
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
|
-
};
|
|
114
|
-
export const se_GetProtocolsListCommand = async (input, context) => {
|
|
115
|
-
const headers = sharedHeaders("GetProtocolsList");
|
|
116
|
-
let body;
|
|
117
|
-
body = JSON.stringify(_json(input));
|
|
118
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
119
|
-
};
|
|
120
|
-
export const se_GetResourceSetCommand = async (input, context) => {
|
|
121
|
-
const headers = sharedHeaders("GetResourceSet");
|
|
122
|
-
let body;
|
|
123
|
-
body = JSON.stringify(_json(input));
|
|
124
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
125
|
-
};
|
|
126
|
-
export const se_GetThirdPartyFirewallAssociationStatusCommand = async (input, context) => {
|
|
127
|
-
const headers = sharedHeaders("GetThirdPartyFirewallAssociationStatus");
|
|
128
|
-
let body;
|
|
129
|
-
body = JSON.stringify(_json(input));
|
|
130
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
131
|
-
};
|
|
132
|
-
export const se_GetViolationDetailsCommand = async (input, context) => {
|
|
133
|
-
const headers = sharedHeaders("GetViolationDetails");
|
|
134
|
-
let body;
|
|
135
|
-
body = JSON.stringify(_json(input));
|
|
136
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
|
-
};
|
|
138
|
-
export const se_ListAdminAccountsForOrganizationCommand = async (input, context) => {
|
|
139
|
-
const headers = sharedHeaders("ListAdminAccountsForOrganization");
|
|
140
|
-
let body;
|
|
141
|
-
body = JSON.stringify(_json(input));
|
|
142
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
143
|
-
};
|
|
144
|
-
export const se_ListAdminsManagingAccountCommand = async (input, context) => {
|
|
145
|
-
const headers = sharedHeaders("ListAdminsManagingAccount");
|
|
146
|
-
let body;
|
|
147
|
-
body = JSON.stringify(_json(input));
|
|
148
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
149
|
-
};
|
|
150
|
-
export const se_ListAppsListsCommand = async (input, context) => {
|
|
151
|
-
const headers = sharedHeaders("ListAppsLists");
|
|
152
|
-
let body;
|
|
153
|
-
body = JSON.stringify(_json(input));
|
|
154
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
155
|
-
};
|
|
156
|
-
export const se_ListComplianceStatusCommand = async (input, context) => {
|
|
157
|
-
const headers = sharedHeaders("ListComplianceStatus");
|
|
158
|
-
let body;
|
|
159
|
-
body = JSON.stringify(_json(input));
|
|
160
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
161
|
-
};
|
|
162
|
-
export const se_ListDiscoveredResourcesCommand = async (input, context) => {
|
|
163
|
-
const headers = sharedHeaders("ListDiscoveredResources");
|
|
164
|
-
let body;
|
|
165
|
-
body = JSON.stringify(_json(input));
|
|
166
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
|
-
};
|
|
168
|
-
export const se_ListMemberAccountsCommand = async (input, context) => {
|
|
169
|
-
const headers = sharedHeaders("ListMemberAccounts");
|
|
170
|
-
let body;
|
|
171
|
-
body = JSON.stringify(_json(input));
|
|
172
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
173
|
-
};
|
|
174
|
-
export const se_ListPoliciesCommand = async (input, context) => {
|
|
175
|
-
const headers = sharedHeaders("ListPolicies");
|
|
176
|
-
let body;
|
|
177
|
-
body = JSON.stringify(_json(input));
|
|
178
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
179
|
-
};
|
|
180
|
-
export const se_ListProtocolsListsCommand = async (input, context) => {
|
|
181
|
-
const headers = sharedHeaders("ListProtocolsLists");
|
|
182
|
-
let body;
|
|
183
|
-
body = JSON.stringify(_json(input));
|
|
184
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
185
|
-
};
|
|
186
|
-
export const se_ListResourceSetResourcesCommand = async (input, context) => {
|
|
187
|
-
const headers = sharedHeaders("ListResourceSetResources");
|
|
188
|
-
let body;
|
|
189
|
-
body = JSON.stringify(_json(input));
|
|
190
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
191
|
-
};
|
|
192
|
-
export const se_ListResourceSetsCommand = async (input, context) => {
|
|
193
|
-
const headers = sharedHeaders("ListResourceSets");
|
|
194
|
-
let body;
|
|
195
|
-
body = JSON.stringify(_json(input));
|
|
196
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
|
-
};
|
|
198
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
199
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
200
|
-
let body;
|
|
201
|
-
body = JSON.stringify(_json(input));
|
|
202
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
203
|
-
};
|
|
204
|
-
export const se_ListThirdPartyFirewallFirewallPoliciesCommand = async (input, context) => {
|
|
205
|
-
const headers = sharedHeaders("ListThirdPartyFirewallFirewallPolicies");
|
|
206
|
-
let body;
|
|
207
|
-
body = JSON.stringify(_json(input));
|
|
208
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
209
|
-
};
|
|
210
|
-
export const se_PutAdminAccountCommand = async (input, context) => {
|
|
211
|
-
const headers = sharedHeaders("PutAdminAccount");
|
|
212
|
-
let body;
|
|
213
|
-
body = JSON.stringify(_json(input));
|
|
214
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
215
|
-
};
|
|
216
|
-
export const se_PutAppsListCommand = async (input, context) => {
|
|
217
|
-
const headers = sharedHeaders("PutAppsList");
|
|
218
|
-
let body;
|
|
219
|
-
body = JSON.stringify(se_PutAppsListRequest(input, context));
|
|
220
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
221
|
-
};
|
|
222
|
-
export const se_PutNotificationChannelCommand = async (input, context) => {
|
|
223
|
-
const headers = sharedHeaders("PutNotificationChannel");
|
|
224
|
-
let body;
|
|
225
|
-
body = JSON.stringify(_json(input));
|
|
226
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
227
|
-
};
|
|
228
|
-
export const se_PutPolicyCommand = async (input, context) => {
|
|
229
|
-
const headers = sharedHeaders("PutPolicy");
|
|
230
|
-
let body;
|
|
231
|
-
body = JSON.stringify(_json(input));
|
|
232
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
233
|
-
};
|
|
234
|
-
export const se_PutProtocolsListCommand = async (input, context) => {
|
|
235
|
-
const headers = sharedHeaders("PutProtocolsList");
|
|
236
|
-
let body;
|
|
237
|
-
body = JSON.stringify(se_PutProtocolsListRequest(input, context));
|
|
238
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
239
|
-
};
|
|
240
|
-
export const se_PutResourceSetCommand = async (input, context) => {
|
|
241
|
-
const headers = sharedHeaders("PutResourceSet");
|
|
242
|
-
let body;
|
|
243
|
-
body = JSON.stringify(se_PutResourceSetRequest(input, context));
|
|
244
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
245
|
-
};
|
|
246
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
247
|
-
const headers = sharedHeaders("TagResource");
|
|
248
|
-
let body;
|
|
249
|
-
body = JSON.stringify(_json(input));
|
|
250
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
251
|
-
};
|
|
252
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
253
|
-
const headers = sharedHeaders("UntagResource");
|
|
254
|
-
let body;
|
|
255
|
-
body = JSON.stringify(_json(input));
|
|
256
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
257
|
-
};
|
|
258
|
-
export const de_AssociateAdminAccountCommand = async (output, context) => {
|
|
259
|
-
if (output.statusCode >= 300) {
|
|
260
|
-
return de_CommandError(output, context);
|
|
261
|
-
}
|
|
262
|
-
await collectBody(output.body, context);
|
|
263
|
-
const response = {
|
|
264
|
-
$metadata: deserializeMetadata(output),
|
|
265
|
-
};
|
|
266
|
-
return response;
|
|
267
|
-
};
|
|
268
|
-
export const de_AssociateThirdPartyFirewallCommand = async (output, context) => {
|
|
269
|
-
if (output.statusCode >= 300) {
|
|
270
|
-
return de_CommandError(output, context);
|
|
271
|
-
}
|
|
272
|
-
const data = await parseBody(output.body, context);
|
|
273
|
-
let contents = {};
|
|
274
|
-
contents = _json(data);
|
|
275
|
-
const response = {
|
|
276
|
-
$metadata: deserializeMetadata(output),
|
|
277
|
-
...contents,
|
|
278
|
-
};
|
|
279
|
-
return response;
|
|
280
|
-
};
|
|
281
|
-
export const de_BatchAssociateResourceCommand = async (output, context) => {
|
|
282
|
-
if (output.statusCode >= 300) {
|
|
283
|
-
return de_CommandError(output, context);
|
|
284
|
-
}
|
|
285
|
-
const data = await parseBody(output.body, context);
|
|
286
|
-
let contents = {};
|
|
287
|
-
contents = _json(data);
|
|
288
|
-
const response = {
|
|
289
|
-
$metadata: deserializeMetadata(output),
|
|
290
|
-
...contents,
|
|
291
|
-
};
|
|
292
|
-
return response;
|
|
293
|
-
};
|
|
294
|
-
export const de_BatchDisassociateResourceCommand = async (output, context) => {
|
|
295
|
-
if (output.statusCode >= 300) {
|
|
296
|
-
return de_CommandError(output, context);
|
|
297
|
-
}
|
|
298
|
-
const data = await parseBody(output.body, context);
|
|
299
|
-
let contents = {};
|
|
300
|
-
contents = _json(data);
|
|
301
|
-
const response = {
|
|
302
|
-
$metadata: deserializeMetadata(output),
|
|
303
|
-
...contents,
|
|
304
|
-
};
|
|
305
|
-
return response;
|
|
306
|
-
};
|
|
307
|
-
export const de_DeleteAppsListCommand = async (output, context) => {
|
|
308
|
-
if (output.statusCode >= 300) {
|
|
309
|
-
return de_CommandError(output, context);
|
|
310
|
-
}
|
|
311
|
-
await collectBody(output.body, context);
|
|
312
|
-
const response = {
|
|
313
|
-
$metadata: deserializeMetadata(output),
|
|
314
|
-
};
|
|
315
|
-
return response;
|
|
316
|
-
};
|
|
317
|
-
export const de_DeleteNotificationChannelCommand = async (output, context) => {
|
|
318
|
-
if (output.statusCode >= 300) {
|
|
319
|
-
return de_CommandError(output, context);
|
|
320
|
-
}
|
|
321
|
-
await collectBody(output.body, context);
|
|
322
|
-
const response = {
|
|
323
|
-
$metadata: deserializeMetadata(output),
|
|
324
|
-
};
|
|
325
|
-
return response;
|
|
326
|
-
};
|
|
327
|
-
export const de_DeletePolicyCommand = async (output, context) => {
|
|
328
|
-
if (output.statusCode >= 300) {
|
|
329
|
-
return de_CommandError(output, context);
|
|
330
|
-
}
|
|
331
|
-
await collectBody(output.body, context);
|
|
332
|
-
const response = {
|
|
333
|
-
$metadata: deserializeMetadata(output),
|
|
334
|
-
};
|
|
335
|
-
return response;
|
|
336
|
-
};
|
|
337
|
-
export const de_DeleteProtocolsListCommand = async (output, context) => {
|
|
338
|
-
if (output.statusCode >= 300) {
|
|
339
|
-
return de_CommandError(output, context);
|
|
340
|
-
}
|
|
341
|
-
await collectBody(output.body, context);
|
|
342
|
-
const response = {
|
|
343
|
-
$metadata: deserializeMetadata(output),
|
|
344
|
-
};
|
|
345
|
-
return response;
|
|
346
|
-
};
|
|
347
|
-
export const de_DeleteResourceSetCommand = async (output, context) => {
|
|
348
|
-
if (output.statusCode >= 300) {
|
|
349
|
-
return de_CommandError(output, context);
|
|
350
|
-
}
|
|
351
|
-
await collectBody(output.body, context);
|
|
352
|
-
const response = {
|
|
353
|
-
$metadata: deserializeMetadata(output),
|
|
354
|
-
};
|
|
355
|
-
return response;
|
|
356
|
-
};
|
|
357
|
-
export const de_DisassociateAdminAccountCommand = async (output, context) => {
|
|
358
|
-
if (output.statusCode >= 300) {
|
|
359
|
-
return de_CommandError(output, context);
|
|
360
|
-
}
|
|
361
|
-
await collectBody(output.body, context);
|
|
362
|
-
const response = {
|
|
363
|
-
$metadata: deserializeMetadata(output),
|
|
364
|
-
};
|
|
365
|
-
return response;
|
|
366
|
-
};
|
|
367
|
-
export const de_DisassociateThirdPartyFirewallCommand = async (output, context) => {
|
|
368
|
-
if (output.statusCode >= 300) {
|
|
369
|
-
return de_CommandError(output, context);
|
|
370
|
-
}
|
|
371
|
-
const data = await parseBody(output.body, context);
|
|
372
|
-
let contents = {};
|
|
373
|
-
contents = _json(data);
|
|
374
|
-
const response = {
|
|
375
|
-
$metadata: deserializeMetadata(output),
|
|
376
|
-
...contents,
|
|
377
|
-
};
|
|
378
|
-
return response;
|
|
379
|
-
};
|
|
380
|
-
export const de_GetAdminAccountCommand = async (output, context) => {
|
|
381
|
-
if (output.statusCode >= 300) {
|
|
382
|
-
return de_CommandError(output, context);
|
|
383
|
-
}
|
|
384
|
-
const data = await parseBody(output.body, context);
|
|
385
|
-
let contents = {};
|
|
386
|
-
contents = _json(data);
|
|
387
|
-
const response = {
|
|
388
|
-
$metadata: deserializeMetadata(output),
|
|
389
|
-
...contents,
|
|
390
|
-
};
|
|
391
|
-
return response;
|
|
392
|
-
};
|
|
393
|
-
export const de_GetAdminScopeCommand = async (output, context) => {
|
|
394
|
-
if (output.statusCode >= 300) {
|
|
395
|
-
return de_CommandError(output, context);
|
|
396
|
-
}
|
|
397
|
-
const data = await parseBody(output.body, context);
|
|
398
|
-
let contents = {};
|
|
399
|
-
contents = _json(data);
|
|
400
|
-
const response = {
|
|
401
|
-
$metadata: deserializeMetadata(output),
|
|
402
|
-
...contents,
|
|
403
|
-
};
|
|
404
|
-
return response;
|
|
405
|
-
};
|
|
406
|
-
export const de_GetAppsListCommand = async (output, context) => {
|
|
407
|
-
if (output.statusCode >= 300) {
|
|
408
|
-
return de_CommandError(output, context);
|
|
409
|
-
}
|
|
410
|
-
const data = await parseBody(output.body, context);
|
|
411
|
-
let contents = {};
|
|
412
|
-
contents = de_GetAppsListResponse(data, context);
|
|
413
|
-
const response = {
|
|
414
|
-
$metadata: deserializeMetadata(output),
|
|
415
|
-
...contents,
|
|
416
|
-
};
|
|
417
|
-
return response;
|
|
418
|
-
};
|
|
419
|
-
export const de_GetComplianceDetailCommand = async (output, context) => {
|
|
420
|
-
if (output.statusCode >= 300) {
|
|
421
|
-
return de_CommandError(output, context);
|
|
422
|
-
}
|
|
423
|
-
const data = await parseBody(output.body, context);
|
|
424
|
-
let contents = {};
|
|
425
|
-
contents = de_GetComplianceDetailResponse(data, context);
|
|
426
|
-
const response = {
|
|
427
|
-
$metadata: deserializeMetadata(output),
|
|
428
|
-
...contents,
|
|
429
|
-
};
|
|
430
|
-
return response;
|
|
431
|
-
};
|
|
432
|
-
export const de_GetNotificationChannelCommand = async (output, context) => {
|
|
433
|
-
if (output.statusCode >= 300) {
|
|
434
|
-
return de_CommandError(output, context);
|
|
435
|
-
}
|
|
436
|
-
const data = await parseBody(output.body, context);
|
|
437
|
-
let contents = {};
|
|
438
|
-
contents = _json(data);
|
|
439
|
-
const response = {
|
|
440
|
-
$metadata: deserializeMetadata(output),
|
|
441
|
-
...contents,
|
|
442
|
-
};
|
|
443
|
-
return response;
|
|
444
|
-
};
|
|
445
|
-
export const de_GetPolicyCommand = async (output, context) => {
|
|
446
|
-
if (output.statusCode >= 300) {
|
|
447
|
-
return de_CommandError(output, context);
|
|
448
|
-
}
|
|
449
|
-
const data = await parseBody(output.body, context);
|
|
450
|
-
let contents = {};
|
|
451
|
-
contents = _json(data);
|
|
452
|
-
const response = {
|
|
453
|
-
$metadata: deserializeMetadata(output),
|
|
454
|
-
...contents,
|
|
455
|
-
};
|
|
456
|
-
return response;
|
|
457
|
-
};
|
|
458
|
-
export const de_GetProtectionStatusCommand = async (output, context) => {
|
|
459
|
-
if (output.statusCode >= 300) {
|
|
460
|
-
return de_CommandError(output, context);
|
|
461
|
-
}
|
|
462
|
-
const data = await parseBody(output.body, context);
|
|
463
|
-
let contents = {};
|
|
464
|
-
contents = _json(data);
|
|
465
|
-
const response = {
|
|
466
|
-
$metadata: deserializeMetadata(output),
|
|
467
|
-
...contents,
|
|
468
|
-
};
|
|
469
|
-
return response;
|
|
470
|
-
};
|
|
471
|
-
export const de_GetProtocolsListCommand = async (output, context) => {
|
|
472
|
-
if (output.statusCode >= 300) {
|
|
473
|
-
return de_CommandError(output, context);
|
|
474
|
-
}
|
|
475
|
-
const data = await parseBody(output.body, context);
|
|
476
|
-
let contents = {};
|
|
477
|
-
contents = de_GetProtocolsListResponse(data, context);
|
|
478
|
-
const response = {
|
|
479
|
-
$metadata: deserializeMetadata(output),
|
|
480
|
-
...contents,
|
|
481
|
-
};
|
|
482
|
-
return response;
|
|
483
|
-
};
|
|
484
|
-
export const de_GetResourceSetCommand = async (output, context) => {
|
|
485
|
-
if (output.statusCode >= 300) {
|
|
486
|
-
return de_CommandError(output, context);
|
|
487
|
-
}
|
|
488
|
-
const data = await parseBody(output.body, context);
|
|
489
|
-
let contents = {};
|
|
490
|
-
contents = de_GetResourceSetResponse(data, context);
|
|
491
|
-
const response = {
|
|
492
|
-
$metadata: deserializeMetadata(output),
|
|
493
|
-
...contents,
|
|
494
|
-
};
|
|
495
|
-
return response;
|
|
496
|
-
};
|
|
497
|
-
export const de_GetThirdPartyFirewallAssociationStatusCommand = async (output, context) => {
|
|
498
|
-
if (output.statusCode >= 300) {
|
|
499
|
-
return de_CommandError(output, context);
|
|
500
|
-
}
|
|
501
|
-
const data = await parseBody(output.body, context);
|
|
502
|
-
let contents = {};
|
|
503
|
-
contents = _json(data);
|
|
504
|
-
const response = {
|
|
505
|
-
$metadata: deserializeMetadata(output),
|
|
506
|
-
...contents,
|
|
507
|
-
};
|
|
508
|
-
return response;
|
|
509
|
-
};
|
|
510
|
-
export const de_GetViolationDetailsCommand = async (output, context) => {
|
|
511
|
-
if (output.statusCode >= 300) {
|
|
512
|
-
return de_CommandError(output, context);
|
|
513
|
-
}
|
|
514
|
-
const data = await parseBody(output.body, context);
|
|
515
|
-
let contents = {};
|
|
516
|
-
contents = de_GetViolationDetailsResponse(data, context);
|
|
517
|
-
const response = {
|
|
518
|
-
$metadata: deserializeMetadata(output),
|
|
519
|
-
...contents,
|
|
520
|
-
};
|
|
521
|
-
return response;
|
|
522
|
-
};
|
|
523
|
-
export const de_ListAdminAccountsForOrganizationCommand = async (output, context) => {
|
|
524
|
-
if (output.statusCode >= 300) {
|
|
525
|
-
return de_CommandError(output, context);
|
|
526
|
-
}
|
|
527
|
-
const data = await parseBody(output.body, context);
|
|
528
|
-
let contents = {};
|
|
529
|
-
contents = _json(data);
|
|
530
|
-
const response = {
|
|
531
|
-
$metadata: deserializeMetadata(output),
|
|
532
|
-
...contents,
|
|
533
|
-
};
|
|
534
|
-
return response;
|
|
535
|
-
};
|
|
536
|
-
export const de_ListAdminsManagingAccountCommand = async (output, context) => {
|
|
537
|
-
if (output.statusCode >= 300) {
|
|
538
|
-
return de_CommandError(output, context);
|
|
539
|
-
}
|
|
540
|
-
const data = await parseBody(output.body, context);
|
|
541
|
-
let contents = {};
|
|
542
|
-
contents = _json(data);
|
|
543
|
-
const response = {
|
|
544
|
-
$metadata: deserializeMetadata(output),
|
|
545
|
-
...contents,
|
|
546
|
-
};
|
|
547
|
-
return response;
|
|
548
|
-
};
|
|
549
|
-
export const de_ListAppsListsCommand = async (output, context) => {
|
|
550
|
-
if (output.statusCode >= 300) {
|
|
551
|
-
return de_CommandError(output, context);
|
|
552
|
-
}
|
|
553
|
-
const data = await parseBody(output.body, context);
|
|
554
|
-
let contents = {};
|
|
555
|
-
contents = _json(data);
|
|
556
|
-
const response = {
|
|
557
|
-
$metadata: deserializeMetadata(output),
|
|
558
|
-
...contents,
|
|
559
|
-
};
|
|
560
|
-
return response;
|
|
561
|
-
};
|
|
562
|
-
export const de_ListComplianceStatusCommand = async (output, context) => {
|
|
563
|
-
if (output.statusCode >= 300) {
|
|
564
|
-
return de_CommandError(output, context);
|
|
565
|
-
}
|
|
566
|
-
const data = await parseBody(output.body, context);
|
|
567
|
-
let contents = {};
|
|
568
|
-
contents = de_ListComplianceStatusResponse(data, context);
|
|
569
|
-
const response = {
|
|
570
|
-
$metadata: deserializeMetadata(output),
|
|
571
|
-
...contents,
|
|
572
|
-
};
|
|
573
|
-
return response;
|
|
574
|
-
};
|
|
575
|
-
export const de_ListDiscoveredResourcesCommand = async (output, context) => {
|
|
576
|
-
if (output.statusCode >= 300) {
|
|
577
|
-
return de_CommandError(output, context);
|
|
578
|
-
}
|
|
579
|
-
const data = await parseBody(output.body, context);
|
|
580
|
-
let contents = {};
|
|
581
|
-
contents = _json(data);
|
|
582
|
-
const response = {
|
|
583
|
-
$metadata: deserializeMetadata(output),
|
|
584
|
-
...contents,
|
|
585
|
-
};
|
|
586
|
-
return response;
|
|
587
|
-
};
|
|
588
|
-
export const de_ListMemberAccountsCommand = async (output, context) => {
|
|
589
|
-
if (output.statusCode >= 300) {
|
|
590
|
-
return de_CommandError(output, context);
|
|
591
|
-
}
|
|
592
|
-
const data = await parseBody(output.body, context);
|
|
593
|
-
let contents = {};
|
|
594
|
-
contents = _json(data);
|
|
595
|
-
const response = {
|
|
596
|
-
$metadata: deserializeMetadata(output),
|
|
597
|
-
...contents,
|
|
598
|
-
};
|
|
599
|
-
return response;
|
|
600
|
-
};
|
|
601
|
-
export const de_ListPoliciesCommand = async (output, context) => {
|
|
602
|
-
if (output.statusCode >= 300) {
|
|
603
|
-
return de_CommandError(output, context);
|
|
604
|
-
}
|
|
605
|
-
const data = await parseBody(output.body, context);
|
|
606
|
-
let contents = {};
|
|
607
|
-
contents = _json(data);
|
|
608
|
-
const response = {
|
|
609
|
-
$metadata: deserializeMetadata(output),
|
|
610
|
-
...contents,
|
|
611
|
-
};
|
|
612
|
-
return response;
|
|
613
|
-
};
|
|
614
|
-
export const de_ListProtocolsListsCommand = async (output, context) => {
|
|
615
|
-
if (output.statusCode >= 300) {
|
|
616
|
-
return de_CommandError(output, context);
|
|
617
|
-
}
|
|
618
|
-
const data = await parseBody(output.body, context);
|
|
619
|
-
let contents = {};
|
|
620
|
-
contents = _json(data);
|
|
621
|
-
const response = {
|
|
622
|
-
$metadata: deserializeMetadata(output),
|
|
623
|
-
...contents,
|
|
624
|
-
};
|
|
625
|
-
return response;
|
|
626
|
-
};
|
|
627
|
-
export const de_ListResourceSetResourcesCommand = async (output, context) => {
|
|
628
|
-
if (output.statusCode >= 300) {
|
|
629
|
-
return de_CommandError(output, context);
|
|
630
|
-
}
|
|
631
|
-
const data = await parseBody(output.body, context);
|
|
632
|
-
let contents = {};
|
|
633
|
-
contents = _json(data);
|
|
634
|
-
const response = {
|
|
635
|
-
$metadata: deserializeMetadata(output),
|
|
636
|
-
...contents,
|
|
637
|
-
};
|
|
638
|
-
return response;
|
|
639
|
-
};
|
|
640
|
-
export const de_ListResourceSetsCommand = async (output, context) => {
|
|
641
|
-
if (output.statusCode >= 300) {
|
|
642
|
-
return de_CommandError(output, context);
|
|
643
|
-
}
|
|
644
|
-
const data = await parseBody(output.body, context);
|
|
645
|
-
let contents = {};
|
|
646
|
-
contents = de_ListResourceSetsResponse(data, context);
|
|
647
|
-
const response = {
|
|
648
|
-
$metadata: deserializeMetadata(output),
|
|
649
|
-
...contents,
|
|
650
|
-
};
|
|
651
|
-
return response;
|
|
652
|
-
};
|
|
653
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
654
|
-
if (output.statusCode >= 300) {
|
|
655
|
-
return de_CommandError(output, context);
|
|
656
|
-
}
|
|
657
|
-
const data = await parseBody(output.body, context);
|
|
658
|
-
let contents = {};
|
|
659
|
-
contents = _json(data);
|
|
660
|
-
const response = {
|
|
661
|
-
$metadata: deserializeMetadata(output),
|
|
662
|
-
...contents,
|
|
663
|
-
};
|
|
664
|
-
return response;
|
|
665
|
-
};
|
|
666
|
-
export const de_ListThirdPartyFirewallFirewallPoliciesCommand = async (output, context) => {
|
|
667
|
-
if (output.statusCode >= 300) {
|
|
668
|
-
return de_CommandError(output, context);
|
|
669
|
-
}
|
|
670
|
-
const data = await parseBody(output.body, context);
|
|
671
|
-
let contents = {};
|
|
672
|
-
contents = _json(data);
|
|
673
|
-
const response = {
|
|
674
|
-
$metadata: deserializeMetadata(output),
|
|
675
|
-
...contents,
|
|
676
|
-
};
|
|
677
|
-
return response;
|
|
678
|
-
};
|
|
679
|
-
export const de_PutAdminAccountCommand = async (output, context) => {
|
|
680
|
-
if (output.statusCode >= 300) {
|
|
681
|
-
return de_CommandError(output, context);
|
|
682
|
-
}
|
|
683
|
-
await collectBody(output.body, context);
|
|
684
|
-
const response = {
|
|
685
|
-
$metadata: deserializeMetadata(output),
|
|
686
|
-
};
|
|
687
|
-
return response;
|
|
688
|
-
};
|
|
689
|
-
export const de_PutAppsListCommand = async (output, context) => {
|
|
690
|
-
if (output.statusCode >= 300) {
|
|
691
|
-
return de_CommandError(output, context);
|
|
692
|
-
}
|
|
693
|
-
const data = await parseBody(output.body, context);
|
|
694
|
-
let contents = {};
|
|
695
|
-
contents = de_PutAppsListResponse(data, context);
|
|
696
|
-
const response = {
|
|
697
|
-
$metadata: deserializeMetadata(output),
|
|
698
|
-
...contents,
|
|
699
|
-
};
|
|
700
|
-
return response;
|
|
701
|
-
};
|
|
702
|
-
export const de_PutNotificationChannelCommand = async (output, context) => {
|
|
703
|
-
if (output.statusCode >= 300) {
|
|
704
|
-
return de_CommandError(output, context);
|
|
705
|
-
}
|
|
706
|
-
await collectBody(output.body, context);
|
|
707
|
-
const response = {
|
|
708
|
-
$metadata: deserializeMetadata(output),
|
|
709
|
-
};
|
|
710
|
-
return response;
|
|
711
|
-
};
|
|
712
|
-
export const de_PutPolicyCommand = async (output, context) => {
|
|
713
|
-
if (output.statusCode >= 300) {
|
|
714
|
-
return de_CommandError(output, context);
|
|
715
|
-
}
|
|
716
|
-
const data = await parseBody(output.body, context);
|
|
717
|
-
let contents = {};
|
|
718
|
-
contents = _json(data);
|
|
719
|
-
const response = {
|
|
720
|
-
$metadata: deserializeMetadata(output),
|
|
721
|
-
...contents,
|
|
722
|
-
};
|
|
723
|
-
return response;
|
|
724
|
-
};
|
|
725
|
-
export const de_PutProtocolsListCommand = async (output, context) => {
|
|
726
|
-
if (output.statusCode >= 300) {
|
|
727
|
-
return de_CommandError(output, context);
|
|
728
|
-
}
|
|
729
|
-
const data = await parseBody(output.body, context);
|
|
730
|
-
let contents = {};
|
|
731
|
-
contents = de_PutProtocolsListResponse(data, context);
|
|
732
|
-
const response = {
|
|
733
|
-
$metadata: deserializeMetadata(output),
|
|
734
|
-
...contents,
|
|
735
|
-
};
|
|
736
|
-
return response;
|
|
737
|
-
};
|
|
738
|
-
export const de_PutResourceSetCommand = async (output, context) => {
|
|
739
|
-
if (output.statusCode >= 300) {
|
|
740
|
-
return de_CommandError(output, context);
|
|
741
|
-
}
|
|
742
|
-
const data = await parseBody(output.body, context);
|
|
743
|
-
let contents = {};
|
|
744
|
-
contents = de_PutResourceSetResponse(data, context);
|
|
745
|
-
const response = {
|
|
746
|
-
$metadata: deserializeMetadata(output),
|
|
747
|
-
...contents,
|
|
748
|
-
};
|
|
749
|
-
return response;
|
|
750
|
-
};
|
|
751
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
752
|
-
if (output.statusCode >= 300) {
|
|
753
|
-
return de_CommandError(output, context);
|
|
754
|
-
}
|
|
755
|
-
const data = await parseBody(output.body, context);
|
|
756
|
-
let contents = {};
|
|
757
|
-
contents = _json(data);
|
|
758
|
-
const response = {
|
|
759
|
-
$metadata: deserializeMetadata(output),
|
|
760
|
-
...contents,
|
|
761
|
-
};
|
|
762
|
-
return response;
|
|
763
|
-
};
|
|
764
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
765
|
-
if (output.statusCode >= 300) {
|
|
766
|
-
return de_CommandError(output, context);
|
|
767
|
-
}
|
|
768
|
-
const data = await parseBody(output.body, context);
|
|
769
|
-
let contents = {};
|
|
770
|
-
contents = _json(data);
|
|
771
|
-
const response = {
|
|
772
|
-
$metadata: deserializeMetadata(output),
|
|
773
|
-
...contents,
|
|
774
|
-
};
|
|
775
|
-
return response;
|
|
776
|
-
};
|
|
777
|
-
const de_CommandError = async (output, context) => {
|
|
778
|
-
const parsedOutput = {
|
|
779
|
-
...output,
|
|
780
|
-
body: await parseErrorBody(output.body, context),
|
|
781
|
-
};
|
|
782
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
783
|
-
switch (errorCode) {
|
|
784
|
-
case "InternalErrorException":
|
|
785
|
-
case "com.amazonaws.fms#InternalErrorException":
|
|
786
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
787
|
-
case "InvalidInputException":
|
|
788
|
-
case "com.amazonaws.fms#InvalidInputException":
|
|
789
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
790
|
-
case "InvalidOperationException":
|
|
791
|
-
case "com.amazonaws.fms#InvalidOperationException":
|
|
792
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
793
|
-
case "LimitExceededException":
|
|
794
|
-
case "com.amazonaws.fms#LimitExceededException":
|
|
795
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
796
|
-
case "ResourceNotFoundException":
|
|
797
|
-
case "com.amazonaws.fms#ResourceNotFoundException":
|
|
798
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
799
|
-
case "InvalidTypeException":
|
|
800
|
-
case "com.amazonaws.fms#InvalidTypeException":
|
|
801
|
-
throw await de_InvalidTypeExceptionRes(parsedOutput, context);
|
|
802
|
-
default:
|
|
803
|
-
const parsedBody = parsedOutput.body;
|
|
804
|
-
return throwDefaultError({
|
|
805
|
-
output,
|
|
806
|
-
parsedBody,
|
|
807
|
-
errorCode,
|
|
808
|
-
});
|
|
809
|
-
}
|
|
810
|
-
};
|
|
811
|
-
const de_InternalErrorExceptionRes = async (parsedOutput, context) => {
|
|
812
|
-
const body = parsedOutput.body;
|
|
813
|
-
const deserialized = _json(body);
|
|
814
|
-
const exception = new InternalErrorException({
|
|
815
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
816
|
-
...deserialized,
|
|
817
|
-
});
|
|
818
|
-
return __decorateServiceException(exception, body);
|
|
819
|
-
};
|
|
820
|
-
const de_InvalidInputExceptionRes = async (parsedOutput, context) => {
|
|
821
|
-
const body = parsedOutput.body;
|
|
822
|
-
const deserialized = _json(body);
|
|
823
|
-
const exception = new InvalidInputException({
|
|
824
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
825
|
-
...deserialized,
|
|
826
|
-
});
|
|
827
|
-
return __decorateServiceException(exception, body);
|
|
828
|
-
};
|
|
829
|
-
const de_InvalidOperationExceptionRes = async (parsedOutput, context) => {
|
|
830
|
-
const body = parsedOutput.body;
|
|
831
|
-
const deserialized = _json(body);
|
|
832
|
-
const exception = new InvalidOperationException({
|
|
833
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
834
|
-
...deserialized,
|
|
835
|
-
});
|
|
836
|
-
return __decorateServiceException(exception, body);
|
|
837
|
-
};
|
|
838
|
-
const de_InvalidTypeExceptionRes = async (parsedOutput, context) => {
|
|
839
|
-
const body = parsedOutput.body;
|
|
840
|
-
const deserialized = _json(body);
|
|
841
|
-
const exception = new InvalidTypeException({
|
|
842
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
843
|
-
...deserialized,
|
|
844
|
-
});
|
|
845
|
-
return __decorateServiceException(exception, body);
|
|
846
|
-
};
|
|
847
|
-
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
848
|
-
const body = parsedOutput.body;
|
|
849
|
-
const deserialized = _json(body);
|
|
850
|
-
const exception = new LimitExceededException({
|
|
851
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
852
|
-
...deserialized,
|
|
853
|
-
});
|
|
854
|
-
return __decorateServiceException(exception, body);
|
|
855
|
-
};
|
|
856
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
857
|
-
const body = parsedOutput.body;
|
|
858
|
-
const deserialized = _json(body);
|
|
859
|
-
const exception = new ResourceNotFoundException({
|
|
860
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
861
|
-
...deserialized,
|
|
862
|
-
});
|
|
863
|
-
return __decorateServiceException(exception, body);
|
|
864
|
-
};
|
|
865
|
-
const se_AppsListData = (input, context) => {
|
|
866
|
-
return take(input, {
|
|
867
|
-
AppsList: _json,
|
|
868
|
-
CreateTime: (_) => _.getTime() / 1_000,
|
|
869
|
-
LastUpdateTime: (_) => _.getTime() / 1_000,
|
|
870
|
-
ListId: [],
|
|
871
|
-
ListName: [],
|
|
872
|
-
ListUpdateToken: [],
|
|
873
|
-
PreviousAppsList: _json,
|
|
874
|
-
});
|
|
875
|
-
};
|
|
876
|
-
const se_GetProtectionStatusRequest = (input, context) => {
|
|
877
|
-
return take(input, {
|
|
878
|
-
EndTime: (_) => _.getTime() / 1_000,
|
|
879
|
-
MaxResults: [],
|
|
880
|
-
MemberAccountId: [],
|
|
881
|
-
NextToken: [],
|
|
882
|
-
PolicyId: [],
|
|
883
|
-
StartTime: (_) => _.getTime() / 1_000,
|
|
884
|
-
});
|
|
885
|
-
};
|
|
886
|
-
const se_ProtocolsListData = (input, context) => {
|
|
887
|
-
return take(input, {
|
|
888
|
-
CreateTime: (_) => _.getTime() / 1_000,
|
|
889
|
-
LastUpdateTime: (_) => _.getTime() / 1_000,
|
|
890
|
-
ListId: [],
|
|
891
|
-
ListName: [],
|
|
892
|
-
ListUpdateToken: [],
|
|
893
|
-
PreviousProtocolsList: _json,
|
|
894
|
-
ProtocolsList: _json,
|
|
895
|
-
});
|
|
896
|
-
};
|
|
897
|
-
const se_PutAppsListRequest = (input, context) => {
|
|
898
|
-
return take(input, {
|
|
899
|
-
AppsList: (_) => se_AppsListData(_, context),
|
|
900
|
-
TagList: _json,
|
|
901
|
-
});
|
|
902
|
-
};
|
|
903
|
-
const se_PutProtocolsListRequest = (input, context) => {
|
|
904
|
-
return take(input, {
|
|
905
|
-
ProtocolsList: (_) => se_ProtocolsListData(_, context),
|
|
906
|
-
TagList: _json,
|
|
907
|
-
});
|
|
908
|
-
};
|
|
909
|
-
const se_PutResourceSetRequest = (input, context) => {
|
|
910
|
-
return take(input, {
|
|
911
|
-
ResourceSet: (_) => se_ResourceSet(_, context),
|
|
912
|
-
TagList: _json,
|
|
913
|
-
});
|
|
914
|
-
};
|
|
915
|
-
const se_ResourceSet = (input, context) => {
|
|
916
|
-
return take(input, {
|
|
917
|
-
Description: [],
|
|
918
|
-
Id: [],
|
|
919
|
-
LastUpdateTime: (_) => _.getTime() / 1_000,
|
|
920
|
-
Name: [],
|
|
921
|
-
ResourceSetStatus: [],
|
|
922
|
-
ResourceTypeList: _json,
|
|
923
|
-
UpdateToken: [],
|
|
924
|
-
});
|
|
925
|
-
};
|
|
926
|
-
const de_AppsListData = (output, context) => {
|
|
927
|
-
return take(output, {
|
|
928
|
-
AppsList: _json,
|
|
929
|
-
CreateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
930
|
-
LastUpdateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
931
|
-
ListId: __expectString,
|
|
932
|
-
ListName: __expectString,
|
|
933
|
-
ListUpdateToken: __expectString,
|
|
934
|
-
PreviousAppsList: _json,
|
|
935
|
-
});
|
|
936
|
-
};
|
|
937
|
-
const de_GetAppsListResponse = (output, context) => {
|
|
938
|
-
return take(output, {
|
|
939
|
-
AppsList: (_) => de_AppsListData(_, context),
|
|
940
|
-
AppsListArn: __expectString,
|
|
941
|
-
});
|
|
942
|
-
};
|
|
943
|
-
const de_GetComplianceDetailResponse = (output, context) => {
|
|
944
|
-
return take(output, {
|
|
945
|
-
PolicyComplianceDetail: (_) => de_PolicyComplianceDetail(_, context),
|
|
946
|
-
});
|
|
947
|
-
};
|
|
948
|
-
const de_GetProtocolsListResponse = (output, context) => {
|
|
949
|
-
return take(output, {
|
|
950
|
-
ProtocolsList: (_) => de_ProtocolsListData(_, context),
|
|
951
|
-
ProtocolsListArn: __expectString,
|
|
952
|
-
});
|
|
953
|
-
};
|
|
954
|
-
const de_GetResourceSetResponse = (output, context) => {
|
|
955
|
-
return take(output, {
|
|
956
|
-
ResourceSet: (_) => de_ResourceSet(_, context),
|
|
957
|
-
ResourceSetArn: __expectString,
|
|
958
|
-
});
|
|
959
|
-
};
|
|
960
|
-
const de_GetViolationDetailsResponse = (output, context) => {
|
|
961
|
-
return take(output, {
|
|
962
|
-
ViolationDetail: (_) => de_ViolationDetail(_, context),
|
|
963
|
-
});
|
|
964
|
-
};
|
|
965
|
-
const de_ListComplianceStatusResponse = (output, context) => {
|
|
966
|
-
return take(output, {
|
|
967
|
-
NextToken: __expectString,
|
|
968
|
-
PolicyComplianceStatusList: (_) => de_PolicyComplianceStatusList(_, context),
|
|
969
|
-
});
|
|
970
|
-
};
|
|
971
|
-
const de_ListResourceSetsResponse = (output, context) => {
|
|
972
|
-
return take(output, {
|
|
973
|
-
NextToken: __expectString,
|
|
974
|
-
ResourceSets: (_) => de_ResourceSetSummaryList(_, context),
|
|
975
|
-
});
|
|
976
|
-
};
|
|
977
|
-
const de_PolicyComplianceDetail = (output, context) => {
|
|
978
|
-
return take(output, {
|
|
979
|
-
EvaluationLimitExceeded: __expectBoolean,
|
|
980
|
-
ExpiredAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
981
|
-
IssueInfoMap: _json,
|
|
982
|
-
MemberAccount: __expectString,
|
|
983
|
-
PolicyId: __expectString,
|
|
984
|
-
PolicyOwner: __expectString,
|
|
985
|
-
Violators: _json,
|
|
986
|
-
});
|
|
987
|
-
};
|
|
988
|
-
const de_PolicyComplianceStatus = (output, context) => {
|
|
989
|
-
return take(output, {
|
|
990
|
-
EvaluationResults: _json,
|
|
991
|
-
IssueInfoMap: _json,
|
|
992
|
-
LastUpdated: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
993
|
-
MemberAccount: __expectString,
|
|
994
|
-
PolicyId: __expectString,
|
|
995
|
-
PolicyName: __expectString,
|
|
996
|
-
PolicyOwner: __expectString,
|
|
997
|
-
});
|
|
998
|
-
};
|
|
999
|
-
const de_PolicyComplianceStatusList = (output, context) => {
|
|
1000
|
-
const retVal = (output || [])
|
|
1001
|
-
.filter((e) => e != null)
|
|
1002
|
-
.map((entry) => {
|
|
1003
|
-
return de_PolicyComplianceStatus(entry, context);
|
|
1004
|
-
});
|
|
1005
|
-
return retVal;
|
|
1006
|
-
};
|
|
1007
|
-
const de_PossibleRemediationActions = (output, context) => {
|
|
1008
|
-
return take(output, {
|
|
1009
|
-
Actions: _json,
|
|
1010
|
-
Description: __expectString,
|
|
1011
|
-
});
|
|
1012
|
-
};
|
|
1013
|
-
const de_ProtocolsListData = (output, context) => {
|
|
1014
|
-
return take(output, {
|
|
1015
|
-
CreateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1016
|
-
LastUpdateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1017
|
-
ListId: __expectString,
|
|
1018
|
-
ListName: __expectString,
|
|
1019
|
-
ListUpdateToken: __expectString,
|
|
1020
|
-
PreviousProtocolsList: _json,
|
|
1021
|
-
ProtocolsList: _json,
|
|
1022
|
-
});
|
|
1023
|
-
};
|
|
1024
|
-
const de_PutAppsListResponse = (output, context) => {
|
|
1025
|
-
return take(output, {
|
|
1026
|
-
AppsList: (_) => de_AppsListData(_, context),
|
|
1027
|
-
AppsListArn: __expectString,
|
|
1028
|
-
});
|
|
1029
|
-
};
|
|
1030
|
-
const de_PutProtocolsListResponse = (output, context) => {
|
|
1031
|
-
return take(output, {
|
|
1032
|
-
ProtocolsList: (_) => de_ProtocolsListData(_, context),
|
|
1033
|
-
ProtocolsListArn: __expectString,
|
|
1034
|
-
});
|
|
1035
|
-
};
|
|
1036
|
-
const de_PutResourceSetResponse = (output, context) => {
|
|
1037
|
-
return take(output, {
|
|
1038
|
-
ResourceSet: (_) => de_ResourceSet(_, context),
|
|
1039
|
-
ResourceSetArn: __expectString,
|
|
1040
|
-
});
|
|
1041
|
-
};
|
|
1042
|
-
const de_ResourceSet = (output, context) => {
|
|
1043
|
-
return take(output, {
|
|
1044
|
-
Description: __expectString,
|
|
1045
|
-
Id: __expectString,
|
|
1046
|
-
LastUpdateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1047
|
-
Name: __expectString,
|
|
1048
|
-
ResourceSetStatus: __expectString,
|
|
1049
|
-
ResourceTypeList: _json,
|
|
1050
|
-
UpdateToken: __expectString,
|
|
1051
|
-
});
|
|
1052
|
-
};
|
|
1053
|
-
const de_ResourceSetSummary = (output, context) => {
|
|
1054
|
-
return take(output, {
|
|
1055
|
-
Description: __expectString,
|
|
1056
|
-
Id: __expectString,
|
|
1057
|
-
LastUpdateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1058
|
-
Name: __expectString,
|
|
1059
|
-
ResourceSetStatus: __expectString,
|
|
1060
|
-
});
|
|
1061
|
-
};
|
|
1062
|
-
const de_ResourceSetSummaryList = (output, context) => {
|
|
1063
|
-
const retVal = (output || [])
|
|
1064
|
-
.filter((e) => e != null)
|
|
1065
|
-
.map((entry) => {
|
|
1066
|
-
return de_ResourceSetSummary(entry, context);
|
|
1067
|
-
});
|
|
1068
|
-
return retVal;
|
|
1069
|
-
};
|
|
1070
|
-
const de_ResourceViolation = (output, context) => {
|
|
1071
|
-
return take(output, {
|
|
1072
|
-
AwsEc2InstanceViolation: _json,
|
|
1073
|
-
AwsEc2NetworkInterfaceViolation: _json,
|
|
1074
|
-
AwsVPCSecurityGroupViolation: _json,
|
|
1075
|
-
DnsDuplicateRuleGroupViolation: _json,
|
|
1076
|
-
DnsRuleGroupLimitExceededViolation: _json,
|
|
1077
|
-
DnsRuleGroupPriorityConflictViolation: _json,
|
|
1078
|
-
FirewallSubnetIsOutOfScopeViolation: _json,
|
|
1079
|
-
FirewallSubnetMissingVPCEndpointViolation: _json,
|
|
1080
|
-
InvalidNetworkAclEntriesViolation: _json,
|
|
1081
|
-
NetworkFirewallBlackHoleRouteDetectedViolation: _json,
|
|
1082
|
-
NetworkFirewallInternetTrafficNotInspectedViolation: _json,
|
|
1083
|
-
NetworkFirewallInvalidRouteConfigurationViolation: _json,
|
|
1084
|
-
NetworkFirewallMissingExpectedRTViolation: _json,
|
|
1085
|
-
NetworkFirewallMissingExpectedRoutesViolation: _json,
|
|
1086
|
-
NetworkFirewallMissingFirewallViolation: _json,
|
|
1087
|
-
NetworkFirewallMissingSubnetViolation: _json,
|
|
1088
|
-
NetworkFirewallPolicyModifiedViolation: _json,
|
|
1089
|
-
NetworkFirewallUnexpectedFirewallRoutesViolation: _json,
|
|
1090
|
-
NetworkFirewallUnexpectedGatewayRoutesViolation: _json,
|
|
1091
|
-
PossibleRemediationActions: (_) => de_PossibleRemediationActions(_, context),
|
|
1092
|
-
RouteHasOutOfScopeEndpointViolation: _json,
|
|
1093
|
-
ThirdPartyFirewallMissingExpectedRouteTableViolation: _json,
|
|
1094
|
-
ThirdPartyFirewallMissingFirewallViolation: _json,
|
|
1095
|
-
ThirdPartyFirewallMissingSubnetViolation: _json,
|
|
1096
|
-
WebACLHasIncompatibleConfigurationViolation: _json,
|
|
1097
|
-
WebACLHasOutOfScopeResourcesViolation: _json,
|
|
1098
|
-
});
|
|
1099
|
-
};
|
|
1100
|
-
const de_ResourceViolations = (output, context) => {
|
|
1101
|
-
const retVal = (output || [])
|
|
1102
|
-
.filter((e) => e != null)
|
|
1103
|
-
.map((entry) => {
|
|
1104
|
-
return de_ResourceViolation(entry, context);
|
|
1105
|
-
});
|
|
1106
|
-
return retVal;
|
|
1107
|
-
};
|
|
1108
|
-
const de_ViolationDetail = (output, context) => {
|
|
1109
|
-
return take(output, {
|
|
1110
|
-
MemberAccount: __expectString,
|
|
1111
|
-
PolicyId: __expectString,
|
|
1112
|
-
ResourceDescription: __expectString,
|
|
1113
|
-
ResourceId: __expectString,
|
|
1114
|
-
ResourceTags: _json,
|
|
1115
|
-
ResourceType: __expectString,
|
|
1116
|
-
ResourceViolations: (_) => de_ResourceViolations(_, context),
|
|
1117
|
-
});
|
|
1118
|
-
};
|
|
1119
|
-
const deserializeMetadata = (output) => ({
|
|
1120
|
-
httpStatusCode: output.statusCode,
|
|
1121
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1122
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1123
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1124
|
-
});
|
|
1125
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1126
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
1127
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1128
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1129
|
-
const contents = {
|
|
1130
|
-
protocol,
|
|
1131
|
-
hostname,
|
|
1132
|
-
port,
|
|
1133
|
-
method: "POST",
|
|
1134
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1135
|
-
headers,
|
|
1136
|
-
};
|
|
1137
|
-
if (resolvedHostname !== undefined) {
|
|
1138
|
-
contents.hostname = resolvedHostname;
|
|
1139
|
-
}
|
|
1140
|
-
if (body !== undefined) {
|
|
1141
|
-
contents.body = body;
|
|
1142
|
-
}
|
|
1143
|
-
return new __HttpRequest(contents);
|
|
1144
|
-
};
|
|
1145
|
-
function sharedHeaders(operation) {
|
|
1146
|
-
return {
|
|
1147
|
-
"content-type": "application/x-amz-json-1.1",
|
|
1148
|
-
"x-amz-target": `AWSFMS_20180101.${operation}`,
|
|
1149
|
-
};
|
|
1150
|
-
}
|