@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,97 +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 { ListFirewallPoliciesRequest, ListFirewallPoliciesResponse } from "../models/models_0";
15
- import { NetworkFirewallClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkFirewallClient";
16
- import {
17
- deserializeAws_json1_0ListFirewallPoliciesCommand,
18
- serializeAws_json1_0ListFirewallPoliciesCommand,
19
- } from "../protocols/Aws_json1_0";
20
-
21
- export interface ListFirewallPoliciesCommandInput extends ListFirewallPoliciesRequest {}
22
- export interface ListFirewallPoliciesCommandOutput extends ListFirewallPoliciesResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Retrieves the metadata for the firewall policies that you have defined. Depending on
26
- * your setting for max results and the number of firewall policies, a single call might not
27
- * return the full list. </p>
28
- * @example
29
- * Use a bare-bones client and the command you need to make an API call.
30
- * ```javascript
31
- * import { NetworkFirewallClient, ListFirewallPoliciesCommand } from "@aws-sdk/client-network-firewall"; // ES Modules import
32
- * // const { NetworkFirewallClient, ListFirewallPoliciesCommand } = require("@aws-sdk/client-network-firewall"); // CommonJS import
33
- * const client = new NetworkFirewallClient(config);
34
- * const command = new ListFirewallPoliciesCommand(input);
35
- * const response = await client.send(command);
36
- * ```
37
- *
38
- * @see {@link ListFirewallPoliciesCommandInput} for command's `input` shape.
39
- * @see {@link ListFirewallPoliciesCommandOutput} for command's `response` shape.
40
- * @see {@link NetworkFirewallClientResolvedConfig | config} for command's `input` shape.
41
- *
42
- */
43
- export class ListFirewallPoliciesCommand extends $Command<
44
- ListFirewallPoliciesCommandInput,
45
- ListFirewallPoliciesCommandOutput,
46
- NetworkFirewallClientResolvedConfig
47
- > {
48
- // Start section: command_properties
49
- // End section: command_properties
50
-
51
- constructor(readonly input: ListFirewallPoliciesCommandInput) {
52
- // Start section: command_constructor
53
- super();
54
- // End section: command_constructor
55
- }
56
-
57
- /**
58
- * @internal
59
- */
60
- resolveMiddleware(
61
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
62
- configuration: NetworkFirewallClientResolvedConfig,
63
- options?: __HttpHandlerOptions
64
- ): Handler<ListFirewallPoliciesCommandInput, ListFirewallPoliciesCommandOutput> {
65
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
66
-
67
- const stack = clientStack.concat(this.middlewareStack);
68
-
69
- const { logger } = configuration;
70
- const clientName = "NetworkFirewallClient";
71
- const commandName = "ListFirewallPoliciesCommand";
72
- const handlerExecutionContext: HandlerExecutionContext = {
73
- logger,
74
- clientName,
75
- commandName,
76
- inputFilterSensitiveLog: ListFirewallPoliciesRequest.filterSensitiveLog,
77
- outputFilterSensitiveLog: ListFirewallPoliciesResponse.filterSensitiveLog,
78
- };
79
- const { requestHandler } = configuration;
80
- return stack.resolve(
81
- (request: FinalizeHandlerArguments<any>) =>
82
- requestHandler.handle(request.request as __HttpRequest, options || {}),
83
- handlerExecutionContext
84
- );
85
- }
86
-
87
- private serialize(input: ListFirewallPoliciesCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
88
- return serializeAws_json1_0ListFirewallPoliciesCommand(input, context);
89
- }
90
-
91
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListFirewallPoliciesCommandOutput> {
92
- return deserializeAws_json1_0ListFirewallPoliciesCommand(output, context);
93
- }
94
-
95
- // Start section: command_body_extra
96
- // End section: command_body_extra
97
- }
@@ -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 { ListFirewallsRequest, ListFirewallsResponse } from "../models/models_0";
15
- import { NetworkFirewallClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkFirewallClient";
16
- import {
17
- deserializeAws_json1_0ListFirewallsCommand,
18
- serializeAws_json1_0ListFirewallsCommand,
19
- } from "../protocols/Aws_json1_0";
20
-
21
- export interface ListFirewallsCommandInput extends ListFirewallsRequest {}
22
- export interface ListFirewallsCommandOutput extends ListFirewallsResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Retrieves the metadata for the firewalls that you have defined. If you provide VPC
26
- * identifiers in your request, this returns only the firewalls for those VPCs.</p>
27
- * <p>Depending on your setting for max results and the number of firewalls, a single call
28
- * might not return the full list. </p>
29
- * @example
30
- * Use a bare-bones client and the command you need to make an API call.
31
- * ```javascript
32
- * import { NetworkFirewallClient, ListFirewallsCommand } from "@aws-sdk/client-network-firewall"; // ES Modules import
33
- * // const { NetworkFirewallClient, ListFirewallsCommand } = require("@aws-sdk/client-network-firewall"); // CommonJS import
34
- * const client = new NetworkFirewallClient(config);
35
- * const command = new ListFirewallsCommand(input);
36
- * const response = await client.send(command);
37
- * ```
38
- *
39
- * @see {@link ListFirewallsCommandInput} for command's `input` shape.
40
- * @see {@link ListFirewallsCommandOutput} for command's `response` shape.
41
- * @see {@link NetworkFirewallClientResolvedConfig | config} for command's `input` shape.
42
- *
43
- */
44
- export class ListFirewallsCommand extends $Command<
45
- ListFirewallsCommandInput,
46
- ListFirewallsCommandOutput,
47
- NetworkFirewallClientResolvedConfig
48
- > {
49
- // Start section: command_properties
50
- // End section: command_properties
51
-
52
- constructor(readonly input: ListFirewallsCommandInput) {
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<ListFirewallsCommandInput, ListFirewallsCommandOutput> {
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 = "ListFirewallsCommand";
73
- const handlerExecutionContext: HandlerExecutionContext = {
74
- logger,
75
- clientName,
76
- commandName,
77
- inputFilterSensitiveLog: ListFirewallsRequest.filterSensitiveLog,
78
- outputFilterSensitiveLog: ListFirewallsResponse.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: ListFirewallsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
89
- return serializeAws_json1_0ListFirewallsCommand(input, context);
90
- }
91
-
92
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListFirewallsCommandOutput> {
93
- return deserializeAws_json1_0ListFirewallsCommand(output, context);
94
- }
95
-
96
- // Start section: command_body_extra
97
- // End section: command_body_extra
98
- }
@@ -1,97 +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 { ListRuleGroupsRequest, ListRuleGroupsResponse } from "../models/models_0";
15
- import { NetworkFirewallClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkFirewallClient";
16
- import {
17
- deserializeAws_json1_0ListRuleGroupsCommand,
18
- serializeAws_json1_0ListRuleGroupsCommand,
19
- } from "../protocols/Aws_json1_0";
20
-
21
- export interface ListRuleGroupsCommandInput extends ListRuleGroupsRequest {}
22
- export interface ListRuleGroupsCommandOutput extends ListRuleGroupsResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Retrieves the metadata for the rule groups that you have defined. Depending on your
26
- * setting for max results and the number of rule groups, a single call might not return the
27
- * full list. </p>
28
- * @example
29
- * Use a bare-bones client and the command you need to make an API call.
30
- * ```javascript
31
- * import { NetworkFirewallClient, ListRuleGroupsCommand } from "@aws-sdk/client-network-firewall"; // ES Modules import
32
- * // const { NetworkFirewallClient, ListRuleGroupsCommand } = require("@aws-sdk/client-network-firewall"); // CommonJS import
33
- * const client = new NetworkFirewallClient(config);
34
- * const command = new ListRuleGroupsCommand(input);
35
- * const response = await client.send(command);
36
- * ```
37
- *
38
- * @see {@link ListRuleGroupsCommandInput} for command's `input` shape.
39
- * @see {@link ListRuleGroupsCommandOutput} for command's `response` shape.
40
- * @see {@link NetworkFirewallClientResolvedConfig | config} for command's `input` shape.
41
- *
42
- */
43
- export class ListRuleGroupsCommand extends $Command<
44
- ListRuleGroupsCommandInput,
45
- ListRuleGroupsCommandOutput,
46
- NetworkFirewallClientResolvedConfig
47
- > {
48
- // Start section: command_properties
49
- // End section: command_properties
50
-
51
- constructor(readonly input: ListRuleGroupsCommandInput) {
52
- // Start section: command_constructor
53
- super();
54
- // End section: command_constructor
55
- }
56
-
57
- /**
58
- * @internal
59
- */
60
- resolveMiddleware(
61
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
62
- configuration: NetworkFirewallClientResolvedConfig,
63
- options?: __HttpHandlerOptions
64
- ): Handler<ListRuleGroupsCommandInput, ListRuleGroupsCommandOutput> {
65
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
66
-
67
- const stack = clientStack.concat(this.middlewareStack);
68
-
69
- const { logger } = configuration;
70
- const clientName = "NetworkFirewallClient";
71
- const commandName = "ListRuleGroupsCommand";
72
- const handlerExecutionContext: HandlerExecutionContext = {
73
- logger,
74
- clientName,
75
- commandName,
76
- inputFilterSensitiveLog: ListRuleGroupsRequest.filterSensitiveLog,
77
- outputFilterSensitiveLog: ListRuleGroupsResponse.filterSensitiveLog,
78
- };
79
- const { requestHandler } = configuration;
80
- return stack.resolve(
81
- (request: FinalizeHandlerArguments<any>) =>
82
- requestHandler.handle(request.request as __HttpRequest, options || {}),
83
- handlerExecutionContext
84
- );
85
- }
86
-
87
- private serialize(input: ListRuleGroupsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
88
- return serializeAws_json1_0ListRuleGroupsCommand(input, context);
89
- }
90
-
91
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListRuleGroupsCommandOutput> {
92
- return deserializeAws_json1_0ListRuleGroupsCommand(output, context);
93
- }
94
-
95
- // Start section: command_body_extra
96
- // End section: command_body_extra
97
- }
@@ -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 { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
15
- import { NetworkFirewallClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkFirewallClient";
16
- import {
17
- deserializeAws_json1_0ListTagsForResourceCommand,
18
- serializeAws_json1_0ListTagsForResourceCommand,
19
- } from "../protocols/Aws_json1_0";
20
-
21
- export interface ListTagsForResourceCommandInput extends ListTagsForResourceRequest {}
22
- export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Retrieves the tags associated with the specified resource. Tags are key:value pairs that
26
- * you can use to categorize and manage your resources, for purposes like billing. For
27
- * example, you might set the tag key to "customer" and the value to the customer name or ID.
28
- * You can specify one or more tags to add to each AWS resource, up to 50 tags for a
29
- * resource.</p>
30
- * <p>You can tag the AWS resources that you manage through AWS Network Firewall: firewalls, firewall
31
- * policies, and rule groups. </p>
32
- * @example
33
- * Use a bare-bones client and the command you need to make an API call.
34
- * ```javascript
35
- * import { NetworkFirewallClient, ListTagsForResourceCommand } from "@aws-sdk/client-network-firewall"; // ES Modules import
36
- * // const { NetworkFirewallClient, ListTagsForResourceCommand } = require("@aws-sdk/client-network-firewall"); // CommonJS import
37
- * const client = new NetworkFirewallClient(config);
38
- * const command = new ListTagsForResourceCommand(input);
39
- * const response = await client.send(command);
40
- * ```
41
- *
42
- * @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
43
- * @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
44
- * @see {@link NetworkFirewallClientResolvedConfig | config} for command's `input` shape.
45
- *
46
- */
47
- export class ListTagsForResourceCommand extends $Command<
48
- ListTagsForResourceCommandInput,
49
- ListTagsForResourceCommandOutput,
50
- NetworkFirewallClientResolvedConfig
51
- > {
52
- // Start section: command_properties
53
- // End section: command_properties
54
-
55
- constructor(readonly input: ListTagsForResourceCommandInput) {
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<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput> {
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 = "ListTagsForResourceCommand";
76
- const handlerExecutionContext: HandlerExecutionContext = {
77
- logger,
78
- clientName,
79
- commandName,
80
- inputFilterSensitiveLog: ListTagsForResourceRequest.filterSensitiveLog,
81
- outputFilterSensitiveLog: ListTagsForResourceResponse.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: ListTagsForResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
92
- return serializeAws_json1_0ListTagsForResourceCommand(input, context);
93
- }
94
-
95
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListTagsForResourceCommandOutput> {
96
- return deserializeAws_json1_0ListTagsForResourceCommand(output, context);
97
- }
98
-
99
- // Start section: command_body_extra
100
- // End section: command_body_extra
101
- }
@@ -1,109 +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 { PutResourcePolicyRequest, PutResourcePolicyResponse } from "../models/models_0";
15
- import { NetworkFirewallClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkFirewallClient";
16
- import {
17
- deserializeAws_json1_0PutResourcePolicyCommand,
18
- serializeAws_json1_0PutResourcePolicyCommand,
19
- } from "../protocols/Aws_json1_0";
20
-
21
- export interface PutResourcePolicyCommandInput extends PutResourcePolicyRequest {}
22
- export interface PutResourcePolicyCommandOutput extends PutResourcePolicyResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Creates or updates an AWS Identity and Access Management policy for your rule group or firewall policy. Use this to share rule groups and firewall policies between accounts. This operation works in conjunction with the AWS Resource Access Manager (RAM) service
26
- * to manage resource sharing for Network Firewall. </p>
27
- * <p>Use this operation to create or update a resource policy for your rule group or firewall policy. In the policy, you specify the accounts that you want to share the resource with and the operations that you want the accounts to be able to perform. </p>
28
- * <p>When you add an account in the resource policy, you then run the following Resource Access Manager (RAM) operations to access and accept the shared rule group or firewall policy. </p>
29
- * <ul>
30
- * <li>
31
- * <p>
32
- * <a href="https://docs.aws.amazon.com/ram/latest/APIReference/API_GetResourceShareInvitations.html">GetResourceShareInvitations</a> - Returns the Amazon Resource Names (ARNs) of the resource share invitations. </p>
33
- * </li>
34
- * <li>
35
- * <p>
36
- * <a href="https://docs.aws.amazon.com/ram/latest/APIReference/API_AcceptResourceShareInvitation.html">AcceptResourceShareInvitation</a> - Accepts the share invitation for a specified resource share. </p>
37
- * </li>
38
- * </ul>
39
- * <p>For additional information about resource sharing using RAM, see <a href="https://docs.aws.amazon.com/ram/latest/userguide/what-is.html">AWS Resource Access Manager User Guide</a>.</p>
40
- * @example
41
- * Use a bare-bones client and the command you need to make an API call.
42
- * ```javascript
43
- * import { NetworkFirewallClient, PutResourcePolicyCommand } from "@aws-sdk/client-network-firewall"; // ES Modules import
44
- * // const { NetworkFirewallClient, PutResourcePolicyCommand } = require("@aws-sdk/client-network-firewall"); // CommonJS import
45
- * const client = new NetworkFirewallClient(config);
46
- * const command = new PutResourcePolicyCommand(input);
47
- * const response = await client.send(command);
48
- * ```
49
- *
50
- * @see {@link PutResourcePolicyCommandInput} for command's `input` shape.
51
- * @see {@link PutResourcePolicyCommandOutput} for command's `response` shape.
52
- * @see {@link NetworkFirewallClientResolvedConfig | config} for command's `input` shape.
53
- *
54
- */
55
- export class PutResourcePolicyCommand extends $Command<
56
- PutResourcePolicyCommandInput,
57
- PutResourcePolicyCommandOutput,
58
- NetworkFirewallClientResolvedConfig
59
- > {
60
- // Start section: command_properties
61
- // End section: command_properties
62
-
63
- constructor(readonly input: PutResourcePolicyCommandInput) {
64
- // Start section: command_constructor
65
- super();
66
- // End section: command_constructor
67
- }
68
-
69
- /**
70
- * @internal
71
- */
72
- resolveMiddleware(
73
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
74
- configuration: NetworkFirewallClientResolvedConfig,
75
- options?: __HttpHandlerOptions
76
- ): Handler<PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput> {
77
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
78
-
79
- const stack = clientStack.concat(this.middlewareStack);
80
-
81
- const { logger } = configuration;
82
- const clientName = "NetworkFirewallClient";
83
- const commandName = "PutResourcePolicyCommand";
84
- const handlerExecutionContext: HandlerExecutionContext = {
85
- logger,
86
- clientName,
87
- commandName,
88
- inputFilterSensitiveLog: PutResourcePolicyRequest.filterSensitiveLog,
89
- outputFilterSensitiveLog: PutResourcePolicyResponse.filterSensitiveLog,
90
- };
91
- const { requestHandler } = configuration;
92
- return stack.resolve(
93
- (request: FinalizeHandlerArguments<any>) =>
94
- requestHandler.handle(request.request as __HttpRequest, options || {}),
95
- handlerExecutionContext
96
- );
97
- }
98
-
99
- private serialize(input: PutResourcePolicyCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
100
- return serializeAws_json1_0PutResourcePolicyCommand(input, context);
101
- }
102
-
103
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<PutResourcePolicyCommandOutput> {
104
- return deserializeAws_json1_0PutResourcePolicyCommand(output, context);
105
- }
106
-
107
- // Start section: command_body_extra
108
- // End section: command_body_extra
109
- }
@@ -1,100 +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 { TagResourceRequest, TagResourceResponse } from "../models/models_0";
15
- import { NetworkFirewallClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkFirewallClient";
16
- import {
17
- deserializeAws_json1_0TagResourceCommand,
18
- serializeAws_json1_0TagResourceCommand,
19
- } from "../protocols/Aws_json1_0";
20
-
21
- export interface TagResourceCommandInput extends TagResourceRequest {}
22
- export interface TagResourceCommandOutput extends TagResourceResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Adds the specified tags to the specified resource. Tags are key:value pairs that you can
26
- * use to categorize and manage your resources, for purposes like billing. For example, you
27
- * might set the tag key to "customer" and the value to the customer name or ID. You can
28
- * specify one or more tags to add to each AWS resource, up to 50 tags for a resource.</p>
29
- * <p>You can tag the AWS resources that you manage through AWS Network Firewall: firewalls, firewall
30
- * policies, and rule groups. </p>
31
- * @example
32
- * Use a bare-bones client and the command you need to make an API call.
33
- * ```javascript
34
- * import { NetworkFirewallClient, TagResourceCommand } from "@aws-sdk/client-network-firewall"; // ES Modules import
35
- * // const { NetworkFirewallClient, TagResourceCommand } = require("@aws-sdk/client-network-firewall"); // CommonJS import
36
- * const client = new NetworkFirewallClient(config);
37
- * const command = new TagResourceCommand(input);
38
- * const response = await client.send(command);
39
- * ```
40
- *
41
- * @see {@link TagResourceCommandInput} for command's `input` shape.
42
- * @see {@link TagResourceCommandOutput} for command's `response` shape.
43
- * @see {@link NetworkFirewallClientResolvedConfig | config} for command's `input` shape.
44
- *
45
- */
46
- export class TagResourceCommand extends $Command<
47
- TagResourceCommandInput,
48
- TagResourceCommandOutput,
49
- NetworkFirewallClientResolvedConfig
50
- > {
51
- // Start section: command_properties
52
- // End section: command_properties
53
-
54
- constructor(readonly input: TagResourceCommandInput) {
55
- // Start section: command_constructor
56
- super();
57
- // End section: command_constructor
58
- }
59
-
60
- /**
61
- * @internal
62
- */
63
- resolveMiddleware(
64
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
65
- configuration: NetworkFirewallClientResolvedConfig,
66
- options?: __HttpHandlerOptions
67
- ): Handler<TagResourceCommandInput, TagResourceCommandOutput> {
68
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
69
-
70
- const stack = clientStack.concat(this.middlewareStack);
71
-
72
- const { logger } = configuration;
73
- const clientName = "NetworkFirewallClient";
74
- const commandName = "TagResourceCommand";
75
- const handlerExecutionContext: HandlerExecutionContext = {
76
- logger,
77
- clientName,
78
- commandName,
79
- inputFilterSensitiveLog: TagResourceRequest.filterSensitiveLog,
80
- outputFilterSensitiveLog: TagResourceResponse.filterSensitiveLog,
81
- };
82
- const { requestHandler } = configuration;
83
- return stack.resolve(
84
- (request: FinalizeHandlerArguments<any>) =>
85
- requestHandler.handle(request.request as __HttpRequest, options || {}),
86
- handlerExecutionContext
87
- );
88
- }
89
-
90
- private serialize(input: TagResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
91
- return serializeAws_json1_0TagResourceCommand(input, context);
92
- }
93
-
94
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<TagResourceCommandOutput> {
95
- return deserializeAws_json1_0TagResourceCommand(output, context);
96
- }
97
-
98
- // Start section: command_body_extra
99
- // End section: command_body_extra
100
- }