@aws-sdk/client-network-firewall 3.312.0 → 3.316.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/NetworkFirewall.js +40 -504
- package/dist-cjs/protocols/Aws_json1_0.js +262 -2051
- package/dist-es/NetworkFirewall.js +40 -504
- package/dist-es/protocols/Aws_json1_0.js +263 -2052
- package/dist-types/NetworkFirewall.d.ts +120 -278
- package/dist-types/ts3.4/NetworkFirewall.d.ts +4 -1
- package/package.json +6 -6
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException,
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { InsufficientCapacityException, InternalServerError, InvalidOperationException, InvalidRequestException, InvalidResourcePolicyException, InvalidTokenException, LimitExceededException, LogDestinationPermissionException, ResourceNotFoundException, ResourceOwnerCheckException, ThrottlingException, UnsupportedOperationException, } from "../models/models_0";
|
|
4
4
|
import { NetworkFirewallServiceException as __BaseException } from "../models/NetworkFirewallServiceException";
|
|
5
5
|
export const se_AssociateFirewallPolicyCommand = async (input, context) => {
|
|
6
6
|
const headers = sharedHeaders("AssociateFirewallPolicy");
|
|
7
7
|
let body;
|
|
8
|
-
body = JSON.stringify(
|
|
8
|
+
body = JSON.stringify(_json(input));
|
|
9
9
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
10
10
|
};
|
|
11
11
|
export const se_AssociateSubnetsCommand = async (input, context) => {
|
|
12
12
|
const headers = sharedHeaders("AssociateSubnets");
|
|
13
13
|
let body;
|
|
14
|
-
body = JSON.stringify(
|
|
14
|
+
body = JSON.stringify(_json(input));
|
|
15
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
16
|
};
|
|
17
17
|
export const se_CreateFirewallCommand = async (input, context) => {
|
|
18
18
|
const headers = sharedHeaders("CreateFirewall");
|
|
19
19
|
let body;
|
|
20
|
-
body = JSON.stringify(
|
|
20
|
+
body = JSON.stringify(_json(input));
|
|
21
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
22
|
};
|
|
23
23
|
export const se_CreateFirewallPolicyCommand = async (input, context) => {
|
|
24
24
|
const headers = sharedHeaders("CreateFirewallPolicy");
|
|
25
25
|
let body;
|
|
26
|
-
body = JSON.stringify(
|
|
26
|
+
body = JSON.stringify(_json(input));
|
|
27
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
28
28
|
};
|
|
29
29
|
export const se_CreateRuleGroupCommand = async (input, context) => {
|
|
@@ -35,169 +35,169 @@ export const se_CreateRuleGroupCommand = async (input, context) => {
|
|
|
35
35
|
export const se_CreateTLSInspectionConfigurationCommand = async (input, context) => {
|
|
36
36
|
const headers = sharedHeaders("CreateTLSInspectionConfiguration");
|
|
37
37
|
let body;
|
|
38
|
-
body = JSON.stringify(
|
|
38
|
+
body = JSON.stringify(_json(input));
|
|
39
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
40
|
};
|
|
41
41
|
export const se_DeleteFirewallCommand = async (input, context) => {
|
|
42
42
|
const headers = sharedHeaders("DeleteFirewall");
|
|
43
43
|
let body;
|
|
44
|
-
body = JSON.stringify(
|
|
44
|
+
body = JSON.stringify(_json(input));
|
|
45
45
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
46
46
|
};
|
|
47
47
|
export const se_DeleteFirewallPolicyCommand = async (input, context) => {
|
|
48
48
|
const headers = sharedHeaders("DeleteFirewallPolicy");
|
|
49
49
|
let body;
|
|
50
|
-
body = JSON.stringify(
|
|
50
|
+
body = JSON.stringify(_json(input));
|
|
51
51
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
52
52
|
};
|
|
53
53
|
export const se_DeleteResourcePolicyCommand = async (input, context) => {
|
|
54
54
|
const headers = sharedHeaders("DeleteResourcePolicy");
|
|
55
55
|
let body;
|
|
56
|
-
body = JSON.stringify(
|
|
56
|
+
body = JSON.stringify(_json(input));
|
|
57
57
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
58
|
};
|
|
59
59
|
export const se_DeleteRuleGroupCommand = async (input, context) => {
|
|
60
60
|
const headers = sharedHeaders("DeleteRuleGroup");
|
|
61
61
|
let body;
|
|
62
|
-
body = JSON.stringify(
|
|
62
|
+
body = JSON.stringify(_json(input));
|
|
63
63
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
64
64
|
};
|
|
65
65
|
export const se_DeleteTLSInspectionConfigurationCommand = async (input, context) => {
|
|
66
66
|
const headers = sharedHeaders("DeleteTLSInspectionConfiguration");
|
|
67
67
|
let body;
|
|
68
|
-
body = JSON.stringify(
|
|
68
|
+
body = JSON.stringify(_json(input));
|
|
69
69
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
70
70
|
};
|
|
71
71
|
export const se_DescribeFirewallCommand = async (input, context) => {
|
|
72
72
|
const headers = sharedHeaders("DescribeFirewall");
|
|
73
73
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify(_json(input));
|
|
75
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
76
|
};
|
|
77
77
|
export const se_DescribeFirewallPolicyCommand = async (input, context) => {
|
|
78
78
|
const headers = sharedHeaders("DescribeFirewallPolicy");
|
|
79
79
|
let body;
|
|
80
|
-
body = JSON.stringify(
|
|
80
|
+
body = JSON.stringify(_json(input));
|
|
81
81
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
82
82
|
};
|
|
83
83
|
export const se_DescribeLoggingConfigurationCommand = async (input, context) => {
|
|
84
84
|
const headers = sharedHeaders("DescribeLoggingConfiguration");
|
|
85
85
|
let body;
|
|
86
|
-
body = JSON.stringify(
|
|
86
|
+
body = JSON.stringify(_json(input));
|
|
87
87
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
88
88
|
};
|
|
89
89
|
export const se_DescribeResourcePolicyCommand = async (input, context) => {
|
|
90
90
|
const headers = sharedHeaders("DescribeResourcePolicy");
|
|
91
91
|
let body;
|
|
92
|
-
body = JSON.stringify(
|
|
92
|
+
body = JSON.stringify(_json(input));
|
|
93
93
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
94
|
};
|
|
95
95
|
export const se_DescribeRuleGroupCommand = async (input, context) => {
|
|
96
96
|
const headers = sharedHeaders("DescribeRuleGroup");
|
|
97
97
|
let body;
|
|
98
|
-
body = JSON.stringify(
|
|
98
|
+
body = JSON.stringify(_json(input));
|
|
99
99
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
100
100
|
};
|
|
101
101
|
export const se_DescribeRuleGroupMetadataCommand = async (input, context) => {
|
|
102
102
|
const headers = sharedHeaders("DescribeRuleGroupMetadata");
|
|
103
103
|
let body;
|
|
104
|
-
body = JSON.stringify(
|
|
104
|
+
body = JSON.stringify(_json(input));
|
|
105
105
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
106
106
|
};
|
|
107
107
|
export const se_DescribeTLSInspectionConfigurationCommand = async (input, context) => {
|
|
108
108
|
const headers = sharedHeaders("DescribeTLSInspectionConfiguration");
|
|
109
109
|
let body;
|
|
110
|
-
body = JSON.stringify(
|
|
110
|
+
body = JSON.stringify(_json(input));
|
|
111
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
112
|
};
|
|
113
113
|
export const se_DisassociateSubnetsCommand = async (input, context) => {
|
|
114
114
|
const headers = sharedHeaders("DisassociateSubnets");
|
|
115
115
|
let body;
|
|
116
|
-
body = JSON.stringify(
|
|
116
|
+
body = JSON.stringify(_json(input));
|
|
117
117
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
118
118
|
};
|
|
119
119
|
export const se_ListFirewallPoliciesCommand = async (input, context) => {
|
|
120
120
|
const headers = sharedHeaders("ListFirewallPolicies");
|
|
121
121
|
let body;
|
|
122
|
-
body = JSON.stringify(
|
|
122
|
+
body = JSON.stringify(_json(input));
|
|
123
123
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
124
124
|
};
|
|
125
125
|
export const se_ListFirewallsCommand = async (input, context) => {
|
|
126
126
|
const headers = sharedHeaders("ListFirewalls");
|
|
127
127
|
let body;
|
|
128
|
-
body = JSON.stringify(
|
|
128
|
+
body = JSON.stringify(_json(input));
|
|
129
129
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
130
130
|
};
|
|
131
131
|
export const se_ListRuleGroupsCommand = async (input, context) => {
|
|
132
132
|
const headers = sharedHeaders("ListRuleGroups");
|
|
133
133
|
let body;
|
|
134
|
-
body = JSON.stringify(
|
|
134
|
+
body = JSON.stringify(_json(input));
|
|
135
135
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
136
136
|
};
|
|
137
137
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
138
138
|
const headers = sharedHeaders("ListTagsForResource");
|
|
139
139
|
let body;
|
|
140
|
-
body = JSON.stringify(
|
|
140
|
+
body = JSON.stringify(_json(input));
|
|
141
141
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
142
142
|
};
|
|
143
143
|
export const se_ListTLSInspectionConfigurationsCommand = async (input, context) => {
|
|
144
144
|
const headers = sharedHeaders("ListTLSInspectionConfigurations");
|
|
145
145
|
let body;
|
|
146
|
-
body = JSON.stringify(
|
|
146
|
+
body = JSON.stringify(_json(input));
|
|
147
147
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
148
|
};
|
|
149
149
|
export const se_PutResourcePolicyCommand = async (input, context) => {
|
|
150
150
|
const headers = sharedHeaders("PutResourcePolicy");
|
|
151
151
|
let body;
|
|
152
|
-
body = JSON.stringify(
|
|
152
|
+
body = JSON.stringify(_json(input));
|
|
153
153
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
154
154
|
};
|
|
155
155
|
export const se_TagResourceCommand = async (input, context) => {
|
|
156
156
|
const headers = sharedHeaders("TagResource");
|
|
157
157
|
let body;
|
|
158
|
-
body = JSON.stringify(
|
|
158
|
+
body = JSON.stringify(_json(input));
|
|
159
159
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
160
160
|
};
|
|
161
161
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
162
162
|
const headers = sharedHeaders("UntagResource");
|
|
163
163
|
let body;
|
|
164
|
-
body = JSON.stringify(
|
|
164
|
+
body = JSON.stringify(_json(input));
|
|
165
165
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
166
|
};
|
|
167
167
|
export const se_UpdateFirewallDeleteProtectionCommand = async (input, context) => {
|
|
168
168
|
const headers = sharedHeaders("UpdateFirewallDeleteProtection");
|
|
169
169
|
let body;
|
|
170
|
-
body = JSON.stringify(
|
|
170
|
+
body = JSON.stringify(_json(input));
|
|
171
171
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
172
172
|
};
|
|
173
173
|
export const se_UpdateFirewallDescriptionCommand = async (input, context) => {
|
|
174
174
|
const headers = sharedHeaders("UpdateFirewallDescription");
|
|
175
175
|
let body;
|
|
176
|
-
body = JSON.stringify(
|
|
176
|
+
body = JSON.stringify(_json(input));
|
|
177
177
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
178
178
|
};
|
|
179
179
|
export const se_UpdateFirewallEncryptionConfigurationCommand = async (input, context) => {
|
|
180
180
|
const headers = sharedHeaders("UpdateFirewallEncryptionConfiguration");
|
|
181
181
|
let body;
|
|
182
|
-
body = JSON.stringify(
|
|
182
|
+
body = JSON.stringify(_json(input));
|
|
183
183
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
184
184
|
};
|
|
185
185
|
export const se_UpdateFirewallPolicyCommand = async (input, context) => {
|
|
186
186
|
const headers = sharedHeaders("UpdateFirewallPolicy");
|
|
187
187
|
let body;
|
|
188
|
-
body = JSON.stringify(
|
|
188
|
+
body = JSON.stringify(_json(input));
|
|
189
189
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
190
190
|
};
|
|
191
191
|
export const se_UpdateFirewallPolicyChangeProtectionCommand = async (input, context) => {
|
|
192
192
|
const headers = sharedHeaders("UpdateFirewallPolicyChangeProtection");
|
|
193
193
|
let body;
|
|
194
|
-
body = JSON.stringify(
|
|
194
|
+
body = JSON.stringify(_json(input));
|
|
195
195
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
196
196
|
};
|
|
197
197
|
export const se_UpdateLoggingConfigurationCommand = async (input, context) => {
|
|
198
198
|
const headers = sharedHeaders("UpdateLoggingConfiguration");
|
|
199
199
|
let body;
|
|
200
|
-
body = JSON.stringify(
|
|
200
|
+
body = JSON.stringify(_json(input));
|
|
201
201
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
202
202
|
};
|
|
203
203
|
export const se_UpdateRuleGroupCommand = async (input, context) => {
|
|
@@ -209,13 +209,13 @@ export const se_UpdateRuleGroupCommand = async (input, context) => {
|
|
|
209
209
|
export const se_UpdateSubnetChangeProtectionCommand = async (input, context) => {
|
|
210
210
|
const headers = sharedHeaders("UpdateSubnetChangeProtection");
|
|
211
211
|
let body;
|
|
212
|
-
body = JSON.stringify(
|
|
212
|
+
body = JSON.stringify(_json(input));
|
|
213
213
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
214
214
|
};
|
|
215
215
|
export const se_UpdateTLSInspectionConfigurationCommand = async (input, context) => {
|
|
216
216
|
const headers = sharedHeaders("UpdateTLSInspectionConfiguration");
|
|
217
217
|
let body;
|
|
218
|
-
body = JSON.stringify(
|
|
218
|
+
body = JSON.stringify(_json(input));
|
|
219
219
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
220
220
|
};
|
|
221
221
|
export const de_AssociateFirewallPolicyCommand = async (output, context) => {
|
|
@@ -224,12 +224,12 @@ export const de_AssociateFirewallPolicyCommand = async (output, context) => {
|
|
|
224
224
|
}
|
|
225
225
|
const data = await parseBody(output.body, context);
|
|
226
226
|
let contents = {};
|
|
227
|
-
contents =
|
|
227
|
+
contents = _json(data);
|
|
228
228
|
const response = {
|
|
229
229
|
$metadata: deserializeMetadata(output),
|
|
230
230
|
...contents,
|
|
231
231
|
};
|
|
232
|
-
return
|
|
232
|
+
return response;
|
|
233
233
|
};
|
|
234
234
|
const de_AssociateFirewallPolicyCommandError = async (output, context) => {
|
|
235
235
|
const parsedOutput = {
|
|
@@ -258,10 +258,9 @@ const de_AssociateFirewallPolicyCommandError = async (output, context) => {
|
|
|
258
258
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
259
259
|
default:
|
|
260
260
|
const parsedBody = parsedOutput.body;
|
|
261
|
-
throwDefaultError({
|
|
261
|
+
return throwDefaultError({
|
|
262
262
|
output,
|
|
263
263
|
parsedBody,
|
|
264
|
-
exceptionCtor: __BaseException,
|
|
265
264
|
errorCode,
|
|
266
265
|
});
|
|
267
266
|
}
|
|
@@ -272,12 +271,12 @@ export const de_AssociateSubnetsCommand = async (output, context) => {
|
|
|
272
271
|
}
|
|
273
272
|
const data = await parseBody(output.body, context);
|
|
274
273
|
let contents = {};
|
|
275
|
-
contents =
|
|
274
|
+
contents = _json(data);
|
|
276
275
|
const response = {
|
|
277
276
|
$metadata: deserializeMetadata(output),
|
|
278
277
|
...contents,
|
|
279
278
|
};
|
|
280
|
-
return
|
|
279
|
+
return response;
|
|
281
280
|
};
|
|
282
281
|
const de_AssociateSubnetsCommandError = async (output, context) => {
|
|
283
282
|
const parsedOutput = {
|
|
@@ -309,10 +308,9 @@ const de_AssociateSubnetsCommandError = async (output, context) => {
|
|
|
309
308
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
310
309
|
default:
|
|
311
310
|
const parsedBody = parsedOutput.body;
|
|
312
|
-
throwDefaultError({
|
|
311
|
+
return throwDefaultError({
|
|
313
312
|
output,
|
|
314
313
|
parsedBody,
|
|
315
|
-
exceptionCtor: __BaseException,
|
|
316
314
|
errorCode,
|
|
317
315
|
});
|
|
318
316
|
}
|
|
@@ -323,12 +321,12 @@ export const de_CreateFirewallCommand = async (output, context) => {
|
|
|
323
321
|
}
|
|
324
322
|
const data = await parseBody(output.body, context);
|
|
325
323
|
let contents = {};
|
|
326
|
-
contents =
|
|
324
|
+
contents = _json(data);
|
|
327
325
|
const response = {
|
|
328
326
|
$metadata: deserializeMetadata(output),
|
|
329
327
|
...contents,
|
|
330
328
|
};
|
|
331
|
-
return
|
|
329
|
+
return response;
|
|
332
330
|
};
|
|
333
331
|
const de_CreateFirewallCommandError = async (output, context) => {
|
|
334
332
|
const parsedOutput = {
|
|
@@ -357,10 +355,9 @@ const de_CreateFirewallCommandError = async (output, context) => {
|
|
|
357
355
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
358
356
|
default:
|
|
359
357
|
const parsedBody = parsedOutput.body;
|
|
360
|
-
throwDefaultError({
|
|
358
|
+
return throwDefaultError({
|
|
361
359
|
output,
|
|
362
360
|
parsedBody,
|
|
363
|
-
exceptionCtor: __BaseException,
|
|
364
361
|
errorCode,
|
|
365
362
|
});
|
|
366
363
|
}
|
|
@@ -376,7 +373,7 @@ export const de_CreateFirewallPolicyCommand = async (output, context) => {
|
|
|
376
373
|
$metadata: deserializeMetadata(output),
|
|
377
374
|
...contents,
|
|
378
375
|
};
|
|
379
|
-
return
|
|
376
|
+
return response;
|
|
380
377
|
};
|
|
381
378
|
const de_CreateFirewallPolicyCommandError = async (output, context) => {
|
|
382
379
|
const parsedOutput = {
|
|
@@ -402,10 +399,9 @@ const de_CreateFirewallPolicyCommandError = async (output, context) => {
|
|
|
402
399
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
403
400
|
default:
|
|
404
401
|
const parsedBody = parsedOutput.body;
|
|
405
|
-
throwDefaultError({
|
|
402
|
+
return throwDefaultError({
|
|
406
403
|
output,
|
|
407
404
|
parsedBody,
|
|
408
|
-
exceptionCtor: __BaseException,
|
|
409
405
|
errorCode,
|
|
410
406
|
});
|
|
411
407
|
}
|
|
@@ -421,7 +417,7 @@ export const de_CreateRuleGroupCommand = async (output, context) => {
|
|
|
421
417
|
$metadata: deserializeMetadata(output),
|
|
422
418
|
...contents,
|
|
423
419
|
};
|
|
424
|
-
return
|
|
420
|
+
return response;
|
|
425
421
|
};
|
|
426
422
|
const de_CreateRuleGroupCommandError = async (output, context) => {
|
|
427
423
|
const parsedOutput = {
|
|
@@ -447,10 +443,9 @@ const de_CreateRuleGroupCommandError = async (output, context) => {
|
|
|
447
443
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
448
444
|
default:
|
|
449
445
|
const parsedBody = parsedOutput.body;
|
|
450
|
-
throwDefaultError({
|
|
446
|
+
return throwDefaultError({
|
|
451
447
|
output,
|
|
452
448
|
parsedBody,
|
|
453
|
-
exceptionCtor: __BaseException,
|
|
454
449
|
errorCode,
|
|
455
450
|
});
|
|
456
451
|
}
|
|
@@ -466,7 +461,7 @@ export const de_CreateTLSInspectionConfigurationCommand = async (output, context
|
|
|
466
461
|
$metadata: deserializeMetadata(output),
|
|
467
462
|
...contents,
|
|
468
463
|
};
|
|
469
|
-
return
|
|
464
|
+
return response;
|
|
470
465
|
};
|
|
471
466
|
const de_CreateTLSInspectionConfigurationCommandError = async (output, context) => {
|
|
472
467
|
const parsedOutput = {
|
|
@@ -486,10 +481,9 @@ const de_CreateTLSInspectionConfigurationCommandError = async (output, context)
|
|
|
486
481
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
487
482
|
default:
|
|
488
483
|
const parsedBody = parsedOutput.body;
|
|
489
|
-
throwDefaultError({
|
|
484
|
+
return throwDefaultError({
|
|
490
485
|
output,
|
|
491
486
|
parsedBody,
|
|
492
|
-
exceptionCtor: __BaseException,
|
|
493
487
|
errorCode,
|
|
494
488
|
});
|
|
495
489
|
}
|
|
@@ -500,12 +494,12 @@ export const de_DeleteFirewallCommand = async (output, context) => {
|
|
|
500
494
|
}
|
|
501
495
|
const data = await parseBody(output.body, context);
|
|
502
496
|
let contents = {};
|
|
503
|
-
contents =
|
|
497
|
+
contents = _json(data);
|
|
504
498
|
const response = {
|
|
505
499
|
$metadata: deserializeMetadata(output),
|
|
506
500
|
...contents,
|
|
507
501
|
};
|
|
508
|
-
return
|
|
502
|
+
return response;
|
|
509
503
|
};
|
|
510
504
|
const de_DeleteFirewallCommandError = async (output, context) => {
|
|
511
505
|
const parsedOutput = {
|
|
@@ -534,10 +528,9 @@ const de_DeleteFirewallCommandError = async (output, context) => {
|
|
|
534
528
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
535
529
|
default:
|
|
536
530
|
const parsedBody = parsedOutput.body;
|
|
537
|
-
throwDefaultError({
|
|
531
|
+
return throwDefaultError({
|
|
538
532
|
output,
|
|
539
533
|
parsedBody,
|
|
540
|
-
exceptionCtor: __BaseException,
|
|
541
534
|
errorCode,
|
|
542
535
|
});
|
|
543
536
|
}
|
|
@@ -553,7 +546,7 @@ export const de_DeleteFirewallPolicyCommand = async (output, context) => {
|
|
|
553
546
|
$metadata: deserializeMetadata(output),
|
|
554
547
|
...contents,
|
|
555
548
|
};
|
|
556
|
-
return
|
|
549
|
+
return response;
|
|
557
550
|
};
|
|
558
551
|
const de_DeleteFirewallPolicyCommandError = async (output, context) => {
|
|
559
552
|
const parsedOutput = {
|
|
@@ -582,10 +575,9 @@ const de_DeleteFirewallPolicyCommandError = async (output, context) => {
|
|
|
582
575
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
583
576
|
default:
|
|
584
577
|
const parsedBody = parsedOutput.body;
|
|
585
|
-
throwDefaultError({
|
|
578
|
+
return throwDefaultError({
|
|
586
579
|
output,
|
|
587
580
|
parsedBody,
|
|
588
|
-
exceptionCtor: __BaseException,
|
|
589
581
|
errorCode,
|
|
590
582
|
});
|
|
591
583
|
}
|
|
@@ -596,12 +588,12 @@ export const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
|
596
588
|
}
|
|
597
589
|
const data = await parseBody(output.body, context);
|
|
598
590
|
let contents = {};
|
|
599
|
-
contents =
|
|
591
|
+
contents = _json(data);
|
|
600
592
|
const response = {
|
|
601
593
|
$metadata: deserializeMetadata(output),
|
|
602
594
|
...contents,
|
|
603
595
|
};
|
|
604
|
-
return
|
|
596
|
+
return response;
|
|
605
597
|
};
|
|
606
598
|
const de_DeleteResourcePolicyCommandError = async (output, context) => {
|
|
607
599
|
const parsedOutput = {
|
|
@@ -627,10 +619,9 @@ const de_DeleteResourcePolicyCommandError = async (output, context) => {
|
|
|
627
619
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
628
620
|
default:
|
|
629
621
|
const parsedBody = parsedOutput.body;
|
|
630
|
-
throwDefaultError({
|
|
622
|
+
return throwDefaultError({
|
|
631
623
|
output,
|
|
632
624
|
parsedBody,
|
|
633
|
-
exceptionCtor: __BaseException,
|
|
634
625
|
errorCode,
|
|
635
626
|
});
|
|
636
627
|
}
|
|
@@ -646,7 +637,7 @@ export const de_DeleteRuleGroupCommand = async (output, context) => {
|
|
|
646
637
|
$metadata: deserializeMetadata(output),
|
|
647
638
|
...contents,
|
|
648
639
|
};
|
|
649
|
-
return
|
|
640
|
+
return response;
|
|
650
641
|
};
|
|
651
642
|
const de_DeleteRuleGroupCommandError = async (output, context) => {
|
|
652
643
|
const parsedOutput = {
|
|
@@ -675,10 +666,9 @@ const de_DeleteRuleGroupCommandError = async (output, context) => {
|
|
|
675
666
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
676
667
|
default:
|
|
677
668
|
const parsedBody = parsedOutput.body;
|
|
678
|
-
throwDefaultError({
|
|
669
|
+
return throwDefaultError({
|
|
679
670
|
output,
|
|
680
671
|
parsedBody,
|
|
681
|
-
exceptionCtor: __BaseException,
|
|
682
672
|
errorCode,
|
|
683
673
|
});
|
|
684
674
|
}
|
|
@@ -694,7 +684,7 @@ export const de_DeleteTLSInspectionConfigurationCommand = async (output, context
|
|
|
694
684
|
$metadata: deserializeMetadata(output),
|
|
695
685
|
...contents,
|
|
696
686
|
};
|
|
697
|
-
return
|
|
687
|
+
return response;
|
|
698
688
|
};
|
|
699
689
|
const de_DeleteTLSInspectionConfigurationCommandError = async (output, context) => {
|
|
700
690
|
const parsedOutput = {
|
|
@@ -720,10 +710,9 @@ const de_DeleteTLSInspectionConfigurationCommandError = async (output, context)
|
|
|
720
710
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
721
711
|
default:
|
|
722
712
|
const parsedBody = parsedOutput.body;
|
|
723
|
-
throwDefaultError({
|
|
713
|
+
return throwDefaultError({
|
|
724
714
|
output,
|
|
725
715
|
parsedBody,
|
|
726
|
-
exceptionCtor: __BaseException,
|
|
727
716
|
errorCode,
|
|
728
717
|
});
|
|
729
718
|
}
|
|
@@ -734,12 +723,12 @@ export const de_DescribeFirewallCommand = async (output, context) => {
|
|
|
734
723
|
}
|
|
735
724
|
const data = await parseBody(output.body, context);
|
|
736
725
|
let contents = {};
|
|
737
|
-
contents =
|
|
726
|
+
contents = _json(data);
|
|
738
727
|
const response = {
|
|
739
728
|
$metadata: deserializeMetadata(output),
|
|
740
729
|
...contents,
|
|
741
730
|
};
|
|
742
|
-
return
|
|
731
|
+
return response;
|
|
743
732
|
};
|
|
744
733
|
const de_DescribeFirewallCommandError = async (output, context) => {
|
|
745
734
|
const parsedOutput = {
|
|
@@ -762,10 +751,9 @@ const de_DescribeFirewallCommandError = async (output, context) => {
|
|
|
762
751
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
763
752
|
default:
|
|
764
753
|
const parsedBody = parsedOutput.body;
|
|
765
|
-
throwDefaultError({
|
|
754
|
+
return throwDefaultError({
|
|
766
755
|
output,
|
|
767
756
|
parsedBody,
|
|
768
|
-
exceptionCtor: __BaseException,
|
|
769
757
|
errorCode,
|
|
770
758
|
});
|
|
771
759
|
}
|
|
@@ -781,7 +769,7 @@ export const de_DescribeFirewallPolicyCommand = async (output, context) => {
|
|
|
781
769
|
$metadata: deserializeMetadata(output),
|
|
782
770
|
...contents,
|
|
783
771
|
};
|
|
784
|
-
return
|
|
772
|
+
return response;
|
|
785
773
|
};
|
|
786
774
|
const de_DescribeFirewallPolicyCommandError = async (output, context) => {
|
|
787
775
|
const parsedOutput = {
|
|
@@ -804,10 +792,9 @@ const de_DescribeFirewallPolicyCommandError = async (output, context) => {
|
|
|
804
792
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
805
793
|
default:
|
|
806
794
|
const parsedBody = parsedOutput.body;
|
|
807
|
-
throwDefaultError({
|
|
795
|
+
return throwDefaultError({
|
|
808
796
|
output,
|
|
809
797
|
parsedBody,
|
|
810
|
-
exceptionCtor: __BaseException,
|
|
811
798
|
errorCode,
|
|
812
799
|
});
|
|
813
800
|
}
|
|
@@ -818,12 +805,12 @@ export const de_DescribeLoggingConfigurationCommand = async (output, context) =>
|
|
|
818
805
|
}
|
|
819
806
|
const data = await parseBody(output.body, context);
|
|
820
807
|
let contents = {};
|
|
821
|
-
contents =
|
|
808
|
+
contents = _json(data);
|
|
822
809
|
const response = {
|
|
823
810
|
$metadata: deserializeMetadata(output),
|
|
824
811
|
...contents,
|
|
825
812
|
};
|
|
826
|
-
return
|
|
813
|
+
return response;
|
|
827
814
|
};
|
|
828
815
|
const de_DescribeLoggingConfigurationCommandError = async (output, context) => {
|
|
829
816
|
const parsedOutput = {
|
|
@@ -846,10 +833,9 @@ const de_DescribeLoggingConfigurationCommandError = async (output, context) => {
|
|
|
846
833
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
847
834
|
default:
|
|
848
835
|
const parsedBody = parsedOutput.body;
|
|
849
|
-
throwDefaultError({
|
|
836
|
+
return throwDefaultError({
|
|
850
837
|
output,
|
|
851
838
|
parsedBody,
|
|
852
|
-
exceptionCtor: __BaseException,
|
|
853
839
|
errorCode,
|
|
854
840
|
});
|
|
855
841
|
}
|
|
@@ -860,12 +846,12 @@ export const de_DescribeResourcePolicyCommand = async (output, context) => {
|
|
|
860
846
|
}
|
|
861
847
|
const data = await parseBody(output.body, context);
|
|
862
848
|
let contents = {};
|
|
863
|
-
contents =
|
|
849
|
+
contents = _json(data);
|
|
864
850
|
const response = {
|
|
865
851
|
$metadata: deserializeMetadata(output),
|
|
866
852
|
...contents,
|
|
867
853
|
};
|
|
868
|
-
return
|
|
854
|
+
return response;
|
|
869
855
|
};
|
|
870
856
|
const de_DescribeResourcePolicyCommandError = async (output, context) => {
|
|
871
857
|
const parsedOutput = {
|
|
@@ -888,10 +874,9 @@ const de_DescribeResourcePolicyCommandError = async (output, context) => {
|
|
|
888
874
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
889
875
|
default:
|
|
890
876
|
const parsedBody = parsedOutput.body;
|
|
891
|
-
throwDefaultError({
|
|
877
|
+
return throwDefaultError({
|
|
892
878
|
output,
|
|
893
879
|
parsedBody,
|
|
894
|
-
exceptionCtor: __BaseException,
|
|
895
880
|
errorCode,
|
|
896
881
|
});
|
|
897
882
|
}
|
|
@@ -907,7 +892,7 @@ export const de_DescribeRuleGroupCommand = async (output, context) => {
|
|
|
907
892
|
$metadata: deserializeMetadata(output),
|
|
908
893
|
...contents,
|
|
909
894
|
};
|
|
910
|
-
return
|
|
895
|
+
return response;
|
|
911
896
|
};
|
|
912
897
|
const de_DescribeRuleGroupCommandError = async (output, context) => {
|
|
913
898
|
const parsedOutput = {
|
|
@@ -930,10 +915,9 @@ const de_DescribeRuleGroupCommandError = async (output, context) => {
|
|
|
930
915
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
931
916
|
default:
|
|
932
917
|
const parsedBody = parsedOutput.body;
|
|
933
|
-
throwDefaultError({
|
|
918
|
+
return throwDefaultError({
|
|
934
919
|
output,
|
|
935
920
|
parsedBody,
|
|
936
|
-
exceptionCtor: __BaseException,
|
|
937
921
|
errorCode,
|
|
938
922
|
});
|
|
939
923
|
}
|
|
@@ -949,7 +933,7 @@ export const de_DescribeRuleGroupMetadataCommand = async (output, context) => {
|
|
|
949
933
|
$metadata: deserializeMetadata(output),
|
|
950
934
|
...contents,
|
|
951
935
|
};
|
|
952
|
-
return
|
|
936
|
+
return response;
|
|
953
937
|
};
|
|
954
938
|
const de_DescribeRuleGroupMetadataCommandError = async (output, context) => {
|
|
955
939
|
const parsedOutput = {
|
|
@@ -972,10 +956,9 @@ const de_DescribeRuleGroupMetadataCommandError = async (output, context) => {
|
|
|
972
956
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
973
957
|
default:
|
|
974
958
|
const parsedBody = parsedOutput.body;
|
|
975
|
-
throwDefaultError({
|
|
959
|
+
return throwDefaultError({
|
|
976
960
|
output,
|
|
977
961
|
parsedBody,
|
|
978
|
-
exceptionCtor: __BaseException,
|
|
979
962
|
errorCode,
|
|
980
963
|
});
|
|
981
964
|
}
|
|
@@ -991,7 +974,7 @@ export const de_DescribeTLSInspectionConfigurationCommand = async (output, conte
|
|
|
991
974
|
$metadata: deserializeMetadata(output),
|
|
992
975
|
...contents,
|
|
993
976
|
};
|
|
994
|
-
return
|
|
977
|
+
return response;
|
|
995
978
|
};
|
|
996
979
|
const de_DescribeTLSInspectionConfigurationCommandError = async (output, context) => {
|
|
997
980
|
const parsedOutput = {
|
|
@@ -1014,10 +997,9 @@ const de_DescribeTLSInspectionConfigurationCommandError = async (output, context
|
|
|
1014
997
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1015
998
|
default:
|
|
1016
999
|
const parsedBody = parsedOutput.body;
|
|
1017
|
-
throwDefaultError({
|
|
1000
|
+
return throwDefaultError({
|
|
1018
1001
|
output,
|
|
1019
1002
|
parsedBody,
|
|
1020
|
-
exceptionCtor: __BaseException,
|
|
1021
1003
|
errorCode,
|
|
1022
1004
|
});
|
|
1023
1005
|
}
|
|
@@ -1028,12 +1010,12 @@ export const de_DisassociateSubnetsCommand = async (output, context) => {
|
|
|
1028
1010
|
}
|
|
1029
1011
|
const data = await parseBody(output.body, context);
|
|
1030
1012
|
let contents = {};
|
|
1031
|
-
contents =
|
|
1013
|
+
contents = _json(data);
|
|
1032
1014
|
const response = {
|
|
1033
1015
|
$metadata: deserializeMetadata(output),
|
|
1034
1016
|
...contents,
|
|
1035
1017
|
};
|
|
1036
|
-
return
|
|
1018
|
+
return response;
|
|
1037
1019
|
};
|
|
1038
1020
|
const de_DisassociateSubnetsCommandError = async (output, context) => {
|
|
1039
1021
|
const parsedOutput = {
|
|
@@ -1062,10 +1044,9 @@ const de_DisassociateSubnetsCommandError = async (output, context) => {
|
|
|
1062
1044
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1063
1045
|
default:
|
|
1064
1046
|
const parsedBody = parsedOutput.body;
|
|
1065
|
-
throwDefaultError({
|
|
1047
|
+
return throwDefaultError({
|
|
1066
1048
|
output,
|
|
1067
1049
|
parsedBody,
|
|
1068
|
-
exceptionCtor: __BaseException,
|
|
1069
1050
|
errorCode,
|
|
1070
1051
|
});
|
|
1071
1052
|
}
|
|
@@ -1076,12 +1057,12 @@ export const de_ListFirewallPoliciesCommand = async (output, context) => {
|
|
|
1076
1057
|
}
|
|
1077
1058
|
const data = await parseBody(output.body, context);
|
|
1078
1059
|
let contents = {};
|
|
1079
|
-
contents =
|
|
1060
|
+
contents = _json(data);
|
|
1080
1061
|
const response = {
|
|
1081
1062
|
$metadata: deserializeMetadata(output),
|
|
1082
1063
|
...contents,
|
|
1083
1064
|
};
|
|
1084
|
-
return
|
|
1065
|
+
return response;
|
|
1085
1066
|
};
|
|
1086
1067
|
const de_ListFirewallPoliciesCommandError = async (output, context) => {
|
|
1087
1068
|
const parsedOutput = {
|
|
@@ -1101,10 +1082,9 @@ const de_ListFirewallPoliciesCommandError = async (output, context) => {
|
|
|
1101
1082
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1102
1083
|
default:
|
|
1103
1084
|
const parsedBody = parsedOutput.body;
|
|
1104
|
-
throwDefaultError({
|
|
1085
|
+
return throwDefaultError({
|
|
1105
1086
|
output,
|
|
1106
1087
|
parsedBody,
|
|
1107
|
-
exceptionCtor: __BaseException,
|
|
1108
1088
|
errorCode,
|
|
1109
1089
|
});
|
|
1110
1090
|
}
|
|
@@ -1115,12 +1095,12 @@ export const de_ListFirewallsCommand = async (output, context) => {
|
|
|
1115
1095
|
}
|
|
1116
1096
|
const data = await parseBody(output.body, context);
|
|
1117
1097
|
let contents = {};
|
|
1118
|
-
contents =
|
|
1098
|
+
contents = _json(data);
|
|
1119
1099
|
const response = {
|
|
1120
1100
|
$metadata: deserializeMetadata(output),
|
|
1121
1101
|
...contents,
|
|
1122
1102
|
};
|
|
1123
|
-
return
|
|
1103
|
+
return response;
|
|
1124
1104
|
};
|
|
1125
1105
|
const de_ListFirewallsCommandError = async (output, context) => {
|
|
1126
1106
|
const parsedOutput = {
|
|
@@ -1140,10 +1120,9 @@ const de_ListFirewallsCommandError = async (output, context) => {
|
|
|
1140
1120
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1141
1121
|
default:
|
|
1142
1122
|
const parsedBody = parsedOutput.body;
|
|
1143
|
-
throwDefaultError({
|
|
1123
|
+
return throwDefaultError({
|
|
1144
1124
|
output,
|
|
1145
1125
|
parsedBody,
|
|
1146
|
-
exceptionCtor: __BaseException,
|
|
1147
1126
|
errorCode,
|
|
1148
1127
|
});
|
|
1149
1128
|
}
|
|
@@ -1154,12 +1133,12 @@ export const de_ListRuleGroupsCommand = async (output, context) => {
|
|
|
1154
1133
|
}
|
|
1155
1134
|
const data = await parseBody(output.body, context);
|
|
1156
1135
|
let contents = {};
|
|
1157
|
-
contents =
|
|
1136
|
+
contents = _json(data);
|
|
1158
1137
|
const response = {
|
|
1159
1138
|
$metadata: deserializeMetadata(output),
|
|
1160
1139
|
...contents,
|
|
1161
1140
|
};
|
|
1162
|
-
return
|
|
1141
|
+
return response;
|
|
1163
1142
|
};
|
|
1164
1143
|
const de_ListRuleGroupsCommandError = async (output, context) => {
|
|
1165
1144
|
const parsedOutput = {
|
|
@@ -1179,10 +1158,9 @@ const de_ListRuleGroupsCommandError = async (output, context) => {
|
|
|
1179
1158
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1180
1159
|
default:
|
|
1181
1160
|
const parsedBody = parsedOutput.body;
|
|
1182
|
-
throwDefaultError({
|
|
1161
|
+
return throwDefaultError({
|
|
1183
1162
|
output,
|
|
1184
1163
|
parsedBody,
|
|
1185
|
-
exceptionCtor: __BaseException,
|
|
1186
1164
|
errorCode,
|
|
1187
1165
|
});
|
|
1188
1166
|
}
|
|
@@ -1193,12 +1171,12 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1193
1171
|
}
|
|
1194
1172
|
const data = await parseBody(output.body, context);
|
|
1195
1173
|
let contents = {};
|
|
1196
|
-
contents =
|
|
1174
|
+
contents = _json(data);
|
|
1197
1175
|
const response = {
|
|
1198
1176
|
$metadata: deserializeMetadata(output),
|
|
1199
1177
|
...contents,
|
|
1200
1178
|
};
|
|
1201
|
-
return
|
|
1179
|
+
return response;
|
|
1202
1180
|
};
|
|
1203
1181
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1204
1182
|
const parsedOutput = {
|
|
@@ -1221,10 +1199,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1221
1199
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1222
1200
|
default:
|
|
1223
1201
|
const parsedBody = parsedOutput.body;
|
|
1224
|
-
throwDefaultError({
|
|
1202
|
+
return throwDefaultError({
|
|
1225
1203
|
output,
|
|
1226
1204
|
parsedBody,
|
|
1227
|
-
exceptionCtor: __BaseException,
|
|
1228
1205
|
errorCode,
|
|
1229
1206
|
});
|
|
1230
1207
|
}
|
|
@@ -1235,12 +1212,12 @@ export const de_ListTLSInspectionConfigurationsCommand = async (output, context)
|
|
|
1235
1212
|
}
|
|
1236
1213
|
const data = await parseBody(output.body, context);
|
|
1237
1214
|
let contents = {};
|
|
1238
|
-
contents =
|
|
1215
|
+
contents = _json(data);
|
|
1239
1216
|
const response = {
|
|
1240
1217
|
$metadata: deserializeMetadata(output),
|
|
1241
1218
|
...contents,
|
|
1242
1219
|
};
|
|
1243
|
-
return
|
|
1220
|
+
return response;
|
|
1244
1221
|
};
|
|
1245
1222
|
const de_ListTLSInspectionConfigurationsCommandError = async (output, context) => {
|
|
1246
1223
|
const parsedOutput = {
|
|
@@ -1260,10 +1237,9 @@ const de_ListTLSInspectionConfigurationsCommandError = async (output, context) =
|
|
|
1260
1237
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1261
1238
|
default:
|
|
1262
1239
|
const parsedBody = parsedOutput.body;
|
|
1263
|
-
throwDefaultError({
|
|
1240
|
+
return throwDefaultError({
|
|
1264
1241
|
output,
|
|
1265
1242
|
parsedBody,
|
|
1266
|
-
exceptionCtor: __BaseException,
|
|
1267
1243
|
errorCode,
|
|
1268
1244
|
});
|
|
1269
1245
|
}
|
|
@@ -1274,12 +1250,12 @@ export const de_PutResourcePolicyCommand = async (output, context) => {
|
|
|
1274
1250
|
}
|
|
1275
1251
|
const data = await parseBody(output.body, context);
|
|
1276
1252
|
let contents = {};
|
|
1277
|
-
contents =
|
|
1253
|
+
contents = _json(data);
|
|
1278
1254
|
const response = {
|
|
1279
1255
|
$metadata: deserializeMetadata(output),
|
|
1280
1256
|
...contents,
|
|
1281
1257
|
};
|
|
1282
|
-
return
|
|
1258
|
+
return response;
|
|
1283
1259
|
};
|
|
1284
1260
|
const de_PutResourcePolicyCommandError = async (output, context) => {
|
|
1285
1261
|
const parsedOutput = {
|
|
@@ -1305,10 +1281,9 @@ const de_PutResourcePolicyCommandError = async (output, context) => {
|
|
|
1305
1281
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1306
1282
|
default:
|
|
1307
1283
|
const parsedBody = parsedOutput.body;
|
|
1308
|
-
throwDefaultError({
|
|
1284
|
+
return throwDefaultError({
|
|
1309
1285
|
output,
|
|
1310
1286
|
parsedBody,
|
|
1311
|
-
exceptionCtor: __BaseException,
|
|
1312
1287
|
errorCode,
|
|
1313
1288
|
});
|
|
1314
1289
|
}
|
|
@@ -1319,12 +1294,12 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
1319
1294
|
}
|
|
1320
1295
|
const data = await parseBody(output.body, context);
|
|
1321
1296
|
let contents = {};
|
|
1322
|
-
contents =
|
|
1297
|
+
contents = _json(data);
|
|
1323
1298
|
const response = {
|
|
1324
1299
|
$metadata: deserializeMetadata(output),
|
|
1325
1300
|
...contents,
|
|
1326
1301
|
};
|
|
1327
|
-
return
|
|
1302
|
+
return response;
|
|
1328
1303
|
};
|
|
1329
1304
|
const de_TagResourceCommandError = async (output, context) => {
|
|
1330
1305
|
const parsedOutput = {
|
|
@@ -1347,10 +1322,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1347
1322
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1348
1323
|
default:
|
|
1349
1324
|
const parsedBody = parsedOutput.body;
|
|
1350
|
-
throwDefaultError({
|
|
1325
|
+
return throwDefaultError({
|
|
1351
1326
|
output,
|
|
1352
1327
|
parsedBody,
|
|
1353
|
-
exceptionCtor: __BaseException,
|
|
1354
1328
|
errorCode,
|
|
1355
1329
|
});
|
|
1356
1330
|
}
|
|
@@ -1361,12 +1335,12 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1361
1335
|
}
|
|
1362
1336
|
const data = await parseBody(output.body, context);
|
|
1363
1337
|
let contents = {};
|
|
1364
|
-
contents =
|
|
1338
|
+
contents = _json(data);
|
|
1365
1339
|
const response = {
|
|
1366
1340
|
$metadata: deserializeMetadata(output),
|
|
1367
1341
|
...contents,
|
|
1368
1342
|
};
|
|
1369
|
-
return
|
|
1343
|
+
return response;
|
|
1370
1344
|
};
|
|
1371
1345
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
1372
1346
|
const parsedOutput = {
|
|
@@ -1389,10 +1363,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1389
1363
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1390
1364
|
default:
|
|
1391
1365
|
const parsedBody = parsedOutput.body;
|
|
1392
|
-
throwDefaultError({
|
|
1366
|
+
return throwDefaultError({
|
|
1393
1367
|
output,
|
|
1394
1368
|
parsedBody,
|
|
1395
|
-
exceptionCtor: __BaseException,
|
|
1396
1369
|
errorCode,
|
|
1397
1370
|
});
|
|
1398
1371
|
}
|
|
@@ -1403,12 +1376,12 @@ export const de_UpdateFirewallDeleteProtectionCommand = async (output, context)
|
|
|
1403
1376
|
}
|
|
1404
1377
|
const data = await parseBody(output.body, context);
|
|
1405
1378
|
let contents = {};
|
|
1406
|
-
contents =
|
|
1379
|
+
contents = _json(data);
|
|
1407
1380
|
const response = {
|
|
1408
1381
|
$metadata: deserializeMetadata(output),
|
|
1409
1382
|
...contents,
|
|
1410
1383
|
};
|
|
1411
|
-
return
|
|
1384
|
+
return response;
|
|
1412
1385
|
};
|
|
1413
1386
|
const de_UpdateFirewallDeleteProtectionCommandError = async (output, context) => {
|
|
1414
1387
|
const parsedOutput = {
|
|
@@ -1437,10 +1410,9 @@ const de_UpdateFirewallDeleteProtectionCommandError = async (output, context) =>
|
|
|
1437
1410
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1438
1411
|
default:
|
|
1439
1412
|
const parsedBody = parsedOutput.body;
|
|
1440
|
-
throwDefaultError({
|
|
1413
|
+
return throwDefaultError({
|
|
1441
1414
|
output,
|
|
1442
1415
|
parsedBody,
|
|
1443
|
-
exceptionCtor: __BaseException,
|
|
1444
1416
|
errorCode,
|
|
1445
1417
|
});
|
|
1446
1418
|
}
|
|
@@ -1451,12 +1423,12 @@ export const de_UpdateFirewallDescriptionCommand = async (output, context) => {
|
|
|
1451
1423
|
}
|
|
1452
1424
|
const data = await parseBody(output.body, context);
|
|
1453
1425
|
let contents = {};
|
|
1454
|
-
contents =
|
|
1426
|
+
contents = _json(data);
|
|
1455
1427
|
const response = {
|
|
1456
1428
|
$metadata: deserializeMetadata(output),
|
|
1457
1429
|
...contents,
|
|
1458
1430
|
};
|
|
1459
|
-
return
|
|
1431
|
+
return response;
|
|
1460
1432
|
};
|
|
1461
1433
|
const de_UpdateFirewallDescriptionCommandError = async (output, context) => {
|
|
1462
1434
|
const parsedOutput = {
|
|
@@ -1482,10 +1454,9 @@ const de_UpdateFirewallDescriptionCommandError = async (output, context) => {
|
|
|
1482
1454
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1483
1455
|
default:
|
|
1484
1456
|
const parsedBody = parsedOutput.body;
|
|
1485
|
-
throwDefaultError({
|
|
1457
|
+
return throwDefaultError({
|
|
1486
1458
|
output,
|
|
1487
1459
|
parsedBody,
|
|
1488
|
-
exceptionCtor: __BaseException,
|
|
1489
1460
|
errorCode,
|
|
1490
1461
|
});
|
|
1491
1462
|
}
|
|
@@ -1496,12 +1467,12 @@ export const de_UpdateFirewallEncryptionConfigurationCommand = async (output, co
|
|
|
1496
1467
|
}
|
|
1497
1468
|
const data = await parseBody(output.body, context);
|
|
1498
1469
|
let contents = {};
|
|
1499
|
-
contents =
|
|
1470
|
+
contents = _json(data);
|
|
1500
1471
|
const response = {
|
|
1501
1472
|
$metadata: deserializeMetadata(output),
|
|
1502
1473
|
...contents,
|
|
1503
1474
|
};
|
|
1504
|
-
return
|
|
1475
|
+
return response;
|
|
1505
1476
|
};
|
|
1506
1477
|
const de_UpdateFirewallEncryptionConfigurationCommandError = async (output, context) => {
|
|
1507
1478
|
const parsedOutput = {
|
|
@@ -1530,10 +1501,9 @@ const de_UpdateFirewallEncryptionConfigurationCommandError = async (output, cont
|
|
|
1530
1501
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1531
1502
|
default:
|
|
1532
1503
|
const parsedBody = parsedOutput.body;
|
|
1533
|
-
throwDefaultError({
|
|
1504
|
+
return throwDefaultError({
|
|
1534
1505
|
output,
|
|
1535
1506
|
parsedBody,
|
|
1536
|
-
exceptionCtor: __BaseException,
|
|
1537
1507
|
errorCode,
|
|
1538
1508
|
});
|
|
1539
1509
|
}
|
|
@@ -1549,7 +1519,7 @@ export const de_UpdateFirewallPolicyCommand = async (output, context) => {
|
|
|
1549
1519
|
$metadata: deserializeMetadata(output),
|
|
1550
1520
|
...contents,
|
|
1551
1521
|
};
|
|
1552
|
-
return
|
|
1522
|
+
return response;
|
|
1553
1523
|
};
|
|
1554
1524
|
const de_UpdateFirewallPolicyCommandError = async (output, context) => {
|
|
1555
1525
|
const parsedOutput = {
|
|
@@ -1575,10 +1545,9 @@ const de_UpdateFirewallPolicyCommandError = async (output, context) => {
|
|
|
1575
1545
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1576
1546
|
default:
|
|
1577
1547
|
const parsedBody = parsedOutput.body;
|
|
1578
|
-
throwDefaultError({
|
|
1548
|
+
return throwDefaultError({
|
|
1579
1549
|
output,
|
|
1580
1550
|
parsedBody,
|
|
1581
|
-
exceptionCtor: __BaseException,
|
|
1582
1551
|
errorCode,
|
|
1583
1552
|
});
|
|
1584
1553
|
}
|
|
@@ -1589,12 +1558,12 @@ export const de_UpdateFirewallPolicyChangeProtectionCommand = async (output, con
|
|
|
1589
1558
|
}
|
|
1590
1559
|
const data = await parseBody(output.body, context);
|
|
1591
1560
|
let contents = {};
|
|
1592
|
-
contents =
|
|
1561
|
+
contents = _json(data);
|
|
1593
1562
|
const response = {
|
|
1594
1563
|
$metadata: deserializeMetadata(output),
|
|
1595
1564
|
...contents,
|
|
1596
1565
|
};
|
|
1597
|
-
return
|
|
1566
|
+
return response;
|
|
1598
1567
|
};
|
|
1599
1568
|
const de_UpdateFirewallPolicyChangeProtectionCommandError = async (output, context) => {
|
|
1600
1569
|
const parsedOutput = {
|
|
@@ -1623,10 +1592,9 @@ const de_UpdateFirewallPolicyChangeProtectionCommandError = async (output, conte
|
|
|
1623
1592
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1624
1593
|
default:
|
|
1625
1594
|
const parsedBody = parsedOutput.body;
|
|
1626
|
-
throwDefaultError({
|
|
1595
|
+
return throwDefaultError({
|
|
1627
1596
|
output,
|
|
1628
1597
|
parsedBody,
|
|
1629
|
-
exceptionCtor: __BaseException,
|
|
1630
1598
|
errorCode,
|
|
1631
1599
|
});
|
|
1632
1600
|
}
|
|
@@ -1637,12 +1605,12 @@ export const de_UpdateLoggingConfigurationCommand = async (output, context) => {
|
|
|
1637
1605
|
}
|
|
1638
1606
|
const data = await parseBody(output.body, context);
|
|
1639
1607
|
let contents = {};
|
|
1640
|
-
contents =
|
|
1608
|
+
contents = _json(data);
|
|
1641
1609
|
const response = {
|
|
1642
1610
|
$metadata: deserializeMetadata(output),
|
|
1643
1611
|
...contents,
|
|
1644
1612
|
};
|
|
1645
|
-
return
|
|
1613
|
+
return response;
|
|
1646
1614
|
};
|
|
1647
1615
|
const de_UpdateLoggingConfigurationCommandError = async (output, context) => {
|
|
1648
1616
|
const parsedOutput = {
|
|
@@ -1671,10 +1639,9 @@ const de_UpdateLoggingConfigurationCommandError = async (output, context) => {
|
|
|
1671
1639
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1672
1640
|
default:
|
|
1673
1641
|
const parsedBody = parsedOutput.body;
|
|
1674
|
-
throwDefaultError({
|
|
1642
|
+
return throwDefaultError({
|
|
1675
1643
|
output,
|
|
1676
1644
|
parsedBody,
|
|
1677
|
-
exceptionCtor: __BaseException,
|
|
1678
1645
|
errorCode,
|
|
1679
1646
|
});
|
|
1680
1647
|
}
|
|
@@ -1690,7 +1657,7 @@ export const de_UpdateRuleGroupCommand = async (output, context) => {
|
|
|
1690
1657
|
$metadata: deserializeMetadata(output),
|
|
1691
1658
|
...contents,
|
|
1692
1659
|
};
|
|
1693
|
-
return
|
|
1660
|
+
return response;
|
|
1694
1661
|
};
|
|
1695
1662
|
const de_UpdateRuleGroupCommandError = async (output, context) => {
|
|
1696
1663
|
const parsedOutput = {
|
|
@@ -1716,10 +1683,9 @@ const de_UpdateRuleGroupCommandError = async (output, context) => {
|
|
|
1716
1683
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1717
1684
|
default:
|
|
1718
1685
|
const parsedBody = parsedOutput.body;
|
|
1719
|
-
throwDefaultError({
|
|
1686
|
+
return throwDefaultError({
|
|
1720
1687
|
output,
|
|
1721
1688
|
parsedBody,
|
|
1722
|
-
exceptionCtor: __BaseException,
|
|
1723
1689
|
errorCode,
|
|
1724
1690
|
});
|
|
1725
1691
|
}
|
|
@@ -1730,12 +1696,12 @@ export const de_UpdateSubnetChangeProtectionCommand = async (output, context) =>
|
|
|
1730
1696
|
}
|
|
1731
1697
|
const data = await parseBody(output.body, context);
|
|
1732
1698
|
let contents = {};
|
|
1733
|
-
contents =
|
|
1699
|
+
contents = _json(data);
|
|
1734
1700
|
const response = {
|
|
1735
1701
|
$metadata: deserializeMetadata(output),
|
|
1736
1702
|
...contents,
|
|
1737
1703
|
};
|
|
1738
|
-
return
|
|
1704
|
+
return response;
|
|
1739
1705
|
};
|
|
1740
1706
|
const de_UpdateSubnetChangeProtectionCommandError = async (output, context) => {
|
|
1741
1707
|
const parsedOutput = {
|
|
@@ -1764,10 +1730,9 @@ const de_UpdateSubnetChangeProtectionCommandError = async (output, context) => {
|
|
|
1764
1730
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1765
1731
|
default:
|
|
1766
1732
|
const parsedBody = parsedOutput.body;
|
|
1767
|
-
throwDefaultError({
|
|
1733
|
+
return throwDefaultError({
|
|
1768
1734
|
output,
|
|
1769
1735
|
parsedBody,
|
|
1770
|
-
exceptionCtor: __BaseException,
|
|
1771
1736
|
errorCode,
|
|
1772
1737
|
});
|
|
1773
1738
|
}
|
|
@@ -1783,7 +1748,7 @@ export const de_UpdateTLSInspectionConfigurationCommand = async (output, context
|
|
|
1783
1748
|
$metadata: deserializeMetadata(output),
|
|
1784
1749
|
...contents,
|
|
1785
1750
|
};
|
|
1786
|
-
return
|
|
1751
|
+
return response;
|
|
1787
1752
|
};
|
|
1788
1753
|
const de_UpdateTLSInspectionConfigurationCommandError = async (output, context) => {
|
|
1789
1754
|
const parsedOutput = {
|
|
@@ -1809,17 +1774,16 @@ const de_UpdateTLSInspectionConfigurationCommandError = async (output, context)
|
|
|
1809
1774
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1810
1775
|
default:
|
|
1811
1776
|
const parsedBody = parsedOutput.body;
|
|
1812
|
-
throwDefaultError({
|
|
1777
|
+
return throwDefaultError({
|
|
1813
1778
|
output,
|
|
1814
1779
|
parsedBody,
|
|
1815
|
-
exceptionCtor: __BaseException,
|
|
1816
1780
|
errorCode,
|
|
1817
1781
|
});
|
|
1818
1782
|
}
|
|
1819
1783
|
};
|
|
1820
1784
|
const de_InsufficientCapacityExceptionRes = async (parsedOutput, context) => {
|
|
1821
1785
|
const body = parsedOutput.body;
|
|
1822
|
-
const deserialized =
|
|
1786
|
+
const deserialized = _json(body);
|
|
1823
1787
|
const exception = new InsufficientCapacityException({
|
|
1824
1788
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1825
1789
|
...deserialized,
|
|
@@ -1828,7 +1792,7 @@ const de_InsufficientCapacityExceptionRes = async (parsedOutput, context) => {
|
|
|
1828
1792
|
};
|
|
1829
1793
|
const de_InternalServerErrorRes = async (parsedOutput, context) => {
|
|
1830
1794
|
const body = parsedOutput.body;
|
|
1831
|
-
const deserialized =
|
|
1795
|
+
const deserialized = _json(body);
|
|
1832
1796
|
const exception = new InternalServerError({
|
|
1833
1797
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1834
1798
|
...deserialized,
|
|
@@ -1837,7 +1801,7 @@ const de_InternalServerErrorRes = async (parsedOutput, context) => {
|
|
|
1837
1801
|
};
|
|
1838
1802
|
const de_InvalidOperationExceptionRes = async (parsedOutput, context) => {
|
|
1839
1803
|
const body = parsedOutput.body;
|
|
1840
|
-
const deserialized =
|
|
1804
|
+
const deserialized = _json(body);
|
|
1841
1805
|
const exception = new InvalidOperationException({
|
|
1842
1806
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1843
1807
|
...deserialized,
|
|
@@ -1846,7 +1810,7 @@ const de_InvalidOperationExceptionRes = async (parsedOutput, context) => {
|
|
|
1846
1810
|
};
|
|
1847
1811
|
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
1848
1812
|
const body = parsedOutput.body;
|
|
1849
|
-
const deserialized =
|
|
1813
|
+
const deserialized = _json(body);
|
|
1850
1814
|
const exception = new InvalidRequestException({
|
|
1851
1815
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1852
1816
|
...deserialized,
|
|
@@ -1855,7 +1819,7 @@ const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
1855
1819
|
};
|
|
1856
1820
|
const de_InvalidResourcePolicyExceptionRes = async (parsedOutput, context) => {
|
|
1857
1821
|
const body = parsedOutput.body;
|
|
1858
|
-
const deserialized =
|
|
1822
|
+
const deserialized = _json(body);
|
|
1859
1823
|
const exception = new InvalidResourcePolicyException({
|
|
1860
1824
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1861
1825
|
...deserialized,
|
|
@@ -1864,7 +1828,7 @@ const de_InvalidResourcePolicyExceptionRes = async (parsedOutput, context) => {
|
|
|
1864
1828
|
};
|
|
1865
1829
|
const de_InvalidTokenExceptionRes = async (parsedOutput, context) => {
|
|
1866
1830
|
const body = parsedOutput.body;
|
|
1867
|
-
const deserialized =
|
|
1831
|
+
const deserialized = _json(body);
|
|
1868
1832
|
const exception = new InvalidTokenException({
|
|
1869
1833
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1870
1834
|
...deserialized,
|
|
@@ -1873,7 +1837,7 @@ const de_InvalidTokenExceptionRes = async (parsedOutput, context) => {
|
|
|
1873
1837
|
};
|
|
1874
1838
|
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1875
1839
|
const body = parsedOutput.body;
|
|
1876
|
-
const deserialized =
|
|
1840
|
+
const deserialized = _json(body);
|
|
1877
1841
|
const exception = new LimitExceededException({
|
|
1878
1842
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1879
1843
|
...deserialized,
|
|
@@ -1882,7 +1846,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1882
1846
|
};
|
|
1883
1847
|
const de_LogDestinationPermissionExceptionRes = async (parsedOutput, context) => {
|
|
1884
1848
|
const body = parsedOutput.body;
|
|
1885
|
-
const deserialized =
|
|
1849
|
+
const deserialized = _json(body);
|
|
1886
1850
|
const exception = new LogDestinationPermissionException({
|
|
1887
1851
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1888
1852
|
...deserialized,
|
|
@@ -1891,7 +1855,7 @@ const de_LogDestinationPermissionExceptionRes = async (parsedOutput, context) =>
|
|
|
1891
1855
|
};
|
|
1892
1856
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1893
1857
|
const body = parsedOutput.body;
|
|
1894
|
-
const deserialized =
|
|
1858
|
+
const deserialized = _json(body);
|
|
1895
1859
|
const exception = new ResourceNotFoundException({
|
|
1896
1860
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1897
1861
|
...deserialized,
|
|
@@ -1900,7 +1864,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1900
1864
|
};
|
|
1901
1865
|
const de_ResourceOwnerCheckExceptionRes = async (parsedOutput, context) => {
|
|
1902
1866
|
const body = parsedOutput.body;
|
|
1903
|
-
const deserialized =
|
|
1867
|
+
const deserialized = _json(body);
|
|
1904
1868
|
const exception = new ResourceOwnerCheckException({
|
|
1905
1869
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1906
1870
|
...deserialized,
|
|
@@ -1909,7 +1873,7 @@ const de_ResourceOwnerCheckExceptionRes = async (parsedOutput, context) => {
|
|
|
1909
1873
|
};
|
|
1910
1874
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1911
1875
|
const body = parsedOutput.body;
|
|
1912
|
-
const deserialized =
|
|
1876
|
+
const deserialized = _json(body);
|
|
1913
1877
|
const exception = new ThrottlingException({
|
|
1914
1878
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1915
1879
|
...deserialized,
|
|
@@ -1918,1924 +1882,170 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
1918
1882
|
};
|
|
1919
1883
|
const de_UnsupportedOperationExceptionRes = async (parsedOutput, context) => {
|
|
1920
1884
|
const body = parsedOutput.body;
|
|
1921
|
-
const deserialized =
|
|
1885
|
+
const deserialized = _json(body);
|
|
1922
1886
|
const exception = new UnsupportedOperationException({
|
|
1923
1887
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1924
1888
|
...deserialized,
|
|
1925
1889
|
});
|
|
1926
1890
|
return __decorateServiceException(exception, body);
|
|
1927
1891
|
};
|
|
1928
|
-
const
|
|
1929
|
-
return {
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
const se_Addresses = (input, context) => {
|
|
1941
|
-
return input
|
|
1942
|
-
.filter((e) => e != null)
|
|
1943
|
-
.map((entry) => {
|
|
1944
|
-
return se_Address(entry, context);
|
|
1945
|
-
});
|
|
1946
|
-
};
|
|
1947
|
-
const se_AssociateFirewallPolicyRequest = (input, context) => {
|
|
1948
|
-
return {
|
|
1949
|
-
...(input.FirewallArn != null && { FirewallArn: input.FirewallArn }),
|
|
1950
|
-
...(input.FirewallName != null && { FirewallName: input.FirewallName }),
|
|
1951
|
-
...(input.FirewallPolicyArn != null && { FirewallPolicyArn: input.FirewallPolicyArn }),
|
|
1952
|
-
...(input.UpdateToken != null && { UpdateToken: input.UpdateToken }),
|
|
1953
|
-
};
|
|
1954
|
-
};
|
|
1955
|
-
const se_AssociateSubnetsRequest = (input, context) => {
|
|
1956
|
-
return {
|
|
1957
|
-
...(input.FirewallArn != null && { FirewallArn: input.FirewallArn }),
|
|
1958
|
-
...(input.FirewallName != null && { FirewallName: input.FirewallName }),
|
|
1959
|
-
...(input.SubnetMappings != null && { SubnetMappings: se_SubnetMappings(input.SubnetMappings, context) }),
|
|
1960
|
-
...(input.UpdateToken != null && { UpdateToken: input.UpdateToken }),
|
|
1961
|
-
};
|
|
1962
|
-
};
|
|
1963
|
-
const se_AzSubnets = (input, context) => {
|
|
1964
|
-
return input
|
|
1965
|
-
.filter((e) => e != null)
|
|
1966
|
-
.map((entry) => {
|
|
1967
|
-
return entry;
|
|
1968
|
-
});
|
|
1969
|
-
};
|
|
1970
|
-
const se_CreateFirewallPolicyRequest = (input, context) => {
|
|
1971
|
-
return {
|
|
1972
|
-
...(input.Description != null && { Description: input.Description }),
|
|
1973
|
-
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
1974
|
-
...(input.EncryptionConfiguration != null && {
|
|
1975
|
-
EncryptionConfiguration: se_EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
1976
|
-
}),
|
|
1977
|
-
...(input.FirewallPolicy != null && { FirewallPolicy: se_FirewallPolicy(input.FirewallPolicy, context) }),
|
|
1978
|
-
...(input.FirewallPolicyName != null && { FirewallPolicyName: input.FirewallPolicyName }),
|
|
1979
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
1980
|
-
};
|
|
1981
|
-
};
|
|
1982
|
-
const se_CreateFirewallRequest = (input, context) => {
|
|
1983
|
-
return {
|
|
1984
|
-
...(input.DeleteProtection != null && { DeleteProtection: input.DeleteProtection }),
|
|
1985
|
-
...(input.Description != null && { Description: input.Description }),
|
|
1986
|
-
...(input.EncryptionConfiguration != null && {
|
|
1987
|
-
EncryptionConfiguration: se_EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
1988
|
-
}),
|
|
1989
|
-
...(input.FirewallName != null && { FirewallName: input.FirewallName }),
|
|
1990
|
-
...(input.FirewallPolicyArn != null && { FirewallPolicyArn: input.FirewallPolicyArn }),
|
|
1991
|
-
...(input.FirewallPolicyChangeProtection != null && {
|
|
1992
|
-
FirewallPolicyChangeProtection: input.FirewallPolicyChangeProtection,
|
|
1993
|
-
}),
|
|
1994
|
-
...(input.SubnetChangeProtection != null && { SubnetChangeProtection: input.SubnetChangeProtection }),
|
|
1995
|
-
...(input.SubnetMappings != null && { SubnetMappings: se_SubnetMappings(input.SubnetMappings, context) }),
|
|
1996
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
1997
|
-
...(input.VpcId != null && { VpcId: input.VpcId }),
|
|
1998
|
-
};
|
|
1999
|
-
};
|
|
2000
|
-
const se_CreateRuleGroupRequest = (input, context) => {
|
|
2001
|
-
return {
|
|
2002
|
-
...(input.Capacity != null && { Capacity: input.Capacity }),
|
|
2003
|
-
...(input.Description != null && { Description: input.Description }),
|
|
2004
|
-
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
2005
|
-
...(input.EncryptionConfiguration != null && {
|
|
2006
|
-
EncryptionConfiguration: se_EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
2007
|
-
}),
|
|
2008
|
-
...(input.RuleGroup != null && { RuleGroup: se_RuleGroup(input.RuleGroup, context) }),
|
|
2009
|
-
...(input.RuleGroupName != null && { RuleGroupName: input.RuleGroupName }),
|
|
2010
|
-
...(input.Rules != null && { Rules: input.Rules }),
|
|
2011
|
-
...(input.SourceMetadata != null && { SourceMetadata: se_SourceMetadata(input.SourceMetadata, context) }),
|
|
2012
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
2013
|
-
...(input.Type != null && { Type: input.Type }),
|
|
2014
|
-
};
|
|
2015
|
-
};
|
|
2016
|
-
const se_CreateTLSInspectionConfigurationRequest = (input, context) => {
|
|
2017
|
-
return {
|
|
2018
|
-
...(input.Description != null && { Description: input.Description }),
|
|
2019
|
-
...(input.EncryptionConfiguration != null && {
|
|
2020
|
-
EncryptionConfiguration: se_EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
2021
|
-
}),
|
|
2022
|
-
...(input.TLSInspectionConfiguration != null && {
|
|
2023
|
-
TLSInspectionConfiguration: se_TLSInspectionConfiguration(input.TLSInspectionConfiguration, context),
|
|
2024
|
-
}),
|
|
2025
|
-
...(input.TLSInspectionConfigurationName != null && {
|
|
2026
|
-
TLSInspectionConfigurationName: input.TLSInspectionConfigurationName,
|
|
2027
|
-
}),
|
|
2028
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
2029
|
-
};
|
|
2030
|
-
};
|
|
2031
|
-
const se_CustomAction = (input, context) => {
|
|
2032
|
-
return {
|
|
2033
|
-
...(input.ActionDefinition != null && { ActionDefinition: se_ActionDefinition(input.ActionDefinition, context) }),
|
|
2034
|
-
...(input.ActionName != null && { ActionName: input.ActionName }),
|
|
2035
|
-
};
|
|
2036
|
-
};
|
|
2037
|
-
const se_CustomActions = (input, context) => {
|
|
2038
|
-
return input
|
|
2039
|
-
.filter((e) => e != null)
|
|
2040
|
-
.map((entry) => {
|
|
2041
|
-
return se_CustomAction(entry, context);
|
|
2042
|
-
});
|
|
2043
|
-
};
|
|
2044
|
-
const se_DeleteFirewallPolicyRequest = (input, context) => {
|
|
2045
|
-
return {
|
|
2046
|
-
...(input.FirewallPolicyArn != null && { FirewallPolicyArn: input.FirewallPolicyArn }),
|
|
2047
|
-
...(input.FirewallPolicyName != null && { FirewallPolicyName: input.FirewallPolicyName }),
|
|
2048
|
-
};
|
|
2049
|
-
};
|
|
2050
|
-
const se_DeleteFirewallRequest = (input, context) => {
|
|
2051
|
-
return {
|
|
2052
|
-
...(input.FirewallArn != null && { FirewallArn: input.FirewallArn }),
|
|
2053
|
-
...(input.FirewallName != null && { FirewallName: input.FirewallName }),
|
|
2054
|
-
};
|
|
2055
|
-
};
|
|
2056
|
-
const se_DeleteResourcePolicyRequest = (input, context) => {
|
|
2057
|
-
return {
|
|
2058
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2059
|
-
};
|
|
2060
|
-
};
|
|
2061
|
-
const se_DeleteRuleGroupRequest = (input, context) => {
|
|
2062
|
-
return {
|
|
2063
|
-
...(input.RuleGroupArn != null && { RuleGroupArn: input.RuleGroupArn }),
|
|
2064
|
-
...(input.RuleGroupName != null && { RuleGroupName: input.RuleGroupName }),
|
|
2065
|
-
...(input.Type != null && { Type: input.Type }),
|
|
2066
|
-
};
|
|
2067
|
-
};
|
|
2068
|
-
const se_DeleteTLSInspectionConfigurationRequest = (input, context) => {
|
|
2069
|
-
return {
|
|
2070
|
-
...(input.TLSInspectionConfigurationArn != null && {
|
|
2071
|
-
TLSInspectionConfigurationArn: input.TLSInspectionConfigurationArn,
|
|
2072
|
-
}),
|
|
2073
|
-
...(input.TLSInspectionConfigurationName != null && {
|
|
2074
|
-
TLSInspectionConfigurationName: input.TLSInspectionConfigurationName,
|
|
2075
|
-
}),
|
|
2076
|
-
};
|
|
2077
|
-
};
|
|
2078
|
-
const se_DescribeFirewallPolicyRequest = (input, context) => {
|
|
2079
|
-
return {
|
|
2080
|
-
...(input.FirewallPolicyArn != null && { FirewallPolicyArn: input.FirewallPolicyArn }),
|
|
2081
|
-
...(input.FirewallPolicyName != null && { FirewallPolicyName: input.FirewallPolicyName }),
|
|
2082
|
-
};
|
|
2083
|
-
};
|
|
2084
|
-
const se_DescribeFirewallRequest = (input, context) => {
|
|
2085
|
-
return {
|
|
2086
|
-
...(input.FirewallArn != null && { FirewallArn: input.FirewallArn }),
|
|
2087
|
-
...(input.FirewallName != null && { FirewallName: input.FirewallName }),
|
|
2088
|
-
};
|
|
2089
|
-
};
|
|
2090
|
-
const se_DescribeLoggingConfigurationRequest = (input, context) => {
|
|
2091
|
-
return {
|
|
2092
|
-
...(input.FirewallArn != null && { FirewallArn: input.FirewallArn }),
|
|
2093
|
-
...(input.FirewallName != null && { FirewallName: input.FirewallName }),
|
|
2094
|
-
};
|
|
2095
|
-
};
|
|
2096
|
-
const se_DescribeResourcePolicyRequest = (input, context) => {
|
|
2097
|
-
return {
|
|
2098
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2099
|
-
};
|
|
2100
|
-
};
|
|
2101
|
-
const se_DescribeRuleGroupMetadataRequest = (input, context) => {
|
|
2102
|
-
return {
|
|
2103
|
-
...(input.RuleGroupArn != null && { RuleGroupArn: input.RuleGroupArn }),
|
|
2104
|
-
...(input.RuleGroupName != null && { RuleGroupName: input.RuleGroupName }),
|
|
2105
|
-
...(input.Type != null && { Type: input.Type }),
|
|
2106
|
-
};
|
|
2107
|
-
};
|
|
2108
|
-
const se_DescribeRuleGroupRequest = (input, context) => {
|
|
2109
|
-
return {
|
|
2110
|
-
...(input.RuleGroupArn != null && { RuleGroupArn: input.RuleGroupArn }),
|
|
2111
|
-
...(input.RuleGroupName != null && { RuleGroupName: input.RuleGroupName }),
|
|
2112
|
-
...(input.Type != null && { Type: input.Type }),
|
|
2113
|
-
};
|
|
2114
|
-
};
|
|
2115
|
-
const se_DescribeTLSInspectionConfigurationRequest = (input, context) => {
|
|
2116
|
-
return {
|
|
2117
|
-
...(input.TLSInspectionConfigurationArn != null && {
|
|
2118
|
-
TLSInspectionConfigurationArn: input.TLSInspectionConfigurationArn,
|
|
2119
|
-
}),
|
|
2120
|
-
...(input.TLSInspectionConfigurationName != null && {
|
|
2121
|
-
TLSInspectionConfigurationName: input.TLSInspectionConfigurationName,
|
|
2122
|
-
}),
|
|
2123
|
-
};
|
|
2124
|
-
};
|
|
2125
|
-
const se_Dimension = (input, context) => {
|
|
2126
|
-
return {
|
|
2127
|
-
...(input.Value != null && { Value: input.Value }),
|
|
2128
|
-
};
|
|
2129
|
-
};
|
|
2130
|
-
const se_Dimensions = (input, context) => {
|
|
2131
|
-
return input
|
|
2132
|
-
.filter((e) => e != null)
|
|
2133
|
-
.map((entry) => {
|
|
2134
|
-
return se_Dimension(entry, context);
|
|
2135
|
-
});
|
|
2136
|
-
};
|
|
2137
|
-
const se_DisassociateSubnetsRequest = (input, context) => {
|
|
2138
|
-
return {
|
|
2139
|
-
...(input.FirewallArn != null && { FirewallArn: input.FirewallArn }),
|
|
2140
|
-
...(input.FirewallName != null && { FirewallName: input.FirewallName }),
|
|
2141
|
-
...(input.SubnetIds != null && { SubnetIds: se_AzSubnets(input.SubnetIds, context) }),
|
|
2142
|
-
...(input.UpdateToken != null && { UpdateToken: input.UpdateToken }),
|
|
2143
|
-
};
|
|
2144
|
-
};
|
|
2145
|
-
const se_EncryptionConfiguration = (input, context) => {
|
|
2146
|
-
return {
|
|
2147
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
2148
|
-
...(input.Type != null && { Type: input.Type }),
|
|
2149
|
-
};
|
|
2150
|
-
};
|
|
2151
|
-
const se_FirewallPolicy = (input, context) => {
|
|
2152
|
-
return {
|
|
2153
|
-
...(input.StatefulDefaultActions != null && {
|
|
2154
|
-
StatefulDefaultActions: se_StatefulActions(input.StatefulDefaultActions, context),
|
|
2155
|
-
}),
|
|
2156
|
-
...(input.StatefulEngineOptions != null && {
|
|
2157
|
-
StatefulEngineOptions: se_StatefulEngineOptions(input.StatefulEngineOptions, context),
|
|
2158
|
-
}),
|
|
2159
|
-
...(input.StatefulRuleGroupReferences != null && {
|
|
2160
|
-
StatefulRuleGroupReferences: se_StatefulRuleGroupReferences(input.StatefulRuleGroupReferences, context),
|
|
2161
|
-
}),
|
|
2162
|
-
...(input.StatelessCustomActions != null && {
|
|
2163
|
-
StatelessCustomActions: se_CustomActions(input.StatelessCustomActions, context),
|
|
2164
|
-
}),
|
|
2165
|
-
...(input.StatelessDefaultActions != null && {
|
|
2166
|
-
StatelessDefaultActions: se_StatelessActions(input.StatelessDefaultActions, context),
|
|
2167
|
-
}),
|
|
2168
|
-
...(input.StatelessFragmentDefaultActions != null && {
|
|
2169
|
-
StatelessFragmentDefaultActions: se_StatelessActions(input.StatelessFragmentDefaultActions, context),
|
|
2170
|
-
}),
|
|
2171
|
-
...(input.StatelessRuleGroupReferences != null && {
|
|
2172
|
-
StatelessRuleGroupReferences: se_StatelessRuleGroupReferences(input.StatelessRuleGroupReferences, context),
|
|
2173
|
-
}),
|
|
2174
|
-
...(input.TLSInspectionConfigurationArn != null && {
|
|
2175
|
-
TLSInspectionConfigurationArn: input.TLSInspectionConfigurationArn,
|
|
2176
|
-
}),
|
|
2177
|
-
};
|
|
2178
|
-
};
|
|
2179
|
-
const se_Flags = (input, context) => {
|
|
2180
|
-
return input
|
|
2181
|
-
.filter((e) => e != null)
|
|
2182
|
-
.map((entry) => {
|
|
2183
|
-
return entry;
|
|
2184
|
-
});
|
|
2185
|
-
};
|
|
2186
|
-
const se_Header = (input, context) => {
|
|
2187
|
-
return {
|
|
2188
|
-
...(input.Destination != null && { Destination: input.Destination }),
|
|
2189
|
-
...(input.DestinationPort != null && { DestinationPort: input.DestinationPort }),
|
|
2190
|
-
...(input.Direction != null && { Direction: input.Direction }),
|
|
2191
|
-
...(input.Protocol != null && { Protocol: input.Protocol }),
|
|
2192
|
-
...(input.Source != null && { Source: input.Source }),
|
|
2193
|
-
...(input.SourcePort != null && { SourcePort: input.SourcePort }),
|
|
2194
|
-
};
|
|
2195
|
-
};
|
|
2196
|
-
const se_IPSet = (input, context) => {
|
|
2197
|
-
return {
|
|
2198
|
-
...(input.Definition != null && { Definition: se_VariableDefinitionList(input.Definition, context) }),
|
|
2199
|
-
};
|
|
2200
|
-
};
|
|
2201
|
-
const se_IPSetReference = (input, context) => {
|
|
2202
|
-
return {
|
|
2203
|
-
...(input.ReferenceArn != null && { ReferenceArn: input.ReferenceArn }),
|
|
2204
|
-
};
|
|
2205
|
-
};
|
|
2206
|
-
const se_IPSetReferenceMap = (input, context) => {
|
|
2207
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2208
|
-
if (value === null) {
|
|
2209
|
-
return acc;
|
|
2210
|
-
}
|
|
2211
|
-
acc[key] = se_IPSetReference(value, context);
|
|
2212
|
-
return acc;
|
|
2213
|
-
}, {});
|
|
2214
|
-
};
|
|
2215
|
-
const se_IPSets = (input, context) => {
|
|
2216
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2217
|
-
if (value === null) {
|
|
2218
|
-
return acc;
|
|
2219
|
-
}
|
|
2220
|
-
acc[key] = se_IPSet(value, context);
|
|
2221
|
-
return acc;
|
|
2222
|
-
}, {});
|
|
2223
|
-
};
|
|
2224
|
-
const se_ListFirewallPoliciesRequest = (input, context) => {
|
|
2225
|
-
return {
|
|
2226
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2227
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2228
|
-
};
|
|
2229
|
-
};
|
|
2230
|
-
const se_ListFirewallsRequest = (input, context) => {
|
|
2231
|
-
return {
|
|
2232
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2233
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2234
|
-
...(input.VpcIds != null && { VpcIds: se_VpcIds(input.VpcIds, context) }),
|
|
2235
|
-
};
|
|
2236
|
-
};
|
|
2237
|
-
const se_ListRuleGroupsRequest = (input, context) => {
|
|
2238
|
-
return {
|
|
2239
|
-
...(input.ManagedType != null && { ManagedType: input.ManagedType }),
|
|
2240
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2241
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2242
|
-
...(input.Scope != null && { Scope: input.Scope }),
|
|
2243
|
-
...(input.Type != null && { Type: input.Type }),
|
|
2244
|
-
};
|
|
2245
|
-
};
|
|
2246
|
-
const se_ListTagsForResourceRequest = (input, context) => {
|
|
2247
|
-
return {
|
|
2248
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2249
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2250
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2251
|
-
};
|
|
2252
|
-
};
|
|
2253
|
-
const se_ListTLSInspectionConfigurationsRequest = (input, context) => {
|
|
2254
|
-
return {
|
|
2255
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2256
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2257
|
-
};
|
|
2258
|
-
};
|
|
2259
|
-
const se_LogDestinationConfig = (input, context) => {
|
|
2260
|
-
return {
|
|
2261
|
-
...(input.LogDestination != null && { LogDestination: se_LogDestinationMap(input.LogDestination, context) }),
|
|
2262
|
-
...(input.LogDestinationType != null && { LogDestinationType: input.LogDestinationType }),
|
|
2263
|
-
...(input.LogType != null && { LogType: input.LogType }),
|
|
2264
|
-
};
|
|
2265
|
-
};
|
|
2266
|
-
const se_LogDestinationConfigs = (input, context) => {
|
|
2267
|
-
return input
|
|
2268
|
-
.filter((e) => e != null)
|
|
2269
|
-
.map((entry) => {
|
|
2270
|
-
return se_LogDestinationConfig(entry, context);
|
|
2271
|
-
});
|
|
2272
|
-
};
|
|
2273
|
-
const se_LogDestinationMap = (input, context) => {
|
|
2274
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2275
|
-
if (value === null) {
|
|
2276
|
-
return acc;
|
|
2277
|
-
}
|
|
2278
|
-
acc[key] = value;
|
|
2279
|
-
return acc;
|
|
2280
|
-
}, {});
|
|
2281
|
-
};
|
|
2282
|
-
const se_LoggingConfiguration = (input, context) => {
|
|
2283
|
-
return {
|
|
2284
|
-
...(input.LogDestinationConfigs != null && {
|
|
2285
|
-
LogDestinationConfigs: se_LogDestinationConfigs(input.LogDestinationConfigs, context),
|
|
2286
|
-
}),
|
|
2287
|
-
};
|
|
2288
|
-
};
|
|
2289
|
-
const se_MatchAttributes = (input, context) => {
|
|
2290
|
-
return {
|
|
2291
|
-
...(input.DestinationPorts != null && { DestinationPorts: se_PortRanges(input.DestinationPorts, context) }),
|
|
2292
|
-
...(input.Destinations != null && { Destinations: se_Addresses(input.Destinations, context) }),
|
|
2293
|
-
...(input.Protocols != null && { Protocols: se_ProtocolNumbers(input.Protocols, context) }),
|
|
2294
|
-
...(input.SourcePorts != null && { SourcePorts: se_PortRanges(input.SourcePorts, context) }),
|
|
2295
|
-
...(input.Sources != null && { Sources: se_Addresses(input.Sources, context) }),
|
|
2296
|
-
...(input.TCPFlags != null && { TCPFlags: se_TCPFlags(input.TCPFlags, context) }),
|
|
2297
|
-
};
|
|
2298
|
-
};
|
|
2299
|
-
const se_PortRange = (input, context) => {
|
|
2300
|
-
return {
|
|
2301
|
-
...(input.FromPort != null && { FromPort: input.FromPort }),
|
|
2302
|
-
...(input.ToPort != null && { ToPort: input.ToPort }),
|
|
2303
|
-
};
|
|
2304
|
-
};
|
|
2305
|
-
const se_PortRanges = (input, context) => {
|
|
2306
|
-
return input
|
|
2307
|
-
.filter((e) => e != null)
|
|
2308
|
-
.map((entry) => {
|
|
2309
|
-
return se_PortRange(entry, context);
|
|
2310
|
-
});
|
|
2311
|
-
};
|
|
2312
|
-
const se_PortSet = (input, context) => {
|
|
2313
|
-
return {
|
|
2314
|
-
...(input.Definition != null && { Definition: se_VariableDefinitionList(input.Definition, context) }),
|
|
2315
|
-
};
|
|
2316
|
-
};
|
|
2317
|
-
const se_PortSets = (input, context) => {
|
|
2318
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2319
|
-
if (value === null) {
|
|
2320
|
-
return acc;
|
|
2321
|
-
}
|
|
2322
|
-
acc[key] = se_PortSet(value, context);
|
|
2323
|
-
return acc;
|
|
2324
|
-
}, {});
|
|
2325
|
-
};
|
|
2326
|
-
const se_ProtocolNumbers = (input, context) => {
|
|
2327
|
-
return input
|
|
2328
|
-
.filter((e) => e != null)
|
|
2329
|
-
.map((entry) => {
|
|
2330
|
-
return entry;
|
|
2331
|
-
});
|
|
2332
|
-
};
|
|
2333
|
-
const se_PublishMetricAction = (input, context) => {
|
|
2334
|
-
return {
|
|
2335
|
-
...(input.Dimensions != null && { Dimensions: se_Dimensions(input.Dimensions, context) }),
|
|
2336
|
-
};
|
|
2337
|
-
};
|
|
2338
|
-
const se_PutResourcePolicyRequest = (input, context) => {
|
|
2339
|
-
return {
|
|
2340
|
-
...(input.Policy != null && { Policy: input.Policy }),
|
|
2341
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2342
|
-
};
|
|
2343
|
-
};
|
|
2344
|
-
const se_ReferenceSets = (input, context) => {
|
|
2345
|
-
return {
|
|
2346
|
-
...(input.IPSetReferences != null && { IPSetReferences: se_IPSetReferenceMap(input.IPSetReferences, context) }),
|
|
2347
|
-
};
|
|
2348
|
-
};
|
|
2349
|
-
const se_RuleDefinition = (input, context) => {
|
|
2350
|
-
return {
|
|
2351
|
-
...(input.Actions != null && { Actions: se_StatelessActions(input.Actions, context) }),
|
|
2352
|
-
...(input.MatchAttributes != null && { MatchAttributes: se_MatchAttributes(input.MatchAttributes, context) }),
|
|
2353
|
-
};
|
|
2354
|
-
};
|
|
2355
|
-
const se_RuleGroup = (input, context) => {
|
|
2356
|
-
return {
|
|
2357
|
-
...(input.ReferenceSets != null && { ReferenceSets: se_ReferenceSets(input.ReferenceSets, context) }),
|
|
2358
|
-
...(input.RuleVariables != null && { RuleVariables: se_RuleVariables(input.RuleVariables, context) }),
|
|
2359
|
-
...(input.RulesSource != null && { RulesSource: se_RulesSource(input.RulesSource, context) }),
|
|
2360
|
-
...(input.StatefulRuleOptions != null && {
|
|
2361
|
-
StatefulRuleOptions: se_StatefulRuleOptions(input.StatefulRuleOptions, context),
|
|
2362
|
-
}),
|
|
2363
|
-
};
|
|
2364
|
-
};
|
|
2365
|
-
const se_RuleOption = (input, context) => {
|
|
2366
|
-
return {
|
|
2367
|
-
...(input.Keyword != null && { Keyword: input.Keyword }),
|
|
2368
|
-
...(input.Settings != null && { Settings: se_Settings(input.Settings, context) }),
|
|
2369
|
-
};
|
|
2370
|
-
};
|
|
2371
|
-
const se_RuleOptions = (input, context) => {
|
|
2372
|
-
return input
|
|
2373
|
-
.filter((e) => e != null)
|
|
2374
|
-
.map((entry) => {
|
|
2375
|
-
return se_RuleOption(entry, context);
|
|
2376
|
-
});
|
|
2377
|
-
};
|
|
2378
|
-
const se_RulesSource = (input, context) => {
|
|
2379
|
-
return {
|
|
2380
|
-
...(input.RulesSourceList != null && { RulesSourceList: se_RulesSourceList(input.RulesSourceList, context) }),
|
|
2381
|
-
...(input.RulesString != null && { RulesString: input.RulesString }),
|
|
2382
|
-
...(input.StatefulRules != null && { StatefulRules: se_StatefulRules(input.StatefulRules, context) }),
|
|
2383
|
-
...(input.StatelessRulesAndCustomActions != null && {
|
|
2384
|
-
StatelessRulesAndCustomActions: se_StatelessRulesAndCustomActions(input.StatelessRulesAndCustomActions, context),
|
|
2385
|
-
}),
|
|
2386
|
-
};
|
|
2387
|
-
};
|
|
2388
|
-
const se_RulesSourceList = (input, context) => {
|
|
2389
|
-
return {
|
|
2390
|
-
...(input.GeneratedRulesType != null && { GeneratedRulesType: input.GeneratedRulesType }),
|
|
2391
|
-
...(input.TargetTypes != null && { TargetTypes: se_TargetTypes(input.TargetTypes, context) }),
|
|
2392
|
-
...(input.Targets != null && { Targets: se_RuleTargets(input.Targets, context) }),
|
|
2393
|
-
};
|
|
2394
|
-
};
|
|
2395
|
-
const se_RuleTargets = (input, context) => {
|
|
2396
|
-
return input
|
|
2397
|
-
.filter((e) => e != null)
|
|
2398
|
-
.map((entry) => {
|
|
2399
|
-
return entry;
|
|
2400
|
-
});
|
|
2401
|
-
};
|
|
2402
|
-
const se_RuleVariables = (input, context) => {
|
|
2403
|
-
return {
|
|
2404
|
-
...(input.IPSets != null && { IPSets: se_IPSets(input.IPSets, context) }),
|
|
2405
|
-
...(input.PortSets != null && { PortSets: se_PortSets(input.PortSets, context) }),
|
|
2406
|
-
};
|
|
2407
|
-
};
|
|
2408
|
-
const se_ServerCertificate = (input, context) => {
|
|
2409
|
-
return {
|
|
2410
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2411
|
-
};
|
|
2412
|
-
};
|
|
2413
|
-
const se_ServerCertificateConfiguration = (input, context) => {
|
|
2414
|
-
return {
|
|
2415
|
-
...(input.Scopes != null && { Scopes: se_ServerCertificateScopes(input.Scopes, context) }),
|
|
2416
|
-
...(input.ServerCertificates != null && {
|
|
2417
|
-
ServerCertificates: se_ServerCertificates(input.ServerCertificates, context),
|
|
2418
|
-
}),
|
|
2419
|
-
};
|
|
2420
|
-
};
|
|
2421
|
-
const se_ServerCertificateConfigurations = (input, context) => {
|
|
2422
|
-
return input
|
|
2423
|
-
.filter((e) => e != null)
|
|
2424
|
-
.map((entry) => {
|
|
2425
|
-
return se_ServerCertificateConfiguration(entry, context);
|
|
2426
|
-
});
|
|
2427
|
-
};
|
|
2428
|
-
const se_ServerCertificates = (input, context) => {
|
|
2429
|
-
return input
|
|
2430
|
-
.filter((e) => e != null)
|
|
2431
|
-
.map((entry) => {
|
|
2432
|
-
return se_ServerCertificate(entry, context);
|
|
2433
|
-
});
|
|
2434
|
-
};
|
|
2435
|
-
const se_ServerCertificateScope = (input, context) => {
|
|
2436
|
-
return {
|
|
2437
|
-
...(input.DestinationPorts != null && { DestinationPorts: se_PortRanges(input.DestinationPorts, context) }),
|
|
2438
|
-
...(input.Destinations != null && { Destinations: se_Addresses(input.Destinations, context) }),
|
|
2439
|
-
...(input.Protocols != null && { Protocols: se_ProtocolNumbers(input.Protocols, context) }),
|
|
2440
|
-
...(input.SourcePorts != null && { SourcePorts: se_PortRanges(input.SourcePorts, context) }),
|
|
2441
|
-
...(input.Sources != null && { Sources: se_Addresses(input.Sources, context) }),
|
|
2442
|
-
};
|
|
2443
|
-
};
|
|
2444
|
-
const se_ServerCertificateScopes = (input, context) => {
|
|
2445
|
-
return input
|
|
2446
|
-
.filter((e) => e != null)
|
|
2447
|
-
.map((entry) => {
|
|
2448
|
-
return se_ServerCertificateScope(entry, context);
|
|
2449
|
-
});
|
|
2450
|
-
};
|
|
2451
|
-
const se_Settings = (input, context) => {
|
|
2452
|
-
return input
|
|
2453
|
-
.filter((e) => e != null)
|
|
2454
|
-
.map((entry) => {
|
|
2455
|
-
return entry;
|
|
2456
|
-
});
|
|
2457
|
-
};
|
|
2458
|
-
const se_SourceMetadata = (input, context) => {
|
|
2459
|
-
return {
|
|
2460
|
-
...(input.SourceArn != null && { SourceArn: input.SourceArn }),
|
|
2461
|
-
...(input.SourceUpdateToken != null && { SourceUpdateToken: input.SourceUpdateToken }),
|
|
2462
|
-
};
|
|
2463
|
-
};
|
|
2464
|
-
const se_StatefulActions = (input, context) => {
|
|
2465
|
-
return input
|
|
2466
|
-
.filter((e) => e != null)
|
|
2467
|
-
.map((entry) => {
|
|
2468
|
-
return entry;
|
|
2469
|
-
});
|
|
2470
|
-
};
|
|
2471
|
-
const se_StatefulEngineOptions = (input, context) => {
|
|
2472
|
-
return {
|
|
2473
|
-
...(input.RuleOrder != null && { RuleOrder: input.RuleOrder }),
|
|
2474
|
-
...(input.StreamExceptionPolicy != null && { StreamExceptionPolicy: input.StreamExceptionPolicy }),
|
|
2475
|
-
};
|
|
2476
|
-
};
|
|
2477
|
-
const se_StatefulRule = (input, context) => {
|
|
2478
|
-
return {
|
|
2479
|
-
...(input.Action != null && { Action: input.Action }),
|
|
2480
|
-
...(input.Header != null && { Header: se_Header(input.Header, context) }),
|
|
2481
|
-
...(input.RuleOptions != null && { RuleOptions: se_RuleOptions(input.RuleOptions, context) }),
|
|
2482
|
-
};
|
|
2483
|
-
};
|
|
2484
|
-
const se_StatefulRuleGroupOverride = (input, context) => {
|
|
2485
|
-
return {
|
|
2486
|
-
...(input.Action != null && { Action: input.Action }),
|
|
2487
|
-
};
|
|
2488
|
-
};
|
|
2489
|
-
const se_StatefulRuleGroupReference = (input, context) => {
|
|
2490
|
-
return {
|
|
2491
|
-
...(input.Override != null && { Override: se_StatefulRuleGroupOverride(input.Override, context) }),
|
|
2492
|
-
...(input.Priority != null && { Priority: input.Priority }),
|
|
2493
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2494
|
-
};
|
|
2495
|
-
};
|
|
2496
|
-
const se_StatefulRuleGroupReferences = (input, context) => {
|
|
2497
|
-
return input
|
|
2498
|
-
.filter((e) => e != null)
|
|
2499
|
-
.map((entry) => {
|
|
2500
|
-
return se_StatefulRuleGroupReference(entry, context);
|
|
2501
|
-
});
|
|
2502
|
-
};
|
|
2503
|
-
const se_StatefulRuleOptions = (input, context) => {
|
|
2504
|
-
return {
|
|
2505
|
-
...(input.RuleOrder != null && { RuleOrder: input.RuleOrder }),
|
|
2506
|
-
};
|
|
2507
|
-
};
|
|
2508
|
-
const se_StatefulRules = (input, context) => {
|
|
2509
|
-
return input
|
|
2510
|
-
.filter((e) => e != null)
|
|
2511
|
-
.map((entry) => {
|
|
2512
|
-
return se_StatefulRule(entry, context);
|
|
2513
|
-
});
|
|
2514
|
-
};
|
|
2515
|
-
const se_StatelessActions = (input, context) => {
|
|
2516
|
-
return input
|
|
2517
|
-
.filter((e) => e != null)
|
|
2518
|
-
.map((entry) => {
|
|
2519
|
-
return entry;
|
|
2520
|
-
});
|
|
2521
|
-
};
|
|
2522
|
-
const se_StatelessRule = (input, context) => {
|
|
2523
|
-
return {
|
|
2524
|
-
...(input.Priority != null && { Priority: input.Priority }),
|
|
2525
|
-
...(input.RuleDefinition != null && { RuleDefinition: se_RuleDefinition(input.RuleDefinition, context) }),
|
|
2526
|
-
};
|
|
2527
|
-
};
|
|
2528
|
-
const se_StatelessRuleGroupReference = (input, context) => {
|
|
2529
|
-
return {
|
|
2530
|
-
...(input.Priority != null && { Priority: input.Priority }),
|
|
2531
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2532
|
-
};
|
|
2533
|
-
};
|
|
2534
|
-
const se_StatelessRuleGroupReferences = (input, context) => {
|
|
2535
|
-
return input
|
|
2536
|
-
.filter((e) => e != null)
|
|
2537
|
-
.map((entry) => {
|
|
2538
|
-
return se_StatelessRuleGroupReference(entry, context);
|
|
2539
|
-
});
|
|
2540
|
-
};
|
|
2541
|
-
const se_StatelessRules = (input, context) => {
|
|
2542
|
-
return input
|
|
2543
|
-
.filter((e) => e != null)
|
|
2544
|
-
.map((entry) => {
|
|
2545
|
-
return se_StatelessRule(entry, context);
|
|
2546
|
-
});
|
|
2547
|
-
};
|
|
2548
|
-
const se_StatelessRulesAndCustomActions = (input, context) => {
|
|
2549
|
-
return {
|
|
2550
|
-
...(input.CustomActions != null && { CustomActions: se_CustomActions(input.CustomActions, context) }),
|
|
2551
|
-
...(input.StatelessRules != null && { StatelessRules: se_StatelessRules(input.StatelessRules, context) }),
|
|
2552
|
-
};
|
|
2553
|
-
};
|
|
2554
|
-
const se_SubnetMapping = (input, context) => {
|
|
2555
|
-
return {
|
|
2556
|
-
...(input.IPAddressType != null && { IPAddressType: input.IPAddressType }),
|
|
2557
|
-
...(input.SubnetId != null && { SubnetId: input.SubnetId }),
|
|
2558
|
-
};
|
|
2559
|
-
};
|
|
2560
|
-
const se_SubnetMappings = (input, context) => {
|
|
2561
|
-
return input
|
|
2562
|
-
.filter((e) => e != null)
|
|
2563
|
-
.map((entry) => {
|
|
2564
|
-
return se_SubnetMapping(entry, context);
|
|
2565
|
-
});
|
|
2566
|
-
};
|
|
2567
|
-
const se_Tag = (input, context) => {
|
|
2568
|
-
return {
|
|
2569
|
-
...(input.Key != null && { Key: input.Key }),
|
|
2570
|
-
...(input.Value != null && { Value: input.Value }),
|
|
2571
|
-
};
|
|
2572
|
-
};
|
|
2573
|
-
const se_TagKeyList = (input, context) => {
|
|
2574
|
-
return input
|
|
2575
|
-
.filter((e) => e != null)
|
|
2576
|
-
.map((entry) => {
|
|
2577
|
-
return entry;
|
|
2578
|
-
});
|
|
2579
|
-
};
|
|
2580
|
-
const se_TagList = (input, context) => {
|
|
2581
|
-
return input
|
|
2582
|
-
.filter((e) => e != null)
|
|
2583
|
-
.map((entry) => {
|
|
2584
|
-
return se_Tag(entry, context);
|
|
2585
|
-
});
|
|
2586
|
-
};
|
|
2587
|
-
const se_TagResourceRequest = (input, context) => {
|
|
2588
|
-
return {
|
|
2589
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2590
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
2591
|
-
};
|
|
2592
|
-
};
|
|
2593
|
-
const se_TargetTypes = (input, context) => {
|
|
2594
|
-
return input
|
|
2595
|
-
.filter((e) => e != null)
|
|
2596
|
-
.map((entry) => {
|
|
2597
|
-
return entry;
|
|
2598
|
-
});
|
|
2599
|
-
};
|
|
2600
|
-
const se_TCPFlagField = (input, context) => {
|
|
2601
|
-
return {
|
|
2602
|
-
...(input.Flags != null && { Flags: se_Flags(input.Flags, context) }),
|
|
2603
|
-
...(input.Masks != null && { Masks: se_Flags(input.Masks, context) }),
|
|
2604
|
-
};
|
|
2605
|
-
};
|
|
2606
|
-
const se_TCPFlags = (input, context) => {
|
|
2607
|
-
return input
|
|
2608
|
-
.filter((e) => e != null)
|
|
2609
|
-
.map((entry) => {
|
|
2610
|
-
return se_TCPFlagField(entry, context);
|
|
2611
|
-
});
|
|
2612
|
-
};
|
|
2613
|
-
const se_TLSInspectionConfiguration = (input, context) => {
|
|
2614
|
-
return {
|
|
2615
|
-
...(input.ServerCertificateConfigurations != null && {
|
|
2616
|
-
ServerCertificateConfigurations: se_ServerCertificateConfigurations(input.ServerCertificateConfigurations, context),
|
|
2617
|
-
}),
|
|
2618
|
-
};
|
|
2619
|
-
};
|
|
2620
|
-
const se_UntagResourceRequest = (input, context) => {
|
|
2621
|
-
return {
|
|
2622
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2623
|
-
...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
|
|
2624
|
-
};
|
|
2625
|
-
};
|
|
2626
|
-
const se_UpdateFirewallDeleteProtectionRequest = (input, context) => {
|
|
2627
|
-
return {
|
|
2628
|
-
...(input.DeleteProtection != null && { DeleteProtection: input.DeleteProtection }),
|
|
2629
|
-
...(input.FirewallArn != null && { FirewallArn: input.FirewallArn }),
|
|
2630
|
-
...(input.FirewallName != null && { FirewallName: input.FirewallName }),
|
|
2631
|
-
...(input.UpdateToken != null && { UpdateToken: input.UpdateToken }),
|
|
2632
|
-
};
|
|
2633
|
-
};
|
|
2634
|
-
const se_UpdateFirewallDescriptionRequest = (input, context) => {
|
|
2635
|
-
return {
|
|
2636
|
-
...(input.Description != null && { Description: input.Description }),
|
|
2637
|
-
...(input.FirewallArn != null && { FirewallArn: input.FirewallArn }),
|
|
2638
|
-
...(input.FirewallName != null && { FirewallName: input.FirewallName }),
|
|
2639
|
-
...(input.UpdateToken != null && { UpdateToken: input.UpdateToken }),
|
|
2640
|
-
};
|
|
2641
|
-
};
|
|
2642
|
-
const se_UpdateFirewallEncryptionConfigurationRequest = (input, context) => {
|
|
2643
|
-
return {
|
|
2644
|
-
...(input.EncryptionConfiguration != null && {
|
|
2645
|
-
EncryptionConfiguration: se_EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
2646
|
-
}),
|
|
2647
|
-
...(input.FirewallArn != null && { FirewallArn: input.FirewallArn }),
|
|
2648
|
-
...(input.FirewallName != null && { FirewallName: input.FirewallName }),
|
|
2649
|
-
...(input.UpdateToken != null && { UpdateToken: input.UpdateToken }),
|
|
2650
|
-
};
|
|
2651
|
-
};
|
|
2652
|
-
const se_UpdateFirewallPolicyChangeProtectionRequest = (input, context) => {
|
|
2653
|
-
return {
|
|
2654
|
-
...(input.FirewallArn != null && { FirewallArn: input.FirewallArn }),
|
|
2655
|
-
...(input.FirewallName != null && { FirewallName: input.FirewallName }),
|
|
2656
|
-
...(input.FirewallPolicyChangeProtection != null && {
|
|
2657
|
-
FirewallPolicyChangeProtection: input.FirewallPolicyChangeProtection,
|
|
2658
|
-
}),
|
|
2659
|
-
...(input.UpdateToken != null && { UpdateToken: input.UpdateToken }),
|
|
2660
|
-
};
|
|
2661
|
-
};
|
|
2662
|
-
const se_UpdateFirewallPolicyRequest = (input, context) => {
|
|
2663
|
-
return {
|
|
2664
|
-
...(input.Description != null && { Description: input.Description }),
|
|
2665
|
-
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
2666
|
-
...(input.EncryptionConfiguration != null && {
|
|
2667
|
-
EncryptionConfiguration: se_EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
2668
|
-
}),
|
|
2669
|
-
...(input.FirewallPolicy != null && { FirewallPolicy: se_FirewallPolicy(input.FirewallPolicy, context) }),
|
|
2670
|
-
...(input.FirewallPolicyArn != null && { FirewallPolicyArn: input.FirewallPolicyArn }),
|
|
2671
|
-
...(input.FirewallPolicyName != null && { FirewallPolicyName: input.FirewallPolicyName }),
|
|
2672
|
-
...(input.UpdateToken != null && { UpdateToken: input.UpdateToken }),
|
|
2673
|
-
};
|
|
2674
|
-
};
|
|
2675
|
-
const se_UpdateLoggingConfigurationRequest = (input, context) => {
|
|
2676
|
-
return {
|
|
2677
|
-
...(input.FirewallArn != null && { FirewallArn: input.FirewallArn }),
|
|
2678
|
-
...(input.FirewallName != null && { FirewallName: input.FirewallName }),
|
|
2679
|
-
...(input.LoggingConfiguration != null && {
|
|
2680
|
-
LoggingConfiguration: se_LoggingConfiguration(input.LoggingConfiguration, context),
|
|
2681
|
-
}),
|
|
2682
|
-
};
|
|
2683
|
-
};
|
|
2684
|
-
const se_UpdateRuleGroupRequest = (input, context) => {
|
|
2685
|
-
return {
|
|
2686
|
-
...(input.Description != null && { Description: input.Description }),
|
|
2687
|
-
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
2688
|
-
...(input.EncryptionConfiguration != null && {
|
|
2689
|
-
EncryptionConfiguration: se_EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
2690
|
-
}),
|
|
2691
|
-
...(input.RuleGroup != null && { RuleGroup: se_RuleGroup(input.RuleGroup, context) }),
|
|
2692
|
-
...(input.RuleGroupArn != null && { RuleGroupArn: input.RuleGroupArn }),
|
|
2693
|
-
...(input.RuleGroupName != null && { RuleGroupName: input.RuleGroupName }),
|
|
2694
|
-
...(input.Rules != null && { Rules: input.Rules }),
|
|
2695
|
-
...(input.SourceMetadata != null && { SourceMetadata: se_SourceMetadata(input.SourceMetadata, context) }),
|
|
2696
|
-
...(input.Type != null && { Type: input.Type }),
|
|
2697
|
-
...(input.UpdateToken != null && { UpdateToken: input.UpdateToken }),
|
|
2698
|
-
};
|
|
2699
|
-
};
|
|
2700
|
-
const se_UpdateSubnetChangeProtectionRequest = (input, context) => {
|
|
2701
|
-
return {
|
|
2702
|
-
...(input.FirewallArn != null && { FirewallArn: input.FirewallArn }),
|
|
2703
|
-
...(input.FirewallName != null && { FirewallName: input.FirewallName }),
|
|
2704
|
-
...(input.SubnetChangeProtection != null && { SubnetChangeProtection: input.SubnetChangeProtection }),
|
|
2705
|
-
...(input.UpdateToken != null && { UpdateToken: input.UpdateToken }),
|
|
2706
|
-
};
|
|
2707
|
-
};
|
|
2708
|
-
const se_UpdateTLSInspectionConfigurationRequest = (input, context) => {
|
|
2709
|
-
return {
|
|
2710
|
-
...(input.Description != null && { Description: input.Description }),
|
|
2711
|
-
...(input.EncryptionConfiguration != null && {
|
|
2712
|
-
EncryptionConfiguration: se_EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
2713
|
-
}),
|
|
2714
|
-
...(input.TLSInspectionConfiguration != null && {
|
|
2715
|
-
TLSInspectionConfiguration: se_TLSInspectionConfiguration(input.TLSInspectionConfiguration, context),
|
|
2716
|
-
}),
|
|
2717
|
-
...(input.TLSInspectionConfigurationArn != null && {
|
|
2718
|
-
TLSInspectionConfigurationArn: input.TLSInspectionConfigurationArn,
|
|
2719
|
-
}),
|
|
2720
|
-
...(input.TLSInspectionConfigurationName != null && {
|
|
2721
|
-
TLSInspectionConfigurationName: input.TLSInspectionConfigurationName,
|
|
2722
|
-
}),
|
|
2723
|
-
...(input.UpdateToken != null && { UpdateToken: input.UpdateToken }),
|
|
2724
|
-
};
|
|
2725
|
-
};
|
|
2726
|
-
const se_VariableDefinitionList = (input, context) => {
|
|
2727
|
-
return input
|
|
2728
|
-
.filter((e) => e != null)
|
|
2729
|
-
.map((entry) => {
|
|
2730
|
-
return entry;
|
|
2731
|
-
});
|
|
2732
|
-
};
|
|
2733
|
-
const se_VpcIds = (input, context) => {
|
|
2734
|
-
return input
|
|
2735
|
-
.filter((e) => e != null)
|
|
2736
|
-
.map((entry) => {
|
|
2737
|
-
return entry;
|
|
2738
|
-
});
|
|
2739
|
-
};
|
|
2740
|
-
const de_ActionDefinition = (output, context) => {
|
|
2741
|
-
return {
|
|
2742
|
-
PublishMetricAction: output.PublishMetricAction != null ? de_PublishMetricAction(output.PublishMetricAction, context) : undefined,
|
|
2743
|
-
};
|
|
2744
|
-
};
|
|
2745
|
-
const de_Address = (output, context) => {
|
|
2746
|
-
return {
|
|
2747
|
-
AddressDefinition: __expectString(output.AddressDefinition),
|
|
2748
|
-
};
|
|
2749
|
-
};
|
|
2750
|
-
const de_Addresses = (output, context) => {
|
|
2751
|
-
const retVal = (output || [])
|
|
2752
|
-
.filter((e) => e != null)
|
|
2753
|
-
.map((entry) => {
|
|
2754
|
-
if (entry === null) {
|
|
2755
|
-
return null;
|
|
2756
|
-
}
|
|
2757
|
-
return de_Address(entry, context);
|
|
2758
|
-
});
|
|
2759
|
-
return retVal;
|
|
2760
|
-
};
|
|
2761
|
-
const de_AssociateFirewallPolicyResponse = (output, context) => {
|
|
2762
|
-
return {
|
|
2763
|
-
FirewallArn: __expectString(output.FirewallArn),
|
|
2764
|
-
FirewallName: __expectString(output.FirewallName),
|
|
2765
|
-
FirewallPolicyArn: __expectString(output.FirewallPolicyArn),
|
|
2766
|
-
UpdateToken: __expectString(output.UpdateToken),
|
|
2767
|
-
};
|
|
2768
|
-
};
|
|
2769
|
-
const de_AssociateSubnetsResponse = (output, context) => {
|
|
2770
|
-
return {
|
|
2771
|
-
FirewallArn: __expectString(output.FirewallArn),
|
|
2772
|
-
FirewallName: __expectString(output.FirewallName),
|
|
2773
|
-
SubnetMappings: output.SubnetMappings != null ? de_SubnetMappings(output.SubnetMappings, context) : undefined,
|
|
2774
|
-
UpdateToken: __expectString(output.UpdateToken),
|
|
2775
|
-
};
|
|
2776
|
-
};
|
|
2777
|
-
const de_Attachment = (output, context) => {
|
|
2778
|
-
return {
|
|
2779
|
-
EndpointId: __expectString(output.EndpointId),
|
|
2780
|
-
Status: __expectString(output.Status),
|
|
2781
|
-
StatusMessage: __expectString(output.StatusMessage),
|
|
2782
|
-
SubnetId: __expectString(output.SubnetId),
|
|
2783
|
-
};
|
|
2784
|
-
};
|
|
2785
|
-
const de_CapacityUsageSummary = (output, context) => {
|
|
2786
|
-
return {
|
|
2787
|
-
CIDRs: output.CIDRs != null ? de_CIDRSummary(output.CIDRs, context) : undefined,
|
|
2788
|
-
};
|
|
2789
|
-
};
|
|
2790
|
-
const de_Certificates = (output, context) => {
|
|
2791
|
-
const retVal = (output || [])
|
|
2792
|
-
.filter((e) => e != null)
|
|
2793
|
-
.map((entry) => {
|
|
2794
|
-
if (entry === null) {
|
|
2795
|
-
return null;
|
|
2796
|
-
}
|
|
2797
|
-
return de_TlsCertificateData(entry, context);
|
|
2798
|
-
});
|
|
2799
|
-
return retVal;
|
|
2800
|
-
};
|
|
2801
|
-
const de_CIDRSummary = (output, context) => {
|
|
2802
|
-
return {
|
|
2803
|
-
AvailableCIDRCount: __expectInt32(output.AvailableCIDRCount),
|
|
2804
|
-
IPSetReferences: output.IPSetReferences != null ? de_IPSetMetadataMap(output.IPSetReferences, context) : undefined,
|
|
2805
|
-
UtilizedCIDRCount: __expectInt32(output.UtilizedCIDRCount),
|
|
2806
|
-
};
|
|
2807
|
-
};
|
|
2808
|
-
const de_CreateFirewallPolicyResponse = (output, context) => {
|
|
2809
|
-
return {
|
|
2810
|
-
FirewallPolicyResponse: output.FirewallPolicyResponse != null
|
|
2811
|
-
? de_FirewallPolicyResponse(output.FirewallPolicyResponse, context)
|
|
2812
|
-
: undefined,
|
|
2813
|
-
UpdateToken: __expectString(output.UpdateToken),
|
|
2814
|
-
};
|
|
2815
|
-
};
|
|
2816
|
-
const de_CreateFirewallResponse = (output, context) => {
|
|
2817
|
-
return {
|
|
2818
|
-
Firewall: output.Firewall != null ? de_Firewall(output.Firewall, context) : undefined,
|
|
2819
|
-
FirewallStatus: output.FirewallStatus != null ? de_FirewallStatus(output.FirewallStatus, context) : undefined,
|
|
2820
|
-
};
|
|
2821
|
-
};
|
|
2822
|
-
const de_CreateRuleGroupResponse = (output, context) => {
|
|
2823
|
-
return {
|
|
2824
|
-
RuleGroupResponse: output.RuleGroupResponse != null ? de_RuleGroupResponse(output.RuleGroupResponse, context) : undefined,
|
|
2825
|
-
UpdateToken: __expectString(output.UpdateToken),
|
|
2826
|
-
};
|
|
2827
|
-
};
|
|
2828
|
-
const de_CreateTLSInspectionConfigurationResponse = (output, context) => {
|
|
2829
|
-
return {
|
|
2830
|
-
TLSInspectionConfigurationResponse: output.TLSInspectionConfigurationResponse != null
|
|
2831
|
-
? de_TLSInspectionConfigurationResponse(output.TLSInspectionConfigurationResponse, context)
|
|
2832
|
-
: undefined,
|
|
2833
|
-
UpdateToken: __expectString(output.UpdateToken),
|
|
2834
|
-
};
|
|
2835
|
-
};
|
|
2836
|
-
const de_CustomAction = (output, context) => {
|
|
2837
|
-
return {
|
|
2838
|
-
ActionDefinition: output.ActionDefinition != null ? de_ActionDefinition(output.ActionDefinition, context) : undefined,
|
|
2839
|
-
ActionName: __expectString(output.ActionName),
|
|
2840
|
-
};
|
|
2841
|
-
};
|
|
2842
|
-
const de_CustomActions = (output, context) => {
|
|
2843
|
-
const retVal = (output || [])
|
|
2844
|
-
.filter((e) => e != null)
|
|
2845
|
-
.map((entry) => {
|
|
2846
|
-
if (entry === null) {
|
|
2847
|
-
return null;
|
|
2848
|
-
}
|
|
2849
|
-
return de_CustomAction(entry, context);
|
|
2850
|
-
});
|
|
2851
|
-
return retVal;
|
|
2852
|
-
};
|
|
2853
|
-
const de_DeleteFirewallPolicyResponse = (output, context) => {
|
|
2854
|
-
return {
|
|
2855
|
-
FirewallPolicyResponse: output.FirewallPolicyResponse != null
|
|
2856
|
-
? de_FirewallPolicyResponse(output.FirewallPolicyResponse, context)
|
|
2857
|
-
: undefined,
|
|
2858
|
-
};
|
|
2859
|
-
};
|
|
2860
|
-
const de_DeleteFirewallResponse = (output, context) => {
|
|
2861
|
-
return {
|
|
2862
|
-
Firewall: output.Firewall != null ? de_Firewall(output.Firewall, context) : undefined,
|
|
2863
|
-
FirewallStatus: output.FirewallStatus != null ? de_FirewallStatus(output.FirewallStatus, context) : undefined,
|
|
2864
|
-
};
|
|
2865
|
-
};
|
|
2866
|
-
const de_DeleteResourcePolicyResponse = (output, context) => {
|
|
2867
|
-
return {};
|
|
2868
|
-
};
|
|
2869
|
-
const de_DeleteRuleGroupResponse = (output, context) => {
|
|
2870
|
-
return {
|
|
2871
|
-
RuleGroupResponse: output.RuleGroupResponse != null ? de_RuleGroupResponse(output.RuleGroupResponse, context) : undefined,
|
|
2872
|
-
};
|
|
2873
|
-
};
|
|
2874
|
-
const de_DeleteTLSInspectionConfigurationResponse = (output, context) => {
|
|
2875
|
-
return {
|
|
2876
|
-
TLSInspectionConfigurationResponse: output.TLSInspectionConfigurationResponse != null
|
|
2877
|
-
? de_TLSInspectionConfigurationResponse(output.TLSInspectionConfigurationResponse, context)
|
|
2878
|
-
: undefined,
|
|
2879
|
-
};
|
|
2880
|
-
};
|
|
2881
|
-
const de_DescribeFirewallPolicyResponse = (output, context) => {
|
|
2882
|
-
return {
|
|
2883
|
-
FirewallPolicy: output.FirewallPolicy != null ? de_FirewallPolicy(output.FirewallPolicy, context) : undefined,
|
|
2884
|
-
FirewallPolicyResponse: output.FirewallPolicyResponse != null
|
|
2885
|
-
? de_FirewallPolicyResponse(output.FirewallPolicyResponse, context)
|
|
2886
|
-
: undefined,
|
|
2887
|
-
UpdateToken: __expectString(output.UpdateToken),
|
|
2888
|
-
};
|
|
2889
|
-
};
|
|
2890
|
-
const de_DescribeFirewallResponse = (output, context) => {
|
|
2891
|
-
return {
|
|
2892
|
-
Firewall: output.Firewall != null ? de_Firewall(output.Firewall, context) : undefined,
|
|
2893
|
-
FirewallStatus: output.FirewallStatus != null ? de_FirewallStatus(output.FirewallStatus, context) : undefined,
|
|
2894
|
-
UpdateToken: __expectString(output.UpdateToken),
|
|
2895
|
-
};
|
|
2896
|
-
};
|
|
2897
|
-
const de_DescribeLoggingConfigurationResponse = (output, context) => {
|
|
2898
|
-
return {
|
|
2899
|
-
FirewallArn: __expectString(output.FirewallArn),
|
|
2900
|
-
LoggingConfiguration: output.LoggingConfiguration != null ? de_LoggingConfiguration(output.LoggingConfiguration, context) : undefined,
|
|
2901
|
-
};
|
|
2902
|
-
};
|
|
2903
|
-
const de_DescribeResourcePolicyResponse = (output, context) => {
|
|
2904
|
-
return {
|
|
2905
|
-
Policy: __expectString(output.Policy),
|
|
2906
|
-
};
|
|
2907
|
-
};
|
|
2908
|
-
const de_DescribeRuleGroupMetadataResponse = (output, context) => {
|
|
2909
|
-
return {
|
|
2910
|
-
Capacity: __expectInt32(output.Capacity),
|
|
2911
|
-
Description: __expectString(output.Description),
|
|
2912
|
-
LastModifiedTime: output.LastModifiedTime != null
|
|
2913
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
|
|
2914
|
-
: undefined,
|
|
2915
|
-
RuleGroupArn: __expectString(output.RuleGroupArn),
|
|
2916
|
-
RuleGroupName: __expectString(output.RuleGroupName),
|
|
2917
|
-
StatefulRuleOptions: output.StatefulRuleOptions != null ? de_StatefulRuleOptions(output.StatefulRuleOptions, context) : undefined,
|
|
2918
|
-
Type: __expectString(output.Type),
|
|
2919
|
-
};
|
|
2920
|
-
};
|
|
2921
|
-
const de_DescribeRuleGroupResponse = (output, context) => {
|
|
2922
|
-
return {
|
|
2923
|
-
RuleGroup: output.RuleGroup != null ? de_RuleGroup(output.RuleGroup, context) : undefined,
|
|
2924
|
-
RuleGroupResponse: output.RuleGroupResponse != null ? de_RuleGroupResponse(output.RuleGroupResponse, context) : undefined,
|
|
2925
|
-
UpdateToken: __expectString(output.UpdateToken),
|
|
2926
|
-
};
|
|
2927
|
-
};
|
|
2928
|
-
const de_DescribeTLSInspectionConfigurationResponse = (output, context) => {
|
|
2929
|
-
return {
|
|
2930
|
-
TLSInspectionConfiguration: output.TLSInspectionConfiguration != null
|
|
2931
|
-
? de_TLSInspectionConfiguration(output.TLSInspectionConfiguration, context)
|
|
2932
|
-
: undefined,
|
|
2933
|
-
TLSInspectionConfigurationResponse: output.TLSInspectionConfigurationResponse != null
|
|
2934
|
-
? de_TLSInspectionConfigurationResponse(output.TLSInspectionConfigurationResponse, context)
|
|
2935
|
-
: undefined,
|
|
2936
|
-
UpdateToken: __expectString(output.UpdateToken),
|
|
2937
|
-
};
|
|
2938
|
-
};
|
|
2939
|
-
const de_Dimension = (output, context) => {
|
|
2940
|
-
return {
|
|
2941
|
-
Value: __expectString(output.Value),
|
|
2942
|
-
};
|
|
2943
|
-
};
|
|
2944
|
-
const de_Dimensions = (output, context) => {
|
|
2945
|
-
const retVal = (output || [])
|
|
2946
|
-
.filter((e) => e != null)
|
|
2947
|
-
.map((entry) => {
|
|
2948
|
-
if (entry === null) {
|
|
2949
|
-
return null;
|
|
2950
|
-
}
|
|
2951
|
-
return de_Dimension(entry, context);
|
|
2952
|
-
});
|
|
2953
|
-
return retVal;
|
|
2954
|
-
};
|
|
2955
|
-
const de_DisassociateSubnetsResponse = (output, context) => {
|
|
2956
|
-
return {
|
|
2957
|
-
FirewallArn: __expectString(output.FirewallArn),
|
|
2958
|
-
FirewallName: __expectString(output.FirewallName),
|
|
2959
|
-
SubnetMappings: output.SubnetMappings != null ? de_SubnetMappings(output.SubnetMappings, context) : undefined,
|
|
2960
|
-
UpdateToken: __expectString(output.UpdateToken),
|
|
2961
|
-
};
|
|
2962
|
-
};
|
|
2963
|
-
const de_EncryptionConfiguration = (output, context) => {
|
|
2964
|
-
return {
|
|
2965
|
-
KeyId: __expectString(output.KeyId),
|
|
2966
|
-
Type: __expectString(output.Type),
|
|
2967
|
-
};
|
|
2968
|
-
};
|
|
2969
|
-
const de_Firewall = (output, context) => {
|
|
2970
|
-
return {
|
|
2971
|
-
DeleteProtection: __expectBoolean(output.DeleteProtection),
|
|
2972
|
-
Description: __expectString(output.Description),
|
|
2973
|
-
EncryptionConfiguration: output.EncryptionConfiguration != null
|
|
2974
|
-
? de_EncryptionConfiguration(output.EncryptionConfiguration, context)
|
|
2975
|
-
: undefined,
|
|
2976
|
-
FirewallArn: __expectString(output.FirewallArn),
|
|
2977
|
-
FirewallId: __expectString(output.FirewallId),
|
|
2978
|
-
FirewallName: __expectString(output.FirewallName),
|
|
2979
|
-
FirewallPolicyArn: __expectString(output.FirewallPolicyArn),
|
|
2980
|
-
FirewallPolicyChangeProtection: __expectBoolean(output.FirewallPolicyChangeProtection),
|
|
2981
|
-
SubnetChangeProtection: __expectBoolean(output.SubnetChangeProtection),
|
|
2982
|
-
SubnetMappings: output.SubnetMappings != null ? de_SubnetMappings(output.SubnetMappings, context) : undefined,
|
|
2983
|
-
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
2984
|
-
VpcId: __expectString(output.VpcId),
|
|
2985
|
-
};
|
|
2986
|
-
};
|
|
2987
|
-
const de_FirewallMetadata = (output, context) => {
|
|
2988
|
-
return {
|
|
2989
|
-
FirewallArn: __expectString(output.FirewallArn),
|
|
2990
|
-
FirewallName: __expectString(output.FirewallName),
|
|
2991
|
-
};
|
|
2992
|
-
};
|
|
2993
|
-
const de_FirewallPolicies = (output, context) => {
|
|
2994
|
-
const retVal = (output || [])
|
|
2995
|
-
.filter((e) => e != null)
|
|
2996
|
-
.map((entry) => {
|
|
2997
|
-
if (entry === null) {
|
|
2998
|
-
return null;
|
|
2999
|
-
}
|
|
3000
|
-
return de_FirewallPolicyMetadata(entry, context);
|
|
3001
|
-
});
|
|
3002
|
-
return retVal;
|
|
3003
|
-
};
|
|
3004
|
-
const de_FirewallPolicy = (output, context) => {
|
|
3005
|
-
return {
|
|
3006
|
-
StatefulDefaultActions: output.StatefulDefaultActions != null ? de_StatefulActions(output.StatefulDefaultActions, context) : undefined,
|
|
3007
|
-
StatefulEngineOptions: output.StatefulEngineOptions != null
|
|
3008
|
-
? de_StatefulEngineOptions(output.StatefulEngineOptions, context)
|
|
3009
|
-
: undefined,
|
|
3010
|
-
StatefulRuleGroupReferences: output.StatefulRuleGroupReferences != null
|
|
3011
|
-
? de_StatefulRuleGroupReferences(output.StatefulRuleGroupReferences, context)
|
|
3012
|
-
: undefined,
|
|
3013
|
-
StatelessCustomActions: output.StatelessCustomActions != null ? de_CustomActions(output.StatelessCustomActions, context) : undefined,
|
|
3014
|
-
StatelessDefaultActions: output.StatelessDefaultActions != null ? de_StatelessActions(output.StatelessDefaultActions, context) : undefined,
|
|
3015
|
-
StatelessFragmentDefaultActions: output.StatelessFragmentDefaultActions != null
|
|
3016
|
-
? de_StatelessActions(output.StatelessFragmentDefaultActions, context)
|
|
3017
|
-
: undefined,
|
|
3018
|
-
StatelessRuleGroupReferences: output.StatelessRuleGroupReferences != null
|
|
3019
|
-
? de_StatelessRuleGroupReferences(output.StatelessRuleGroupReferences, context)
|
|
3020
|
-
: undefined,
|
|
3021
|
-
TLSInspectionConfigurationArn: __expectString(output.TLSInspectionConfigurationArn),
|
|
3022
|
-
};
|
|
3023
|
-
};
|
|
3024
|
-
const de_FirewallPolicyMetadata = (output, context) => {
|
|
3025
|
-
return {
|
|
3026
|
-
Arn: __expectString(output.Arn),
|
|
3027
|
-
Name: __expectString(output.Name),
|
|
3028
|
-
};
|
|
3029
|
-
};
|
|
3030
|
-
const de_FirewallPolicyResponse = (output, context) => {
|
|
3031
|
-
return {
|
|
3032
|
-
ConsumedStatefulRuleCapacity: __expectInt32(output.ConsumedStatefulRuleCapacity),
|
|
3033
|
-
ConsumedStatelessRuleCapacity: __expectInt32(output.ConsumedStatelessRuleCapacity),
|
|
3034
|
-
Description: __expectString(output.Description),
|
|
3035
|
-
EncryptionConfiguration: output.EncryptionConfiguration != null
|
|
3036
|
-
? de_EncryptionConfiguration(output.EncryptionConfiguration, context)
|
|
3037
|
-
: undefined,
|
|
3038
|
-
FirewallPolicyArn: __expectString(output.FirewallPolicyArn),
|
|
3039
|
-
FirewallPolicyId: __expectString(output.FirewallPolicyId),
|
|
3040
|
-
FirewallPolicyName: __expectString(output.FirewallPolicyName),
|
|
3041
|
-
FirewallPolicyStatus: __expectString(output.FirewallPolicyStatus),
|
|
3042
|
-
LastModifiedTime: output.LastModifiedTime != null
|
|
3043
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
|
|
3044
|
-
: undefined,
|
|
3045
|
-
NumberOfAssociations: __expectInt32(output.NumberOfAssociations),
|
|
3046
|
-
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
3047
|
-
};
|
|
3048
|
-
};
|
|
3049
|
-
const de_Firewalls = (output, context) => {
|
|
3050
|
-
const retVal = (output || [])
|
|
3051
|
-
.filter((e) => e != null)
|
|
3052
|
-
.map((entry) => {
|
|
3053
|
-
if (entry === null) {
|
|
3054
|
-
return null;
|
|
3055
|
-
}
|
|
3056
|
-
return de_FirewallMetadata(entry, context);
|
|
3057
|
-
});
|
|
3058
|
-
return retVal;
|
|
3059
|
-
};
|
|
3060
|
-
const de_FirewallStatus = (output, context) => {
|
|
3061
|
-
return {
|
|
3062
|
-
CapacityUsageSummary: output.CapacityUsageSummary != null ? de_CapacityUsageSummary(output.CapacityUsageSummary, context) : undefined,
|
|
3063
|
-
ConfigurationSyncStateSummary: __expectString(output.ConfigurationSyncStateSummary),
|
|
3064
|
-
Status: __expectString(output.Status),
|
|
3065
|
-
SyncStates: output.SyncStates != null ? de_SyncStates(output.SyncStates, context) : undefined,
|
|
3066
|
-
};
|
|
3067
|
-
};
|
|
3068
|
-
const de_Flags = (output, context) => {
|
|
3069
|
-
const retVal = (output || [])
|
|
3070
|
-
.filter((e) => e != null)
|
|
3071
|
-
.map((entry) => {
|
|
3072
|
-
if (entry === null) {
|
|
3073
|
-
return null;
|
|
3074
|
-
}
|
|
3075
|
-
return __expectString(entry);
|
|
3076
|
-
});
|
|
3077
|
-
return retVal;
|
|
3078
|
-
};
|
|
3079
|
-
const de_Header = (output, context) => {
|
|
3080
|
-
return {
|
|
3081
|
-
Destination: __expectString(output.Destination),
|
|
3082
|
-
DestinationPort: __expectString(output.DestinationPort),
|
|
3083
|
-
Direction: __expectString(output.Direction),
|
|
3084
|
-
Protocol: __expectString(output.Protocol),
|
|
3085
|
-
Source: __expectString(output.Source),
|
|
3086
|
-
SourcePort: __expectString(output.SourcePort),
|
|
3087
|
-
};
|
|
3088
|
-
};
|
|
3089
|
-
const de_InsufficientCapacityException = (output, context) => {
|
|
3090
|
-
return {
|
|
3091
|
-
Message: __expectString(output.Message),
|
|
3092
|
-
};
|
|
3093
|
-
};
|
|
3094
|
-
const de_InternalServerError = (output, context) => {
|
|
3095
|
-
return {
|
|
3096
|
-
Message: __expectString(output.Message),
|
|
3097
|
-
};
|
|
3098
|
-
};
|
|
3099
|
-
const de_InvalidOperationException = (output, context) => {
|
|
3100
|
-
return {
|
|
3101
|
-
Message: __expectString(output.Message),
|
|
3102
|
-
};
|
|
3103
|
-
};
|
|
3104
|
-
const de_InvalidRequestException = (output, context) => {
|
|
3105
|
-
return {
|
|
3106
|
-
Message: __expectString(output.Message),
|
|
3107
|
-
};
|
|
3108
|
-
};
|
|
3109
|
-
const de_InvalidResourcePolicyException = (output, context) => {
|
|
3110
|
-
return {
|
|
3111
|
-
Message: __expectString(output.Message),
|
|
3112
|
-
};
|
|
3113
|
-
};
|
|
3114
|
-
const de_InvalidTokenException = (output, context) => {
|
|
3115
|
-
return {
|
|
3116
|
-
Message: __expectString(output.Message),
|
|
3117
|
-
};
|
|
3118
|
-
};
|
|
3119
|
-
const de_IPSet = (output, context) => {
|
|
3120
|
-
return {
|
|
3121
|
-
Definition: output.Definition != null ? de_VariableDefinitionList(output.Definition, context) : undefined,
|
|
3122
|
-
};
|
|
3123
|
-
};
|
|
3124
|
-
const de_IPSetMetadata = (output, context) => {
|
|
3125
|
-
return {
|
|
3126
|
-
ResolvedCIDRCount: __expectInt32(output.ResolvedCIDRCount),
|
|
3127
|
-
};
|
|
3128
|
-
};
|
|
3129
|
-
const de_IPSetMetadataMap = (output, context) => {
|
|
3130
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3131
|
-
if (value === null) {
|
|
3132
|
-
return acc;
|
|
3133
|
-
}
|
|
3134
|
-
acc[key] = de_IPSetMetadata(value, context);
|
|
3135
|
-
return acc;
|
|
3136
|
-
}, {});
|
|
3137
|
-
};
|
|
3138
|
-
const de_IPSetReference = (output, context) => {
|
|
3139
|
-
return {
|
|
3140
|
-
ReferenceArn: __expectString(output.ReferenceArn),
|
|
3141
|
-
};
|
|
3142
|
-
};
|
|
3143
|
-
const de_IPSetReferenceMap = (output, context) => {
|
|
3144
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3145
|
-
if (value === null) {
|
|
3146
|
-
return acc;
|
|
3147
|
-
}
|
|
3148
|
-
acc[key] = de_IPSetReference(value, context);
|
|
3149
|
-
return acc;
|
|
3150
|
-
}, {});
|
|
3151
|
-
};
|
|
3152
|
-
const de_IPSets = (output, context) => {
|
|
3153
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3154
|
-
if (value === null) {
|
|
3155
|
-
return acc;
|
|
3156
|
-
}
|
|
3157
|
-
acc[key] = de_IPSet(value, context);
|
|
3158
|
-
return acc;
|
|
3159
|
-
}, {});
|
|
3160
|
-
};
|
|
3161
|
-
const de_LimitExceededException = (output, context) => {
|
|
3162
|
-
return {
|
|
3163
|
-
Message: __expectString(output.Message),
|
|
3164
|
-
};
|
|
3165
|
-
};
|
|
3166
|
-
const de_ListFirewallPoliciesResponse = (output, context) => {
|
|
3167
|
-
return {
|
|
3168
|
-
FirewallPolicies: output.FirewallPolicies != null ? de_FirewallPolicies(output.FirewallPolicies, context) : undefined,
|
|
3169
|
-
NextToken: __expectString(output.NextToken),
|
|
3170
|
-
};
|
|
3171
|
-
};
|
|
3172
|
-
const de_ListFirewallsResponse = (output, context) => {
|
|
3173
|
-
return {
|
|
3174
|
-
Firewalls: output.Firewalls != null ? de_Firewalls(output.Firewalls, context) : undefined,
|
|
3175
|
-
NextToken: __expectString(output.NextToken),
|
|
3176
|
-
};
|
|
3177
|
-
};
|
|
3178
|
-
const de_ListRuleGroupsResponse = (output, context) => {
|
|
3179
|
-
return {
|
|
3180
|
-
NextToken: __expectString(output.NextToken),
|
|
3181
|
-
RuleGroups: output.RuleGroups != null ? de_RuleGroups(output.RuleGroups, context) : undefined,
|
|
3182
|
-
};
|
|
3183
|
-
};
|
|
3184
|
-
const de_ListTagsForResourceResponse = (output, context) => {
|
|
3185
|
-
return {
|
|
3186
|
-
NextToken: __expectString(output.NextToken),
|
|
3187
|
-
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
3188
|
-
};
|
|
3189
|
-
};
|
|
3190
|
-
const de_ListTLSInspectionConfigurationsResponse = (output, context) => {
|
|
3191
|
-
return {
|
|
3192
|
-
NextToken: __expectString(output.NextToken),
|
|
3193
|
-
TLSInspectionConfigurations: output.TLSInspectionConfigurations != null
|
|
3194
|
-
? de_TLSInspectionConfigurations(output.TLSInspectionConfigurations, context)
|
|
3195
|
-
: undefined,
|
|
3196
|
-
};
|
|
3197
|
-
};
|
|
3198
|
-
const de_LogDestinationConfig = (output, context) => {
|
|
3199
|
-
return {
|
|
3200
|
-
LogDestination: output.LogDestination != null ? de_LogDestinationMap(output.LogDestination, context) : undefined,
|
|
3201
|
-
LogDestinationType: __expectString(output.LogDestinationType),
|
|
3202
|
-
LogType: __expectString(output.LogType),
|
|
3203
|
-
};
|
|
3204
|
-
};
|
|
3205
|
-
const de_LogDestinationConfigs = (output, context) => {
|
|
3206
|
-
const retVal = (output || [])
|
|
3207
|
-
.filter((e) => e != null)
|
|
3208
|
-
.map((entry) => {
|
|
3209
|
-
if (entry === null) {
|
|
3210
|
-
return null;
|
|
3211
|
-
}
|
|
3212
|
-
return de_LogDestinationConfig(entry, context);
|
|
3213
|
-
});
|
|
3214
|
-
return retVal;
|
|
3215
|
-
};
|
|
3216
|
-
const de_LogDestinationMap = (output, context) => {
|
|
3217
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3218
|
-
if (value === null) {
|
|
3219
|
-
return acc;
|
|
3220
|
-
}
|
|
3221
|
-
acc[key] = __expectString(value);
|
|
3222
|
-
return acc;
|
|
3223
|
-
}, {});
|
|
3224
|
-
};
|
|
3225
|
-
const de_LogDestinationPermissionException = (output, context) => {
|
|
3226
|
-
return {
|
|
3227
|
-
Message: __expectString(output.Message),
|
|
3228
|
-
};
|
|
3229
|
-
};
|
|
3230
|
-
const de_LoggingConfiguration = (output, context) => {
|
|
3231
|
-
return {
|
|
3232
|
-
LogDestinationConfigs: output.LogDestinationConfigs != null
|
|
3233
|
-
? de_LogDestinationConfigs(output.LogDestinationConfigs, context)
|
|
3234
|
-
: undefined,
|
|
3235
|
-
};
|
|
3236
|
-
};
|
|
3237
|
-
const de_MatchAttributes = (output, context) => {
|
|
3238
|
-
return {
|
|
3239
|
-
DestinationPorts: output.DestinationPorts != null ? de_PortRanges(output.DestinationPorts, context) : undefined,
|
|
3240
|
-
Destinations: output.Destinations != null ? de_Addresses(output.Destinations, context) : undefined,
|
|
3241
|
-
Protocols: output.Protocols != null ? de_ProtocolNumbers(output.Protocols, context) : undefined,
|
|
3242
|
-
SourcePorts: output.SourcePorts != null ? de_PortRanges(output.SourcePorts, context) : undefined,
|
|
3243
|
-
Sources: output.Sources != null ? de_Addresses(output.Sources, context) : undefined,
|
|
3244
|
-
TCPFlags: output.TCPFlags != null ? de_TCPFlags(output.TCPFlags, context) : undefined,
|
|
3245
|
-
};
|
|
3246
|
-
};
|
|
3247
|
-
const de_PerObjectStatus = (output, context) => {
|
|
3248
|
-
return {
|
|
3249
|
-
SyncStatus: __expectString(output.SyncStatus),
|
|
3250
|
-
UpdateToken: __expectString(output.UpdateToken),
|
|
3251
|
-
};
|
|
3252
|
-
};
|
|
3253
|
-
const de_PortRange = (output, context) => {
|
|
3254
|
-
return {
|
|
3255
|
-
FromPort: __expectInt32(output.FromPort),
|
|
3256
|
-
ToPort: __expectInt32(output.ToPort),
|
|
3257
|
-
};
|
|
3258
|
-
};
|
|
3259
|
-
const de_PortRanges = (output, context) => {
|
|
3260
|
-
const retVal = (output || [])
|
|
3261
|
-
.filter((e) => e != null)
|
|
3262
|
-
.map((entry) => {
|
|
3263
|
-
if (entry === null) {
|
|
3264
|
-
return null;
|
|
3265
|
-
}
|
|
3266
|
-
return de_PortRange(entry, context);
|
|
3267
|
-
});
|
|
3268
|
-
return retVal;
|
|
3269
|
-
};
|
|
3270
|
-
const de_PortSet = (output, context) => {
|
|
3271
|
-
return {
|
|
3272
|
-
Definition: output.Definition != null ? de_VariableDefinitionList(output.Definition, context) : undefined,
|
|
3273
|
-
};
|
|
3274
|
-
};
|
|
3275
|
-
const de_PortSets = (output, context) => {
|
|
3276
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3277
|
-
if (value === null) {
|
|
3278
|
-
return acc;
|
|
3279
|
-
}
|
|
3280
|
-
acc[key] = de_PortSet(value, context);
|
|
3281
|
-
return acc;
|
|
3282
|
-
}, {});
|
|
3283
|
-
};
|
|
3284
|
-
const de_ProtocolNumbers = (output, context) => {
|
|
3285
|
-
const retVal = (output || [])
|
|
3286
|
-
.filter((e) => e != null)
|
|
3287
|
-
.map((entry) => {
|
|
3288
|
-
if (entry === null) {
|
|
3289
|
-
return null;
|
|
3290
|
-
}
|
|
3291
|
-
return __expectInt32(entry);
|
|
1892
|
+
const se_CreateRuleGroupRequest = (input, context) => {
|
|
1893
|
+
return take(input, {
|
|
1894
|
+
Capacity: [],
|
|
1895
|
+
Description: [],
|
|
1896
|
+
DryRun: [],
|
|
1897
|
+
EncryptionConfiguration: _json,
|
|
1898
|
+
RuleGroup: _json,
|
|
1899
|
+
RuleGroupName: [],
|
|
1900
|
+
Rules: [],
|
|
1901
|
+
SourceMetadata: _json,
|
|
1902
|
+
Tags: _json,
|
|
1903
|
+
Type: [],
|
|
3292
1904
|
});
|
|
3293
|
-
return retVal;
|
|
3294
|
-
};
|
|
3295
|
-
const de_PublishMetricAction = (output, context) => {
|
|
3296
|
-
return {
|
|
3297
|
-
Dimensions: output.Dimensions != null ? de_Dimensions(output.Dimensions, context) : undefined,
|
|
3298
|
-
};
|
|
3299
|
-
};
|
|
3300
|
-
const de_PutResourcePolicyResponse = (output, context) => {
|
|
3301
|
-
return {};
|
|
3302
|
-
};
|
|
3303
|
-
const de_ReferenceSets = (output, context) => {
|
|
3304
|
-
return {
|
|
3305
|
-
IPSetReferences: output.IPSetReferences != null ? de_IPSetReferenceMap(output.IPSetReferences, context) : undefined,
|
|
3306
|
-
};
|
|
3307
|
-
};
|
|
3308
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
3309
|
-
return {
|
|
3310
|
-
Message: __expectString(output.Message),
|
|
3311
|
-
};
|
|
3312
|
-
};
|
|
3313
|
-
const de_ResourceOwnerCheckException = (output, context) => {
|
|
3314
|
-
return {
|
|
3315
|
-
Message: __expectString(output.Message),
|
|
3316
|
-
};
|
|
3317
|
-
};
|
|
3318
|
-
const de_RuleDefinition = (output, context) => {
|
|
3319
|
-
return {
|
|
3320
|
-
Actions: output.Actions != null ? de_StatelessActions(output.Actions, context) : undefined,
|
|
3321
|
-
MatchAttributes: output.MatchAttributes != null ? de_MatchAttributes(output.MatchAttributes, context) : undefined,
|
|
3322
|
-
};
|
|
3323
|
-
};
|
|
3324
|
-
const de_RuleGroup = (output, context) => {
|
|
3325
|
-
return {
|
|
3326
|
-
ReferenceSets: output.ReferenceSets != null ? de_ReferenceSets(output.ReferenceSets, context) : undefined,
|
|
3327
|
-
RuleVariables: output.RuleVariables != null ? de_RuleVariables(output.RuleVariables, context) : undefined,
|
|
3328
|
-
RulesSource: output.RulesSource != null ? de_RulesSource(output.RulesSource, context) : undefined,
|
|
3329
|
-
StatefulRuleOptions: output.StatefulRuleOptions != null ? de_StatefulRuleOptions(output.StatefulRuleOptions, context) : undefined,
|
|
3330
|
-
};
|
|
3331
|
-
};
|
|
3332
|
-
const de_RuleGroupMetadata = (output, context) => {
|
|
3333
|
-
return {
|
|
3334
|
-
Arn: __expectString(output.Arn),
|
|
3335
|
-
Name: __expectString(output.Name),
|
|
3336
|
-
};
|
|
3337
1905
|
};
|
|
3338
|
-
const
|
|
3339
|
-
return {
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
RuleGroupArn: __expectString(output.RuleGroupArn),
|
|
3351
|
-
RuleGroupId: __expectString(output.RuleGroupId),
|
|
3352
|
-
RuleGroupName: __expectString(output.RuleGroupName),
|
|
3353
|
-
RuleGroupStatus: __expectString(output.RuleGroupStatus),
|
|
3354
|
-
SnsTopic: __expectString(output.SnsTopic),
|
|
3355
|
-
SourceMetadata: output.SourceMetadata != null ? de_SourceMetadata(output.SourceMetadata, context) : undefined,
|
|
3356
|
-
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
3357
|
-
Type: __expectString(output.Type),
|
|
3358
|
-
};
|
|
3359
|
-
};
|
|
3360
|
-
const de_RuleGroups = (output, context) => {
|
|
3361
|
-
const retVal = (output || [])
|
|
3362
|
-
.filter((e) => e != null)
|
|
3363
|
-
.map((entry) => {
|
|
3364
|
-
if (entry === null) {
|
|
3365
|
-
return null;
|
|
3366
|
-
}
|
|
3367
|
-
return de_RuleGroupMetadata(entry, context);
|
|
1906
|
+
const se_UpdateRuleGroupRequest = (input, context) => {
|
|
1907
|
+
return take(input, {
|
|
1908
|
+
Description: [],
|
|
1909
|
+
DryRun: [],
|
|
1910
|
+
EncryptionConfiguration: _json,
|
|
1911
|
+
RuleGroup: _json,
|
|
1912
|
+
RuleGroupArn: [],
|
|
1913
|
+
RuleGroupName: [],
|
|
1914
|
+
Rules: [],
|
|
1915
|
+
SourceMetadata: _json,
|
|
1916
|
+
Type: [],
|
|
1917
|
+
UpdateToken: [],
|
|
3368
1918
|
});
|
|
3369
|
-
return retVal;
|
|
3370
1919
|
};
|
|
3371
|
-
const
|
|
3372
|
-
return {
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
};
|
|
3376
|
-
};
|
|
3377
|
-
const de_RuleOptions = (output, context) => {
|
|
3378
|
-
const retVal = (output || [])
|
|
3379
|
-
.filter((e) => e != null)
|
|
3380
|
-
.map((entry) => {
|
|
3381
|
-
if (entry === null) {
|
|
3382
|
-
return null;
|
|
3383
|
-
}
|
|
3384
|
-
return de_RuleOption(entry, context);
|
|
1920
|
+
const de_CreateFirewallPolicyResponse = (output, context) => {
|
|
1921
|
+
return take(output, {
|
|
1922
|
+
FirewallPolicyResponse: (_) => de_FirewallPolicyResponse(_, context),
|
|
1923
|
+
UpdateToken: __expectString,
|
|
3385
1924
|
});
|
|
3386
|
-
return retVal;
|
|
3387
|
-
};
|
|
3388
|
-
const de_RulesSource = (output, context) => {
|
|
3389
|
-
return {
|
|
3390
|
-
RulesSourceList: output.RulesSourceList != null ? de_RulesSourceList(output.RulesSourceList, context) : undefined,
|
|
3391
|
-
RulesString: __expectString(output.RulesString),
|
|
3392
|
-
StatefulRules: output.StatefulRules != null ? de_StatefulRules(output.StatefulRules, context) : undefined,
|
|
3393
|
-
StatelessRulesAndCustomActions: output.StatelessRulesAndCustomActions != null
|
|
3394
|
-
? de_StatelessRulesAndCustomActions(output.StatelessRulesAndCustomActions, context)
|
|
3395
|
-
: undefined,
|
|
3396
|
-
};
|
|
3397
1925
|
};
|
|
3398
|
-
const
|
|
3399
|
-
return {
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
Targets: output.Targets != null ? de_RuleTargets(output.Targets, context) : undefined,
|
|
3403
|
-
};
|
|
3404
|
-
};
|
|
3405
|
-
const de_RuleTargets = (output, context) => {
|
|
3406
|
-
const retVal = (output || [])
|
|
3407
|
-
.filter((e) => e != null)
|
|
3408
|
-
.map((entry) => {
|
|
3409
|
-
if (entry === null) {
|
|
3410
|
-
return null;
|
|
3411
|
-
}
|
|
3412
|
-
return __expectString(entry);
|
|
1926
|
+
const de_CreateRuleGroupResponse = (output, context) => {
|
|
1927
|
+
return take(output, {
|
|
1928
|
+
RuleGroupResponse: (_) => de_RuleGroupResponse(_, context),
|
|
1929
|
+
UpdateToken: __expectString,
|
|
3413
1930
|
});
|
|
3414
|
-
return retVal;
|
|
3415
|
-
};
|
|
3416
|
-
const de_RuleVariables = (output, context) => {
|
|
3417
|
-
return {
|
|
3418
|
-
IPSets: output.IPSets != null ? de_IPSets(output.IPSets, context) : undefined,
|
|
3419
|
-
PortSets: output.PortSets != null ? de_PortSets(output.PortSets, context) : undefined,
|
|
3420
|
-
};
|
|
3421
|
-
};
|
|
3422
|
-
const de_ServerCertificate = (output, context) => {
|
|
3423
|
-
return {
|
|
3424
|
-
ResourceArn: __expectString(output.ResourceArn),
|
|
3425
|
-
};
|
|
3426
|
-
};
|
|
3427
|
-
const de_ServerCertificateConfiguration = (output, context) => {
|
|
3428
|
-
return {
|
|
3429
|
-
Scopes: output.Scopes != null ? de_ServerCertificateScopes(output.Scopes, context) : undefined,
|
|
3430
|
-
ServerCertificates: output.ServerCertificates != null ? de_ServerCertificates(output.ServerCertificates, context) : undefined,
|
|
3431
|
-
};
|
|
3432
1931
|
};
|
|
3433
|
-
const
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
if (entry === null) {
|
|
3438
|
-
return null;
|
|
3439
|
-
}
|
|
3440
|
-
return de_ServerCertificateConfiguration(entry, context);
|
|
3441
|
-
});
|
|
3442
|
-
return retVal;
|
|
3443
|
-
};
|
|
3444
|
-
const de_ServerCertificates = (output, context) => {
|
|
3445
|
-
const retVal = (output || [])
|
|
3446
|
-
.filter((e) => e != null)
|
|
3447
|
-
.map((entry) => {
|
|
3448
|
-
if (entry === null) {
|
|
3449
|
-
return null;
|
|
3450
|
-
}
|
|
3451
|
-
return de_ServerCertificate(entry, context);
|
|
1932
|
+
const de_CreateTLSInspectionConfigurationResponse = (output, context) => {
|
|
1933
|
+
return take(output, {
|
|
1934
|
+
TLSInspectionConfigurationResponse: (_) => de_TLSInspectionConfigurationResponse(_, context),
|
|
1935
|
+
UpdateToken: __expectString,
|
|
3452
1936
|
});
|
|
3453
|
-
return retVal;
|
|
3454
1937
|
};
|
|
3455
|
-
const
|
|
3456
|
-
return {
|
|
3457
|
-
|
|
3458
|
-
Destinations: output.Destinations != null ? de_Addresses(output.Destinations, context) : undefined,
|
|
3459
|
-
Protocols: output.Protocols != null ? de_ProtocolNumbers(output.Protocols, context) : undefined,
|
|
3460
|
-
SourcePorts: output.SourcePorts != null ? de_PortRanges(output.SourcePorts, context) : undefined,
|
|
3461
|
-
Sources: output.Sources != null ? de_Addresses(output.Sources, context) : undefined,
|
|
3462
|
-
};
|
|
3463
|
-
};
|
|
3464
|
-
const de_ServerCertificateScopes = (output, context) => {
|
|
3465
|
-
const retVal = (output || [])
|
|
3466
|
-
.filter((e) => e != null)
|
|
3467
|
-
.map((entry) => {
|
|
3468
|
-
if (entry === null) {
|
|
3469
|
-
return null;
|
|
3470
|
-
}
|
|
3471
|
-
return de_ServerCertificateScope(entry, context);
|
|
3472
|
-
});
|
|
3473
|
-
return retVal;
|
|
3474
|
-
};
|
|
3475
|
-
const de_Settings = (output, context) => {
|
|
3476
|
-
const retVal = (output || [])
|
|
3477
|
-
.filter((e) => e != null)
|
|
3478
|
-
.map((entry) => {
|
|
3479
|
-
if (entry === null) {
|
|
3480
|
-
return null;
|
|
3481
|
-
}
|
|
3482
|
-
return __expectString(entry);
|
|
1938
|
+
const de_DeleteFirewallPolicyResponse = (output, context) => {
|
|
1939
|
+
return take(output, {
|
|
1940
|
+
FirewallPolicyResponse: (_) => de_FirewallPolicyResponse(_, context),
|
|
3483
1941
|
});
|
|
3484
|
-
return retVal;
|
|
3485
|
-
};
|
|
3486
|
-
const de_SourceMetadata = (output, context) => {
|
|
3487
|
-
return {
|
|
3488
|
-
SourceArn: __expectString(output.SourceArn),
|
|
3489
|
-
SourceUpdateToken: __expectString(output.SourceUpdateToken),
|
|
3490
|
-
};
|
|
3491
1942
|
};
|
|
3492
|
-
const
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
.map((entry) => {
|
|
3496
|
-
if (entry === null) {
|
|
3497
|
-
return null;
|
|
3498
|
-
}
|
|
3499
|
-
return __expectString(entry);
|
|
1943
|
+
const de_DeleteRuleGroupResponse = (output, context) => {
|
|
1944
|
+
return take(output, {
|
|
1945
|
+
RuleGroupResponse: (_) => de_RuleGroupResponse(_, context),
|
|
3500
1946
|
});
|
|
3501
|
-
return retVal;
|
|
3502
|
-
};
|
|
3503
|
-
const de_StatefulEngineOptions = (output, context) => {
|
|
3504
|
-
return {
|
|
3505
|
-
RuleOrder: __expectString(output.RuleOrder),
|
|
3506
|
-
StreamExceptionPolicy: __expectString(output.StreamExceptionPolicy),
|
|
3507
|
-
};
|
|
3508
|
-
};
|
|
3509
|
-
const de_StatefulRule = (output, context) => {
|
|
3510
|
-
return {
|
|
3511
|
-
Action: __expectString(output.Action),
|
|
3512
|
-
Header: output.Header != null ? de_Header(output.Header, context) : undefined,
|
|
3513
|
-
RuleOptions: output.RuleOptions != null ? de_RuleOptions(output.RuleOptions, context) : undefined,
|
|
3514
|
-
};
|
|
3515
|
-
};
|
|
3516
|
-
const de_StatefulRuleGroupOverride = (output, context) => {
|
|
3517
|
-
return {
|
|
3518
|
-
Action: __expectString(output.Action),
|
|
3519
|
-
};
|
|
3520
|
-
};
|
|
3521
|
-
const de_StatefulRuleGroupReference = (output, context) => {
|
|
3522
|
-
return {
|
|
3523
|
-
Override: output.Override != null ? de_StatefulRuleGroupOverride(output.Override, context) : undefined,
|
|
3524
|
-
Priority: __expectInt32(output.Priority),
|
|
3525
|
-
ResourceArn: __expectString(output.ResourceArn),
|
|
3526
|
-
};
|
|
3527
1947
|
};
|
|
3528
|
-
const
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
.map((entry) => {
|
|
3532
|
-
if (entry === null) {
|
|
3533
|
-
return null;
|
|
3534
|
-
}
|
|
3535
|
-
return de_StatefulRuleGroupReference(entry, context);
|
|
1948
|
+
const de_DeleteTLSInspectionConfigurationResponse = (output, context) => {
|
|
1949
|
+
return take(output, {
|
|
1950
|
+
TLSInspectionConfigurationResponse: (_) => de_TLSInspectionConfigurationResponse(_, context),
|
|
3536
1951
|
});
|
|
3537
|
-
return retVal;
|
|
3538
|
-
};
|
|
3539
|
-
const de_StatefulRuleOptions = (output, context) => {
|
|
3540
|
-
return {
|
|
3541
|
-
RuleOrder: __expectString(output.RuleOrder),
|
|
3542
|
-
};
|
|
3543
1952
|
};
|
|
3544
|
-
const
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
return null;
|
|
3550
|
-
}
|
|
3551
|
-
return de_StatefulRule(entry, context);
|
|
3552
|
-
});
|
|
3553
|
-
return retVal;
|
|
3554
|
-
};
|
|
3555
|
-
const de_StatelessActions = (output, context) => {
|
|
3556
|
-
const retVal = (output || [])
|
|
3557
|
-
.filter((e) => e != null)
|
|
3558
|
-
.map((entry) => {
|
|
3559
|
-
if (entry === null) {
|
|
3560
|
-
return null;
|
|
3561
|
-
}
|
|
3562
|
-
return __expectString(entry);
|
|
1953
|
+
const de_DescribeFirewallPolicyResponse = (output, context) => {
|
|
1954
|
+
return take(output, {
|
|
1955
|
+
FirewallPolicy: _json,
|
|
1956
|
+
FirewallPolicyResponse: (_) => de_FirewallPolicyResponse(_, context),
|
|
1957
|
+
UpdateToken: __expectString,
|
|
3563
1958
|
});
|
|
3564
|
-
return retVal;
|
|
3565
|
-
};
|
|
3566
|
-
const de_StatelessRule = (output, context) => {
|
|
3567
|
-
return {
|
|
3568
|
-
Priority: __expectInt32(output.Priority),
|
|
3569
|
-
RuleDefinition: output.RuleDefinition != null ? de_RuleDefinition(output.RuleDefinition, context) : undefined,
|
|
3570
|
-
};
|
|
3571
1959
|
};
|
|
3572
|
-
const
|
|
3573
|
-
return {
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
.map((entry) => {
|
|
3582
|
-
if (entry === null) {
|
|
3583
|
-
return null;
|
|
3584
|
-
}
|
|
3585
|
-
return de_StatelessRuleGroupReference(entry, context);
|
|
3586
|
-
});
|
|
3587
|
-
return retVal;
|
|
3588
|
-
};
|
|
3589
|
-
const de_StatelessRules = (output, context) => {
|
|
3590
|
-
const retVal = (output || [])
|
|
3591
|
-
.filter((e) => e != null)
|
|
3592
|
-
.map((entry) => {
|
|
3593
|
-
if (entry === null) {
|
|
3594
|
-
return null;
|
|
3595
|
-
}
|
|
3596
|
-
return de_StatelessRule(entry, context);
|
|
1960
|
+
const de_DescribeRuleGroupMetadataResponse = (output, context) => {
|
|
1961
|
+
return take(output, {
|
|
1962
|
+
Capacity: __expectInt32,
|
|
1963
|
+
Description: __expectString,
|
|
1964
|
+
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1965
|
+
RuleGroupArn: __expectString,
|
|
1966
|
+
RuleGroupName: __expectString,
|
|
1967
|
+
StatefulRuleOptions: _json,
|
|
1968
|
+
Type: __expectString,
|
|
3597
1969
|
});
|
|
3598
|
-
return retVal;
|
|
3599
|
-
};
|
|
3600
|
-
const de_StatelessRulesAndCustomActions = (output, context) => {
|
|
3601
|
-
return {
|
|
3602
|
-
CustomActions: output.CustomActions != null ? de_CustomActions(output.CustomActions, context) : undefined,
|
|
3603
|
-
StatelessRules: output.StatelessRules != null ? de_StatelessRules(output.StatelessRules, context) : undefined,
|
|
3604
|
-
};
|
|
3605
|
-
};
|
|
3606
|
-
const de_SubnetMapping = (output, context) => {
|
|
3607
|
-
return {
|
|
3608
|
-
IPAddressType: __expectString(output.IPAddressType),
|
|
3609
|
-
SubnetId: __expectString(output.SubnetId),
|
|
3610
|
-
};
|
|
3611
1970
|
};
|
|
3612
|
-
const
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
return null;
|
|
3618
|
-
}
|
|
3619
|
-
return de_SubnetMapping(entry, context);
|
|
1971
|
+
const de_DescribeRuleGroupResponse = (output, context) => {
|
|
1972
|
+
return take(output, {
|
|
1973
|
+
RuleGroup: _json,
|
|
1974
|
+
RuleGroupResponse: (_) => de_RuleGroupResponse(_, context),
|
|
1975
|
+
UpdateToken: __expectString,
|
|
3620
1976
|
});
|
|
3621
|
-
return retVal;
|
|
3622
|
-
};
|
|
3623
|
-
const de_SyncState = (output, context) => {
|
|
3624
|
-
return {
|
|
3625
|
-
Attachment: output.Attachment != null ? de_Attachment(output.Attachment, context) : undefined,
|
|
3626
|
-
Config: output.Config != null ? de_SyncStateConfig(output.Config, context) : undefined,
|
|
3627
|
-
};
|
|
3628
|
-
};
|
|
3629
|
-
const de_SyncStateConfig = (output, context) => {
|
|
3630
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3631
|
-
if (value === null) {
|
|
3632
|
-
return acc;
|
|
3633
|
-
}
|
|
3634
|
-
acc[key] = de_PerObjectStatus(value, context);
|
|
3635
|
-
return acc;
|
|
3636
|
-
}, {});
|
|
3637
|
-
};
|
|
3638
|
-
const de_SyncStates = (output, context) => {
|
|
3639
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3640
|
-
if (value === null) {
|
|
3641
|
-
return acc;
|
|
3642
|
-
}
|
|
3643
|
-
acc[key] = de_SyncState(value, context);
|
|
3644
|
-
return acc;
|
|
3645
|
-
}, {});
|
|
3646
|
-
};
|
|
3647
|
-
const de_Tag = (output, context) => {
|
|
3648
|
-
return {
|
|
3649
|
-
Key: __expectString(output.Key),
|
|
3650
|
-
Value: __expectString(output.Value),
|
|
3651
|
-
};
|
|
3652
1977
|
};
|
|
3653
|
-
const
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
return null;
|
|
3659
|
-
}
|
|
3660
|
-
return de_Tag(entry, context);
|
|
1978
|
+
const de_DescribeTLSInspectionConfigurationResponse = (output, context) => {
|
|
1979
|
+
return take(output, {
|
|
1980
|
+
TLSInspectionConfiguration: _json,
|
|
1981
|
+
TLSInspectionConfigurationResponse: (_) => de_TLSInspectionConfigurationResponse(_, context),
|
|
1982
|
+
UpdateToken: __expectString,
|
|
3661
1983
|
});
|
|
3662
|
-
return retVal;
|
|
3663
|
-
};
|
|
3664
|
-
const de_TagResourceResponse = (output, context) => {
|
|
3665
|
-
return {};
|
|
3666
1984
|
};
|
|
3667
|
-
const
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
1985
|
+
const de_FirewallPolicyResponse = (output, context) => {
|
|
1986
|
+
return take(output, {
|
|
1987
|
+
ConsumedStatefulRuleCapacity: __expectInt32,
|
|
1988
|
+
ConsumedStatelessRuleCapacity: __expectInt32,
|
|
1989
|
+
Description: __expectString,
|
|
1990
|
+
EncryptionConfiguration: _json,
|
|
1991
|
+
FirewallPolicyArn: __expectString,
|
|
1992
|
+
FirewallPolicyId: __expectString,
|
|
1993
|
+
FirewallPolicyName: __expectString,
|
|
1994
|
+
FirewallPolicyStatus: __expectString,
|
|
1995
|
+
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1996
|
+
NumberOfAssociations: __expectInt32,
|
|
1997
|
+
Tags: _json,
|
|
3675
1998
|
});
|
|
3676
|
-
return retVal;
|
|
3677
|
-
};
|
|
3678
|
-
const de_TCPFlagField = (output, context) => {
|
|
3679
|
-
return {
|
|
3680
|
-
Flags: output.Flags != null ? de_Flags(output.Flags, context) : undefined,
|
|
3681
|
-
Masks: output.Masks != null ? de_Flags(output.Masks, context) : undefined,
|
|
3682
|
-
};
|
|
3683
1999
|
};
|
|
3684
|
-
const
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
2000
|
+
const de_RuleGroupResponse = (output, context) => {
|
|
2001
|
+
return take(output, {
|
|
2002
|
+
Capacity: __expectInt32,
|
|
2003
|
+
ConsumedCapacity: __expectInt32,
|
|
2004
|
+
Description: __expectString,
|
|
2005
|
+
EncryptionConfiguration: _json,
|
|
2006
|
+
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2007
|
+
NumberOfAssociations: __expectInt32,
|
|
2008
|
+
RuleGroupArn: __expectString,
|
|
2009
|
+
RuleGroupId: __expectString,
|
|
2010
|
+
RuleGroupName: __expectString,
|
|
2011
|
+
RuleGroupStatus: __expectString,
|
|
2012
|
+
SnsTopic: __expectString,
|
|
2013
|
+
SourceMetadata: _json,
|
|
2014
|
+
Tags: _json,
|
|
2015
|
+
Type: __expectString,
|
|
3692
2016
|
});
|
|
3693
|
-
return retVal;
|
|
3694
|
-
};
|
|
3695
|
-
const de_ThrottlingException = (output, context) => {
|
|
3696
|
-
return {
|
|
3697
|
-
Message: __expectString(output.Message),
|
|
3698
|
-
};
|
|
3699
|
-
};
|
|
3700
|
-
const de_TlsCertificateData = (output, context) => {
|
|
3701
|
-
return {
|
|
3702
|
-
CertificateArn: __expectString(output.CertificateArn),
|
|
3703
|
-
CertificateSerial: __expectString(output.CertificateSerial),
|
|
3704
|
-
Status: __expectString(output.Status),
|
|
3705
|
-
StatusMessage: __expectString(output.StatusMessage),
|
|
3706
|
-
};
|
|
3707
|
-
};
|
|
3708
|
-
const de_TLSInspectionConfiguration = (output, context) => {
|
|
3709
|
-
return {
|
|
3710
|
-
ServerCertificateConfigurations: output.ServerCertificateConfigurations != null
|
|
3711
|
-
? de_ServerCertificateConfigurations(output.ServerCertificateConfigurations, context)
|
|
3712
|
-
: undefined,
|
|
3713
|
-
};
|
|
3714
|
-
};
|
|
3715
|
-
const de_TLSInspectionConfigurationMetadata = (output, context) => {
|
|
3716
|
-
return {
|
|
3717
|
-
Arn: __expectString(output.Arn),
|
|
3718
|
-
Name: __expectString(output.Name),
|
|
3719
|
-
};
|
|
3720
2017
|
};
|
|
3721
2018
|
const de_TLSInspectionConfigurationResponse = (output, context) => {
|
|
3722
|
-
return {
|
|
3723
|
-
Certificates:
|
|
3724
|
-
Description: __expectString
|
|
3725
|
-
EncryptionConfiguration:
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
TLSInspectionConfigurationId: __expectString(output.TLSInspectionConfigurationId),
|
|
3734
|
-
TLSInspectionConfigurationName: __expectString(output.TLSInspectionConfigurationName),
|
|
3735
|
-
TLSInspectionConfigurationStatus: __expectString(output.TLSInspectionConfigurationStatus),
|
|
3736
|
-
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
3737
|
-
};
|
|
3738
|
-
};
|
|
3739
|
-
const de_TLSInspectionConfigurations = (output, context) => {
|
|
3740
|
-
const retVal = (output || [])
|
|
3741
|
-
.filter((e) => e != null)
|
|
3742
|
-
.map((entry) => {
|
|
3743
|
-
if (entry === null) {
|
|
3744
|
-
return null;
|
|
3745
|
-
}
|
|
3746
|
-
return de_TLSInspectionConfigurationMetadata(entry, context);
|
|
2019
|
+
return take(output, {
|
|
2020
|
+
Certificates: _json,
|
|
2021
|
+
Description: __expectString,
|
|
2022
|
+
EncryptionConfiguration: _json,
|
|
2023
|
+
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2024
|
+
NumberOfAssociations: __expectInt32,
|
|
2025
|
+
TLSInspectionConfigurationArn: __expectString,
|
|
2026
|
+
TLSInspectionConfigurationId: __expectString,
|
|
2027
|
+
TLSInspectionConfigurationName: __expectString,
|
|
2028
|
+
TLSInspectionConfigurationStatus: __expectString,
|
|
2029
|
+
Tags: _json,
|
|
3747
2030
|
});
|
|
3748
|
-
return retVal;
|
|
3749
|
-
};
|
|
3750
|
-
const de_UnsupportedOperationException = (output, context) => {
|
|
3751
|
-
return {
|
|
3752
|
-
Message: __expectString(output.Message),
|
|
3753
|
-
};
|
|
3754
|
-
};
|
|
3755
|
-
const de_UntagResourceResponse = (output, context) => {
|
|
3756
|
-
return {};
|
|
3757
|
-
};
|
|
3758
|
-
const de_UpdateFirewallDeleteProtectionResponse = (output, context) => {
|
|
3759
|
-
return {
|
|
3760
|
-
DeleteProtection: __expectBoolean(output.DeleteProtection),
|
|
3761
|
-
FirewallArn: __expectString(output.FirewallArn),
|
|
3762
|
-
FirewallName: __expectString(output.FirewallName),
|
|
3763
|
-
UpdateToken: __expectString(output.UpdateToken),
|
|
3764
|
-
};
|
|
3765
|
-
};
|
|
3766
|
-
const de_UpdateFirewallDescriptionResponse = (output, context) => {
|
|
3767
|
-
return {
|
|
3768
|
-
Description: __expectString(output.Description),
|
|
3769
|
-
FirewallArn: __expectString(output.FirewallArn),
|
|
3770
|
-
FirewallName: __expectString(output.FirewallName),
|
|
3771
|
-
UpdateToken: __expectString(output.UpdateToken),
|
|
3772
|
-
};
|
|
3773
|
-
};
|
|
3774
|
-
const de_UpdateFirewallEncryptionConfigurationResponse = (output, context) => {
|
|
3775
|
-
return {
|
|
3776
|
-
EncryptionConfiguration: output.EncryptionConfiguration != null
|
|
3777
|
-
? de_EncryptionConfiguration(output.EncryptionConfiguration, context)
|
|
3778
|
-
: undefined,
|
|
3779
|
-
FirewallArn: __expectString(output.FirewallArn),
|
|
3780
|
-
FirewallName: __expectString(output.FirewallName),
|
|
3781
|
-
UpdateToken: __expectString(output.UpdateToken),
|
|
3782
|
-
};
|
|
3783
|
-
};
|
|
3784
|
-
const de_UpdateFirewallPolicyChangeProtectionResponse = (output, context) => {
|
|
3785
|
-
return {
|
|
3786
|
-
FirewallArn: __expectString(output.FirewallArn),
|
|
3787
|
-
FirewallName: __expectString(output.FirewallName),
|
|
3788
|
-
FirewallPolicyChangeProtection: __expectBoolean(output.FirewallPolicyChangeProtection),
|
|
3789
|
-
UpdateToken: __expectString(output.UpdateToken),
|
|
3790
|
-
};
|
|
3791
2031
|
};
|
|
3792
2032
|
const de_UpdateFirewallPolicyResponse = (output, context) => {
|
|
3793
|
-
return {
|
|
3794
|
-
FirewallPolicyResponse:
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
UpdateToken: __expectString(output.UpdateToken),
|
|
3798
|
-
};
|
|
3799
|
-
};
|
|
3800
|
-
const de_UpdateLoggingConfigurationResponse = (output, context) => {
|
|
3801
|
-
return {
|
|
3802
|
-
FirewallArn: __expectString(output.FirewallArn),
|
|
3803
|
-
FirewallName: __expectString(output.FirewallName),
|
|
3804
|
-
LoggingConfiguration: output.LoggingConfiguration != null ? de_LoggingConfiguration(output.LoggingConfiguration, context) : undefined,
|
|
3805
|
-
};
|
|
2033
|
+
return take(output, {
|
|
2034
|
+
FirewallPolicyResponse: (_) => de_FirewallPolicyResponse(_, context),
|
|
2035
|
+
UpdateToken: __expectString,
|
|
2036
|
+
});
|
|
3806
2037
|
};
|
|
3807
2038
|
const de_UpdateRuleGroupResponse = (output, context) => {
|
|
3808
|
-
return {
|
|
3809
|
-
RuleGroupResponse:
|
|
3810
|
-
UpdateToken: __expectString
|
|
3811
|
-
};
|
|
3812
|
-
};
|
|
3813
|
-
const de_UpdateSubnetChangeProtectionResponse = (output, context) => {
|
|
3814
|
-
return {
|
|
3815
|
-
FirewallArn: __expectString(output.FirewallArn),
|
|
3816
|
-
FirewallName: __expectString(output.FirewallName),
|
|
3817
|
-
SubnetChangeProtection: __expectBoolean(output.SubnetChangeProtection),
|
|
3818
|
-
UpdateToken: __expectString(output.UpdateToken),
|
|
3819
|
-
};
|
|
2039
|
+
return take(output, {
|
|
2040
|
+
RuleGroupResponse: (_) => de_RuleGroupResponse(_, context),
|
|
2041
|
+
UpdateToken: __expectString,
|
|
2042
|
+
});
|
|
3820
2043
|
};
|
|
3821
2044
|
const de_UpdateTLSInspectionConfigurationResponse = (output, context) => {
|
|
3822
|
-
return {
|
|
3823
|
-
TLSInspectionConfigurationResponse:
|
|
3824
|
-
|
|
3825
|
-
: undefined,
|
|
3826
|
-
UpdateToken: __expectString(output.UpdateToken),
|
|
3827
|
-
};
|
|
3828
|
-
};
|
|
3829
|
-
const de_VariableDefinitionList = (output, context) => {
|
|
3830
|
-
const retVal = (output || [])
|
|
3831
|
-
.filter((e) => e != null)
|
|
3832
|
-
.map((entry) => {
|
|
3833
|
-
if (entry === null) {
|
|
3834
|
-
return null;
|
|
3835
|
-
}
|
|
3836
|
-
return __expectString(entry);
|
|
2045
|
+
return take(output, {
|
|
2046
|
+
TLSInspectionConfigurationResponse: (_) => de_TLSInspectionConfigurationResponse(_, context),
|
|
2047
|
+
UpdateToken: __expectString,
|
|
3837
2048
|
});
|
|
3838
|
-
return retVal;
|
|
3839
2049
|
};
|
|
3840
2050
|
const deserializeMetadata = (output) => ({
|
|
3841
2051
|
httpStatusCode: output.statusCode,
|
|
@@ -3850,6 +2060,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
3850
2060
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3851
2061
|
};
|
|
3852
2062
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2063
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
3853
2064
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
3854
2065
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3855
2066
|
const contents = {
|