@aws-sdk/client-network-firewall 3.828.0 → 3.830.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/README.md +48 -0
  2. package/dist-cjs/index.js +295 -58
  3. package/dist-es/NetworkFirewall.js +12 -0
  4. package/dist-es/commands/AcceptNetworkFirewallTransitGatewayAttachmentCommand.js +22 -0
  5. package/dist-es/commands/AssociateAvailabilityZonesCommand.js +22 -0
  6. package/dist-es/commands/DeleteNetworkFirewallTransitGatewayAttachmentCommand.js +22 -0
  7. package/dist-es/commands/DisassociateAvailabilityZonesCommand.js +22 -0
  8. package/dist-es/commands/RejectNetworkFirewallTransitGatewayAttachmentCommand.js +22 -0
  9. package/dist-es/commands/UpdateAvailabilityZoneChangeProtectionCommand.js +22 -0
  10. package/dist-es/commands/index.js +6 -0
  11. package/dist-es/models/models_0.js +52 -39
  12. package/dist-es/protocols/Aws_json1_0.js +120 -6
  13. package/dist-types/NetworkFirewall.d.ts +42 -0
  14. package/dist-types/NetworkFirewallClient.d.ts +8 -2
  15. package/dist-types/commands/AcceptNetworkFirewallTransitGatewayAttachmentCommand.d.ts +104 -0
  16. package/dist-types/commands/AssociateAvailabilityZonesCommand.d.ts +124 -0
  17. package/dist-types/commands/CreateFirewallCommand.d.ts +20 -0
  18. package/dist-types/commands/CreateRuleGroupCommand.d.ts +1 -1
  19. package/dist-types/commands/DeleteFirewallCommand.d.ts +13 -0
  20. package/dist-types/commands/DeleteNetworkFirewallTransitGatewayAttachmentCommand.d.ts +103 -0
  21. package/dist-types/commands/DescribeFirewallCommand.d.ts +13 -0
  22. package/dist-types/commands/DescribeFirewallMetadataCommand.d.ts +1 -0
  23. package/dist-types/commands/DescribeRuleGroupCommand.d.ts +1 -1
  24. package/dist-types/commands/DisassociateAvailabilityZonesCommand.d.ts +123 -0
  25. package/dist-types/commands/ListFirewallsCommand.d.ts +1 -0
  26. package/dist-types/commands/RejectNetworkFirewallTransitGatewayAttachmentCommand.d.ts +104 -0
  27. package/dist-types/commands/UpdateAvailabilityZoneChangeProtectionCommand.d.ts +111 -0
  28. package/dist-types/commands/UpdateRuleGroupCommand.d.ts +1 -1
  29. package/dist-types/commands/index.d.ts +6 -0
  30. package/dist-types/endpoint/EndpointParameters.d.ts +7 -7
  31. package/dist-types/models/models_0.d.ts +651 -95
  32. package/dist-types/protocols/Aws_json1_0.d.ts +54 -0
  33. package/dist-types/runtimeConfig.browser.d.ts +2 -2
  34. package/dist-types/runtimeConfig.native.d.ts +2 -2
  35. package/dist-types/ts3.4/NetworkFirewall.d.ts +126 -0
  36. package/dist-types/ts3.4/NetworkFirewallClient.d.ts +36 -0
  37. package/dist-types/ts3.4/commands/AcceptNetworkFirewallTransitGatewayAttachmentCommand.d.ts +51 -0
  38. package/dist-types/ts3.4/commands/AssociateAvailabilityZonesCommand.d.ts +51 -0
  39. package/dist-types/ts3.4/commands/DeleteNetworkFirewallTransitGatewayAttachmentCommand.d.ts +51 -0
  40. package/dist-types/ts3.4/commands/DisassociateAvailabilityZonesCommand.d.ts +51 -0
  41. package/dist-types/ts3.4/commands/RejectNetworkFirewallTransitGatewayAttachmentCommand.d.ts +51 -0
  42. package/dist-types/ts3.4/commands/UpdateAvailabilityZoneChangeProtectionCommand.d.ts +51 -0
  43. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  44. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +7 -7
  45. package/dist-types/ts3.4/models/models_0.d.ts +137 -45
  46. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +72 -0
  47. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -2
  48. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -2
  49. package/package.json +2 -2
