@aws-sdk/client-network-firewall 3.180.0 → 3.183.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 +20 -0
- package/dist-cjs/protocols/Aws_json1_0.js +37 -31
- package/dist-es/NetworkFirewall.js +126 -133
- package/dist-es/NetworkFirewallClient.js +22 -28
- package/dist-es/commands/AssociateFirewallPolicyCommand.js +21 -28
- package/dist-es/commands/AssociateSubnetsCommand.js +21 -28
- package/dist-es/commands/CreateFirewallCommand.js +21 -28
- package/dist-es/commands/CreateFirewallPolicyCommand.js +21 -28
- package/dist-es/commands/CreateRuleGroupCommand.js +21 -28
- package/dist-es/commands/DeleteFirewallCommand.js +21 -28
- package/dist-es/commands/DeleteFirewallPolicyCommand.js +21 -28
- package/dist-es/commands/DeleteResourcePolicyCommand.js +21 -28
- package/dist-es/commands/DeleteRuleGroupCommand.js +21 -28
- package/dist-es/commands/DescribeFirewallCommand.js +21 -28
- package/dist-es/commands/DescribeFirewallPolicyCommand.js +21 -28
- package/dist-es/commands/DescribeLoggingConfigurationCommand.js +21 -28
- package/dist-es/commands/DescribeResourcePolicyCommand.js +21 -28
- package/dist-es/commands/DescribeRuleGroupCommand.js +21 -28
- package/dist-es/commands/DescribeRuleGroupMetadataCommand.js +21 -28
- package/dist-es/commands/DisassociateSubnetsCommand.js +21 -28
- package/dist-es/commands/ListFirewallPoliciesCommand.js +21 -28
- package/dist-es/commands/ListFirewallsCommand.js +21 -28
- package/dist-es/commands/ListRuleGroupsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/PutResourcePolicyCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateFirewallDeleteProtectionCommand.js +21 -28
- package/dist-es/commands/UpdateFirewallDescriptionCommand.js +21 -28
- package/dist-es/commands/UpdateFirewallEncryptionConfigurationCommand.js +21 -28
- package/dist-es/commands/UpdateFirewallPolicyChangeProtectionCommand.js +21 -28
- package/dist-es/commands/UpdateFirewallPolicyCommand.js +21 -28
- package/dist-es/commands/UpdateLoggingConfigurationCommand.js +21 -28
- package/dist-es/commands/UpdateRuleGroupCommand.js +21 -28
- package/dist-es/commands/UpdateSubnetChangeProtectionCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/NetworkFirewallServiceException.js +5 -10
- package/dist-es/models/models_0.js +471 -254
- package/dist-es/pagination/ListFirewallPoliciesPaginator.js +25 -68
- package/dist-es/pagination/ListFirewallsPaginator.js +25 -68
- package/dist-es/pagination/ListRuleGroupsPaginator.js +25 -68
- package/dist-es/pagination/ListTagsForResourcePaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_0.js +2607 -3090
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-network-firewall
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
20
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-network-firewall
|
|
@@ -333,7 +333,7 @@ exports.deserializeAws_json1_0AssociateFirewallPolicyCommand = deserializeAws_js
|
|
|
333
333
|
const deserializeAws_json1_0AssociateFirewallPolicyCommandError = async (output, context) => {
|
|
334
334
|
const parsedOutput = {
|
|
335
335
|
...output,
|
|
336
|
-
body: await
|
|
336
|
+
body: await parseErrorBody(output.body, context),
|
|
337
337
|
};
|
|
338
338
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
339
339
|
switch (errorCode) {
|
|
@@ -382,7 +382,7 @@ exports.deserializeAws_json1_0AssociateSubnetsCommand = deserializeAws_json1_0As
|
|
|
382
382
|
const deserializeAws_json1_0AssociateSubnetsCommandError = async (output, context) => {
|
|
383
383
|
const parsedOutput = {
|
|
384
384
|
...output,
|
|
385
|
-
body: await
|
|
385
|
+
body: await parseErrorBody(output.body, context),
|
|
386
386
|
};
|
|
387
387
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
388
388
|
switch (errorCode) {
|
|
@@ -434,7 +434,7 @@ exports.deserializeAws_json1_0CreateFirewallCommand = deserializeAws_json1_0Crea
|
|
|
434
434
|
const deserializeAws_json1_0CreateFirewallCommandError = async (output, context) => {
|
|
435
435
|
const parsedOutput = {
|
|
436
436
|
...output,
|
|
437
|
-
body: await
|
|
437
|
+
body: await parseErrorBody(output.body, context),
|
|
438
438
|
};
|
|
439
439
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
440
440
|
switch (errorCode) {
|
|
@@ -483,7 +483,7 @@ exports.deserializeAws_json1_0CreateFirewallPolicyCommand = deserializeAws_json1
|
|
|
483
483
|
const deserializeAws_json1_0CreateFirewallPolicyCommandError = async (output, context) => {
|
|
484
484
|
const parsedOutput = {
|
|
485
485
|
...output,
|
|
486
|
-
body: await
|
|
486
|
+
body: await parseErrorBody(output.body, context),
|
|
487
487
|
};
|
|
488
488
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
489
489
|
switch (errorCode) {
|
|
@@ -529,7 +529,7 @@ exports.deserializeAws_json1_0CreateRuleGroupCommand = deserializeAws_json1_0Cre
|
|
|
529
529
|
const deserializeAws_json1_0CreateRuleGroupCommandError = async (output, context) => {
|
|
530
530
|
const parsedOutput = {
|
|
531
531
|
...output,
|
|
532
|
-
body: await
|
|
532
|
+
body: await parseErrorBody(output.body, context),
|
|
533
533
|
};
|
|
534
534
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
535
535
|
switch (errorCode) {
|
|
@@ -575,7 +575,7 @@ exports.deserializeAws_json1_0DeleteFirewallCommand = deserializeAws_json1_0Dele
|
|
|
575
575
|
const deserializeAws_json1_0DeleteFirewallCommandError = async (output, context) => {
|
|
576
576
|
const parsedOutput = {
|
|
577
577
|
...output,
|
|
578
|
-
body: await
|
|
578
|
+
body: await parseErrorBody(output.body, context),
|
|
579
579
|
};
|
|
580
580
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
581
581
|
switch (errorCode) {
|
|
@@ -624,7 +624,7 @@ exports.deserializeAws_json1_0DeleteFirewallPolicyCommand = deserializeAws_json1
|
|
|
624
624
|
const deserializeAws_json1_0DeleteFirewallPolicyCommandError = async (output, context) => {
|
|
625
625
|
const parsedOutput = {
|
|
626
626
|
...output,
|
|
627
|
-
body: await
|
|
627
|
+
body: await parseErrorBody(output.body, context),
|
|
628
628
|
};
|
|
629
629
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
630
630
|
switch (errorCode) {
|
|
@@ -673,7 +673,7 @@ exports.deserializeAws_json1_0DeleteResourcePolicyCommand = deserializeAws_json1
|
|
|
673
673
|
const deserializeAws_json1_0DeleteResourcePolicyCommandError = async (output, context) => {
|
|
674
674
|
const parsedOutput = {
|
|
675
675
|
...output,
|
|
676
|
-
body: await
|
|
676
|
+
body: await parseErrorBody(output.body, context),
|
|
677
677
|
};
|
|
678
678
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
679
679
|
switch (errorCode) {
|
|
@@ -719,7 +719,7 @@ exports.deserializeAws_json1_0DeleteRuleGroupCommand = deserializeAws_json1_0Del
|
|
|
719
719
|
const deserializeAws_json1_0DeleteRuleGroupCommandError = async (output, context) => {
|
|
720
720
|
const parsedOutput = {
|
|
721
721
|
...output,
|
|
722
|
-
body: await
|
|
722
|
+
body: await parseErrorBody(output.body, context),
|
|
723
723
|
};
|
|
724
724
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
725
725
|
switch (errorCode) {
|
|
@@ -768,7 +768,7 @@ exports.deserializeAws_json1_0DescribeFirewallCommand = deserializeAws_json1_0De
|
|
|
768
768
|
const deserializeAws_json1_0DescribeFirewallCommandError = async (output, context) => {
|
|
769
769
|
const parsedOutput = {
|
|
770
770
|
...output,
|
|
771
|
-
body: await
|
|
771
|
+
body: await parseErrorBody(output.body, context),
|
|
772
772
|
};
|
|
773
773
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
774
774
|
switch (errorCode) {
|
|
@@ -811,7 +811,7 @@ exports.deserializeAws_json1_0DescribeFirewallPolicyCommand = deserializeAws_jso
|
|
|
811
811
|
const deserializeAws_json1_0DescribeFirewallPolicyCommandError = async (output, context) => {
|
|
812
812
|
const parsedOutput = {
|
|
813
813
|
...output,
|
|
814
|
-
body: await
|
|
814
|
+
body: await parseErrorBody(output.body, context),
|
|
815
815
|
};
|
|
816
816
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
817
817
|
switch (errorCode) {
|
|
@@ -854,7 +854,7 @@ exports.deserializeAws_json1_0DescribeLoggingConfigurationCommand = deserializeA
|
|
|
854
854
|
const deserializeAws_json1_0DescribeLoggingConfigurationCommandError = async (output, context) => {
|
|
855
855
|
const parsedOutput = {
|
|
856
856
|
...output,
|
|
857
|
-
body: await
|
|
857
|
+
body: await parseErrorBody(output.body, context),
|
|
858
858
|
};
|
|
859
859
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
860
860
|
switch (errorCode) {
|
|
@@ -897,7 +897,7 @@ exports.deserializeAws_json1_0DescribeResourcePolicyCommand = deserializeAws_jso
|
|
|
897
897
|
const deserializeAws_json1_0DescribeResourcePolicyCommandError = async (output, context) => {
|
|
898
898
|
const parsedOutput = {
|
|
899
899
|
...output,
|
|
900
|
-
body: await
|
|
900
|
+
body: await parseErrorBody(output.body, context),
|
|
901
901
|
};
|
|
902
902
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
903
903
|
switch (errorCode) {
|
|
@@ -940,7 +940,7 @@ exports.deserializeAws_json1_0DescribeRuleGroupCommand = deserializeAws_json1_0D
|
|
|
940
940
|
const deserializeAws_json1_0DescribeRuleGroupCommandError = async (output, context) => {
|
|
941
941
|
const parsedOutput = {
|
|
942
942
|
...output,
|
|
943
|
-
body: await
|
|
943
|
+
body: await parseErrorBody(output.body, context),
|
|
944
944
|
};
|
|
945
945
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
946
946
|
switch (errorCode) {
|
|
@@ -983,7 +983,7 @@ exports.deserializeAws_json1_0DescribeRuleGroupMetadataCommand = deserializeAws_
|
|
|
983
983
|
const deserializeAws_json1_0DescribeRuleGroupMetadataCommandError = async (output, context) => {
|
|
984
984
|
const parsedOutput = {
|
|
985
985
|
...output,
|
|
986
|
-
body: await
|
|
986
|
+
body: await parseErrorBody(output.body, context),
|
|
987
987
|
};
|
|
988
988
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
989
989
|
switch (errorCode) {
|
|
@@ -1026,7 +1026,7 @@ exports.deserializeAws_json1_0DisassociateSubnetsCommand = deserializeAws_json1_
|
|
|
1026
1026
|
const deserializeAws_json1_0DisassociateSubnetsCommandError = async (output, context) => {
|
|
1027
1027
|
const parsedOutput = {
|
|
1028
1028
|
...output,
|
|
1029
|
-
body: await
|
|
1029
|
+
body: await parseErrorBody(output.body, context),
|
|
1030
1030
|
};
|
|
1031
1031
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1032
1032
|
switch (errorCode) {
|
|
@@ -1075,7 +1075,7 @@ exports.deserializeAws_json1_0ListFirewallPoliciesCommand = deserializeAws_json1
|
|
|
1075
1075
|
const deserializeAws_json1_0ListFirewallPoliciesCommandError = async (output, context) => {
|
|
1076
1076
|
const parsedOutput = {
|
|
1077
1077
|
...output,
|
|
1078
|
-
body: await
|
|
1078
|
+
body: await parseErrorBody(output.body, context),
|
|
1079
1079
|
};
|
|
1080
1080
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1081
1081
|
switch (errorCode) {
|
|
@@ -1115,7 +1115,7 @@ exports.deserializeAws_json1_0ListFirewallsCommand = deserializeAws_json1_0ListF
|
|
|
1115
1115
|
const deserializeAws_json1_0ListFirewallsCommandError = async (output, context) => {
|
|
1116
1116
|
const parsedOutput = {
|
|
1117
1117
|
...output,
|
|
1118
|
-
body: await
|
|
1118
|
+
body: await parseErrorBody(output.body, context),
|
|
1119
1119
|
};
|
|
1120
1120
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1121
1121
|
switch (errorCode) {
|
|
@@ -1155,7 +1155,7 @@ exports.deserializeAws_json1_0ListRuleGroupsCommand = deserializeAws_json1_0List
|
|
|
1155
1155
|
const deserializeAws_json1_0ListRuleGroupsCommandError = async (output, context) => {
|
|
1156
1156
|
const parsedOutput = {
|
|
1157
1157
|
...output,
|
|
1158
|
-
body: await
|
|
1158
|
+
body: await parseErrorBody(output.body, context),
|
|
1159
1159
|
};
|
|
1160
1160
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1161
1161
|
switch (errorCode) {
|
|
@@ -1195,7 +1195,7 @@ exports.deserializeAws_json1_0ListTagsForResourceCommand = deserializeAws_json1_
|
|
|
1195
1195
|
const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, context) => {
|
|
1196
1196
|
const parsedOutput = {
|
|
1197
1197
|
...output,
|
|
1198
|
-
body: await
|
|
1198
|
+
body: await parseErrorBody(output.body, context),
|
|
1199
1199
|
};
|
|
1200
1200
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1201
1201
|
switch (errorCode) {
|
|
@@ -1238,7 +1238,7 @@ exports.deserializeAws_json1_0PutResourcePolicyCommand = deserializeAws_json1_0P
|
|
|
1238
1238
|
const deserializeAws_json1_0PutResourcePolicyCommandError = async (output, context) => {
|
|
1239
1239
|
const parsedOutput = {
|
|
1240
1240
|
...output,
|
|
1241
|
-
body: await
|
|
1241
|
+
body: await parseErrorBody(output.body, context),
|
|
1242
1242
|
};
|
|
1243
1243
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1244
1244
|
switch (errorCode) {
|
|
@@ -1284,7 +1284,7 @@ exports.deserializeAws_json1_0TagResourceCommand = deserializeAws_json1_0TagReso
|
|
|
1284
1284
|
const deserializeAws_json1_0TagResourceCommandError = async (output, context) => {
|
|
1285
1285
|
const parsedOutput = {
|
|
1286
1286
|
...output,
|
|
1287
|
-
body: await
|
|
1287
|
+
body: await parseErrorBody(output.body, context),
|
|
1288
1288
|
};
|
|
1289
1289
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1290
1290
|
switch (errorCode) {
|
|
@@ -1327,7 +1327,7 @@ exports.deserializeAws_json1_0UntagResourceCommand = deserializeAws_json1_0Untag
|
|
|
1327
1327
|
const deserializeAws_json1_0UntagResourceCommandError = async (output, context) => {
|
|
1328
1328
|
const parsedOutput = {
|
|
1329
1329
|
...output,
|
|
1330
|
-
body: await
|
|
1330
|
+
body: await parseErrorBody(output.body, context),
|
|
1331
1331
|
};
|
|
1332
1332
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1333
1333
|
switch (errorCode) {
|
|
@@ -1370,7 +1370,7 @@ exports.deserializeAws_json1_0UpdateFirewallDeleteProtectionCommand = deserializ
|
|
|
1370
1370
|
const deserializeAws_json1_0UpdateFirewallDeleteProtectionCommandError = async (output, context) => {
|
|
1371
1371
|
const parsedOutput = {
|
|
1372
1372
|
...output,
|
|
1373
|
-
body: await
|
|
1373
|
+
body: await parseErrorBody(output.body, context),
|
|
1374
1374
|
};
|
|
1375
1375
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1376
1376
|
switch (errorCode) {
|
|
@@ -1419,7 +1419,7 @@ exports.deserializeAws_json1_0UpdateFirewallDescriptionCommand = deserializeAws_
|
|
|
1419
1419
|
const deserializeAws_json1_0UpdateFirewallDescriptionCommandError = async (output, context) => {
|
|
1420
1420
|
const parsedOutput = {
|
|
1421
1421
|
...output,
|
|
1422
|
-
body: await
|
|
1422
|
+
body: await parseErrorBody(output.body, context),
|
|
1423
1423
|
};
|
|
1424
1424
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1425
1425
|
switch (errorCode) {
|
|
@@ -1465,7 +1465,7 @@ exports.deserializeAws_json1_0UpdateFirewallEncryptionConfigurationCommand = des
|
|
|
1465
1465
|
const deserializeAws_json1_0UpdateFirewallEncryptionConfigurationCommandError = async (output, context) => {
|
|
1466
1466
|
const parsedOutput = {
|
|
1467
1467
|
...output,
|
|
1468
|
-
body: await
|
|
1468
|
+
body: await parseErrorBody(output.body, context),
|
|
1469
1469
|
};
|
|
1470
1470
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1471
1471
|
switch (errorCode) {
|
|
@@ -1514,7 +1514,7 @@ exports.deserializeAws_json1_0UpdateFirewallPolicyCommand = deserializeAws_json1
|
|
|
1514
1514
|
const deserializeAws_json1_0UpdateFirewallPolicyCommandError = async (output, context) => {
|
|
1515
1515
|
const parsedOutput = {
|
|
1516
1516
|
...output,
|
|
1517
|
-
body: await
|
|
1517
|
+
body: await parseErrorBody(output.body, context),
|
|
1518
1518
|
};
|
|
1519
1519
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1520
1520
|
switch (errorCode) {
|
|
@@ -1560,7 +1560,7 @@ exports.deserializeAws_json1_0UpdateFirewallPolicyChangeProtectionCommand = dese
|
|
|
1560
1560
|
const deserializeAws_json1_0UpdateFirewallPolicyChangeProtectionCommandError = async (output, context) => {
|
|
1561
1561
|
const parsedOutput = {
|
|
1562
1562
|
...output,
|
|
1563
|
-
body: await
|
|
1563
|
+
body: await parseErrorBody(output.body, context),
|
|
1564
1564
|
};
|
|
1565
1565
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1566
1566
|
switch (errorCode) {
|
|
@@ -1609,7 +1609,7 @@ exports.deserializeAws_json1_0UpdateLoggingConfigurationCommand = deserializeAws
|
|
|
1609
1609
|
const deserializeAws_json1_0UpdateLoggingConfigurationCommandError = async (output, context) => {
|
|
1610
1610
|
const parsedOutput = {
|
|
1611
1611
|
...output,
|
|
1612
|
-
body: await
|
|
1612
|
+
body: await parseErrorBody(output.body, context),
|
|
1613
1613
|
};
|
|
1614
1614
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1615
1615
|
switch (errorCode) {
|
|
@@ -1658,7 +1658,7 @@ exports.deserializeAws_json1_0UpdateRuleGroupCommand = deserializeAws_json1_0Upd
|
|
|
1658
1658
|
const deserializeAws_json1_0UpdateRuleGroupCommandError = async (output, context) => {
|
|
1659
1659
|
const parsedOutput = {
|
|
1660
1660
|
...output,
|
|
1661
|
-
body: await
|
|
1661
|
+
body: await parseErrorBody(output.body, context),
|
|
1662
1662
|
};
|
|
1663
1663
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1664
1664
|
switch (errorCode) {
|
|
@@ -1704,7 +1704,7 @@ exports.deserializeAws_json1_0UpdateSubnetChangeProtectionCommand = deserializeA
|
|
|
1704
1704
|
const deserializeAws_json1_0UpdateSubnetChangeProtectionCommandError = async (output, context) => {
|
|
1705
1705
|
const parsedOutput = {
|
|
1706
1706
|
...output,
|
|
1707
|
-
body: await
|
|
1707
|
+
body: await parseErrorBody(output.body, context),
|
|
1708
1708
|
};
|
|
1709
1709
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1710
1710
|
switch (errorCode) {
|
|
@@ -3624,6 +3624,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
3624
3624
|
}
|
|
3625
3625
|
return {};
|
|
3626
3626
|
});
|
|
3627
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
3628
|
+
var _a;
|
|
3629
|
+
const value = await parseBody(errorBody, context);
|
|
3630
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
3631
|
+
return value;
|
|
3632
|
+
};
|
|
3627
3633
|
const loadRestJsonErrorCode = (output, data) => {
|
|
3628
3634
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3629
3635
|
const sanitizeErrorCode = (rawValue) => {
|