Skip to content

Commit 0163292

Browse files
author
awstools
committed
feat(client-network-firewall): You can now create firewalls using a Transit Gateway instead of a VPC, resulting in a TGW attachment.
1 parent c1459bc commit 0163292

21 files changed

+2873
-163
lines changed

clients/client-network-firewall/README.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,22 @@ see LICENSE for more information.
289289

290290
## Client Commands (Operations List)
291291

292+
<details>
293+
<summary>
294+
AcceptNetworkFirewallTransitGatewayAttachment
295+
</summary>
296+
297+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/network-firewall/command/AcceptNetworkFirewallTransitGatewayAttachmentCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-network-firewall/Interface/AcceptNetworkFirewallTransitGatewayAttachmentCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-network-firewall/Interface/AcceptNetworkFirewallTransitGatewayAttachmentCommandOutput/)
298+
299+
</details>
300+
<details>
301+
<summary>
302+
AssociateAvailabilityZones
303+
</summary>
304+
305+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/network-firewall/command/AssociateAvailabilityZonesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-network-firewall/Interface/AssociateAvailabilityZonesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-network-firewall/Interface/AssociateAvailabilityZonesCommandOutput/)
306+
307+
</details>
292308
<details>
293309
<summary>
294310
AssociateFirewallPolicy
@@ -360,6 +376,14 @@ DeleteFirewallPolicy
360376

361377
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/network-firewall/command/DeleteFirewallPolicyCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-network-firewall/Interface/DeleteFirewallPolicyCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-network-firewall/Interface/DeleteFirewallPolicyCommandOutput/)
362378

379+
</details>
380+
<details>
381+
<summary>
382+
DeleteNetworkFirewallTransitGatewayAttachment
383+
</summary>
384+
385+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/network-firewall/command/DeleteNetworkFirewallTransitGatewayAttachmentCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-network-firewall/Interface/DeleteNetworkFirewallTransitGatewayAttachmentCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-network-firewall/Interface/DeleteNetworkFirewallTransitGatewayAttachmentCommandOutput/)
386+
363387
</details>
364388
<details>
365389
<summary>
@@ -472,6 +496,14 @@ DescribeVpcEndpointAssociation
472496

473497
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/network-firewall/command/DescribeVpcEndpointAssociationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-network-firewall/Interface/DescribeVpcEndpointAssociationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-network-firewall/Interface/DescribeVpcEndpointAssociationCommandOutput/)
474498

499+
</details>
500+
<details>
501+
<summary>
502+
DisassociateAvailabilityZones
503+
</summary>
504+
505+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/network-firewall/command/DisassociateAvailabilityZonesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-network-firewall/Interface/DisassociateAvailabilityZonesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-network-firewall/Interface/DisassociateAvailabilityZonesCommandOutput/)
506+
475507
</details>
476508
<details>
477509
<summary>
@@ -568,6 +600,14 @@ PutResourcePolicy
568600

569601
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/network-firewall/command/PutResourcePolicyCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-network-firewall/Interface/PutResourcePolicyCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-network-firewall/Interface/PutResourcePolicyCommandOutput/)
570602

603+
</details>
604+
<details>
605+
<summary>
606+
RejectNetworkFirewallTransitGatewayAttachment
607+
</summary>
608+
609+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/network-firewall/command/RejectNetworkFirewallTransitGatewayAttachmentCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-network-firewall/Interface/RejectNetworkFirewallTransitGatewayAttachmentCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-network-firewall/Interface/RejectNetworkFirewallTransitGatewayAttachmentCommandOutput/)
610+
571611
</details>
572612
<details>
573613
<summary>
@@ -608,6 +648,14 @@ UntagResource
608648

609649
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/network-firewall/command/UntagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-network-firewall/Interface/UntagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-network-firewall/Interface/UntagResourceCommandOutput/)
610650

651+
</details>
652+
<details>
653+
<summary>
654+
UpdateAvailabilityZoneChangeProtection
655+
</summary>
656+
657+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/network-firewall/command/UpdateAvailabilityZoneChangeProtectionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-network-firewall/Interface/UpdateAvailabilityZoneChangeProtectionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-network-firewall/Interface/UpdateAvailabilityZoneChangeProtectionCommandOutput/)
658+
611659
</details>
612660
<details>
613661
<summary>

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

Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22
import { createAggregatedClient } from "@smithy/smithy-client";
33
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
44