@@ -1,4 +1,6 @@
1
1
  import { createAggregatedClient } from "@smithy/smithy-client";
2
+ import { AcceptNetworkFirewallTransitGatewayAttachmentCommand, } from "./commands/AcceptNetworkFirewallTransitGatewayAttachmentCommand";
3
+ import { AssociateAvailabilityZonesCommand, } from "./commands/AssociateAvailabilityZonesCommand";
2
4
  import { AssociateFirewallPolicyCommand, } from "./commands/AssociateFirewallPolicyCommand";
3
5
  import { AssociateSubnetsCommand, } from "./commands/AssociateSubnetsCommand";
4
6
  import { CreateFirewallCommand, } from "./commands/CreateFirewallCommand";
@@ -8,6 +10,7 @@ import { CreateTLSInspectionConfigurationCommand, } from "./commands/CreateTLSIn
8
10
  import { CreateVpcEndpointAssociationCommand, } from "./commands/CreateVpcEndpointAssociationCommand";
9
11
  import { DeleteFirewallCommand, } from "./commands/DeleteFirewallCommand";
10
12
  import { DeleteFirewallPolicyCommand, } from "./commands/DeleteFirewallPolicyCommand";
13
+ import { DeleteNetworkFirewallTransitGatewayAttachmentCommand, } from "./commands/DeleteNetworkFirewallTransitGatewayAttachmentCommand";
11
14
  import { DeleteResourcePolicyCommand, } from "./commands/DeleteResourcePolicyCommand";
12
15
  import { DeleteRuleGroupCommand, } from "./commands/DeleteRuleGroupCommand";
13
16
  import { DeleteTLSInspectionConfigurationCommand, } from "./commands/DeleteTLSInspectionConfigurationCommand";
@@ -22,6 +25,7 @@ import { DescribeRuleGroupCommand, } from "./commands/DescribeRuleGroupCommand";
22
25
  import { DescribeRuleGroupMetadataCommand, } from "./commands/DescribeRuleGroupMetadataCommand";
23
26
  import { DescribeTLSInspectionConfigurationCommand, } from "./commands/DescribeTLSInspectionConfigurationCommand";
24
27
  import { DescribeVpcEndpointAssociationCommand, } from "./commands/DescribeVpcEndpointAssociationCommand";
28
+ import { DisassociateAvailabilityZonesCommand, } from "./commands/DisassociateAvailabilityZonesCommand";
25
29
  import { DisassociateSubnetsCommand, } from "./commands/DisassociateSubnetsCommand";
26
30
  import { GetAnalysisReportResultsCommand, } from "./commands/GetAnalysisReportResultsCommand";
27
31
  import { ListAnalysisReportsCommand, } from "./commands/ListAnalysisReportsCommand";
@@ -34,11 +38,13 @@ import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceComma
34
38
  import { ListTLSInspectionConfigurationsCommand, } from "./commands/ListTLSInspectionConfigurationsCommand";
35
39
  import { ListVpcEndpointAssociationsCommand, } from "./commands/ListVpcEndpointAssociationsCommand";
36
40
  import { PutResourcePolicyCommand, } from "./commands/PutResourcePolicyCommand";
41
+ import { RejectNetworkFirewallTransitGatewayAttachmentCommand, } from "./commands/RejectNetworkFirewallTransitGatewayAttachmentCommand";
37
42
  import { StartAnalysisReportCommand, } from "./commands/StartAnalysisReportCommand";
38
43
  import { StartFlowCaptureCommand, } from "./commands/StartFlowCaptureCommand";
39
44
  import { StartFlowFlushCommand, } from "./commands/StartFlowFlushCommand";
40
45
  import { TagResourceCommand } from "./commands/TagResourceCommand";
41
46
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
47
+ import { UpdateAvailabilityZoneChangeProtectionCommand, } from "./commands/UpdateAvailabilityZoneChangeProtectionCommand";
42
48
  import { UpdateFirewallAnalysisSettingsCommand, } from "./commands/UpdateFirewallAnalysisSettingsCommand";
