Skip to content

Commit a4ec1dd

Browse files
author
awstools
committed
feat(client-network-firewall): You can now use flow operations to either flush or capture traffic monitored in your firewall's flow table.
1 parent 9a281ac commit a4ec1dd

15 files changed

+2574
-44
lines changed

clients/client-network-firewall/README.md

+40
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,14 @@ DescribeFirewallPolicy
384384

385385
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/network-firewall/command/DescribeFirewallPolicyCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-network-firewall/Interface/DescribeFirewallPolicyCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-network-firewall/Interface/DescribeFirewallPolicyCommandOutput/)
386386

387+
</details>
388+
<details>
389+
<summary>
390+
DescribeFlowOperation
391+
</summary>
392+
393+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/network-firewall/command/DescribeFlowOperationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-network-firewall/Interface/DescribeFlowOperationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-network-firewall/Interface/DescribeFlowOperationCommandOutput/)
394+
387395
</details>
388396
<details>
389397
<summary>
@@ -464,6 +472,22 @@ ListFirewalls
464472

465473
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/network-firewall/command/ListFirewallsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-network-firewall/Interface/ListFirewallsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-network-firewall/Interface/ListFirewallsCommandOutput/)
466474

475+
</details>
476+
<details>
477+
<summary>
478+
ListFlowOperationResults
479+
</summary>
480+
481+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/network-firewall/command/ListFlowOperationResultsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-network-firewall/Interface/ListFlowOperationResultsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-network-firewall/Interface/ListFlowOperationResultsCommandOutput/)
482+
483+
</details>
484+
<details>
485+
<summary>
486+
ListFlowOperations
487+
</summary>
488+
489+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/network-firewall/command/ListFlowOperationsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-network-firewall/Interface/ListFlowOperationsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-network-firewall/Interface/ListFlowOperationsCommandOutput/)
490+
467491
</details>
468492
<details>
469493
<summary>
@@ -504,6 +528,22 @@ StartAnalysisReport
504528

505529
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/network-firewall/command/StartAnalysisReportCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-network-firewall/Interface/StartAnalysisReportCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-network-firewall/Interface/StartAnalysisReportCommandOutput/)
506530

531+
</details>
532+
<details>
533+
<summary>
534+
StartFlowCapture
535+
</summary>
536+
537+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/network-firewall/command/StartFlowCaptureCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-network-firewall/Interface/StartFlowCaptureCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-network-firewall/Interface/StartFlowCaptureCommandOutput/)
538+
539+
</details>
540+
<details>
541+
<summary>
542+
StartFlowFlush
543+
</summary>
544+
545+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/network-firewall/command/StartFlowFlushCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-network-firewall/Interface/StartFlowFlushCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-network-firewall/Interface/StartFlowFlushCommandOutput/)
546+
507547
</details>
508548
<details>
509549
<summary>

clients/client-network-firewall/src/NetworkFirewall.ts

