@aws-sdk/client-network-firewall 3.35.0 → 3.36.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 (231) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist-cjs/NetworkFirewall.js +0 -1
  3. package/dist-cjs/NetworkFirewallClient.js +0 -1
  4. package/dist-cjs/commands/AssociateFirewallPolicyCommand.js +0 -1
  5. package/dist-cjs/commands/AssociateSubnetsCommand.js +0 -1
  6. package/dist-cjs/commands/CreateFirewallCommand.js +0 -1
  7. package/dist-cjs/commands/CreateFirewallPolicyCommand.js +0 -1
  8. package/dist-cjs/commands/CreateRuleGroupCommand.js +0 -1
  9. package/dist-cjs/commands/DeleteFirewallCommand.js +0 -1
  10. package/dist-cjs/commands/DeleteFirewallPolicyCommand.js +0 -1
  11. package/dist-cjs/commands/DeleteResourcePolicyCommand.js +0 -1
  12. package/dist-cjs/commands/DeleteRuleGroupCommand.js +0 -1
  13. package/dist-cjs/commands/DescribeFirewallCommand.js +0 -1
  14. package/dist-cjs/commands/DescribeFirewallPolicyCommand.js +0 -1
  15. package/dist-cjs/commands/DescribeLoggingConfigurationCommand.js +0 -1
  16. package/dist-cjs/commands/DescribeResourcePolicyCommand.js +0 -1
  17. package/dist-cjs/commands/DescribeRuleGroupCommand.js +0 -1
  18. package/dist-cjs/commands/DisassociateSubnetsCommand.js +0 -1
  19. package/dist-cjs/commands/ListFirewallPoliciesCommand.js +0 -1
  20. package/dist-cjs/commands/ListFirewallsCommand.js +0 -1
  21. package/dist-cjs/commands/ListRuleGroupsCommand.js +0 -1
  22. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
  23. package/dist-cjs/commands/PutResourcePolicyCommand.js +0 -1
  24. package/dist-cjs/commands/TagResourceCommand.js +0 -1
  25. package/dist-cjs/commands/UntagResourceCommand.js +0 -1
  26. package/dist-cjs/commands/UpdateFirewallDeleteProtectionCommand.js +0 -1
  27. package/dist-cjs/commands/UpdateFirewallDescriptionCommand.js +0 -1
  28. package/dist-cjs/commands/UpdateFirewallPolicyChangeProtectionCommand.js +0 -1
  29. package/dist-cjs/commands/UpdateFirewallPolicyCommand.js +0 -1
  30. package/dist-cjs/commands/UpdateLoggingConfigurationCommand.js +0 -1
  31. package/dist-cjs/commands/UpdateRuleGroupCommand.js +0 -1
  32. package/dist-cjs/commands/UpdateSubnetChangeProtectionCommand.js +0 -1
  33. package/dist-cjs/endpoints.js +0 -1
  34. package/dist-cjs/index.js +0 -1
  35. package/dist-cjs/models/index.js +0 -1
  36. package/dist-cjs/models/models_0.js +0 -1
  37. package/dist-cjs/pagination/Interfaces.js +0 -1
  38. package/dist-cjs/pagination/ListFirewallPoliciesPaginator.js +0 -1
  39. package/dist-cjs/pagination/ListFirewallsPaginator.js +0 -1
  40. package/dist-cjs/pagination/ListRuleGroupsPaginator.js +0 -1
  41. package/dist-cjs/pagination/ListTagsForResourcePaginator.js +0 -1
  42. package/dist-cjs/protocols/Aws_json1_0.js +0 -1
  43. package/dist-cjs/runtimeConfig.browser.js +2 -3
  44. package/dist-cjs/runtimeConfig.js +3 -4
  45. package/dist-cjs/runtimeConfig.native.js +0 -1
  46. package/dist-cjs/runtimeConfig.shared.js +0 -1
  47. package/dist-es/NetworkFirewall.js +0 -1
  48. package/dist-es/NetworkFirewallClient.js +0 -1
  49. package/dist-es/commands/AssociateFirewallPolicyCommand.js +0 -1
  50. package/dist-es/commands/AssociateSubnetsCommand.js +0 -1
  51. package/dist-es/commands/CreateFirewallCommand.js +0 -1
  52. package/dist-es/commands/CreateFirewallPolicyCommand.js +0 -1
  53. package/dist-es/commands/CreateRuleGroupCommand.js +0 -1
  54. package/dist-es/commands/DeleteFirewallCommand.js +0 -1
  55. package/dist-es/commands/DeleteFirewallPolicyCommand.js +0 -1
  56. package/dist-es/commands/DeleteResourcePolicyCommand.js +0 -1
  57. package/dist-es/commands/DeleteRuleGroupCommand.js +0 -1
  58. package/dist-es/commands/DescribeFirewallCommand.js +0 -1
  59. package/dist-es/commands/DescribeFirewallPolicyCommand.js +0 -1
  60. package/dist-es/commands/DescribeLoggingConfigurationCommand.js +0 -1
  61. package/dist-es/commands/DescribeResourcePolicyCommand.js +0 -1
  62. package/dist-es/commands/DescribeRuleGroupCommand.js +0 -1
  63. package/dist-es/commands/DisassociateSubnetsCommand.js +0 -1
  64. package/dist-es/commands/ListFirewallPoliciesCommand.js +0 -1
  65. package/dist-es/commands/ListFirewallsCommand.js +0 -1
  66. package/dist-es/commands/ListRuleGroupsCommand.js +0 -1
  67. package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
  68. package/dist-es/commands/PutResourcePolicyCommand.js +0 -1
  69. package/dist-es/commands/TagResourceCommand.js +0 -1
  70. package/dist-es/commands/UntagResourceCommand.js +0 -1
  71. package/dist-es/commands/UpdateFirewallDeleteProtectionCommand.js +0 -1
  72. package/dist-es/commands/UpdateFirewallDescriptionCommand.js +0 -1
  73. package/dist-es/commands/UpdateFirewallPolicyChangeProtectionCommand.js +0 -1
  74. package/dist-es/commands/UpdateFirewallPolicyCommand.js +0 -1
  75. package/dist-es/commands/UpdateLoggingConfigurationCommand.js +0 -1
  76. package/dist-es/commands/UpdateRuleGroupCommand.js +0 -1
  77. package/dist-es/commands/UpdateSubnetChangeProtectionCommand.js +0 -1
  78. package/dist-es/endpoints.js +0 -1
  79. package/dist-es/index.js +0 -1
  80. package/dist-es/models/index.js +0 -1
  81. package/dist-es/models/models_0.js +0 -1
  82. package/dist-es/pagination/Interfaces.js +0 -1
  83. package/dist-es/pagination/ListFirewallPoliciesPaginator.js +0 -1
  84. package/dist-es/pagination/ListFirewallsPaginator.js +0 -1
  85. package/dist-es/pagination/ListRuleGroupsPaginator.js +0 -1
  86. package/dist-es/pagination/ListTagsForResourcePaginator.js +0 -1
  87. package/dist-es/protocols/Aws_json1_0.js +0 -1
  88. package/dist-es/runtimeConfig.browser.js +1 -2
  89. package/dist-es/runtimeConfig.js +2 -3
  90. package/dist-es/runtimeConfig.native.js +0 -1
  91. package/dist-es/runtimeConfig.shared.js +0 -1
  92. package/package.json +33 -30
  93. package/dist-cjs/NetworkFirewall.js.map +0 -1
  94. package/dist-cjs/NetworkFirewallClient.js.map +0 -1
  95. package/dist-cjs/commands/AssociateFirewallPolicyCommand.js.map +0 -1
  96. package/dist-cjs/commands/AssociateSubnetsCommand.js.map +0 -1
  97. package/dist-cjs/commands/CreateFirewallCommand.js.map +0 -1
  98. package/dist-cjs/commands/CreateFirewallPolicyCommand.js.map +0 -1
  99. package/dist-cjs/commands/CreateRuleGroupCommand.js.map +0 -1
  100. package/dist-cjs/commands/DeleteFirewallCommand.js.map +0 -1
  101. package/dist-cjs/commands/DeleteFirewallPolicyCommand.js.map +0 -1
  102. package/dist-cjs/commands/DeleteResourcePolicyCommand.js.map +0 -1
  103. package/dist-cjs/commands/DeleteRuleGroupCommand.js.map +0 -1
  104. package/dist-cjs/commands/DescribeFirewallCommand.js.map +0 -1
  105. package/dist-cjs/commands/DescribeFirewallPolicyCommand.js.map +0 -1
  106. package/dist-cjs/commands/DescribeLoggingConfigurationCommand.js.map +0 -1
  107. package/dist-cjs/commands/DescribeResourcePolicyCommand.js.map +0 -1
  108. package/dist-cjs/commands/DescribeRuleGroupCommand.js.map +0 -1
  109. package/dist-cjs/commands/DisassociateSubnetsCommand.js.map +0 -1
  110. package/dist-cjs/commands/ListFirewallPoliciesCommand.js.map +0 -1
  111. package/dist-cjs/commands/ListFirewallsCommand.js.map +0 -1
  112. package/dist-cjs/commands/ListRuleGroupsCommand.js.map +0 -1
  113. package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
  114. package/dist-cjs/commands/PutResourcePolicyCommand.js.map +0 -1
  115. package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
  116. package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
  117. package/dist-cjs/commands/UpdateFirewallDeleteProtectionCommand.js.map +0 -1
  118. package/dist-cjs/commands/UpdateFirewallDescriptionCommand.js.map +0 -1
  119. package/dist-cjs/commands/UpdateFirewallPolicyChangeProtectionCommand.js.map +0 -1
  120. package/dist-cjs/commands/UpdateFirewallPolicyCommand.js.map +0 -1
  121. package/dist-cjs/commands/UpdateLoggingConfigurationCommand.js.map +0 -1
  122. package/dist-cjs/commands/UpdateRuleGroupCommand.js.map +0 -1
  123. package/dist-cjs/commands/UpdateSubnetChangeProtectionCommand.js.map +0 -1
  124. package/dist-cjs/endpoints.js.map +0 -1
  125. package/dist-cjs/index.js.map +0 -1
  126. package/dist-cjs/models/index.js.map +0 -1
  127. package/dist-cjs/models/models_0.js.map +0 -1
  128. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  129. package/dist-cjs/pagination/ListFirewallPoliciesPaginator.js.map +0 -1
  130. package/dist-cjs/pagination/ListFirewallsPaginator.js.map +0 -1
  131. package/dist-cjs/pagination/ListRuleGroupsPaginator.js.map +0 -1
  132. package/dist-cjs/pagination/ListTagsForResourcePaginator.js.map +0 -1
  133. package/dist-cjs/protocols/Aws_json1_0.js.map +0 -1
  134. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  135. package/dist-cjs/runtimeConfig.js.map +0 -1
  136. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  137. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  138. package/dist-es/NetworkFirewall.js.map +0 -1
  139. package/dist-es/NetworkFirewallClient.js.map +0 -1
  140. package/dist-es/commands/AssociateFirewallPolicyCommand.js.map +0 -1
  141. package/dist-es/commands/AssociateSubnetsCommand.js.map +0 -1
  142. package/dist-es/commands/CreateFirewallCommand.js.map +0 -1
  143. package/dist-es/commands/CreateFirewallPolicyCommand.js.map +0 -1
  144. package/dist-es/commands/CreateRuleGroupCommand.js.map +0 -1
  145. package/dist-es/commands/DeleteFirewallCommand.js.map +0 -1
  146. package/dist-es/commands/DeleteFirewallPolicyCommand.js.map +0 -1
  147. package/dist-es/commands/DeleteResourcePolicyCommand.js.map +0 -1
  148. package/dist-es/commands/DeleteRuleGroupCommand.js.map +0 -1
  149. package/dist-es/commands/DescribeFirewallCommand.js.map +0 -1
  150. package/dist-es/commands/DescribeFirewallPolicyCommand.js.map +0 -1
  151. package/dist-es/commands/DescribeLoggingConfigurationCommand.js.map +0 -1
  152. package/dist-es/commands/DescribeResourcePolicyCommand.js.map +0 -1
  153. package/dist-es/commands/DescribeRuleGroupCommand.js.map +0 -1
  154. package/dist-es/commands/DisassociateSubnetsCommand.js.map +0 -1
  155. package/dist-es/commands/ListFirewallPoliciesCommand.js.map +0 -1
  156. package/dist-es/commands/ListFirewallsCommand.js.map +0 -1
  157. package/dist-es/commands/ListRuleGroupsCommand.js.map +0 -1
  158. package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
  159. package/dist-es/commands/PutResourcePolicyCommand.js.map +0 -1
  160. package/dist-es/commands/TagResourceCommand.js.map +0 -1
  161. package/dist-es/commands/UntagResourceCommand.js.map +0 -1
  162. package/dist-es/commands/UpdateFirewallDeleteProtectionCommand.js.map +0 -1
  163. package/dist-es/commands/UpdateFirewallDescriptionCommand.js.map +0 -1
  164. package/dist-es/commands/UpdateFirewallPolicyChangeProtectionCommand.js.map +0 -1
  165. package/dist-es/commands/UpdateFirewallPolicyCommand.js.map +0 -1
  166. package/dist-es/commands/UpdateLoggingConfigurationCommand.js.map +0 -1
  167. package/dist-es/commands/UpdateRuleGroupCommand.js.map +0 -1
  168. package/dist-es/commands/UpdateSubnetChangeProtectionCommand.js.map +0 -1
  169. package/dist-es/endpoints.js.map +0 -1
  170. package/dist-es/index.js.map +0 -1
  171. package/dist-es/models/index.js.map +0 -1
  172. package/dist-es/models/models_0.js.map +0 -1
  173. package/dist-es/pagination/Interfaces.js.map +0 -1
  174. package/dist-es/pagination/ListFirewallPoliciesPaginator.js.map +0 -1
  175. package/dist-es/pagination/ListFirewallsPaginator.js.map +0 -1
  176. package/dist-es/pagination/ListRuleGroupsPaginator.js.map +0 -1
  177. package/dist-es/pagination/ListTagsForResourcePaginator.js.map +0 -1
  178. package/dist-es/protocols/Aws_json1_0.js.map +0 -1
  179. package/dist-es/runtimeConfig.browser.js.map +0 -1
  180. package/dist-es/runtimeConfig.js.map +0 -1
  181. package/dist-es/runtimeConfig.native.js.map +0 -1
  182. package/dist-es/runtimeConfig.shared.js.map +0 -1
  183. package/jest.config.js +0 -4
  184. package/src/NetworkFirewall.ts +0 -1254
  185. package/src/NetworkFirewallClient.ts +0 -448
  186. package/src/commands/AssociateFirewallPolicyCommand.ts +0 -99
  187. package/src/commands/AssociateSubnetsCommand.ts +0 -100
  188. package/src/commands/CreateFirewallCommand.ts +0 -101
  189. package/src/commands/CreateFirewallPolicyCommand.ts +0 -98
  190. package/src/commands/CreateRuleGroupCommand.ts +0 -98
  191. package/src/commands/DeleteFirewallCommand.ts +0 -105
  192. package/src/commands/DeleteFirewallPolicyCommand.ts +0 -95
  193. package/src/commands/DeleteResourcePolicyCommand.ts +0 -95
  194. package/src/commands/DeleteRuleGroupCommand.ts +0 -95
  195. package/src/commands/DescribeFirewallCommand.ts +0 -95
  196. package/src/commands/DescribeFirewallPolicyCommand.ts +0 -95
  197. package/src/commands/DescribeLoggingConfigurationCommand.ts +0 -100
  198. package/src/commands/DescribeResourcePolicyCommand.ts +0 -95
  199. package/src/commands/DescribeRuleGroupCommand.ts +0 -95
  200. package/src/commands/DisassociateSubnetsCommand.ts +0 -98
  201. package/src/commands/ListFirewallPoliciesCommand.ts +0 -97
  202. package/src/commands/ListFirewallsCommand.ts +0 -98
  203. package/src/commands/ListRuleGroupsCommand.ts +0 -97
  204. package/src/commands/ListTagsForResourceCommand.ts +0 -101
  205. package/src/commands/PutResourcePolicyCommand.ts +0 -109
  206. package/src/commands/TagResourceCommand.ts +0 -100
  207. package/src/commands/UntagResourceCommand.ts +0 -101
  208. package/src/commands/UpdateFirewallDeleteProtectionCommand.ts +0 -106
  209. package/src/commands/UpdateFirewallDescriptionCommand.ts +0 -99
  210. package/src/commands/UpdateFirewallPolicyChangeProtectionCommand.ts +0 -106
  211. package/src/commands/UpdateFirewallPolicyCommand.ts +0 -95
  212. package/src/commands/UpdateLoggingConfigurationCommand.ts +0 -123
  213. package/src/commands/UpdateRuleGroupCommand.ts +0 -100
  214. package/src/commands/UpdateSubnetChangeProtectionCommand.ts +0 -100
  215. package/src/endpoints.ts +0 -91
  216. package/src/index.ts +0 -37
  217. package/src/models/index.ts +0 -1
  218. package/src/models/models_0.ts +0 -3567
  219. package/src/pagination/Interfaces.ts +0 -8
  220. package/src/pagination/ListFirewallPoliciesPaginator.ts +0 -59
  221. package/src/pagination/ListFirewallsPaginator.ts +0 -59
  222. package/src/pagination/ListRuleGroupsPaginator.ts +0 -59
  223. package/src/pagination/ListTagsForResourcePaginator.ts +0 -59
  224. package/src/protocols/Aws_json1_0.ts +0 -5479
  225. package/src/runtimeConfig.browser.ts +0 -41
  226. package/src/runtimeConfig.native.ts +0 -17
  227. package/src/runtimeConfig.shared.ts +0 -17
  228. package/src/runtimeConfig.ts +0 -46
  229. package/tsconfig.es.json +0 -10
  230. package/tsconfig.json +0 -33
  231. package/tsconfig.types.json +0 -9