5+
import {
6+
AcceptNetworkFirewallTransitGatewayAttachmentCommand,
7+
AcceptNetworkFirewallTransitGatewayAttachmentCommandInput,
8+
AcceptNetworkFirewallTransitGatewayAttachmentCommandOutput,
9+
} from "./commands/AcceptNetworkFirewallTransitGatewayAttachmentCommand";
10+
import {
11+
AssociateAvailabilityZonesCommand,
12+
AssociateAvailabilityZonesCommandInput,
13+
AssociateAvailabilityZonesCommandOutput,
14+
} from "./commands/AssociateAvailabilityZonesCommand";
515
import {
616
AssociateFirewallPolicyCommand,
717
AssociateFirewallPolicyCommandInput,
@@ -47,6 +57,11 @@ import {
4757
DeleteFirewallPolicyCommandInput,
4858
DeleteFirewallPolicyCommandOutput,
4959
} from "./commands/DeleteFirewallPolicyCommand";
60+
import {
61+
DeleteNetworkFirewallTransitGatewayAttachmentCommand,
62+
DeleteNetworkFirewallTransitGatewayAttachmentCommandInput,
63+
DeleteNetworkFirewallTransitGatewayAttachmentCommandOutput,
64+
} from "./commands/DeleteNetworkFirewallTransitGatewayAttachmentCommand";
5065
import {
5166
DeleteResourcePolicyCommand,
5267
DeleteResourcePolicyCommandInput,
@@ -117,6 +132,11 @@ import {
117132
DescribeVpcEndpointAssociationCommandInput,
118133
DescribeVpcEndpointAssociationCommandOutput,
119134
} from "./commands/DescribeVpcEndpointAssociationCommand";
135+
import {
136+
DisassociateAvailabilityZonesCommand,
137+
DisassociateAvailabilityZonesCommandInput,
138+
DisassociateAvailabilityZonesCommandOutput,
139+
} from "./commands/DisassociateAvailabilityZonesCommand";
120140
import {
121141
DisassociateSubnetsCommand,
122142
DisassociateSubnetsCommandInput,
@@ -177,6 +197,11 @@ import {
177197
PutResourcePolicyCommandInput,
178198
PutResourcePolicyCommandOutput,
179199
} from "./commands/PutResourcePolicyCommand";
200+
import {
201+
RejectNetworkFirewallTransitGatewayAttachmentCommand,
202+
RejectNetworkFirewallTransitGatewayAttachmentCommandInput,
203+
RejectNetworkFirewallTransitGatewayAttachmentCommandOutput,
204+
} from "./commands/RejectNetworkFirewallTransitGatewayAttachmentCommand";
180205
import {
181206
StartAnalysisReportCommand,
182207
StartAnalysisReportCommandInput,
@@ -198,6 +223,11 @@ import {
198223
UntagResourceCommandInput,
199224
UntagResourceCommandOutput,
200225
} from "./commands/UntagResourceCommand";
226+
import {
227+
UpdateAvailabilityZoneChangeProtectionCommand,
228+
UpdateAvailabilityZoneChangeProtectionCommandInput,
229+
UpdateAvailabilityZoneChangeProtectionCommandOutput,
230+
} from "./commands/UpdateAvailabilityZoneChangeProtectionCommand";
201231
import {
202232
UpdateFirewallAnalysisSettingsCommand,
203233
UpdateFirewallAnalysisSettingsCommandInput,
@@ -251,6 +281,8 @@ import {
251281
import { NetworkFirewallClient, NetworkFirewallClientConfig } from "./NetworkFirewallClient";
252282

253283
const commands = {
284+
AcceptNetworkFirewallTransitGatewayAttachmentCommand,
285+
AssociateAvailabilityZonesCommand,
254286
AssociateFirewallPolicyCommand,
255287
AssociateSubnetsCommand,
256288
CreateFirewallCommand,
@@ -260,6 +292,7 @@ const commands = {
260292
CreateVpcEndpointAssociationCommand,
261293
DeleteFirewallCommand,
262294
DeleteFirewallPolicyCommand,
295+
DeleteNetworkFirewallTransitGatewayAttachmentCommand,
263296
DeleteResourcePolicyCommand,
264297
DeleteRuleGroupCommand,
265298
DeleteTLSInspectionConfigurationCommand,
@@ -274,6 +307,7 @@ const commands = {
274307
DescribeRuleGroupMetadataCommand,
275308
DescribeTLSInspectionConfigurationCommand,
276309
DescribeVpcEndpointAssociationCommand,
310+
DisassociateAvailabilityZonesCommand,
277311
DisassociateSubnetsCommand,
278312
GetAnalysisReportResultsCommand,
279313
ListAnalysisReportsCommand,
@@ -286,11 +320,13 @@ const commands = {
286320
ListTLSInspectionConfigurationsCommand,
287321
ListVpcEndpointAssociationsCommand,
288322
PutResourcePolicyCommand,
323+
RejectNetworkFirewallTransitGatewayAttachmentCommand,
289324
StartAnalysisReportCommand,
290325
StartFlowCaptureCommand,
291326
StartFlowFlushCommand,
292327
TagResourceCommand,
293328
UntagResourceCommand,
329+
UpdateAvailabilityZoneChangeProtectionCommand,
294330
UpdateFirewallAnalysisSettingsCommand,
295331
UpdateFirewallDeleteProtectionCommand,
296332
UpdateFirewallDescriptionCommand,
@@ -304,6 +340,40 @@ const commands = {
304340
};
305341

306342
export interface NetworkFirewall {
343+
/**
344+
* @see {@link AcceptNetworkFirewallTransitGatewayAttachmentCommand}
345+
*/
346+
acceptNetworkFirewallTransitGatewayAttachment(
347+
args: AcceptNetworkFirewallTransitGatewayAttachmentCommandInput,
348+
options?: __HttpHandlerOptions
349+
): Promise<AcceptNetworkFirewallTransitGatewayAttachmentCommandOutput>;
350+
acceptNetworkFirewallTransitGatewayAttachment(
351+
args: AcceptNetworkFirewallTransitGatewayAttachmentCommandInput,
352+
cb: (err: any, data?: AcceptNetworkFirewallTransitGatewayAttachmentCommandOutput) => void
353+
): void;
354+
acceptNetworkFirewallTransitGatewayAttachment(
355+
args: AcceptNetworkFirewallTransitGatewayAttachmentCommandInput,
356+
options: __HttpHandlerOptions,
357+
cb: (err: any, data?: AcceptNetworkFirewallTransitGatewayAttachmentCommandOutput) => void
358+
): void;
359+
360+
/**
361+
* @see {@link AssociateAvailabilityZonesCommand}
362+
*/
363+
associateAvailabilityZones(
364+
args: AssociateAvailabilityZonesCommandInput,
365+
options?: __HttpHandlerOptions
366+
): Promise<AssociateAvailabilityZonesCommandOutput>;
367+
associateAvailabilityZones(
368+
args: AssociateAvailabilityZonesCommandInput,
369+
cb: (err: any, data?: AssociateAvailabilityZonesCommandOutput) => void
370+
): void;
371+
associateAvailabilityZones(
372+
args: AssociateAvailabilityZonesCommandInput,
373+
options: __HttpHandlerOptions,
374+
cb: (err: any, data?: AssociateAvailabilityZonesCommandOutput) => void
375+
): void;
376+
307377
/**
308378
* @see {@link AssociateFirewallPolicyCommand}
309379
*/
@@ -450,6 +520,23 @@ export interface NetworkFirewall {
450520
cb: (err: any, data?: DeleteFirewallPolicyCommandOutput) => void
451521
): void;
452522

523+
/**
524+
* @see {@link DeleteNetworkFirewallTransitGatewayAttachmentCommand}
525+
*/
526+
deleteNetworkFirewallTransitGatewayAttachment(
527+
args: DeleteNetworkFirewallTransitGatewayAttachmentCommandInput,
528+
options?: __HttpHandlerOptions
529+
): Promise<DeleteNetworkFirewallTransitGatewayAttachmentCommandOutput>;
530+
deleteNetworkFirewallTransitGatewayAttachment(
531+
args: DeleteNetworkFirewallTransitGatewayAttachmentCommandInput,
532+
cb: (err: any, data?: DeleteNetworkFirewallTransitGatewayAttachmentCommandOutput) => void
533+
): void;
534+
deleteNetworkFirewallTransitGatewayAttachment(
535+
args: DeleteNetworkFirewallTransitGatewayAttachmentCommandInput,
536+
options: __HttpHandlerOptions,
537+
cb: (err: any, data?: DeleteNetworkFirewallTransitGatewayAttachmentCommandOutput) => void
538+
): void;
539+
453540
/**
454541
* @see {@link DeleteResourcePolicyCommand}
455542
*/
@@ -694,6 +781,23 @@ export interface NetworkFirewall {
694781
cb: (err: any, data?: DescribeVpcEndpointAssociationCommandOutput) => void
695782
): void;
696783

784+
/**
785+
* @see {@link DisassociateAvailabilityZonesCommand}
786+
*/
787+
disassociateAvailabilityZones(
788+
args: DisassociateAvailabilityZonesCommandInput,
789+
options?: __HttpHandlerOptions
790+
): Promise<DisassociateAvailabilityZonesCommandOutput>;
791+
disassociateAvailabilityZones(
792+
args: DisassociateAvailabilityZonesCommandInput,
793+
cb: (err: any, data?: DisassociateAvailabilityZonesCommandOutput) => void
794+
): void;
795+
disassociateAvailabilityZones(
796+
args: DisassociateAvailabilityZonesCommandInput,
797+
options: __HttpHandlerOptions,
798+
cb: (err: any, data?: DisassociateAvailabilityZonesCommandOutput) => void
799+
): void;
800+
697801
/**
698802
* @see {@link DisassociateSubnetsCommand}
699803
*/
@@ -895,6 +999,23 @@ export interface NetworkFirewall {
895999
cb: (err: any, data?: PutResourcePolicyCommandOutput) => void
8961000
): void;
8971001

1002+
/**
1003+
* @see {@link RejectNetworkFirewallTransitGatewayAttachmentCommand}
1004+
*/
1005+
rejectNetworkFirewallTransitGatewayAttachment(
1006+
args: RejectNetworkFirewallTransitGatewayAttachmentCommandInput,
1007+
options?: __HttpHandlerOptions
1008+
): Promise<RejectNetworkFirewallTransitGatewayAttachmentCommandOutput>;
1009+
rejectNetworkFirewallTransitGatewayAttachment(
1010+
args: RejectNetworkFirewallTransitGatewayAttachmentCommandInput,
1011+
cb: (err: any, data?: RejectNetworkFirewallTransitGatewayAttachmentCommandOutput) => void
1012+
): void;
1013+
rejectNetworkFirewallTransitGatewayAttachment(
1014+
args: RejectNetworkFirewallTransitGatewayAttachmentCommandInput,
1015+
options: __HttpHandlerOptions,
1016+
cb: (err: any, data?: RejectNetworkFirewallTransitGatewayAttachmentCommandOutput) => void
1017+
): void;
1018+
8981019
/**
8991020
* @see {@link StartAnalysisReportCommand}
9001021
*/
@@ -965,6 +1086,23 @@ export interface NetworkFirewall {
9651086
cb: (err: any, data?: UntagResourceCommandOutput) => void
9661087
): void;
9671088

1089+
/**
1090+
* @see {@link UpdateAvailabilityZoneChangeProtectionCommand}
1091+
*/
1092+
updateAvailabilityZoneChangeProtection(
1093+
args: UpdateAvailabilityZoneChangeProtectionCommandInput,
1094+
options?: __HttpHandlerOptions
1095+
): Promise<UpdateAvailabilityZoneChangeProtectionCommandOutput>;
1096+
updateAvailabilityZoneChangeProtection(
1097+
args: UpdateAvailabilityZoneChangeProtectionCommandInput,
1098+
cb: (err: any, data?: UpdateAvailabilityZoneChangeProtectionCommandOutput) => void
1099+
): void;
1100+
updateAvailabilityZoneChangeProtection(
1101+
args: UpdateAvailabilityZoneChangeProtectionCommandInput,
1102+
options: __HttpHandlerOptions,
1103+
cb: (err: any, data?: UpdateAvailabilityZoneChangeProtectionCommandOutput) => void
1104+
): void;
1105+
9681106
/**
9691107
* @see {@link UpdateFirewallAnalysisSettingsCommand}
9701108
*/

0 commit comments

Comments
 (0)