+112
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ import {
6767
DescribeFirewallPolicyCommandInput,
6868
DescribeFirewallPolicyCommandOutput,
6969
} from "./commands/DescribeFirewallPolicyCommand";
70+
import {
71+
DescribeFlowOperationCommand,
72+
DescribeFlowOperationCommandInput,
73+
DescribeFlowOperationCommandOutput,
74+
} from "./commands/DescribeFlowOperationCommand";
7075
import {
7176
DescribeLoggingConfigurationCommand,
7277
DescribeLoggingConfigurationCommandInput,
@@ -117,6 +122,16 @@ import {
117122
ListFirewallsCommandInput,
118123
ListFirewallsCommandOutput,
119124
} from "./commands/ListFirewallsCommand";
125+
import {
126+
ListFlowOperationResultsCommand,
127+
ListFlowOperationResultsCommandInput,
128+
ListFlowOperationResultsCommandOutput,
129+
} from "./commands/ListFlowOperationResultsCommand";
130+
import {
131+
ListFlowOperationsCommand,
132+
ListFlowOperationsCommandInput,
133+
ListFlowOperationsCommandOutput,
134+
} from "./commands/ListFlowOperationsCommand";
120135
import {
121136
ListRuleGroupsCommand,
122137
ListRuleGroupsCommandInput,
@@ -142,6 +157,16 @@ import {
142157
StartAnalysisReportCommandInput,
143158
StartAnalysisReportCommandOutput,
144159
} from "./commands/StartAnalysisReportCommand";
160+
import {
161+
StartFlowCaptureCommand,
162+
StartFlowCaptureCommandInput,
163+
StartFlowCaptureCommandOutput,
164+
} from "./commands/StartFlowCaptureCommand";
165+
import {
166+
StartFlowFlushCommand,
167+
StartFlowFlushCommandInput,
168+
StartFlowFlushCommandOutput,
169+
} from "./commands/StartFlowFlushCommand";
145170
import { TagResourceCommand, TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
146171
import {
147172
UntagResourceCommand,
@@ -214,6 +239,7 @@ const commands = {
214239
DeleteTLSInspectionConfigurationCommand,
215240
DescribeFirewallCommand,
216241
DescribeFirewallPolicyCommand,
242+
DescribeFlowOperationCommand,
217243
DescribeLoggingConfigurationCommand,
218244
DescribeResourcePolicyCommand,
219245
DescribeRuleGroupCommand,
@@ -224,11 +250,15 @@ const commands = {
224250
ListAnalysisReportsCommand,
225251
ListFirewallPoliciesCommand,
226252
ListFirewallsCommand,
253+
ListFlowOperationResultsCommand,
254+
ListFlowOperationsCommand,
227255
ListRuleGroupsCommand,
228256
ListTagsForResourceCommand,
229257
ListTLSInspectionConfigurationsCommand,
230258
PutResourcePolicyCommand,
231259
StartAnalysisReportCommand,
260+
StartFlowCaptureCommand,
261+
StartFlowFlushCommand,
232262
TagResourceCommand,
233263
UntagResourceCommand,
234264
UpdateFirewallAnalysisSettingsCommand,
@@ -459,6 +489,23 @@ export interface NetworkFirewall {
459489
cb: (err: any, data?: DescribeFirewallPolicyCommandOutput) => void
460490
): void;
461491

492+
/**
493+
* @see {@link DescribeFlowOperationCommand}
494+
*/
495+
describeFlowOperation(
496+
args: DescribeFlowOperationCommandInput,
497+
options?: __HttpHandlerOptions
498+
): Promise<DescribeFlowOperationCommandOutput>;
499+
describeFlowOperation(
500+
args: DescribeFlowOperationCommandInput,
501+
cb: (err: any, data?: DescribeFlowOperationCommandOutput) => void
502+
): void;
503+
describeFlowOperation(
504+
args: DescribeFlowOperationCommandInput,
505+
options: __HttpHandlerOptions,
506+
cb: (err: any, data?: DescribeFlowOperationCommandOutput) => void
507+
): void;
508+
462509
/**
463510
* @see {@link DescribeLoggingConfigurationCommand}
464511
*/
@@ -630,6 +677,40 @@ export interface NetworkFirewall {
630677
cb: (err: any, data?: ListFirewallsCommandOutput) => void
631678
): void;
632679

680+
/**
681+
* @see {@link ListFlowOperationResultsCommand}
682+
*/
683+
listFlowOperationResults(
684+
args: ListFlowOperationResultsCommandInput,
685+
options?: __HttpHandlerOptions
686+
): Promise<ListFlowOperationResultsCommandOutput>;
687+
listFlowOperationResults(
688+
args: ListFlowOperationResultsCommandInput,
689+
cb: (err: any, data?: ListFlowOperationResultsCommandOutput) => void
690+
): void;
691+
listFlowOperationResults(
692+
args: ListFlowOperationResultsCommandInput,
693+
options: __HttpHandlerOptions,
694+
cb: (err: any, data?: ListFlowOperationResultsCommandOutput) => void
695+
): void;
696+
697+
/**
698+
* @see {@link ListFlowOperationsCommand}
699+
*/
700+
listFlowOperations(
701+
args: ListFlowOperationsCommandInput,
702+
options?: __HttpHandlerOptions
703+
): Promise<ListFlowOperationsCommandOutput>;
704+
listFlowOperations(
705+
args: ListFlowOperationsCommandInput,
706+
cb: (err: any, data?: ListFlowOperationsCommandOutput) => void
707+
): void;
708+
listFlowOperations(
709+
args: ListFlowOperationsCommandInput,
710+
options: __HttpHandlerOptions,
711+
cb: (err: any, data?: ListFlowOperationsCommandOutput) => void
712+
): void;
713+
633714
/**
634715
* @see {@link ListRuleGroupsCommand}
635716
*/
@@ -714,6 +795,37 @@ export interface NetworkFirewall {
714795
cb: (err: any, data?: StartAnalysisReportCommandOutput) => void
715796
): void;
716797

798+
/**
799+
* @see {@link StartFlowCaptureCommand}
800+
*/
801+
startFlowCapture(
802+
args: StartFlowCaptureCommandInput,
803+
options?: __HttpHandlerOptions
804+
): Promise<StartFlowCaptureCommandOutput>;
805+
startFlowCapture(
806+
args: StartFlowCaptureCommandInput,
807+
cb: (err: any, data?: StartFlowCaptureCommandOutput) => void
808+
): void;
809+
startFlowCapture(
810+
args: StartFlowCaptureCommandInput,
811+
options: __HttpHandlerOptions,
812+
cb: (err: any, data?: StartFlowCaptureCommandOutput) => void
813+
): void;
814+
815+
/**
816+
* @see {@link StartFlowFlushCommand}
817+
*/
818+
startFlowFlush(
819+
args: StartFlowFlushCommandInput,
820+
options?: __HttpHandlerOptions
821+
): Promise<StartFlowFlushCommandOutput>;
822+
startFlowFlush(args: StartFlowFlushCommandInput, cb: (err: any, data?: StartFlowFlushCommandOutput) => void): void;
823+
startFlowFlush(
824+
args: StartFlowFlushCommandInput,
825+
options: __HttpHandlerOptions,
826+
cb: (err: any, data?: StartFlowFlushCommandOutput) => void
827+
): void;
828+
717829
/**
718830
* @see {@link TagResourceCommand}
719831
*/

clients/client-network-firewall/src/NetworkFirewallClient.ts

+21
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ import {
8787
DescribeFirewallPolicyCommandInput,
8888
DescribeFirewallPolicyCommandOutput,
8989
} from "./commands/DescribeFirewallPolicyCommand";
90+
import {
91+
DescribeFlowOperationCommandInput,
92+
DescribeFlowOperationCommandOutput,
93+
} from "./commands/DescribeFlowOperationCommand";
9094
import {
9195
DescribeLoggingConfigurationCommandInput,
9296
DescribeLoggingConfigurationCommandOutput,
@@ -121,6 +125,11 @@ import {
121125
ListFirewallPoliciesCommandOutput,
122126
} from "./commands/ListFirewallPoliciesCommand";
123127
import { ListFirewallsCommandInput, ListFirewallsCommandOutput } from "./commands/ListFirewallsCommand";
128+
import {
129+
ListFlowOperationResultsCommandInput,
130+
ListFlowOperationResultsCommandOutput,
131+
} from "./commands/ListFlowOperationResultsCommand";
132+
import { ListFlowOperationsCommandInput, ListFlowOperationsCommandOutput } from "./commands/ListFlowOperationsCommand";
124133
import { ListRuleGroupsCommandInput, ListRuleGroupsCommandOutput } from "./commands/ListRuleGroupsCommand";
125134
import {
126135
ListTagsForResourceCommandInput,
@@ -135,6 +144,8 @@ import {
135144
StartAnalysisReportCommandInput,
136145
StartAnalysisReportCommandOutput,
137146
} from "./commands/StartAnalysisReportCommand";
147+
import { StartFlowCaptureCommandInput, StartFlowCaptureCommandOutput } from "./commands/StartFlowCaptureCommand";
148+
import { StartFlowFlushCommandInput, StartFlowFlushCommandOutput } from "./commands/StartFlowFlushCommand";
138149
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
139150
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
140151
import {
@@ -202,6 +213,7 @@ export type ServiceInputTypes =
202213
| DeleteTLSInspectionConfigurationCommandInput
203214
| DescribeFirewallCommandInput
204215
| DescribeFirewallPolicyCommandInput
216+
| DescribeFlowOperationCommandInput
205217
| DescribeLoggingConfigurationCommandInput
206218
| DescribeResourcePolicyCommandInput
207219
| DescribeRuleGroupCommandInput
@@ -212,11 +224,15 @@ export type ServiceInputTypes =
212224
| ListAnalysisReportsCommandInput
213225
| ListFirewallPoliciesCommandInput
214226
| ListFirewallsCommandInput
227+
| ListFlowOperationResultsCommandInput
228+
| ListFlowOperationsCommandInput
215229
| ListRuleGroupsCommandInput
216230
| ListTLSInspectionConfigurationsCommandInput
217231
| ListTagsForResourceCommandInput
218232
| PutResourcePolicyCommandInput
219233
| StartAnalysisReportCommandInput
234+
| StartFlowCaptureCommandInput
235+
| StartFlowFlushCommandInput
220236
| TagResourceCommandInput
221237
| UntagResourceCommandInput
222238
| UpdateFirewallAnalysisSettingsCommandInput
@@ -247,6 +263,7 @@ export type ServiceOutputTypes =
247263
| DeleteTLSInspectionConfigurationCommandOutput
248264
| DescribeFirewallCommandOutput
249265
| DescribeFirewallPolicyCommandOutput
266+
| DescribeFlowOperationCommandOutput
250267
| DescribeLoggingConfigurationCommandOutput
251268
| DescribeResourcePolicyCommandOutput
252269
| DescribeRuleGroupCommandOutput
@@ -257,11 +274,15 @@ export type ServiceOutputTypes =
257274
| ListAnalysisReportsCommandOutput
258275
| ListFirewallPoliciesCommandOutput
259276
| ListFirewallsCommandOutput
277+
| ListFlowOperationResultsCommandOutput
278+
| ListFlowOperationsCommandOutput
260279
| ListRuleGroupsCommandOutput
261280
| ListTLSInspectionConfigurationsCommandOutput
262281
| ListTagsForResourceCommandOutput
263282
| PutResourcePolicyCommandOutput
264283
| StartAnalysisReportCommandOutput
284+
| StartFlowCaptureCommandOutput
285+
| StartFlowFlushCommandOutput
265286
| TagResourceCommandOutput
266287
| UntagResourceCommandOutput
267288
| UpdateFirewallAnalysisSettingsCommandOutput

0 commit comments

Comments
 (0)