@@ -1,101 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { CreateFirewallRequest, CreateFirewallResponse } from "../models/models_0";
15
- import { NetworkFirewallClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkFirewallClient";
16
- import {
17
- deserializeAws_json1_0CreateFirewallCommand,
18
- serializeAws_json1_0CreateFirewallCommand,
19
- } from "../protocols/Aws_json1_0";
20
-
21
- export interface CreateFirewallCommandInput extends CreateFirewallRequest {}
22
- export interface CreateFirewallCommandOutput extends CreateFirewallResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Creates an AWS Network Firewall <a>Firewall</a> and accompanying <a>FirewallStatus</a> for a VPC. </p>
26
- * <p>The firewall defines the configuration settings for an AWS Network Firewall firewall. The settings that you can define at creation include the firewall policy, the subnets in your VPC to use for the firewall endpoints, and any tags that are attached to the firewall AWS resource. </p>
27
- * <p>After you create a firewall, you can provide additional settings, like the logging configuration. </p>
28
- * <p>To update the settings for a firewall, you use the operations that apply to the settings
29
- * themselves, for example <a>UpdateLoggingConfiguration</a>, <a>AssociateSubnets</a>, and <a>UpdateFirewallDeleteProtection</a>. </p>
30
- * <p>To manage a firewall's tags, use the standard AWS resource tagging operations, <a>ListTagsForResource</a>, <a>TagResource</a>, and <a>UntagResource</a>.</p>
31
- * <p>To retrieve information about firewalls, use <a>ListFirewalls</a> and <a>DescribeFirewall</a>.</p>
32
- * @example
33
- * Use a bare-bones client and the command you need to make an API call.
34
- * ```javascript
35
- * import { NetworkFirewallClient, CreateFirewallCommand } from "@aws-sdk/client-network-firewall"; // ES Modules import
36
- * // const { NetworkFirewallClient, CreateFirewallCommand } = require("@aws-sdk/client-network-firewall"); // CommonJS import
37
- * const client = new NetworkFirewallClient(config);
38
- * const command = new CreateFirewallCommand(input);
39
- * const response = await client.send(command);
40
- * ```
41
- *
42
- * @see {@link CreateFirewallCommandInput} for command's `input` shape.
43
- * @see {@link CreateFirewallCommandOutput} for command's `response` shape.
44
- * @see {@link NetworkFirewallClientResolvedConfig | config} for command's `input` shape.
45
- *
46
- */
47
- export class CreateFirewallCommand extends $Command<
48
- CreateFirewallCommandInput,
49
- CreateFirewallCommandOutput,
50
- NetworkFirewallClientResolvedConfig
51
- > {
52
- // Start section: command_properties
53
- // End section: command_properties
54
-
55
- constructor(readonly input: CreateFirewallCommandInput) {
56
- // Start section: command_constructor
57
- super();
58
- // End section: command_constructor
59
- }
60
-
61
- /**
62
- * @internal
63
- */
64
- resolveMiddleware(
65
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
66
- configuration: NetworkFirewallClientResolvedConfig,
67
- options?: __HttpHandlerOptions
68
- ): Handler<CreateFirewallCommandInput, CreateFirewallCommandOutput> {
69
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
70
-
71
- const stack = clientStack.concat(this.middlewareStack);
72
-
73
- const { logger } = configuration;
74
- const clientName = "NetworkFirewallClient";
75
- const commandName = "CreateFirewallCommand";
76
- const handlerExecutionContext: HandlerExecutionContext = {
77
- logger,
78
- clientName,
79
- commandName,
80
- inputFilterSensitiveLog: CreateFirewallRequest.filterSensitiveLog,
81
- outputFilterSensitiveLog: CreateFirewallResponse.filterSensitiveLog,
82
- };
83
- const { requestHandler } = configuration;
84
- return stack.resolve(
85
- (request: FinalizeHandlerArguments<any>) =>
86
- requestHandler.handle(request.request as __HttpRequest, options || {}),
87
- handlerExecutionContext
88
- );
89
- }
90
-
91
- private serialize(input: CreateFirewallCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
92
- return serializeAws_json1_0CreateFirewallCommand(input, context);
93
- }
94
-
95
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateFirewallCommandOutput> {
96
- return deserializeAws_json1_0CreateFirewallCommand(output, context);
97
- }
98
-
99
- // Start section: command_body_extra
100
- // End section: command_body_extra
101
- }
@@ -1,98 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { CreateFirewallPolicyRequest, CreateFirewallPolicyResponse } from "../models/models_0";
15
- import { NetworkFirewallClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkFirewallClient";
16
- import {
17
- deserializeAws_json1_0CreateFirewallPolicyCommand,
18
- serializeAws_json1_0CreateFirewallPolicyCommand,
19
- } from "../protocols/Aws_json1_0";
20
-
21
- export interface CreateFirewallPolicyCommandInput extends CreateFirewallPolicyRequest {}
22
- export interface CreateFirewallPolicyCommandOutput extends CreateFirewallPolicyResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Creates the firewall policy for the firewall according to the specifications. </p>
26
- * <p>An AWS Network Firewall firewall policy defines the behavior of a firewall, in a collection of
27
- * stateless and stateful rule groups and other settings. You can use one firewall policy for
28
- * multiple firewalls. </p>
29
- * @example
30
- * Use a bare-bones client and the command you need to make an API call.
31
- * ```javascript
32
- * import { NetworkFirewallClient, CreateFirewallPolicyCommand } from "@aws-sdk/client-network-firewall"; // ES Modules import
33
- * // const { NetworkFirewallClient, CreateFirewallPolicyCommand } = require("@aws-sdk/client-network-firewall"); // CommonJS import
34
- * const client = new NetworkFirewallClient(config);
35
- * const command = new CreateFirewallPolicyCommand(input);
36
- * const response = await client.send(command);
37
- * ```
38
- *
39
- * @see {@link CreateFirewallPolicyCommandInput} for command's `input` shape.
40
- * @see {@link CreateFirewallPolicyCommandOutput} for command's `response` shape.
41
- * @see {@link NetworkFirewallClientResolvedConfig | config} for command's `input` shape.
42
- *
43
- */
44
- export class CreateFirewallPolicyCommand extends $Command<
45
- CreateFirewallPolicyCommandInput,
46
- CreateFirewallPolicyCommandOutput,
47
- NetworkFirewallClientResolvedConfig
48
- > {
49
- // Start section: command_properties
50
- // End section: command_properties
51
-
52
- constructor(readonly input: CreateFirewallPolicyCommandInput) {
53
- // Start section: command_constructor
54
- super();
55
- // End section: command_constructor
56
- }
57
-
58
- /**
59
- * @internal
60
- */
61
- resolveMiddleware(
62
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
63
- configuration: NetworkFirewallClientResolvedConfig,
64
- options?: __HttpHandlerOptions
65
- ): Handler<CreateFirewallPolicyCommandInput, CreateFirewallPolicyCommandOutput> {
66
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
67
-
68
- const stack = clientStack.concat(this.middlewareStack);
69
-
70
- const { logger } = configuration;
71
- const clientName = "NetworkFirewallClient";
72
- const commandName = "CreateFirewallPolicyCommand";
73
- const handlerExecutionContext: HandlerExecutionContext = {
74
- logger,
75
- clientName,
76
- commandName,
77
- inputFilterSensitiveLog: CreateFirewallPolicyRequest.filterSensitiveLog,
78
- outputFilterSensitiveLog: CreateFirewallPolicyResponse.filterSensitiveLog,
79
- };
80
- const { requestHandler } = configuration;
81
- return stack.resolve(
82
- (request: FinalizeHandlerArguments<any>) =>
83
- requestHandler.handle(request.request as __HttpRequest, options || {}),
84
- handlerExecutionContext
85
- );
86
- }
87
-
88
- private serialize(input: CreateFirewallPolicyCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
89
- return serializeAws_json1_0CreateFirewallPolicyCommand(input, context);
90
- }
91
-
92
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateFirewallPolicyCommandOutput> {
93
- return deserializeAws_json1_0CreateFirewallPolicyCommand(output, context);
94
- }
95
-
96
- // Start section: command_body_extra
97
- // End section: command_body_extra
98
- }
@@ -1,98 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { CreateRuleGroupRequest, CreateRuleGroupResponse } from "../models/models_0";
15
- import { NetworkFirewallClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkFirewallClient";
16
- import {
17
- deserializeAws_json1_0CreateRuleGroupCommand,
18
- serializeAws_json1_0CreateRuleGroupCommand,
19
- } from "../protocols/Aws_json1_0";
20
-
21
- export interface CreateRuleGroupCommandInput extends CreateRuleGroupRequest {}
22
- export interface CreateRuleGroupCommandOutput extends CreateRuleGroupResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Creates the specified stateless or stateful rule group, which includes the rules for
26
- * network traffic inspection, a capacity setting, and tags. </p>
27
- * <p>You provide your rule group specification in your request using either
28
- * <code>RuleGroup</code> or <code>Rules</code>.</p>
29
- * @example
30
- * Use a bare-bones client and the command you need to make an API call.
31
- * ```javascript
32
- * import { NetworkFirewallClient, CreateRuleGroupCommand } from "@aws-sdk/client-network-firewall"; // ES Modules import
33
- * // const { NetworkFirewallClient, CreateRuleGroupCommand } = require("@aws-sdk/client-network-firewall"); // CommonJS import
34
- * const client = new NetworkFirewallClient(config);
35
- * const command = new CreateRuleGroupCommand(input);
36
- * const response = await client.send(command);
37
- * ```
38
- *
39
- * @see {@link CreateRuleGroupCommandInput} for command's `input` shape.
40
- * @see {@link CreateRuleGroupCommandOutput} for command's `response` shape.
41
- * @see {@link NetworkFirewallClientResolvedConfig | config} for command's `input` shape.
42
- *
43
- */
44
- export class CreateRuleGroupCommand extends $Command<
45
- CreateRuleGroupCommandInput,
46
- CreateRuleGroupCommandOutput,
47
- NetworkFirewallClientResolvedConfig
48
- > {
49
- // Start section: command_properties
50
- // End section: command_properties
51
-
52
- constructor(readonly input: CreateRuleGroupCommandInput) {
53
- // Start section: command_constructor
54
- super();
55
- // End section: command_constructor
56
- }
57
-
58
- /**
59
- * @internal
60
- */
61
- resolveMiddleware(
62
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
63
- configuration: NetworkFirewallClientResolvedConfig,
64
- options?: __HttpHandlerOptions
65
- ): Handler<CreateRuleGroupCommandInput, CreateRuleGroupCommandOutput> {
66
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
67
-
68
- const stack = clientStack.concat(this.middlewareStack);
69
-
70
- const { logger } = configuration;
71
- const clientName = "NetworkFirewallClient";
72
- const commandName = "CreateRuleGroupCommand";
73
- const handlerExecutionContext: HandlerExecutionContext = {
74
- logger,
75
- clientName,
76
- commandName,
77
- inputFilterSensitiveLog: CreateRuleGroupRequest.filterSensitiveLog,
78
- outputFilterSensitiveLog: CreateRuleGroupResponse.filterSensitiveLog,
79
- };
80
- const { requestHandler } = configuration;
81
- return stack.resolve(
82
- (request: FinalizeHandlerArguments<any>) =>
83
- requestHandler.handle(request.request as __HttpRequest, options || {}),
84
- handlerExecutionContext
85
- );
86
- }
87
-
88
- private serialize(input: CreateRuleGroupCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
89
- return serializeAws_json1_0CreateRuleGroupCommand(input, context);
90
- }
91
-
92
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateRuleGroupCommandOutput> {
93
- return deserializeAws_json1_0CreateRuleGroupCommand(output, context);
94
- }
95
-
96
- // Start section: command_body_extra
97
- // End section: command_body_extra
98
- }
@@ -1,105 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { DeleteFirewallRequest, DeleteFirewallResponse } from "../models/models_0";
15
- import { NetworkFirewallClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkFirewallClient";
16
- import {
17
- deserializeAws_json1_0DeleteFirewallCommand,
18
- serializeAws_json1_0DeleteFirewallCommand,
19
- } from "../protocols/Aws_json1_0";
20
-
21
- export interface DeleteFirewallCommandInput extends DeleteFirewallRequest {}
22
- export interface DeleteFirewallCommandOutput extends DeleteFirewallResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Deletes the specified <a>Firewall</a> and its <a>FirewallStatus</a>.
26
- * This operation requires the firewall's <code>DeleteProtection</code> flag to be
27
- * <code>FALSE</code>. You can't revert this operation. </p>
28
- * <p>You can check whether a firewall is
29
- * in use by reviewing the route tables for the Availability Zones where you have
30
- * firewall subnet mappings. Retrieve the subnet mappings by calling <a>DescribeFirewall</a>.
31
- * You define and update the route tables through Amazon VPC. As needed, update the route tables for the
32
- * zones to remove the firewall endpoints. When the route tables no longer use the firewall endpoints,
33
- * you can remove the firewall safely.</p>
34
- * <p>To delete a firewall, remove the delete protection if you need to using <a>UpdateFirewallDeleteProtection</a>,
35
- * then delete the firewall by calling <a>DeleteFirewall</a>. </p>
36
- * @example
37
- * Use a bare-bones client and the command you need to make an API call.
38
- * ```javascript
39
- * import { NetworkFirewallClient, DeleteFirewallCommand } from "@aws-sdk/client-network-firewall"; // ES Modules import
40
- * // const { NetworkFirewallClient, DeleteFirewallCommand } = require("@aws-sdk/client-network-firewall"); // CommonJS import
41
- * const client = new NetworkFirewallClient(config);
42
- * const command = new DeleteFirewallCommand(input);
43
- * const response = await client.send(command);
44
- * ```
45
- *
46
- * @see {@link DeleteFirewallCommandInput} for command's `input` shape.
47
- * @see {@link DeleteFirewallCommandOutput} for command's `response` shape.
48
- * @see {@link NetworkFirewallClientResolvedConfig | config} for command's `input` shape.
49
- *
50
- */
51
- export class DeleteFirewallCommand extends $Command<
52
- DeleteFirewallCommandInput,
53
- DeleteFirewallCommandOutput,
54
- NetworkFirewallClientResolvedConfig
55
- > {
56
- // Start section: command_properties
57
- // End section: command_properties
58
-
59
- constructor(readonly input: DeleteFirewallCommandInput) {
60
- // Start section: command_constructor
61
- super();
62
- // End section: command_constructor
63
- }
64
-
65
- /**
66
- * @internal
67
- */
68
- resolveMiddleware(
69
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
70
- configuration: NetworkFirewallClientResolvedConfig,
71
- options?: __HttpHandlerOptions
72
- ): Handler<DeleteFirewallCommandInput, DeleteFirewallCommandOutput> {
73
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
74
-
75
- const stack = clientStack.concat(this.middlewareStack);
76
-
77
- const { logger } = configuration;
78
- const clientName = "NetworkFirewallClient";
79
- const commandName = "DeleteFirewallCommand";
80
- const handlerExecutionContext: HandlerExecutionContext = {
81
- logger,
82
- clientName,
83
- commandName,
84
- inputFilterSensitiveLog: DeleteFirewallRequest.filterSensitiveLog,
85
- outputFilterSensitiveLog: DeleteFirewallResponse.filterSensitiveLog,
86
- };
87
- const { requestHandler } = configuration;
88
- return stack.resolve(
89
- (request: FinalizeHandlerArguments<any>) =>
90
- requestHandler.handle(request.request as __HttpRequest, options || {}),
91
- handlerExecutionContext
92
- );
93
- }
94
-
95
- private serialize(input: DeleteFirewallCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
96
- return serializeAws_json1_0DeleteFirewallCommand(input, context);
97
- }
98
-
99
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeleteFirewallCommandOutput> {
100
- return deserializeAws_json1_0DeleteFirewallCommand(output, context);
101
- }
102
-
103
- // Start section: command_body_extra
104
- // End section: command_body_extra
105
- }
@@ -1,95 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { DeleteFirewallPolicyRequest, DeleteFirewallPolicyResponse } from "../models/models_0";
15
- import { NetworkFirewallClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkFirewallClient";
16
- import {
17
- deserializeAws_json1_0DeleteFirewallPolicyCommand,
18
- serializeAws_json1_0DeleteFirewallPolicyCommand,
19
- } from "../protocols/Aws_json1_0";
20
-
21
- export interface DeleteFirewallPolicyCommandInput extends DeleteFirewallPolicyRequest {}
22
- export interface DeleteFirewallPolicyCommandOutput extends DeleteFirewallPolicyResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Deletes the specified <a>FirewallPolicy</a>. </p>
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { NetworkFirewallClient, DeleteFirewallPolicyCommand } from "@aws-sdk/client-network-firewall"; // ES Modules import
30
- * // const { NetworkFirewallClient, DeleteFirewallPolicyCommand } = require("@aws-sdk/client-network-firewall"); // CommonJS import
31
- * const client = new NetworkFirewallClient(config);
32
- * const command = new DeleteFirewallPolicyCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link DeleteFirewallPolicyCommandInput} for command's `input` shape.
37
- * @see {@link DeleteFirewallPolicyCommandOutput} for command's `response` shape.
38
- * @see {@link NetworkFirewallClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class DeleteFirewallPolicyCommand extends $Command<
42
- DeleteFirewallPolicyCommandInput,
43
- DeleteFirewallPolicyCommandOutput,
44
- NetworkFirewallClientResolvedConfig
45
- > {
46
- // Start section: command_properties
47
- // End section: command_properties
48
-
49
- constructor(readonly input: DeleteFirewallPolicyCommandInput) {
50
- // Start section: command_constructor
51
- super();
52
- // End section: command_constructor
53
- }
54
-
55
- /**
56
- * @internal
57
- */
58
- resolveMiddleware(
59
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
60
- configuration: NetworkFirewallClientResolvedConfig,
61
- options?: __HttpHandlerOptions
62
- ): Handler<DeleteFirewallPolicyCommandInput, DeleteFirewallPolicyCommandOutput> {
63
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
64
-
65
- const stack = clientStack.concat(this.middlewareStack);
66
-
67
- const { logger } = configuration;
68
- const clientName = "NetworkFirewallClient";
69
- const commandName = "DeleteFirewallPolicyCommand";
70
- const handlerExecutionContext: HandlerExecutionContext = {
71
- logger,
72
- clientName,
73
- commandName,
74
- inputFilterSensitiveLog: DeleteFirewallPolicyRequest.filterSensitiveLog,
75
- outputFilterSensitiveLog: DeleteFirewallPolicyResponse.filterSensitiveLog,
76
- };
77
- const { requestHandler } = configuration;
78
- return stack.resolve(
79
- (request: FinalizeHandlerArguments<any>) =>
80
- requestHandler.handle(request.request as __HttpRequest, options || {}),
81
- handlerExecutionContext
82
- );
83
- }
84
-
85
- private serialize(input: DeleteFirewallPolicyCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
86
- return serializeAws_json1_0DeleteFirewallPolicyCommand(input, context);
87
- }
88
-
89
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeleteFirewallPolicyCommandOutput> {
90
- return deserializeAws_json1_0DeleteFirewallPolicyCommand(output, context);
91
- }
92
-
93
- // Start section: command_body_extra
94
- // End section: command_body_extra
95
- }
@@ -1,95 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { DeleteResourcePolicyRequest, DeleteResourcePolicyResponse } from "../models/models_0";
15
- import { NetworkFirewallClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkFirewallClient";
16
- import {
17
- deserializeAws_json1_0DeleteResourcePolicyCommand,
18
- serializeAws_json1_0DeleteResourcePolicyCommand,
19
- } from "../protocols/Aws_json1_0";
20
-
21
- export interface DeleteResourcePolicyCommandInput extends DeleteResourcePolicyRequest {}
22
- export interface DeleteResourcePolicyCommandOutput extends DeleteResourcePolicyResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Deletes a resource policy that you created in a <a>PutResourcePolicy</a> request. </p>
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { NetworkFirewallClient, DeleteResourcePolicyCommand } from "@aws-sdk/client-network-firewall"; // ES Modules import
30
- * // const { NetworkFirewallClient, DeleteResourcePolicyCommand } = require("@aws-sdk/client-network-firewall"); // CommonJS import
31
- * const client = new NetworkFirewallClient(config);
32
- * const command = new DeleteResourcePolicyCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link DeleteResourcePolicyCommandInput} for command's `input` shape.
37
- * @see {@link DeleteResourcePolicyCommandOutput} for command's `response` shape.
38
- * @see {@link NetworkFirewallClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class DeleteResourcePolicyCommand extends $Command<
42
- DeleteResourcePolicyCommandInput,
43
- DeleteResourcePolicyCommandOutput,
44
- NetworkFirewallClientResolvedConfig
45
- > {
46
- // Start section: command_properties
47
- // End section: command_properties
48
-
49
- constructor(readonly input: DeleteResourcePolicyCommandInput) {
50
- // Start section: command_constructor
51
- super();
52
- // End section: command_constructor
53
- }
54
-
55
- /**
56
- * @internal
57
- */
58
- resolveMiddleware(
59
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
60
- configuration: NetworkFirewallClientResolvedConfig,
61
- options?: __HttpHandlerOptions
62
- ): Handler<DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput> {
63
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
64
-
65
- const stack = clientStack.concat(this.middlewareStack);
66
-
67
- const { logger } = configuration;
68
- const clientName = "NetworkFirewallClient";
69
- const commandName = "DeleteResourcePolicyCommand";
70
- const handlerExecutionContext: HandlerExecutionContext = {
71
- logger,
72
- clientName,
73
- commandName,
74
- inputFilterSensitiveLog: DeleteResourcePolicyRequest.filterSensitiveLog,
75
- outputFilterSensitiveLog: DeleteResourcePolicyResponse.filterSensitiveLog,
76
- };
77
- const { requestHandler } = configuration;
78
- return stack.resolve(
79
- (request: FinalizeHandlerArguments<any>) =>
80
- requestHandler.handle(request.request as __HttpRequest, options || {}),
81
- handlerExecutionContext
82
- );
83
- }
84
-
85
- private serialize(input: DeleteResourcePolicyCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
86
- return serializeAws_json1_0DeleteResourcePolicyCommand(input, context);
87
- }
88
-
89
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeleteResourcePolicyCommandOutput> {
90
- return deserializeAws_json1_0DeleteResourcePolicyCommand(output, context);
91
- }
92
-
93
- // Start section: command_body_extra
94
- // End section: command_body_extra
95
- }