43
49
  import { UpdateFirewallDeleteProtectionCommand, } from "./commands/UpdateFirewallDeleteProtectionCommand";
44
50
  import { UpdateFirewallDescriptionCommand, } from "./commands/UpdateFirewallDescriptionCommand";
@@ -51,6 +57,8 @@ import { UpdateSubnetChangeProtectionCommand, } from "./commands/UpdateSubnetCha
51
57
  import { UpdateTLSInspectionConfigurationCommand, } from "./commands/UpdateTLSInspectionConfigurationCommand";
52
58
  import { NetworkFirewallClient } from "./NetworkFirewallClient";
53
59
  const commands = {
60
+ AcceptNetworkFirewallTransitGatewayAttachmentCommand,
61
+ AssociateAvailabilityZonesCommand,
54
62
  AssociateFirewallPolicyCommand,
55
63
  AssociateSubnetsCommand,
56
64
  CreateFirewallCommand,
@@ -60,6 +68,7 @@ const commands = {
60
68
  CreateVpcEndpointAssociationCommand,
61
69
  DeleteFirewallCommand,
62
70
  DeleteFirewallPolicyCommand,
71
+ DeleteNetworkFirewallTransitGatewayAttachmentCommand,
63
72
  DeleteResourcePolicyCommand,
64
73
  DeleteRuleGroupCommand,
65
74
  DeleteTLSInspectionConfigurationCommand,
@@ -74,6 +83,7 @@ const commands = {
74
83
  DescribeRuleGroupMetadataCommand,
75
84
  DescribeTLSInspectionConfigurationCommand,
76
85
  DescribeVpcEndpointAssociationCommand,
86
+ DisassociateAvailabilityZonesCommand,
77
87
  DisassociateSubnetsCommand,
78
88
  GetAnalysisReportResultsCommand,
79
89
  ListAnalysisReportsCommand,
@@ -86,11 +96,13 @@ const commands = {
86
96
  ListTLSInspectionConfigurationsCommand,
87
97
  ListVpcEndpointAssociationsCommand,
88
98
  PutResourcePolicyCommand,
99
+ RejectNetworkFirewallTransitGatewayAttachmentCommand,
89
100
  StartAnalysisReportCommand,
90
101
  StartFlowCaptureCommand,
91
102
  StartFlowFlushCommand,
92
103
  TagResourceCommand,
93
104
  UntagResourceCommand,
105
+ UpdateAvailabilityZoneChangeProtectionCommand,
94
106
  UpdateFirewallAnalysisSettingsCommand,
95
107
  UpdateFirewallDeleteProtectionCommand,
96
108
  UpdateFirewallDescriptionCommand,
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_AcceptNetworkFirewallTransitGatewayAttachmentCommand, se_AcceptNetworkFirewallTransitGatewayAttachmentCommand, } from "../protocols/Aws_json1_0";
6
+ export { $Command };
7
+ export class AcceptNetworkFirewallTransitGatewayAttachmentCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("NetworkFirewall_20201112", "AcceptNetworkFirewallTransitGatewayAttachment", {})
17
+ .n("NetworkFirewallClient", "AcceptNetworkFirewallTransitGatewayAttachmentCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_AcceptNetworkFirewallTransitGatewayAttachmentCommand)
20
+ .de(de_AcceptNetworkFirewallTransitGatewayAttachmentCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_AssociateAvailabilityZonesCommand, se_AssociateAvailabilityZonesCommand } from "../protocols/Aws_json1_0";
6
+ export { $Command };
7
+ export class AssociateAvailabilityZonesCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("NetworkFirewall_20201112", "AssociateAvailabilityZones", {})
17
+ .n("NetworkFirewallClient", "AssociateAvailabilityZonesCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_AssociateAvailabilityZonesCommand)
20
+ .de(de_AssociateAvailabilityZonesCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_DeleteNetworkFirewallTransitGatewayAttachmentCommand, se_DeleteNetworkFirewallTransitGatewayAttachmentCommand, } from "../protocols/Aws_json1_0";
6
+ export { $Command };
7
+ export class DeleteNetworkFirewallTransitGatewayAttachmentCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("NetworkFirewall_20201112", "DeleteNetworkFirewallTransitGatewayAttachment", {})
17
+ .n("NetworkFirewallClient", "DeleteNetworkFirewallTransitGatewayAttachmentCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_DeleteNetworkFirewallTransitGatewayAttachmentCommand)
20
+ .de(de_DeleteNetworkFirewallTransitGatewayAttachmentCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_DisassociateAvailabilityZonesCommand, se_DisassociateAvailabilityZonesCommand, } from "../protocols/Aws_json1_0";
6
+ export { $Command };
7
+ export class DisassociateAvailabilityZonesCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("NetworkFirewall_20201112", "DisassociateAvailabilityZones", {})
17
+ .n("NetworkFirewallClient", "DisassociateAvailabilityZonesCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_DisassociateAvailabilityZonesCommand)
20
+ .de(de_DisassociateAvailabilityZonesCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_RejectNetworkFirewallTransitGatewayAttachmentCommand, se_RejectNetworkFirewallTransitGatewayAttachmentCommand, } from "../protocols/Aws_json1_0";
6
+ export { $Command };
7
+ export class RejectNetworkFirewallTransitGatewayAttachmentCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("NetworkFirewall_20201112", "RejectNetworkFirewallTransitGatewayAttachment", {})
17
+ .n("NetworkFirewallClient", "RejectNetworkFirewallTransitGatewayAttachmentCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_RejectNetworkFirewallTransitGatewayAttachmentCommand)
20
+ .de(de_RejectNetworkFirewallTransitGatewayAttachmentCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_UpdateAvailabilityZoneChangeProtectionCommand, se_UpdateAvailabilityZoneChangeProtectionCommand, } from "../protocols/Aws_json1_0";
6
+ export { $Command };
7
+ export class UpdateAvailabilityZoneChangeProtectionCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("NetworkFirewall_20201112", "UpdateAvailabilityZoneChangeProtection", {})
17
+ .n("NetworkFirewallClient", "UpdateAvailabilityZoneChangeProtectionCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_UpdateAvailabilityZoneChangeProtectionCommand)
20
+ .de(de_UpdateAvailabilityZoneChangeProtectionCommand)
21
+ .build() {
22
+ }
@@ -1,3 +1,5 @@
1
+ export * from "./AcceptNetworkFirewallTransitGatewayAttachmentCommand";
2
+ export * from "./AssociateAvailabilityZonesCommand";
1
3
  export * from "./AssociateFirewallPolicyCommand";
2
4
  export * from "./AssociateSubnetsCommand";
3
5
  export * from "./CreateFirewallCommand";
@@ -7,6 +9,7 @@ export * from "./CreateTLSInspectionConfigurationCommand";
7
9
  export * from "./CreateVpcEndpointAssociationCommand";
8
10
  export * from "./DeleteFirewallCommand";
9
11
  export * from "./DeleteFirewallPolicyCommand";
12
+ export * from "./DeleteNetworkFirewallTransitGatewayAttachmentCommand";
10
13
  export * from "./DeleteResourcePolicyCommand";
11
14
  export * from "./DeleteRuleGroupCommand";
12
15
  export * from "./DeleteTLSInspectionConfigurationCommand";
@@ -21,6 +24,7 @@ export * from "./DescribeRuleGroupCommand";
21
24
  export * from "./DescribeRuleGroupMetadataCommand";
22
25
  export * from "./DescribeTLSInspectionConfigurationCommand";
23
26
  export * from "./DescribeVpcEndpointAssociationCommand";
27
+ export * from "./DisassociateAvailabilityZonesCommand";
24
28
  export * from "./DisassociateSubnetsCommand";
25
29
  export * from "./GetAnalysisReportResultsCommand";
26
30
  export * from "./ListAnalysisReportsCommand";
@@ -33,11 +37,13 @@ export * from "./ListTLSInspectionConfigurationsCommand";
33
37
  export * from "./ListTagsForResourceCommand";
34
38
  export * from "./ListVpcEndpointAssociationsCommand";
35
39
  export * from "./PutResourcePolicyCommand";
40
+ export * from "./RejectNetworkFirewallTransitGatewayAttachmentCommand";
36
41
  export * from "./StartAnalysisReportCommand";
37
42
  export * from "./StartFlowCaptureCommand";
38
43
  export * from "./StartFlowFlushCommand";
39
44
  export * from "./TagResourceCommand";
40
45
  export * from "./UntagResourceCommand";
46
+ export * from "./UpdateAvailabilityZoneChangeProtectionCommand";
41
47
  export * from "./UpdateFirewallAnalysisSettingsCommand";
42
48
  export * from "./UpdateFirewallDeleteProtectionCommand";
43
49
  export * from "./UpdateFirewallDescriptionCommand";
@@ -1,11 +1,14 @@
1
1
  import { NetworkFirewallServiceException as __BaseException } from "./NetworkFirewallServiceException";
2
- export const EnabledAnalysisType = {
3
- HTTP_HOST: "HTTP_HOST",
4
- TLS_SNI: "TLS_SNI",
5
- };
6
- export const IdentifiedType = {
7
- STATELESS_RULE_CONTAINS_TCP_FLAGS: "STATELESS_RULE_CONTAINS_TCP_FLAGS",
8
- STATELESS_RULE_FORWARDING_ASYMMETRICALLY: "STATELESS_RULE_FORWARDING_ASYMMETRICALLY",
2
+ export const TransitGatewayAttachmentStatus = {
3
+ CREATING: "CREATING",
4
+ DELETED: "DELETED",
5
+ DELETING: "DELETING",
6
+ ERROR: "ERROR",
7
+ FAILED: "FAILED",
8
+ PENDING_ACCEPTANCE: "PENDING_ACCEPTANCE",
9
+ READY: "READY",
10
+ REJECTED: "REJECTED",
11
+ REJECTING: "REJECTING",
9
12
  };
10
13
  export class InternalServerError extends __BaseException {
11
14
  name = "InternalServerError";
@@ -21,20 +24,6 @@ export class InternalServerError extends __BaseException {
21
24
  this.Message = opts.Message;
22
25
  }
23
26
  }
24
- export class InvalidOperationException extends __BaseException {
25
- name = "InvalidOperationException";
26
- $fault = "client";
27
- Message;
28
- constructor(opts) {
29
- super({
30
- name: "InvalidOperationException",
31
- $fault: "client",
32
- ...opts,
33
- });
34
- Object.setPrototypeOf(this, InvalidOperationException.prototype);
35
- this.Message = opts.Message;
36
- }
37
- }
38
27
  export class InvalidRequestException extends __BaseException {
39
28
  name = "InvalidRequestException";
40
29
  $fault = "client";
@@ -49,20 +38,6 @@ export class InvalidRequestException extends __BaseException {
49
38
  this.Message = opts.Message;
50
39
  }
51
40
  }
52
- export class InvalidTokenException extends __BaseException {
53
- name = "InvalidTokenException";
54
- $fault = "client";
55
- Message;
56
- constructor(opts) {
57
- super({
58
- name: "InvalidTokenException",
59
- $fault: "client",
60
- ...opts,
61
- });
62
- Object.setPrototypeOf(this, InvalidTokenException.prototype);
63
- this.Message = opts.Message;
64
- }
65
- }
66
41
  export class ResourceNotFoundException extends __BaseException {
67
42
  name = "ResourceNotFoundException";
68
43
  $fault = "client";
@@ -91,10 +66,13 @@ export class ThrottlingException extends __BaseException {
91
66
  this.Message = opts.Message;
92
67
  }
93
68
  }
94
- export const IPAddressType = {
95
- DUALSTACK: "DUALSTACK",
96
- IPV4: "IPV4",
97
- IPV6: "IPV6",
69
+ export const EnabledAnalysisType = {
70
+ HTTP_HOST: "HTTP_HOST",
71
+ TLS_SNI: "TLS_SNI",
72
+ };
73
+ export const IdentifiedType = {
74
+ STATELESS_RULE_CONTAINS_TCP_FLAGS: "STATELESS_RULE_CONTAINS_TCP_FLAGS",
75
+ STATELESS_RULE_FORWARDING_ASYMMETRICALLY: "STATELESS_RULE_FORWARDING_ASYMMETRICALLY",
98
76
  };
99
77
  export class InsufficientCapacityException extends __BaseException {
100
78
  name = "InsufficientCapacityException";
@@ -110,6 +88,39 @@ export class InsufficientCapacityException extends __BaseException {
110
88
  this.Message = opts.Message;
111
89
  }
112
90
  }
91
+ export class InvalidOperationException extends __BaseException {
92
+ name = "InvalidOperationException";
93
+ $fault = "client";
94
+ Message;
95
+ constructor(opts) {
96
+ super({
97
+ name: "InvalidOperationException",
98
+ $fault: "client",
99
+ ...opts,
100
+ });
101
+ Object.setPrototypeOf(this, InvalidOperationException.prototype);
102
+ this.Message = opts.Message;
103
+ }
104
+ }
105
+ export class InvalidTokenException extends __BaseException {
106
+ name = "InvalidTokenException";
107
+ $fault = "client";
108
+ Message;
109
+ constructor(opts) {
110
+ super({
111
+ name: "InvalidTokenException",
112
+ $fault: "client",
113
+ ...opts,
114
+ });
115
+ Object.setPrototypeOf(this, InvalidTokenException.prototype);
116
+ this.Message = opts.Message;
117
+ }
118
+ }
119
+ export const IPAddressType = {
120
+ DUALSTACK: "DUALSTACK",
121
+ IPV4: "IPV4",
122
+ IPV6: "IPV6",
123
+ };
113
124
  export const AttachmentStatus = {
114
125
  CREATING: "CREATING",
115
126
  DELETING: "DELETING",
@@ -198,12 +209,14 @@ export const StatefulRuleProtocol = {
198
209
  DNS: "DNS",
199
210
  FTP: "FTP",
200
211
  HTTP: "HTTP",
212
+ HTTP2: "HTTP2",
201
213
  ICMP: "ICMP",
202
214
  IKEV2: "IKEV2",
203
215
  IMAP: "IMAP",
204
216
  KRB5: "KRB5",
205
217
  MSN: "MSN",
206
218
  NTP: "NTP",
219
+ QUIC: "QUIC",
207
220
  SMB: "SMB",
208
221
  SMTP: "SMTP",
209
222
  SSH: "SSH",
@@ -3,6 +3,18 @@ import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/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
+ export const se_AcceptNetworkFirewallTransitGatewayAttachmentCommand = async (input, context) => {
7
+ const headers = sharedHeaders("AcceptNetworkFirewallTransitGatewayAttachment");
8
+ let body;
9
+ body = JSON.stringify(_json(input));
10
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
11
+ };
12
+ export const se_AssociateAvailabilityZonesCommand = async (input, context) => {
13
+ const headers = sharedHeaders("AssociateAvailabilityZones");
14
+ let body;
15
+ body = JSON.stringify(_json(input));
16
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
17
+ };
6
18
  export const se_AssociateFirewallPolicyCommand = async (input, context) => {
7
19
  const headers = sharedHeaders("AssociateFirewallPolicy");
8
20
  let body;
@@ -57,6 +69,12 @@ export const se_DeleteFirewallPolicyCommand = async (input, context) => {
57
69
  body = JSON.stringify(_json(input));
58
70
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
59
71
  };
72
+ export const se_DeleteNetworkFirewallTransitGatewayAttachmentCommand = async (input, context) => {
73
+ const headers = sharedHeaders("DeleteNetworkFirewallTransitGatewayAttachment");
74
+ let body;
75
+ body = JSON.stringify(_json(input));
76
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
77
+ };
60
78
  export const se_DeleteResourcePolicyCommand = async (input, context) => {
61
79
  const headers = sharedHeaders("DeleteResourcePolicy");
62
80
  let body;
@@ -141,6 +159,12 @@ export const se_DescribeVpcEndpointAssociationCommand = async (input, context) =
141
159
  body = JSON.stringify(_json(input));
142
160
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
143
161
  };
162
+ export const se_DisassociateAvailabilityZonesCommand = async (input, context) => {
163
+ const headers = sharedHeaders("DisassociateAvailabilityZones");
164
+ let body;
165
+ body = JSON.stringify(_json(input));
166
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
167
+ };
144
168
  export const se_DisassociateSubnetsCommand = async (input, context) => {
145
169
  const headers = sharedHeaders("DisassociateSubnets");
146
170
  let body;
@@ -213,6 +237,12 @@ export const se_PutResourcePolicyCommand = async (input, context) => {
213
237
  body = JSON.stringify(_json(input));
214
238
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
215
239
  };
240
+ export const se_RejectNetworkFirewallTransitGatewayAttachmentCommand = async (input, context) => {
241
+ const headers = sharedHeaders("RejectNetworkFirewallTransitGatewayAttachment");
242
+ let body;
243
+ body = JSON.stringify(_json(input));
244
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
245
+ };
216
246
  export const se_StartAnalysisReportCommand = async (input, context) => {
217
247
  const headers = sharedHeaders("StartAnalysisReport");
218
248
  let body;
@@ -243,6 +273,12 @@ export const se_UntagResourceCommand = async (input, context) => {
243
273
  body = JSON.stringify(_json(input));
244
274
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
245
275
  };
276
+ export const se_UpdateAvailabilityZoneChangeProtectionCommand = async (input, context) => {
277
+ const headers = sharedHeaders("UpdateAvailabilityZoneChangeProtection");
278
+ let body;
279
+ body = JSON.stringify(_json(input));
280
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
281
+ };
246
282
  export const se_UpdateFirewallAnalysisSettingsCommand = async (input, context) => {
247
283
  const headers = sharedHeaders("UpdateFirewallAnalysisSettings");
248
284
  let body;
@@ -303,6 +339,32 @@ export const se_UpdateTLSInspectionConfigurationCommand = async (input, context)
303
339
  body = JSON.stringify(_json(input));
304
340
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
305
341
  };
342
+ export const de_AcceptNetworkFirewallTransitGatewayAttachmentCommand = async (output, context) => {
343
+ if (output.statusCode >= 300) {
344
+ return de_CommandError(output, context);
345
+ }
346
+ const data = await parseBody(output.body, context);
347
+ let contents = {};
348
+ contents = _json(data);
349
+ const response = {
350
+ $metadata: deserializeMetadata(output),
351
+ ...contents,
352
+ };
353
+ return response;
354
+ };
355
+ export const de_AssociateAvailabilityZonesCommand = async (output, context) => {
356
+ if (output.statusCode >= 300) {
357
+ return de_CommandError(output, context);
358
+ }
359
+ const data = await parseBody(output.body, context);
360
+ let contents = {};
361
+ contents = _json(data);
362
+ const response = {
363
+ $metadata: deserializeMetadata(output),
364
+ ...contents,
365
+ };
366
+ return response;
367
+ };
306
368
  export const de_AssociateFirewallPolicyCommand = async (output, context) => {
307
369
  if (output.statusCode >= 300) {
308
370
  return de_CommandError(output, context);
@@ -420,6 +482,19 @@ export const de_DeleteFirewallPolicyCommand = async (output, context) => {
420
482
  };
421
483
  return response;
422
484
  };
485
+ export const de_DeleteNetworkFirewallTransitGatewayAttachmentCommand = async (output, context) => {
486
+ if (output.statusCode >= 300) {
487
+ return de_CommandError(output, context);
488
+ }
489
+ const data = await parseBody(output.body, context);
490
+ let contents = {};
491
+ contents = _json(data);
492
+ const response = {
493
+ $metadata: deserializeMetadata(output),
494
+ ...contents,
495
+ };
496
+ return response;
497
+ };
423
498
  export const de_DeleteResourcePolicyCommand = async (output, context) => {
424
499
  if (output.statusCode >= 300) {
425
500
  return de_CommandError(output, context);
@@ -602,6 +677,19 @@ export const de_DescribeVpcEndpointAssociationCommand = async (output, context)
602
677
  };
603
678
  return response;
604
679
  };
680
+ export const de_DisassociateAvailabilityZonesCommand = async (output, context) => {
681
+ if (output.statusCode >= 300) {
682
+ return de_CommandError(output, context);
683
+ }
684
+ const data = await parseBody(output.body, context);
685
+ let contents = {};
686
+ contents = _json(data);
687
+ const response = {
688
+ $metadata: deserializeMetadata(output),
689
+ ...contents,
690
+ };
691
+ return response;
692
+ };
605
693
  export const de_DisassociateSubnetsCommand = async (output, context) => {
606
694
  if (output.statusCode >= 300) {
607
695
  return de_CommandError(output, context);
@@ -758,6 +846,19 @@ export const de_PutResourcePolicyCommand = async (output, context) => {
758
846
  };
759
847
  return response;
760
848
  };
849
+ export const de_RejectNetworkFirewallTransitGatewayAttachmentCommand = async (output, context) => {
850
+ if (output.statusCode >= 300) {
851
+ return de_CommandError(output, context);
852
+ }
853
+ const data = await parseBody(output.body, context);
854
+ let contents = {};
855
+ contents = _json(data);
856
+ const response = {
857
+ $metadata: deserializeMetadata(output),
858
+ ...contents,
859
+ };
860
+ return response;
861
+ };
761
862
  export const de_StartAnalysisReportCommand = async (output, context) => {
762
863
  if (output.statusCode >= 300) {
763
864
  return de_CommandError(output, context);
@@ -823,6 +924,19 @@ export const de_UntagResourceCommand = async (output, context) => {
823
924
  };
824
925
  return response;
825
926
  };
927
+ export const de_UpdateAvailabilityZoneChangeProtectionCommand = async (output, context) => {
928
+ if (output.statusCode >= 300) {
929
+ return de_CommandError(output, context);
930
+ }
931
+ const data = await parseBody(output.body, context);
932
+ let contents = {};
933
+ contents = _json(data);
934
+ const response = {
935
+ $metadata: deserializeMetadata(output),
936
+ ...contents,
937
+ };
938
+ return response;
939
+ };
826
940
  export const de_UpdateFirewallAnalysisSettingsCommand = async (output, context) => {
827
941
  if (output.statusCode >= 300) {
828
942
  return de_CommandError(output, context);
@@ -963,15 +1077,9 @@ const de_CommandError = async (output, context) => {
963
1077
  case "InternalServerError":
964
1078
  case "com.amazonaws.networkfirewall#InternalServerError":
965
1079
  throw await de_InternalServerErrorRes(parsedOutput, context);
966
- case "InvalidOperationException":
967
- case "com.amazonaws.networkfirewall#InvalidOperationException":
968
- throw await de_InvalidOperationExceptionRes(parsedOutput, context);
969
1080
  case "InvalidRequestException":
970
1081
  case "com.amazonaws.networkfirewall#InvalidRequestException":
971
1082
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
972
- case "InvalidTokenException":
973
- case "com.amazonaws.networkfirewall#InvalidTokenException":
974
- throw await de_InvalidTokenExceptionRes(parsedOutput, context);
975
1083
  case "ResourceNotFoundException":
976
1084
  case "com.amazonaws.networkfirewall#ResourceNotFoundException":
977
1085
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
@@ -981,6 +1089,12 @@ const de_CommandError = async (output, context) => {
981
1089
  case "InsufficientCapacityException":
982
1090
  case "com.amazonaws.networkfirewall#InsufficientCapacityException":
983
1091
  throw await de_InsufficientCapacityExceptionRes(parsedOutput, context);
1092
+ case "InvalidOperationException":
1093
+ case "com.amazonaws.networkfirewall#InvalidOperationException":
1094
+ throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1095
+ case "InvalidTokenException":
1096
+ case "com.amazonaws.networkfirewall#InvalidTokenException":
1097
+ throw await de_InvalidTokenExceptionRes(parsedOutput, context);
984
1098
  case "LimitExceededException":
985
1099
  case "com.amazonaws.networkfirewall#LimitExceededException":
986
1100
  throw await de_LimitExceededExceptionRes(parsedOutput, context);