@aws-sdk/client-network-firewall 3.76.0 → 3.80.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/CHANGELOG.md +31 -0
- package/README.md +7 -7
- package/dist-cjs/NetworkFirewall.js +15 -0
- package/dist-cjs/commands/UpdateFirewallEncryptionConfigurationCommand.js +36 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +37 -3
- package/dist-cjs/pagination/ListFirewallPoliciesPaginator.js +2 -1
- package/dist-cjs/pagination/ListFirewallsPaginator.js +2 -1
- package/dist-cjs/pagination/ListRuleGroupsPaginator.js +2 -1
- package/dist-cjs/pagination/ListTagsForResourcePaginator.js +2 -1
- package/dist-cjs/protocols/Aws_json1_0.js +161 -2
- package/dist-es/NetworkFirewall.js +15 -0
- package/dist-es/commands/UpdateFirewallEncryptionConfigurationCommand.js +39 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +26 -0
- package/dist-es/pagination/ListFirewallPoliciesPaginator.js +3 -2
- package/dist-es/pagination/ListFirewallsPaginator.js +3 -2
- package/dist-es/pagination/ListRuleGroupsPaginator.js +3 -2
- package/dist-es/pagination/ListTagsForResourcePaginator.js +3 -2
- package/dist-es/protocols/Aws_json1_0.js +169 -10
- package/dist-types/NetworkFirewall.d.ts +27 -20
- package/dist-types/NetworkFirewallClient.d.ts +10 -9
- package/dist-types/commands/AssociateSubnetsCommand.d.ts +1 -1
- package/dist-types/commands/CreateFirewallCommand.d.ts +3 -3
- package/dist-types/commands/CreateFirewallPolicyCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/dist-types/commands/PutResourcePolicyCommand.d.ts +2 -2
- package/dist-types/commands/TagResourceCommand.d.ts +2 -2
- package/dist-types/commands/UntagResourceCommand.d.ts +2 -2
- package/dist-types/commands/UpdateFirewallEncryptionConfigurationCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +193 -24
- package/dist-types/protocols/Aws_json1_0.d.ts +3 -0
- package/dist-types/ts3.4/NetworkFirewall.d.ts +5 -0
- package/dist-types/ts3.4/NetworkFirewallClient.d.ts +3 -2
- package/dist-types/ts3.4/commands/UpdateFirewallEncryptionConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +92 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +3 -0
- package/package.json +25 -25
|
@@ -24,6 +24,7 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
|
24
24
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
25
25
|
import { UpdateFirewallDeleteProtectionCommand, } from "./commands/UpdateFirewallDeleteProtectionCommand";
|
|
26
26
|
import { UpdateFirewallDescriptionCommand, } from "./commands/UpdateFirewallDescriptionCommand";
|
|
27
|
+
import { UpdateFirewallEncryptionConfigurationCommand, } from "./commands/UpdateFirewallEncryptionConfigurationCommand";
|
|
27
28
|
import { UpdateFirewallPolicyChangeProtectionCommand, } from "./commands/UpdateFirewallPolicyChangeProtectionCommand";
|
|
28
29
|
import { UpdateFirewallPolicyCommand, } from "./commands/UpdateFirewallPolicyCommand";
|
|
29
30
|
import { UpdateLoggingConfigurationCommand, } from "./commands/UpdateLoggingConfigurationCommand";
|
|
@@ -385,6 +386,20 @@ var NetworkFirewall = (function (_super) {
|
|
|
385
386
|
return this.send(command, optionsOrCb);
|
|
386
387
|
}
|
|
387
388
|
};
|
|
389
|
+
NetworkFirewall.prototype.updateFirewallEncryptionConfiguration = function (args, optionsOrCb, cb) {
|
|
390
|
+
var command = new UpdateFirewallEncryptionConfigurationCommand(args);
|
|
391
|
+
if (typeof optionsOrCb === "function") {
|
|
392
|
+
this.send(command, optionsOrCb);
|
|
393
|
+
}
|
|
394
|
+
else if (typeof cb === "function") {
|
|
395
|
+
if (typeof optionsOrCb !== "object")
|
|
396
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
397
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
398
|
+
}
|
|
399
|
+
else {
|
|
400
|
+
return this.send(command, optionsOrCb);
|
|
401
|
+
}
|
|
402
|
+
};
|
|
388
403
|
NetworkFirewall.prototype.updateFirewallPolicy = function (args, optionsOrCb, cb) {
|
|
389
404
|
var command = new UpdateFirewallPolicyCommand(args);
|
|
390
405
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { UpdateFirewallEncryptionConfigurationRequest, UpdateFirewallEncryptionConfigurationResponse, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_0UpdateFirewallEncryptionConfigurationCommand, serializeAws_json1_0UpdateFirewallEncryptionConfigurationCommand, } from "../protocols/Aws_json1_0";
|
|
6
|
+
var UpdateFirewallEncryptionConfigurationCommand = (function (_super) {
|
|
7
|
+
__extends(UpdateFirewallEncryptionConfigurationCommand, _super);
|
|
8
|
+
function UpdateFirewallEncryptionConfigurationCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
UpdateFirewallEncryptionConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "NetworkFirewallClient";
|
|
18
|
+
var commandName = "UpdateFirewallEncryptionConfigurationCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: UpdateFirewallEncryptionConfigurationRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: UpdateFirewallEncryptionConfigurationResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
UpdateFirewallEncryptionConfigurationCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_0UpdateFirewallEncryptionConfigurationCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
UpdateFirewallEncryptionConfigurationCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_0UpdateFirewallEncryptionConfigurationCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return UpdateFirewallEncryptionConfigurationCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { UpdateFirewallEncryptionConfigurationCommand };
|
|
@@ -23,6 +23,7 @@ export * from "./TagResourceCommand";
|
|
|
23
23
|
export * from "./UntagResourceCommand";
|
|
24
24
|
export * from "./UpdateFirewallDeleteProtectionCommand";
|
|
25
25
|
export * from "./UpdateFirewallDescriptionCommand";
|
|
26
|
+
export * from "./UpdateFirewallEncryptionConfigurationCommand";
|
|
26
27
|
export * from "./UpdateFirewallPolicyChangeProtectionCommand";
|
|
27
28
|
export * from "./UpdateFirewallPolicyCommand";
|
|
28
29
|
export * from "./UpdateLoggingConfigurationCommand";
|
|
@@ -143,6 +143,15 @@ export var ConfigurationSyncState;
|
|
|
143
143
|
ConfigurationSyncState["IN_SYNC"] = "IN_SYNC";
|
|
144
144
|
ConfigurationSyncState["PENDING"] = "PENDING";
|
|
145
145
|
})(ConfigurationSyncState || (ConfigurationSyncState = {}));
|
|
146
|
+
export var EncryptionType;
|
|
147
|
+
(function (EncryptionType) {
|
|
148
|
+
EncryptionType["AWS_OWNED_KMS_KEY"] = "AWS_OWNED_KMS_KEY";
|
|
149
|
+
EncryptionType["CUSTOMER_KMS"] = "CUSTOMER_KMS";
|
|
150
|
+
})(EncryptionType || (EncryptionType = {}));
|
|
151
|
+
export var EncryptionConfiguration;
|
|
152
|
+
(function (EncryptionConfiguration) {
|
|
153
|
+
EncryptionConfiguration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
154
|
+
})(EncryptionConfiguration || (EncryptionConfiguration = {}));
|
|
146
155
|
export var Tag;
|
|
147
156
|
(function (Tag) {
|
|
148
157
|
Tag.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -363,6 +372,10 @@ export var RuleGroup;
|
|
|
363
372
|
(function (RuleGroup) {
|
|
364
373
|
RuleGroup.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
365
374
|
})(RuleGroup || (RuleGroup = {}));
|
|
375
|
+
export var SourceMetadata;
|
|
376
|
+
(function (SourceMetadata) {
|
|
377
|
+
SourceMetadata.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
378
|
+
})(SourceMetadata || (SourceMetadata = {}));
|
|
366
379
|
export var RuleGroupType;
|
|
367
380
|
(function (RuleGroupType) {
|
|
368
381
|
RuleGroupType["STATEFUL"] = "STATEFUL";
|
|
@@ -537,6 +550,11 @@ export var ListFirewallsResponse;
|
|
|
537
550
|
(function (ListFirewallsResponse) {
|
|
538
551
|
ListFirewallsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
539
552
|
})(ListFirewallsResponse || (ListFirewallsResponse = {}));
|
|
553
|
+
export var ResourceManagedType;
|
|
554
|
+
(function (ResourceManagedType) {
|
|
555
|
+
ResourceManagedType["AWS_MANAGED_DOMAIN_LISTS"] = "AWS_MANAGED_DOMAIN_LISTS";
|
|
556
|
+
ResourceManagedType["AWS_MANAGED_THREAT_SIGNATURES"] = "AWS_MANAGED_THREAT_SIGNATURES";
|
|
557
|
+
})(ResourceManagedType || (ResourceManagedType = {}));
|
|
540
558
|
export var ResourceManagedStatus;
|
|
541
559
|
(function (ResourceManagedStatus) {
|
|
542
560
|
ResourceManagedStatus["ACCOUNT"] = "ACCOUNT";
|
|
@@ -628,6 +646,14 @@ export var UpdateFirewallDescriptionResponse;
|
|
|
628
646
|
(function (UpdateFirewallDescriptionResponse) {
|
|
629
647
|
UpdateFirewallDescriptionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
630
648
|
})(UpdateFirewallDescriptionResponse || (UpdateFirewallDescriptionResponse = {}));
|
|
649
|
+
export var UpdateFirewallEncryptionConfigurationRequest;
|
|
650
|
+
(function (UpdateFirewallEncryptionConfigurationRequest) {
|
|
651
|
+
UpdateFirewallEncryptionConfigurationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
652
|
+
})(UpdateFirewallEncryptionConfigurationRequest || (UpdateFirewallEncryptionConfigurationRequest = {}));
|
|
653
|
+
export var UpdateFirewallEncryptionConfigurationResponse;
|
|
654
|
+
(function (UpdateFirewallEncryptionConfigurationResponse) {
|
|
655
|
+
UpdateFirewallEncryptionConfigurationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
656
|
+
})(UpdateFirewallEncryptionConfigurationResponse || (UpdateFirewallEncryptionConfigurationResponse = {}));
|
|
631
657
|
export var UpdateFirewallPolicyRequest;
|
|
632
658
|
(function (UpdateFirewallPolicyRequest) {
|
|
633
659
|
UpdateFirewallPolicyRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -36,7 +36,7 @@ export function paginateListFirewallPolicies(config, input) {
|
|
|
36
36
|
additionalArguments[_i - 2] = arguments[_i];
|
|
37
37
|
}
|
|
38
38
|
return __asyncGenerator(this, arguments, function paginateListFirewallPolicies_1() {
|
|
39
|
-
var token, hasNext, page;
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
40
40
|
return __generator(this, function (_a) {
|
|
41
41
|
switch (_a.label) {
|
|
42
42
|
case 0:
|
|
@@ -63,8 +63,9 @@ export function paginateListFirewallPolicies(config, input) {
|
|
|
63
63
|
case 7: return [4, _a.sent()];
|
|
64
64
|
case 8:
|
|
65
65
|
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
66
67
|
token = page.NextToken;
|
|
67
|
-
hasNext = !!token;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
68
69
|
return [3, 1];
|
|
69
70
|
case 9: return [4, __await(undefined)];
|
|
70
71
|
case 10: return [2, _a.sent()];
|
|
@@ -36,7 +36,7 @@ export function paginateListFirewalls(config, input) {
|
|
|
36
36
|
additionalArguments[_i - 2] = arguments[_i];
|
|
37
37
|
}
|
|
38
38
|
return __asyncGenerator(this, arguments, function paginateListFirewalls_1() {
|
|
39
|
-
var token, hasNext, page;
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
40
40
|
return __generator(this, function (_a) {
|
|
41
41
|
switch (_a.label) {
|
|
42
42
|
case 0:
|
|
@@ -63,8 +63,9 @@ export function paginateListFirewalls(config, input) {
|
|
|
63
63
|
case 7: return [4, _a.sent()];
|
|
64
64
|
case 8:
|
|
65
65
|
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
66
67
|
token = page.NextToken;
|
|
67
|
-
hasNext = !!token;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
68
69
|
return [3, 1];
|
|
69
70
|
case 9: return [4, __await(undefined)];
|
|
70
71
|
case 10: return [2, _a.sent()];
|
|
@@ -36,7 +36,7 @@ export function paginateListRuleGroups(config, input) {
|
|
|
36
36
|
additionalArguments[_i - 2] = arguments[_i];
|
|
37
37
|
}
|
|
38
38
|
return __asyncGenerator(this, arguments, function paginateListRuleGroups_1() {
|
|
39
|
-
var token, hasNext, page;
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
40
40
|
return __generator(this, function (_a) {
|
|
41
41
|
switch (_a.label) {
|
|
42
42
|
case 0:
|
|
@@ -63,8 +63,9 @@ export function paginateListRuleGroups(config, input) {
|
|
|
63
63
|
case 7: return [4, _a.sent()];
|
|
64
64
|
case 8:
|
|
65
65
|
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
66
67
|
token = page.NextToken;
|
|
67
|
-
hasNext = !!token;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
68
69
|
return [3, 1];
|
|
69
70
|
case 9: return [4, __await(undefined)];
|
|
70
71
|
case 10: return [2, _a.sent()];
|
|
@@ -36,7 +36,7 @@ export function paginateListTagsForResource(config, input) {
|
|
|
36
36
|
additionalArguments[_i - 2] = arguments[_i];
|
|
37
37
|
}
|
|
38
38
|
return __asyncGenerator(this, arguments, function paginateListTagsForResource_1() {
|
|
39
|
-
var token, hasNext, page;
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
40
40
|
return __generator(this, function (_a) {
|
|
41
41
|
switch (_a.label) {
|
|
42
42
|
case 0:
|
|
@@ -63,8 +63,9 @@ export function paginateListTagsForResource(config, input) {
|
|
|
63
63
|
case 7: return [4, _a.sent()];
|
|
64
64
|
case 8:
|
|
65
65
|
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
66
67
|
token = page.NextToken;
|
|
67
|
-
hasNext = !!token;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
68
69
|
return [3, 1];
|
|
69
70
|
case 9: return [4, __await(undefined)];
|
|
70
71
|
case 10: return [2, _a.sent()];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectString as __expectString, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { InsufficientCapacityException, InternalServerError, InvalidOperationException, InvalidRequestException, InvalidResourcePolicyException, InvalidTokenException, LimitExceededException, LogDestinationPermissionException, ResourceNotFoundException, ResourceOwnerCheckException, ThrottlingException, UnsupportedOperationException, } from "../models/models_0";
|
|
5
5
|
import { NetworkFirewallServiceException as __BaseException } from "../models/NetworkFirewallServiceException";
|
|
6
6
|
export var serializeAws_json1_0AssociateFirewallPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -278,6 +278,17 @@ export var serializeAws_json1_0UpdateFirewallDescriptionCommand = function (inpu
|
|
|
278
278
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
279
279
|
});
|
|
280
280
|
}); };
|
|
281
|
+
export var serializeAws_json1_0UpdateFirewallEncryptionConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
282
|
+
var headers, body;
|
|
283
|
+
return __generator(this, function (_a) {
|
|
284
|
+
headers = {
|
|
285
|
+
"content-type": "application/x-amz-json-1.0",
|
|
286
|
+
"x-amz-target": "NetworkFirewall_20201112.UpdateFirewallEncryptionConfiguration",
|
|
287
|
+
};
|
|
288
|
+
body = JSON.stringify(serializeAws_json1_0UpdateFirewallEncryptionConfigurationRequest(input, context));
|
|
289
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
290
|
+
});
|
|
291
|
+
}); };
|
|
281
292
|
export var serializeAws_json1_0UpdateFirewallPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
282
293
|
var headers, body;
|
|
283
294
|
return __generator(this, function (_a) {
|
|
@@ -1959,6 +1970,76 @@ var deserializeAws_json1_0UpdateFirewallDescriptionCommandError = function (outp
|
|
|
1959
1970
|
}
|
|
1960
1971
|
});
|
|
1961
1972
|
}); };
|
|
1973
|
+
export var deserializeAws_json1_0UpdateFirewallEncryptionConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1974
|
+
var data, contents, response;
|
|
1975
|
+
return __generator(this, function (_a) {
|
|
1976
|
+
switch (_a.label) {
|
|
1977
|
+
case 0:
|
|
1978
|
+
if (output.statusCode >= 300) {
|
|
1979
|
+
return [2, deserializeAws_json1_0UpdateFirewallEncryptionConfigurationCommandError(output, context)];
|
|
1980
|
+
}
|
|
1981
|
+
return [4, parseBody(output.body, context)];
|
|
1982
|
+
case 1:
|
|
1983
|
+
data = _a.sent();
|
|
1984
|
+
contents = {};
|
|
1985
|
+
contents = deserializeAws_json1_0UpdateFirewallEncryptionConfigurationResponse(data, context);
|
|
1986
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1987
|
+
return [2, Promise.resolve(response)];
|
|
1988
|
+
}
|
|
1989
|
+
});
|
|
1990
|
+
}); };
|
|
1991
|
+
var deserializeAws_json1_0UpdateFirewallEncryptionConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1992
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1993
|
+
var _c;
|
|
1994
|
+
return __generator(this, function (_d) {
|
|
1995
|
+
switch (_d.label) {
|
|
1996
|
+
case 0:
|
|
1997
|
+
_a = [__assign({}, output)];
|
|
1998
|
+
_c = {};
|
|
1999
|
+
return [4, parseBody(output.body, context)];
|
|
2000
|
+
case 1:
|
|
2001
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2002
|
+
errorCode = "UnknownError";
|
|
2003
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2004
|
+
_b = errorCode;
|
|
2005
|
+
switch (_b) {
|
|
2006
|
+
case "InternalServerError": return [3, 2];
|
|
2007
|
+
case "com.amazonaws.networkfirewall#InternalServerError": return [3, 2];
|
|
2008
|
+
case "InvalidRequestException": return [3, 4];
|
|
2009
|
+
case "com.amazonaws.networkfirewall#InvalidRequestException": return [3, 4];
|
|
2010
|
+
case "InvalidTokenException": return [3, 6];
|
|
2011
|
+
case "com.amazonaws.networkfirewall#InvalidTokenException": return [3, 6];
|
|
2012
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
2013
|
+
case "com.amazonaws.networkfirewall#ResourceNotFoundException": return [3, 8];
|
|
2014
|
+
case "ResourceOwnerCheckException": return [3, 10];
|
|
2015
|
+
case "com.amazonaws.networkfirewall#ResourceOwnerCheckException": return [3, 10];
|
|
2016
|
+
case "ThrottlingException": return [3, 12];
|
|
2017
|
+
case "com.amazonaws.networkfirewall#ThrottlingException": return [3, 12];
|
|
2018
|
+
}
|
|
2019
|
+
return [3, 14];
|
|
2020
|
+
case 2: return [4, deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)];
|
|
2021
|
+
case 3: throw _d.sent();
|
|
2022
|
+
case 4: return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
2023
|
+
case 5: throw _d.sent();
|
|
2024
|
+
case 6: return [4, deserializeAws_json1_0InvalidTokenExceptionResponse(parsedOutput, context)];
|
|
2025
|
+
case 7: throw _d.sent();
|
|
2026
|
+
case 8: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2027
|
+
case 9: throw _d.sent();
|
|
2028
|
+
case 10: return [4, deserializeAws_json1_0ResourceOwnerCheckExceptionResponse(parsedOutput, context)];
|
|
2029
|
+
case 11: throw _d.sent();
|
|
2030
|
+
case 12: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2031
|
+
case 13: throw _d.sent();
|
|
2032
|
+
case 14:
|
|
2033
|
+
parsedBody = parsedOutput.body;
|
|
2034
|
+
response = new __BaseException({
|
|
2035
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2036
|
+
$fault: "client",
|
|
2037
|
+
$metadata: deserializeMetadata(output),
|
|
2038
|
+
});
|
|
2039
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2040
|
+
}
|
|
2041
|
+
});
|
|
2042
|
+
}); };
|
|
1962
2043
|
export var deserializeAws_json1_0UpdateFirewallPolicyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1963
2044
|
var data, contents, response;
|
|
1964
2045
|
return __generator(this, function (_a) {
|
|
@@ -2450,15 +2531,21 @@ var serializeAws_json1_0AzSubnets = function (input, context) {
|
|
|
2450
2531
|
});
|
|
2451
2532
|
};
|
|
2452
2533
|
var serializeAws_json1_0CreateFirewallPolicyRequest = function (input, context) {
|
|
2453
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.DryRun !== undefined && input.DryRun !== null && { DryRun: input.DryRun })), (input.
|
|
2534
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.DryRun !== undefined && input.DryRun !== null && { DryRun: input.DryRun })), (input.EncryptionConfiguration !== undefined &&
|
|
2535
|
+
input.EncryptionConfiguration !== null && {
|
|
2536
|
+
EncryptionConfiguration: serializeAws_json1_0EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
2537
|
+
})), (input.FirewallPolicy !== undefined &&
|
|
2454
2538
|
input.FirewallPolicy !== null && {
|
|
2455
2539
|
FirewallPolicy: serializeAws_json1_0FirewallPolicy(input.FirewallPolicy, context),
|
|
2456
2540
|
})), (input.FirewallPolicyName !== undefined &&
|
|
2457
2541
|
input.FirewallPolicyName !== null && { FirewallPolicyName: input.FirewallPolicyName })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }));
|
|
2458
2542
|
};
|
|
2459
2543
|
var serializeAws_json1_0CreateFirewallRequest = function (input, context) {
|
|
2460
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DeleteProtection !== undefined &&
|
|
2461
|
-
input.DeleteProtection !== null && { DeleteProtection: input.DeleteProtection })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.
|
|
2544
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DeleteProtection !== undefined &&
|
|
2545
|
+
input.DeleteProtection !== null && { DeleteProtection: input.DeleteProtection })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.EncryptionConfiguration !== undefined &&
|
|
2546
|
+
input.EncryptionConfiguration !== null && {
|
|
2547
|
+
EncryptionConfiguration: serializeAws_json1_0EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
2548
|
+
})), (input.FirewallName !== undefined && input.FirewallName !== null && { FirewallName: input.FirewallName })), (input.FirewallPolicyArn !== undefined &&
|
|
2462
2549
|
input.FirewallPolicyArn !== null && { FirewallPolicyArn: input.FirewallPolicyArn })), (input.FirewallPolicyChangeProtection !== undefined &&
|
|
2463
2550
|
input.FirewallPolicyChangeProtection !== null && {
|
|
2464
2551
|
FirewallPolicyChangeProtection: input.FirewallPolicyChangeProtection,
|
|
@@ -2469,8 +2556,14 @@ var serializeAws_json1_0CreateFirewallRequest = function (input, context) {
|
|
|
2469
2556
|
})), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_0TagList(input.Tags, context) })), (input.VpcId !== undefined && input.VpcId !== null && { VpcId: input.VpcId }));
|
|
2470
2557
|
};
|
|
2471
2558
|
var serializeAws_json1_0CreateRuleGroupRequest = function (input, context) {
|
|
2472
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Capacity !== undefined && input.Capacity !== null && { Capacity: input.Capacity })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.DryRun !== undefined && input.DryRun !== null && { DryRun: input.DryRun })), (input.
|
|
2473
|
-
input.
|
|
2559
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Capacity !== undefined && input.Capacity !== null && { Capacity: input.Capacity })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.DryRun !== undefined && input.DryRun !== null && { DryRun: input.DryRun })), (input.EncryptionConfiguration !== undefined &&
|
|
2560
|
+
input.EncryptionConfiguration !== null && {
|
|
2561
|
+
EncryptionConfiguration: serializeAws_json1_0EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
2562
|
+
})), (input.RuleGroup !== undefined &&
|
|
2563
|
+
input.RuleGroup !== null && { RuleGroup: serializeAws_json1_0RuleGroup(input.RuleGroup, context) })), (input.RuleGroupName !== undefined && input.RuleGroupName !== null && { RuleGroupName: input.RuleGroupName })), (input.Rules !== undefined && input.Rules !== null && { Rules: input.Rules })), (input.SourceMetadata !== undefined &&
|
|
2564
|
+
input.SourceMetadata !== null && {
|
|
2565
|
+
SourceMetadata: serializeAws_json1_0SourceMetadata(input.SourceMetadata, context),
|
|
2566
|
+
})), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_0TagList(input.Tags, context) })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
|
|
2474
2567
|
};
|
|
2475
2568
|
var serializeAws_json1_0CustomAction = function (input, context) {
|
|
2476
2569
|
return __assign(__assign({}, (input.ActionDefinition !== undefined &&
|
|
@@ -2539,6 +2632,9 @@ var serializeAws_json1_0DisassociateSubnetsRequest = function (input, context) {
|
|
|
2539
2632
|
return __assign(__assign(__assign(__assign({}, (input.FirewallArn !== undefined && input.FirewallArn !== null && { FirewallArn: input.FirewallArn })), (input.FirewallName !== undefined && input.FirewallName !== null && { FirewallName: input.FirewallName })), (input.SubnetIds !== undefined &&
|
|
2540
2633
|
input.SubnetIds !== null && { SubnetIds: serializeAws_json1_0AzSubnets(input.SubnetIds, context) })), (input.UpdateToken !== undefined && input.UpdateToken !== null && { UpdateToken: input.UpdateToken }));
|
|
2541
2634
|
};
|
|
2635
|
+
var serializeAws_json1_0EncryptionConfiguration = function (input, context) {
|
|
2636
|
+
return __assign(__assign({}, (input.KeyId !== undefined && input.KeyId !== null && { KeyId: input.KeyId })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
|
|
2637
|
+
};
|
|
2542
2638
|
var serializeAws_json1_0FirewallPolicy = function (input, context) {
|
|
2543
2639
|
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.StatefulDefaultActions !== undefined &&
|
|
2544
2640
|
input.StatefulDefaultActions !== null && {
|
|
@@ -2601,7 +2697,7 @@ var serializeAws_json1_0ListFirewallsRequest = function (input, context) {
|
|
|
2601
2697
|
input.VpcIds !== null && { VpcIds: serializeAws_json1_0VpcIds(input.VpcIds, context) }));
|
|
2602
2698
|
};
|
|
2603
2699
|
var serializeAws_json1_0ListRuleGroupsRequest = function (input, context) {
|
|
2604
|
-
return __assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }));
|
|
2700
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.ManagedType !== undefined && input.ManagedType !== null && { ManagedType: input.ManagedType })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
|
|
2605
2701
|
};
|
|
2606
2702
|
var serializeAws_json1_0ListTagsForResourceRequest = function (input, context) {
|
|
2607
2703
|
return __assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }));
|
|
@@ -2770,6 +2866,10 @@ var serializeAws_json1_0Settings = function (input, context) {
|
|
|
2770
2866
|
return entry;
|
|
2771
2867
|
});
|
|
2772
2868
|
};
|
|
2869
|
+
var serializeAws_json1_0SourceMetadata = function (input, context) {
|
|
2870
|
+
return __assign(__assign({}, (input.SourceArn !== undefined && input.SourceArn !== null && { SourceArn: input.SourceArn })), (input.SourceUpdateToken !== undefined &&
|
|
2871
|
+
input.SourceUpdateToken !== null && { SourceUpdateToken: input.SourceUpdateToken }));
|
|
2872
|
+
};
|
|
2773
2873
|
var serializeAws_json1_0StatefulActions = function (input, context) {
|
|
2774
2874
|
return input
|
|
2775
2875
|
.filter(function (e) { return e != null; })
|
|
@@ -2941,6 +3041,12 @@ var serializeAws_json1_0UpdateFirewallDeleteProtectionRequest = function (input,
|
|
|
2941
3041
|
var serializeAws_json1_0UpdateFirewallDescriptionRequest = function (input, context) {
|
|
2942
3042
|
return __assign(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.FirewallArn !== undefined && input.FirewallArn !== null && { FirewallArn: input.FirewallArn })), (input.FirewallName !== undefined && input.FirewallName !== null && { FirewallName: input.FirewallName })), (input.UpdateToken !== undefined && input.UpdateToken !== null && { UpdateToken: input.UpdateToken }));
|
|
2943
3043
|
};
|
|
3044
|
+
var serializeAws_json1_0UpdateFirewallEncryptionConfigurationRequest = function (input, context) {
|
|
3045
|
+
return __assign(__assign(__assign(__assign({}, (input.EncryptionConfiguration !== undefined &&
|
|
3046
|
+
input.EncryptionConfiguration !== null && {
|
|
3047
|
+
EncryptionConfiguration: serializeAws_json1_0EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
3048
|
+
})), (input.FirewallArn !== undefined && input.FirewallArn !== null && { FirewallArn: input.FirewallArn })), (input.FirewallName !== undefined && input.FirewallName !== null && { FirewallName: input.FirewallName })), (input.UpdateToken !== undefined && input.UpdateToken !== null && { UpdateToken: input.UpdateToken }));
|
|
3049
|
+
};
|
|
2944
3050
|
var serializeAws_json1_0UpdateFirewallPolicyChangeProtectionRequest = function (input, context) {
|
|
2945
3051
|
return __assign(__assign(__assign(__assign({}, (input.FirewallArn !== undefined && input.FirewallArn !== null && { FirewallArn: input.FirewallArn })), (input.FirewallName !== undefined && input.FirewallName !== null && { FirewallName: input.FirewallName })), (input.FirewallPolicyChangeProtection !== undefined &&
|
|
2946
3052
|
input.FirewallPolicyChangeProtection !== null && {
|
|
@@ -2948,7 +3054,10 @@ var serializeAws_json1_0UpdateFirewallPolicyChangeProtectionRequest = function (
|
|
|
2948
3054
|
})), (input.UpdateToken !== undefined && input.UpdateToken !== null && { UpdateToken: input.UpdateToken }));
|
|
2949
3055
|
};
|
|
2950
3056
|
var serializeAws_json1_0UpdateFirewallPolicyRequest = function (input, context) {
|
|
2951
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.DryRun !== undefined && input.DryRun !== null && { DryRun: input.DryRun })), (input.
|
|
3057
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.DryRun !== undefined && input.DryRun !== null && { DryRun: input.DryRun })), (input.EncryptionConfiguration !== undefined &&
|
|
3058
|
+
input.EncryptionConfiguration !== null && {
|
|
3059
|
+
EncryptionConfiguration: serializeAws_json1_0EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
3060
|
+
})), (input.FirewallPolicy !== undefined &&
|
|
2952
3061
|
input.FirewallPolicy !== null && {
|
|
2953
3062
|
FirewallPolicy: serializeAws_json1_0FirewallPolicy(input.FirewallPolicy, context),
|
|
2954
3063
|
})), (input.FirewallPolicyArn !== undefined &&
|
|
@@ -2962,8 +3071,14 @@ var serializeAws_json1_0UpdateLoggingConfigurationRequest = function (input, con
|
|
|
2962
3071
|
}));
|
|
2963
3072
|
};
|
|
2964
3073
|
var serializeAws_json1_0UpdateRuleGroupRequest = function (input, context) {
|
|
2965
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.DryRun !== undefined && input.DryRun !== null && { DryRun: input.DryRun })), (input.
|
|
2966
|
-
input.
|
|
3074
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.DryRun !== undefined && input.DryRun !== null && { DryRun: input.DryRun })), (input.EncryptionConfiguration !== undefined &&
|
|
3075
|
+
input.EncryptionConfiguration !== null && {
|
|
3076
|
+
EncryptionConfiguration: serializeAws_json1_0EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
3077
|
+
})), (input.RuleGroup !== undefined &&
|
|
3078
|
+
input.RuleGroup !== null && { RuleGroup: serializeAws_json1_0RuleGroup(input.RuleGroup, context) })), (input.RuleGroupArn !== undefined && input.RuleGroupArn !== null && { RuleGroupArn: input.RuleGroupArn })), (input.RuleGroupName !== undefined && input.RuleGroupName !== null && { RuleGroupName: input.RuleGroupName })), (input.Rules !== undefined && input.Rules !== null && { Rules: input.Rules })), (input.SourceMetadata !== undefined &&
|
|
3079
|
+
input.SourceMetadata !== null && {
|
|
3080
|
+
SourceMetadata: serializeAws_json1_0SourceMetadata(input.SourceMetadata, context),
|
|
3081
|
+
})), (input.Type !== undefined && input.Type !== null && { Type: input.Type })), (input.UpdateToken !== undefined && input.UpdateToken !== null && { UpdateToken: input.UpdateToken }));
|
|
2967
3082
|
};
|
|
2968
3083
|
var serializeAws_json1_0UpdateSubnetChangeProtectionRequest = function (input, context) {
|
|
2969
3084
|
return __assign(__assign(__assign(__assign({}, (input.FirewallArn !== undefined && input.FirewallArn !== null && { FirewallArn: input.FirewallArn })), (input.FirewallName !== undefined && input.FirewallName !== null && { FirewallName: input.FirewallName })), (input.SubnetChangeProtection !== undefined &&
|
|
@@ -3148,6 +3263,9 @@ var deserializeAws_json1_0DescribeRuleGroupMetadataResponse = function (output,
|
|
|
3148
3263
|
return {
|
|
3149
3264
|
Capacity: __expectInt32(output.Capacity),
|
|
3150
3265
|
Description: __expectString(output.Description),
|
|
3266
|
+
LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
|
|
3267
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
|
|
3268
|
+
: undefined,
|
|
3151
3269
|
RuleGroupArn: __expectString(output.RuleGroupArn),
|
|
3152
3270
|
RuleGroupName: __expectString(output.RuleGroupName),
|
|
3153
3271
|
StatefulRuleOptions: output.StatefulRuleOptions !== undefined && output.StatefulRuleOptions !== null
|
|
@@ -3193,10 +3311,19 @@ var deserializeAws_json1_0DisassociateSubnetsResponse = function (output, contex
|
|
|
3193
3311
|
UpdateToken: __expectString(output.UpdateToken),
|
|
3194
3312
|
};
|
|
3195
3313
|
};
|
|
3314
|
+
var deserializeAws_json1_0EncryptionConfiguration = function (output, context) {
|
|
3315
|
+
return {
|
|
3316
|
+
KeyId: __expectString(output.KeyId),
|
|
3317
|
+
Type: __expectString(output.Type),
|
|
3318
|
+
};
|
|
3319
|
+
};
|
|
3196
3320
|
var deserializeAws_json1_0Firewall = function (output, context) {
|
|
3197
3321
|
return {
|
|
3198
3322
|
DeleteProtection: __expectBoolean(output.DeleteProtection),
|
|
3199
3323
|
Description: __expectString(output.Description),
|
|
3324
|
+
EncryptionConfiguration: output.EncryptionConfiguration !== undefined && output.EncryptionConfiguration !== null
|
|
3325
|
+
? deserializeAws_json1_0EncryptionConfiguration(output.EncryptionConfiguration, context)
|
|
3326
|
+
: undefined,
|
|
3200
3327
|
FirewallArn: __expectString(output.FirewallArn),
|
|
3201
3328
|
FirewallId: __expectString(output.FirewallId),
|
|
3202
3329
|
FirewallName: __expectString(output.FirewallName),
|
|
@@ -3265,10 +3392,16 @@ var deserializeAws_json1_0FirewallPolicyResponse = function (output, context) {
|
|
|
3265
3392
|
ConsumedStatefulRuleCapacity: __expectInt32(output.ConsumedStatefulRuleCapacity),
|
|
3266
3393
|
ConsumedStatelessRuleCapacity: __expectInt32(output.ConsumedStatelessRuleCapacity),
|
|
3267
3394
|
Description: __expectString(output.Description),
|
|
3395
|
+
EncryptionConfiguration: output.EncryptionConfiguration !== undefined && output.EncryptionConfiguration !== null
|
|
3396
|
+
? deserializeAws_json1_0EncryptionConfiguration(output.EncryptionConfiguration, context)
|
|
3397
|
+
: undefined,
|
|
3268
3398
|
FirewallPolicyArn: __expectString(output.FirewallPolicyArn),
|
|
3269
3399
|
FirewallPolicyId: __expectString(output.FirewallPolicyId),
|
|
3270
3400
|
FirewallPolicyName: __expectString(output.FirewallPolicyName),
|
|
3271
3401
|
FirewallPolicyStatus: __expectString(output.FirewallPolicyStatus),
|
|
3402
|
+
LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
|
|
3403
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
|
|
3404
|
+
: undefined,
|
|
3272
3405
|
NumberOfAssociations: __expectInt32(output.NumberOfAssociations),
|
|
3273
3406
|
Tags: output.Tags !== undefined && output.Tags !== null
|
|
3274
3407
|
? deserializeAws_json1_0TagList(output.Tags, context)
|
|
@@ -3569,11 +3702,21 @@ var deserializeAws_json1_0RuleGroupResponse = function (output, context) {
|
|
|
3569
3702
|
Capacity: __expectInt32(output.Capacity),
|
|
3570
3703
|
ConsumedCapacity: __expectInt32(output.ConsumedCapacity),
|
|
3571
3704
|
Description: __expectString(output.Description),
|
|
3705
|
+
EncryptionConfiguration: output.EncryptionConfiguration !== undefined && output.EncryptionConfiguration !== null
|
|
3706
|
+
? deserializeAws_json1_0EncryptionConfiguration(output.EncryptionConfiguration, context)
|
|
3707
|
+
: undefined,
|
|
3708
|
+
LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
|
|
3709
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
|
|
3710
|
+
: undefined,
|
|
3572
3711
|
NumberOfAssociations: __expectInt32(output.NumberOfAssociations),
|
|
3573
3712
|
RuleGroupArn: __expectString(output.RuleGroupArn),
|
|
3574
3713
|
RuleGroupId: __expectString(output.RuleGroupId),
|
|
3575
3714
|
RuleGroupName: __expectString(output.RuleGroupName),
|
|
3576
3715
|
RuleGroupStatus: __expectString(output.RuleGroupStatus),
|
|
3716
|
+
SnsTopic: __expectString(output.SnsTopic),
|
|
3717
|
+
SourceMetadata: output.SourceMetadata !== undefined && output.SourceMetadata !== null
|
|
3718
|
+
? deserializeAws_json1_0SourceMetadata(output.SourceMetadata, context)
|
|
3719
|
+
: undefined,
|
|
3577
3720
|
Tags: output.Tags !== undefined && output.Tags !== null
|
|
3578
3721
|
? deserializeAws_json1_0TagList(output.Tags, context)
|
|
3579
3722
|
: undefined,
|
|
@@ -3667,6 +3810,12 @@ var deserializeAws_json1_0Settings = function (output, context) {
|
|
|
3667
3810
|
});
|
|
3668
3811
|
return retVal;
|
|
3669
3812
|
};
|
|
3813
|
+
var deserializeAws_json1_0SourceMetadata = function (output, context) {
|
|
3814
|
+
return {
|
|
3815
|
+
SourceArn: __expectString(output.SourceArn),
|
|
3816
|
+
SourceUpdateToken: __expectString(output.SourceUpdateToken),
|
|
3817
|
+
};
|
|
3818
|
+
};
|
|
3670
3819
|
var deserializeAws_json1_0StatefulActions = function (output, context) {
|
|
3671
3820
|
var retVal = (output || [])
|
|
3672
3821
|
.filter(function (e) { return e != null; })
|
|
@@ -3919,6 +4068,16 @@ var deserializeAws_json1_0UpdateFirewallDescriptionResponse = function (output,
|
|
|
3919
4068
|
UpdateToken: __expectString(output.UpdateToken),
|
|
3920
4069
|
};
|
|
3921
4070
|
};
|
|
4071
|
+
var deserializeAws_json1_0UpdateFirewallEncryptionConfigurationResponse = function (output, context) {
|
|
4072
|
+
return {
|
|
4073
|
+
EncryptionConfiguration: output.EncryptionConfiguration !== undefined && output.EncryptionConfiguration !== null
|
|
4074
|
+
? deserializeAws_json1_0EncryptionConfiguration(output.EncryptionConfiguration, context)
|
|
4075
|
+
: undefined,
|
|
4076
|
+
FirewallArn: __expectString(output.FirewallArn),
|
|
4077
|
+
FirewallName: __expectString(output.FirewallName),
|
|
4078
|
+
UpdateToken: __expectString(output.UpdateToken),
|
|
4079
|
+
};
|
|
4080
|
+
};
|
|
3922
4081
|
var deserializeAws_json1_0UpdateFirewallPolicyChangeProtectionResponse = function (output, context) {
|
|
3923
4082
|
return {
|
|
3924
4083
|
FirewallArn: __expectString(output.FirewallArn),
|