@aws-sdk/client-network-security-manager 3.1139.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 (253) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +503 -0
  3. package/dist-cjs/index.js +2327 -0
  4. package/dist-es/NetworkSecurityManager.js +129 -0
  5. package/dist-es/NetworkSecurityManagerClient.js +47 -0
  6. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  7. package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
  8. package/dist-es/commandBuilder.js +6 -0
  9. package/dist-es/commands/CreateDeploymentCommand.js +4 -0
  10. package/dist-es/commands/CreateDeploymentSnapshotCommand.js +4 -0
  11. package/dist-es/commands/CreatePolicyCommand.js +4 -0
  12. package/dist-es/commands/CreatePolicySnapshotCommand.js +4 -0
  13. package/dist-es/commands/CreateRuleCommand.js +4 -0
  14. package/dist-es/commands/CreateRuleSnapshotCommand.js +4 -0
  15. package/dist-es/commands/CreateScopeCommand.js +4 -0
  16. package/dist-es/commands/CreateScopeSnapshotCommand.js +4 -0
  17. package/dist-es/commands/CreateTemplateCommand.js +4 -0
  18. package/dist-es/commands/CreateTemplateSnapshotCommand.js +4 -0
  19. package/dist-es/commands/DeleteAdminAccountCommand.js +4 -0
  20. package/dist-es/commands/DeleteDeploymentCommand.js +4 -0
  21. package/dist-es/commands/DeletePolicyCommand.js +4 -0
  22. package/dist-es/commands/DeleteRuleCommand.js +4 -0
  23. package/dist-es/commands/DeleteScopeCommand.js +4 -0
  24. package/dist-es/commands/DeleteTemplateCommand.js +4 -0
  25. package/dist-es/commands/GenerateRuleConfigurationCommand.js +4 -0
  26. package/dist-es/commands/GetAdminAccountCommand.js +4 -0
  27. package/dist-es/commands/GetDeploymentCommand.js +4 -0
  28. package/dist-es/commands/GetPolicyCommand.js +4 -0
  29. package/dist-es/commands/GetRuleCommand.js +4 -0
  30. package/dist-es/commands/GetScopeCommand.js +4 -0
  31. package/dist-es/commands/GetTemplateCommand.js +4 -0
  32. package/dist-es/commands/ListAdminAccountsCommand.js +4 -0
  33. package/dist-es/commands/ListAggregateResourceSynchronizationStatusesCommand.js +4 -0
  34. package/dist-es/commands/ListDeploymentSnapshotsCommand.js +4 -0
  35. package/dist-es/commands/ListDeploymentsCommand.js +4 -0
  36. package/dist-es/commands/ListPoliciesCommand.js +4 -0
  37. package/dist-es/commands/ListPolicySnapshotsCommand.js +4 -0
  38. package/dist-es/commands/ListResourceAssociationsCommand.js +4 -0
  39. package/dist-es/commands/ListResourceSynchronizationStatusesCommand.js +4 -0
  40. package/dist-es/commands/ListRuleSnapshotsCommand.js +4 -0
  41. package/dist-es/commands/ListRulesCommand.js +4 -0
  42. package/dist-es/commands/ListScopeSnapshotsCommand.js +4 -0
  43. package/dist-es/commands/ListScopesCommand.js +4 -0
  44. package/dist-es/commands/ListTagsForResourceCommand.js +4 -0
  45. package/dist-es/commands/ListTemplateSnapshotsCommand.js +4 -0
  46. package/dist-es/commands/ListTemplatesCommand.js +4 -0
  47. package/dist-es/commands/PutAdminAccountCommand.js +4 -0
  48. package/dist-es/commands/TagResourceCommand.js +4 -0
  49. package/dist-es/commands/UntagResourceCommand.js +4 -0
  50. package/dist-es/commands/UpdateDeploymentCommand.js +4 -0
  51. package/dist-es/commands/UpdatePolicyCommand.js +4 -0
  52. package/dist-es/commands/UpdateRuleCommand.js +4 -0
  53. package/dist-es/commands/UpdateScopeCommand.js +4 -0
  54. package/dist-es/commands/UpdateTemplateCommand.js +4 -0
  55. package/dist-es/commands/index.js +46 -0
  56. package/dist-es/endpoint/EndpointParameters.js +11 -0
  57. package/dist-es/endpoint/bdd.js +29 -0
  58. package/dist-es/endpoint/endpointResolver.js +14 -0
  59. package/dist-es/extensionConfiguration.js +1 -0
  60. package/dist-es/index.js +10 -0
  61. package/dist-es/models/NetworkSecurityManagerServiceException.js +8 -0
  62. package/dist-es/models/enums.js +91 -0
  63. package/dist-es/models/errors.js +138 -0
  64. package/dist-es/models/models_0.js +1 -0
  65. package/dist-es/pagination/Interfaces.js +1 -0
  66. package/dist-es/pagination/ListAdminAccountsPaginator.js +4 -0
  67. package/dist-es/pagination/ListAggregateResourceSynchronizationStatusesPaginator.js +4 -0
  68. package/dist-es/pagination/ListDeploymentSnapshotsPaginator.js +4 -0
  69. package/dist-es/pagination/ListDeploymentsPaginator.js +4 -0
  70. package/dist-es/pagination/ListPoliciesPaginator.js +4 -0
  71. package/dist-es/pagination/ListPolicySnapshotsPaginator.js +4 -0
  72. package/dist-es/pagination/ListResourceAssociationsPaginator.js +4 -0
  73. package/dist-es/pagination/ListResourceSynchronizationStatusesPaginator.js +4 -0
  74. package/dist-es/pagination/ListRuleSnapshotsPaginator.js +4 -0
  75. package/dist-es/pagination/ListRulesPaginator.js +4 -0
  76. package/dist-es/pagination/ListScopeSnapshotsPaginator.js +4 -0
  77. package/dist-es/pagination/ListScopesPaginator.js +4 -0
  78. package/dist-es/pagination/ListTemplateSnapshotsPaginator.js +4 -0
  79. package/dist-es/pagination/ListTemplatesPaginator.js +4 -0
  80. package/dist-es/pagination/index.js +15 -0
  81. package/dist-es/runtimeConfig.browser.js +29 -0
  82. package/dist-es/runtimeConfig.js +43 -0
  83. package/dist-es/runtimeConfig.native.js +9 -0
  84. package/dist-es/runtimeConfig.shared.js +40 -0
  85. package/dist-es/runtimeExtensions.js +9 -0
  86. package/dist-es/schemas/schemas_0.js +1326 -0
  87. package/dist-types/NetworkSecurityManager.d.ts +443 -0
  88. package/dist-types/NetworkSecurityManagerClient.d.ts +232 -0
  89. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  90. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  91. package/dist-types/commandBuilder.d.ts +18 -0
  92. package/dist-types/commands/CreateDeploymentCommand.d.ts +206 -0
  93. package/dist-types/commands/CreateDeploymentSnapshotCommand.d.ts +153 -0
  94. package/dist-types/commands/CreatePolicyCommand.d.ts +198 -0
  95. package/dist-types/commands/CreatePolicySnapshotCommand.d.ts +158 -0
  96. package/dist-types/commands/CreateRuleCommand.d.ts +148 -0
  97. package/dist-types/commands/CreateRuleSnapshotCommand.d.ts +133 -0
  98. package/dist-types/commands/CreateScopeCommand.d.ts +292 -0
  99. package/dist-types/commands/CreateScopeSnapshotCommand.d.ts +205 -0
  100. package/dist-types/commands/CreateTemplateCommand.d.ts +160 -0
  101. package/dist-types/commands/CreateTemplateSnapshotCommand.d.ts +139 -0
  102. package/dist-types/commands/DeleteAdminAccountCommand.d.ts +94 -0
  103. package/dist-types/commands/DeleteDeploymentCommand.d.ts +97 -0
  104. package/dist-types/commands/DeletePolicyCommand.d.ts +97 -0
  105. package/dist-types/commands/DeleteRuleCommand.d.ts +97 -0
  106. package/dist-types/commands/DeleteScopeCommand.d.ts +97 -0
  107. package/dist-types/commands/DeleteTemplateCommand.d.ts +97 -0
  108. package/dist-types/commands/GenerateRuleConfigurationCommand.d.ts +107 -0
  109. package/dist-types/commands/GetAdminAccountCommand.d.ts +168 -0
  110. package/dist-types/commands/GetDeploymentCommand.d.ts +174 -0
  111. package/dist-types/commands/GetPolicyCommand.d.ts +149 -0
  112. package/dist-types/commands/GetRuleCommand.d.ts +148 -0
  113. package/dist-types/commands/GetScopeCommand.d.ts +196 -0
  114. package/dist-types/commands/GetTemplateCommand.d.ts +130 -0
  115. package/dist-types/commands/ListAdminAccountsCommand.d.ts +112 -0
  116. package/dist-types/commands/ListAggregateResourceSynchronizationStatusesCommand.d.ts +181 -0
  117. package/dist-types/commands/ListDeploymentSnapshotsCommand.d.ts +124 -0
  118. package/dist-types/commands/ListDeploymentsCommand.d.ts +122 -0
  119. package/dist-types/commands/ListPoliciesCommand.d.ts +126 -0
  120. package/dist-types/commands/ListPolicySnapshotsCommand.d.ts +128 -0
  121. package/dist-types/commands/ListResourceAssociationsCommand.d.ts +116 -0
  122. package/dist-types/commands/ListResourceSynchronizationStatusesCommand.d.ts +194 -0
  123. package/dist-types/commands/ListRuleSnapshotsCommand.d.ts +138 -0
  124. package/dist-types/commands/ListRulesCommand.d.ts +126 -0
  125. package/dist-types/commands/ListScopeSnapshotsCommand.d.ts +124 -0
  126. package/dist-types/commands/ListScopesCommand.d.ts +123 -0
  127. package/dist-types/commands/ListTagsForResourceCommand.d.ts +106 -0
  128. package/dist-types/commands/ListTemplateSnapshotsCommand.d.ts +126 -0
  129. package/dist-types/commands/ListTemplatesCommand.d.ts +124 -0
  130. package/dist-types/commands/PutAdminAccountCommand.d.ts +218 -0
  131. package/dist-types/commands/TagResourceCommand.d.ts +107 -0
  132. package/dist-types/commands/UntagResourceCommand.d.ts +106 -0
  133. package/dist-types/commands/UpdateDeploymentCommand.d.ts +214 -0
  134. package/dist-types/commands/UpdatePolicyCommand.d.ts +192 -0
  135. package/dist-types/commands/UpdateRuleCommand.d.ts +142 -0
  136. package/dist-types/commands/UpdateScopeCommand.d.ts +288 -0
  137. package/dist-types/commands/UpdateTemplateCommand.d.ts +154 -0
  138. package/dist-types/commands/index.d.ts +46 -0
  139. package/dist-types/endpoint/EndpointParameters.d.ts +44 -0
  140. package/dist-types/endpoint/bdd.d.ts +2 -0
  141. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  142. package/dist-types/extensionConfiguration.d.ts +9 -0
  143. package/dist-types/index.d.ts +18 -0
  144. package/dist-types/models/NetworkSecurityManagerServiceException.d.ts +14 -0
  145. package/dist-types/models/enums.d.ts +227 -0
  146. package/dist-types/models/errors.d.ts +177 -0
  147. package/dist-types/models/models_0.d.ts +4006 -0
  148. package/dist-types/pagination/Interfaces.d.ts +8 -0
  149. package/dist-types/pagination/ListAdminAccountsPaginator.d.ts +7 -0
  150. package/dist-types/pagination/ListAggregateResourceSynchronizationStatusesPaginator.d.ts +7 -0
  151. package/dist-types/pagination/ListDeploymentSnapshotsPaginator.d.ts +7 -0
  152. package/dist-types/pagination/ListDeploymentsPaginator.d.ts +7 -0
  153. package/dist-types/pagination/ListPoliciesPaginator.d.ts +7 -0
  154. package/dist-types/pagination/ListPolicySnapshotsPaginator.d.ts +7 -0
  155. package/dist-types/pagination/ListResourceAssociationsPaginator.d.ts +7 -0
  156. package/dist-types/pagination/ListResourceSynchronizationStatusesPaginator.d.ts +7 -0
  157. package/dist-types/pagination/ListRuleSnapshotsPaginator.d.ts +7 -0
  158. package/dist-types/pagination/ListRulesPaginator.d.ts +7 -0
  159. package/dist-types/pagination/ListScopeSnapshotsPaginator.d.ts +7 -0
  160. package/dist-types/pagination/ListScopesPaginator.d.ts +7 -0
  161. package/dist-types/pagination/ListTemplateSnapshotsPaginator.d.ts +7 -0
  162. package/dist-types/pagination/ListTemplatesPaginator.d.ts +7 -0
  163. package/dist-types/pagination/index.d.ts +15 -0
  164. package/dist-types/runtimeConfig.browser.d.ts +57 -0
  165. package/dist-types/runtimeConfig.d.ts +57 -0
  166. package/dist-types/runtimeConfig.native.d.ts +56 -0
  167. package/dist-types/runtimeConfig.shared.d.ts +28 -0
  168. package/dist-types/runtimeExtensions.d.ts +17 -0
  169. package/dist-types/schemas/schemas_0.d.ts +197 -0
  170. package/dist-types/ts3.4/NetworkSecurityManager.d.ts +857 -0
  171. package/dist-types/ts3.4/NetworkSecurityManagerClient.d.ts +340 -0
  172. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +27 -0
  173. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +43 -0
  174. package/dist-types/ts3.4/commandBuilder.d.ts +40 -0
  175. package/dist-types/ts3.4/commands/CreateDeploymentCommand.d.ts +38 -0
  176. package/dist-types/ts3.4/commands/CreateDeploymentSnapshotCommand.d.ts +39 -0
  177. package/dist-types/ts3.4/commands/CreatePolicyCommand.d.ts +38 -0
  178. package/dist-types/ts3.4/commands/CreatePolicySnapshotCommand.d.ts +39 -0
  179. package/dist-types/ts3.4/commands/CreateRuleCommand.d.ts +38 -0
  180. package/dist-types/ts3.4/commands/CreateRuleSnapshotCommand.d.ts +39 -0
  181. package/dist-types/ts3.4/commands/CreateScopeCommand.d.ts +38 -0
  182. package/dist-types/ts3.4/commands/CreateScopeSnapshotCommand.d.ts +39 -0
  183. package/dist-types/ts3.4/commands/CreateTemplateCommand.d.ts +38 -0
  184. package/dist-types/ts3.4/commands/CreateTemplateSnapshotCommand.d.ts +39 -0
  185. package/dist-types/ts3.4/commands/DeleteAdminAccountCommand.d.ts +38 -0
  186. package/dist-types/ts3.4/commands/DeleteDeploymentCommand.d.ts +38 -0
  187. package/dist-types/ts3.4/commands/DeletePolicyCommand.d.ts +38 -0
  188. package/dist-types/ts3.4/commands/DeleteRuleCommand.d.ts +38 -0
  189. package/dist-types/ts3.4/commands/DeleteScopeCommand.d.ts +38 -0
  190. package/dist-types/ts3.4/commands/DeleteTemplateCommand.d.ts +38 -0
  191. package/dist-types/ts3.4/commands/GenerateRuleConfigurationCommand.d.ts +42 -0
  192. package/dist-types/ts3.4/commands/GetAdminAccountCommand.d.ts +38 -0
  193. package/dist-types/ts3.4/commands/GetDeploymentCommand.d.ts +38 -0
  194. package/dist-types/ts3.4/commands/GetPolicyCommand.d.ts +38 -0
  195. package/dist-types/ts3.4/commands/GetRuleCommand.d.ts +38 -0
  196. package/dist-types/ts3.4/commands/GetScopeCommand.d.ts +38 -0
  197. package/dist-types/ts3.4/commands/GetTemplateCommand.d.ts +38 -0
  198. package/dist-types/ts3.4/commands/ListAdminAccountsCommand.d.ts +39 -0
  199. package/dist-types/ts3.4/commands/ListAggregateResourceSynchronizationStatusesCommand.d.ts +42 -0
  200. package/dist-types/ts3.4/commands/ListDeploymentSnapshotsCommand.d.ts +39 -0
  201. package/dist-types/ts3.4/commands/ListDeploymentsCommand.d.ts +38 -0
  202. package/dist-types/ts3.4/commands/ListPoliciesCommand.d.ts +38 -0
  203. package/dist-types/ts3.4/commands/ListPolicySnapshotsCommand.d.ts +39 -0
  204. package/dist-types/ts3.4/commands/ListResourceAssociationsCommand.d.ts +39 -0
  205. package/dist-types/ts3.4/commands/ListResourceSynchronizationStatusesCommand.d.ts +42 -0
  206. package/dist-types/ts3.4/commands/ListRuleSnapshotsCommand.d.ts +38 -0
  207. package/dist-types/ts3.4/commands/ListRulesCommand.d.ts +38 -0
  208. package/dist-types/ts3.4/commands/ListScopeSnapshotsCommand.d.ts +39 -0
  209. package/dist-types/ts3.4/commands/ListScopesCommand.d.ts +38 -0
  210. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
  211. package/dist-types/ts3.4/commands/ListTemplateSnapshotsCommand.d.ts +39 -0
  212. package/dist-types/ts3.4/commands/ListTemplatesCommand.d.ts +38 -0
  213. package/dist-types/ts3.4/commands/PutAdminAccountCommand.d.ts +38 -0
  214. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +38 -0
  215. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -0
  216. package/dist-types/ts3.4/commands/UpdateDeploymentCommand.d.ts +38 -0
  217. package/dist-types/ts3.4/commands/UpdatePolicyCommand.d.ts +38 -0
  218. package/dist-types/ts3.4/commands/UpdateRuleCommand.d.ts +38 -0
  219. package/dist-types/ts3.4/commands/UpdateScopeCommand.d.ts +38 -0
  220. package/dist-types/ts3.4/commands/UpdateTemplateCommand.d.ts +38 -0
  221. package/dist-types/ts3.4/commands/index.d.ts +46 -0
  222. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
  223. package/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
  224. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  225. package/dist-types/ts3.4/extensionConfiguration.d.ts +10 -0
  226. package/dist-types/ts3.4/index.d.ts +13 -0
  227. package/dist-types/ts3.4/models/NetworkSecurityManagerServiceException.d.ts +9 -0
  228. package/dist-types/ts3.4/models/enums.d.ts +112 -0
  229. package/dist-types/ts3.4/models/errors.d.ts +66 -0
  230. package/dist-types/ts3.4/models/models_0.d.ts +1146 -0
  231. package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
  232. package/dist-types/ts3.4/pagination/ListAdminAccountsPaginator.d.ts +11 -0
  233. package/dist-types/ts3.4/pagination/ListAggregateResourceSynchronizationStatusesPaginator.d.ts +11 -0
  234. package/dist-types/ts3.4/pagination/ListDeploymentSnapshotsPaginator.d.ts +11 -0
  235. package/dist-types/ts3.4/pagination/ListDeploymentsPaginator.d.ts +11 -0
  236. package/dist-types/ts3.4/pagination/ListPoliciesPaginator.d.ts +11 -0
  237. package/dist-types/ts3.4/pagination/ListPolicySnapshotsPaginator.d.ts +11 -0
  238. package/dist-types/ts3.4/pagination/ListResourceAssociationsPaginator.d.ts +11 -0
  239. package/dist-types/ts3.4/pagination/ListResourceSynchronizationStatusesPaginator.d.ts +11 -0
  240. package/dist-types/ts3.4/pagination/ListRuleSnapshotsPaginator.d.ts +11 -0
  241. package/dist-types/ts3.4/pagination/ListRulesPaginator.d.ts +8 -0
  242. package/dist-types/ts3.4/pagination/ListScopeSnapshotsPaginator.d.ts +11 -0
  243. package/dist-types/ts3.4/pagination/ListScopesPaginator.d.ts +8 -0
  244. package/dist-types/ts3.4/pagination/ListTemplateSnapshotsPaginator.d.ts +11 -0
  245. package/dist-types/ts3.4/pagination/ListTemplatesPaginator.d.ts +11 -0
  246. package/dist-types/ts3.4/pagination/index.d.ts +15 -0
  247. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +93 -0
  248. package/dist-types/ts3.4/runtimeConfig.d.ts +95 -0
  249. package/dist-types/ts3.4/runtimeConfig.native.d.ts +97 -0
  250. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +31 -0
  251. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  252. package/dist-types/ts3.4/schemas/schemas_0.d.ts +197 -0
  253. package/package.json +69 -0
@@ -0,0 +1,153 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { CreateDeploymentSnapshotInput, CreateDeploymentSnapshotOutput } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link CreateDeploymentSnapshotCommand}.
11
+ */
12
+ export interface CreateDeploymentSnapshotCommandInput extends CreateDeploymentSnapshotInput {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link CreateDeploymentSnapshotCommand}.
18
+ */
19
+ export interface CreateDeploymentSnapshotCommandOutput extends CreateDeploymentSnapshotOutput, __MetadataBearer {
20
+ }
21
+ declare const CreateDeploymentSnapshotCommand_base: {
22
+ new (input: CreateDeploymentSnapshotCommandInput): import("@smithy/core/client").CommandImpl<CreateDeploymentSnapshotCommandInput, CreateDeploymentSnapshotCommandOutput, import("..").NetworkSecurityManagerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateDeploymentSnapshotCommandInput): import("@smithy/core/client").CommandImpl<CreateDeploymentSnapshotCommandInput, CreateDeploymentSnapshotCommandOutput, import("..").NetworkSecurityManagerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Creates a snapshot of the current published version of the specified deployment.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { NetworkSecurityManagerClient, CreateDeploymentSnapshotCommand } from "@aws-sdk/client-network-security-manager"; // ES Modules import
32
+ * // const { NetworkSecurityManagerClient, CreateDeploymentSnapshotCommand } = require("@aws-sdk/client-network-security-manager"); // CommonJS import
33
+ * // import type { NetworkSecurityManagerClientConfig } from "@aws-sdk/client-network-security-manager";
34
+ * const config = {}; // type is NetworkSecurityManagerClientConfig
35
+ * const client = new NetworkSecurityManagerClient(config);
36
+ * const input = { // CreateDeploymentSnapshotInput
37
+ * deploymentIdentifier: "STRING_VALUE", // required
38
+ * clientToken: "STRING_VALUE",
39
+ * tags: { // TagMap
40
+ * "<keys>": "STRING_VALUE",
41
+ * },
42
+ * };
43
+ * const command = new CreateDeploymentSnapshotCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // CreateDeploymentSnapshotOutput
46
+ * // deploymentId: "STRING_VALUE", // required
47
+ * // deploymentArn: "STRING_VALUE", // required
48
+ * // deploymentName: "STRING_VALUE", // required
49
+ * // deploymentDescription: "STRING_VALUE",
50
+ * // status: "DRAFT" || "ACTIVE" || "DISABLED", // required
51
+ * // deploymentConfiguration: { // DeploymentConfiguration
52
+ * // enableCrossAccountVisibility: true || false, // required
53
+ * // },
54
+ * // associatedPolicyList: [ // AssociatedPolicyList // required
55
+ * // { // AssociatedPolicy
56
+ * // policyArn: "STRING_VALUE", // required
57
+ * // },
58
+ * // ],
59
+ * // associatedScopeList: [ // AssociatedScopeList // required
60
+ * // { // AssociatedScope
61
+ * // scopeArn: "STRING_VALUE", // required
62
+ * // },
63
+ * // ],
64
+ * // version: "STRING_VALUE", // required
65
+ * // updateToken: "STRING_VALUE",
66
+ * // isSnapshot: true || false,
67
+ * // hasPublishedVersion: true || false,
68
+ * // updatedAt: new Date("TIMESTAMP"),
69
+ * // };
70
+ *
71
+ * ```
72
+ *
73
+ * @param CreateDeploymentSnapshotCommandInput - {@link CreateDeploymentSnapshotCommandInput}
74
+ * @returns {@link CreateDeploymentSnapshotCommandOutput}
75
+ * @see {@link CreateDeploymentSnapshotCommandInput} for command's `input` shape.
76
+ * @see {@link CreateDeploymentSnapshotCommandOutput} for command's `response` shape.
77
+ * @see {@link NetworkSecurityManagerClientResolvedConfig | config} for NetworkSecurityManagerClient's `config` shape.
78
+ *
79
+ * @throws {@link AccessDeniedException} (client fault)
80
+ * <p>You do not have sufficient permissions to perform this action.</p>
81
+ *
82
+ * @throws {@link ConflictException} (client fault)
83
+ * <p>The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.</p>
84
+ *
85
+ * @throws {@link InternalServerException} (server fault)
86
+ * <p>The request processing failed because of an internal error in the service. This is a retryable error.</p>
87
+ *
88
+ * @throws {@link ResourceNotFoundException} (client fault)
89
+ * <p>The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.</p>
90
+ *
91
+ * @throws {@link ServiceQuotaExceededException} (client fault)
92
+ * <p>The request would exceed a service quota.</p>
93
+ *
94
+ * @throws {@link ThrottlingException} (client fault)
95
+ * <p>The request was denied because of request throttling. Reduce your request rate and try again.</p>
96
+ *
97
+ * @throws {@link ValidationException} (client fault)
98
+ * <p>The request failed validation. For details, see the <code>reason</code> and <code>fieldList</code> members of the response.</p>
99
+ *
100
+ * @throws {@link NetworkSecurityManagerServiceException}
101
+ * <p>Base exception class for all service exceptions from NetworkSecurityManager service.</p>
102
+ *
103
+ *
104
+ * @example Create a deployment snapshot
105
+ * ```javascript
106
+ * // Creates an immutable snapshot of the current published version of a deployment. The snapshot is addressable by a version-qualified ARN.
107
+ * const input = {
108
+ * clientToken: "550e8400-e29b-41d4-a716-446655440014",
109
+ * deploymentIdentifier: "arn:aws:network-security-manager:us-east-1:123456789012:deployment:def456"
110
+ * };
111
+ * const command = new CreateDeploymentSnapshotCommand(input);
112
+ * const response = await client.send(command);
113
+ * /* response is
114
+ * {
115
+ * associatedPolicyList: [
116
+ * {
117
+ * policyArn: "arn:aws:network-security-manager:us-east-1:123456789012:policy:xyz789"
118
+ * }
119
+ * ],
120
+ * associatedScopeList: [
121
+ * {
122
+ * scopeArn: "arn:aws:network-security-manager:us-east-1:123456789012:scope:abc123"
123
+ * }
124
+ * ],
125
+ * deploymentArn: "arn:aws:network-security-manager:us-east-1:123456789012:deployment:def456:2",
126
+ * deploymentConfiguration: {
127
+ * enableCrossAccountVisibility: true
128
+ * },
129
+ * deploymentId: "def456",
130
+ * deploymentName: "prod-us-east-1-deployment",
131
+ * isSnapshot: true,
132
+ * status: "ACTIVE",
133
+ * updatedAt: "2026-08-20T12:00:00Z",
134
+ * version: "2"
135
+ * }
136
+ * *\/
137
+ * ```
138
+ *
139
+ * @public
140
+ */
141
+ export declare class CreateDeploymentSnapshotCommand extends CreateDeploymentSnapshotCommand_base {
142
+ /** @internal type navigation helper, not in runtime. */
143
+ protected static __types: {
144
+ api: {
145
+ input: CreateDeploymentSnapshotInput;
146
+ output: CreateDeploymentSnapshotOutput;
147
+ };
148
+ sdk: {
149
+ input: CreateDeploymentSnapshotCommandInput;
150
+ output: CreateDeploymentSnapshotCommandOutput;
151
+ };
152
+ };
153
+ }
@@ -0,0 +1,198 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { CreatePolicyInput, CreatePolicyOutput } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link CreatePolicyCommand}.
11
+ */
12
+ export interface CreatePolicyCommandInput extends CreatePolicyInput {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link CreatePolicyCommand}.
18
+ */
19
+ export interface CreatePolicyCommandOutput extends CreatePolicyOutput, __MetadataBearer {
20
+ }
21
+ declare const CreatePolicyCommand_base: {
22
+ new (input: CreatePolicyCommandInput): import("@smithy/core/client").CommandImpl<CreatePolicyCommandInput, CreatePolicyCommandOutput, import("..").NetworkSecurityManagerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreatePolicyCommandInput): import("@smithy/core/client").CommandImpl<CreatePolicyCommandInput, CreatePolicyCommandOutput, import("..").NetworkSecurityManagerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Creates a policy. A policy combines templates and rules with enforcement settings for a firewall type, such as AWS WAF or AWS Shield Advanced. Use <code>isPublished</code> to create the policy in published (<code>ACTIVE</code>) or draft (<code>DRAFT</code>) state.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { NetworkSecurityManagerClient, CreatePolicyCommand } from "@aws-sdk/client-network-security-manager"; // ES Modules import
32
+ * // const { NetworkSecurityManagerClient, CreatePolicyCommand } = require("@aws-sdk/client-network-security-manager"); // CommonJS import
33
+ * // import type { NetworkSecurityManagerClientConfig } from "@aws-sdk/client-network-security-manager";
34
+ * const config = {}; // type is NetworkSecurityManagerClientConfig
35
+ * const client = new NetworkSecurityManagerClient(config);
36
+ * const input = { // CreatePolicyInput
37
+ * clientToken: "STRING_VALUE",
38
+ * policyName: "STRING_VALUE", // required
39
+ * policyDescription: "STRING_VALUE",
40
+ * priority: Number("int"), // required
41
+ * associatedTemplateAndRuleList: [ // TemplateAndRuleReferenceList
42
+ * { // TemplateOrRuleReference Union: only one key present
43
+ * templateIdentifier: "STRING_VALUE",
44
+ * ruleIdentifier: "STRING_VALUE",
45
+ * },
46
+ * ],
47
+ * firewallType: "WAF" || "SHIELD_ADVANCED", // required
48
+ * policyConfiguration: { // PolicyConfiguration
49
+ * remediationEnabled: true || false, // required
50
+ * resourcesCleanUp: true || false, // required
51
+ * wafConfig: { // WafConfig
52
+ * existingCustomerWebACLResolution: "RETROFIT" || "OVERRIDE_ASSOCIATION" || "NO_REMEDIATION", // required
53
+ * conflictResolution: "MERGE_WHERE_APPLICABLE", // required
54
+ * },
55
+ * },
56
+ * isPublished: true || false,
57
+ * tags: { // TagMap
58
+ * "<keys>": "STRING_VALUE",
59
+ * },
60
+ * };
61
+ * const command = new CreatePolicyCommand(input);
62
+ * const response = await client.send(command);
63
+ * // { // CreatePolicyOutput
64
+ * // policyId: "STRING_VALUE", // required
65
+ * // policyArn: "STRING_VALUE", // required
66
+ * // policyName: "STRING_VALUE", // required
67
+ * // policyDescription: "STRING_VALUE",
68
+ * // status: "DRAFT" || "ACTIVE" || "DISABLED", // required
69
+ * // priority: Number("int"), // required
70
+ * // associatedTemplateAndRuleList: [ // AssociatedTemplateAndRuleList // required
71
+ * // { // AssociatedTemplateOrRule Union: only one key present
72
+ * // templateArn: "STRING_VALUE",
73
+ * // ruleArn: "STRING_VALUE",
74
+ * // },
75
+ * // ],
76
+ * // version: "STRING_VALUE", // required
77
+ * // updateToken: "STRING_VALUE",
78
+ * // isSnapshot: true || false,
79
+ * // hasPublishedVersion: true || false,
80
+ * // firewallType: "WAF" || "SHIELD_ADVANCED", // required
81
+ * // policyConfiguration: { // PolicyConfiguration
82
+ * // remediationEnabled: true || false, // required
83
+ * // resourcesCleanUp: true || false, // required
84
+ * // wafConfig: { // WafConfig
85
+ * // existingCustomerWebACLResolution: "RETROFIT" || "OVERRIDE_ASSOCIATION" || "NO_REMEDIATION", // required
86
+ * // conflictResolution: "MERGE_WHERE_APPLICABLE", // required
87
+ * // },
88
+ * // },
89
+ * // updatedAt: new Date("TIMESTAMP"),
90
+ * // };
91
+ *
92
+ * ```
93
+ *
94
+ * @param CreatePolicyCommandInput - {@link CreatePolicyCommandInput}
95
+ * @returns {@link CreatePolicyCommandOutput}
96
+ * @see {@link CreatePolicyCommandInput} for command's `input` shape.
97
+ * @see {@link CreatePolicyCommandOutput} for command's `response` shape.
98
+ * @see {@link NetworkSecurityManagerClientResolvedConfig | config} for NetworkSecurityManagerClient's `config` shape.
99
+ *
100
+ * @throws {@link AccessDeniedException} (client fault)
101
+ * <p>You do not have sufficient permissions to perform this action.</p>
102
+ *
103
+ * @throws {@link ConflictException} (client fault)
104
+ * <p>The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.</p>
105
+ *
106
+ * @throws {@link InternalServerException} (server fault)
107
+ * <p>The request processing failed because of an internal error in the service. This is a retryable error.</p>
108
+ *
109
+ * @throws {@link ServiceQuotaExceededException} (client fault)
110
+ * <p>The request would exceed a service quota.</p>
111
+ *
112
+ * @throws {@link ServiceUnavailableException} (server fault)
113
+ * <p>The service is temporarily unavailable. This is a retryable error.</p>
114
+ *
115
+ * @throws {@link TagPolicyViolationException} (client fault)
116
+ * <p>The request violates a tag policy that is in effect for the account or organization.</p>
117
+ *
118
+ * @throws {@link ThrottlingException} (client fault)
119
+ * <p>The request was denied because of request throttling. Reduce your request rate and try again.</p>
120
+ *
121
+ * @throws {@link ValidationException} (client fault)
122
+ * <p>The request failed validation. For details, see the <code>reason</code> and <code>fieldList</code> members of the response.</p>
123
+ *
124
+ * @throws {@link NetworkSecurityManagerServiceException}
125
+ * <p>Base exception class for all service exceptions from NetworkSecurityManager service.</p>
126
+ *
127
+ *
128
+ * @example Create a WAF policy
129
+ * ```javascript
130
+ * // Creates a new WAF policy in draft state with a template association.
131
+ * const input = {
132
+ * associatedTemplateAndRuleList: [
133
+ * {
134
+ * templateIdentifier: "arn:aws:network-security-manager:us-east-1:123456789012:template:xyz789"
135
+ * }
136
+ * ],
137
+ * clientToken: "550e8400-e29b-41d4-a716-446655440002",
138
+ * firewallType: "WAF",
139
+ * isPublished: false,
140
+ * policyConfiguration: {
141
+ * remediationEnabled: false,
142
+ * resourcesCleanUp: false,
143
+ * wafConfig: {
144
+ * conflictResolution: "MERGE_WHERE_APPLICABLE",
145
+ * existingCustomerWebACLResolution: "NO_REMEDIATION"
146
+ * }
147
+ * },
148
+ * policyDescription: "WAF policy for web application protection",
149
+ * policyName: "web-app-waf-policy",
150
+ * priority: 1
151
+ * };
152
+ * const command = new CreatePolicyCommand(input);
153
+ * const response = await client.send(command);
154
+ * /* response is
155
+ * {
156
+ * associatedTemplateAndRuleList: [
157
+ * {
158
+ * templateArn: "arn:aws:network-security-manager:us-east-1:123456789012:template:xyz789"
159
+ * }
160
+ * ],
161
+ * firewallType: "WAF",
162
+ * hasPublishedVersion: false,
163
+ * isSnapshot: false,
164
+ * policyArn: "arn:aws:network-security-manager:us-east-1:123456789012:policy:xyz789",
165
+ * policyConfiguration: {
166
+ * remediationEnabled: false,
167
+ * resourcesCleanUp: false,
168
+ * wafConfig: {
169
+ * conflictResolution: "MERGE_WHERE_APPLICABLE",
170
+ * existingCustomerWebACLResolution: "NO_REMEDIATION"
171
+ * }
172
+ * },
173
+ * policyDescription: "WAF policy for web application protection",
174
+ * policyId: "xyz789",
175
+ * policyName: "web-app-waf-policy",
176
+ * priority: 1,
177
+ * status: "DRAFT",
178
+ * updateToken: "e3f4a5b6-6c7d-4e8f-9a0b-0c1d2e3f4a5b",
179
+ * version: "1"
180
+ * }
181
+ * *\/
182
+ * ```
183
+ *
184
+ * @public
185
+ */
186
+ export declare class CreatePolicyCommand extends CreatePolicyCommand_base {
187
+ /** @internal type navigation helper, not in runtime. */
188
+ protected static __types: {
189
+ api: {
190
+ input: CreatePolicyInput;
191
+ output: CreatePolicyOutput;
192
+ };
193
+ sdk: {
194
+ input: CreatePolicyCommandInput;
195
+ output: CreatePolicyCommandOutput;
196
+ };
197
+ };
198
+ }
@@ -0,0 +1,158 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { CreatePolicySnapshotInput, CreatePolicySnapshotOutput } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link CreatePolicySnapshotCommand}.
11
+ */
12
+ export interface CreatePolicySnapshotCommandInput extends CreatePolicySnapshotInput {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link CreatePolicySnapshotCommand}.
18
+ */
19
+ export interface CreatePolicySnapshotCommandOutput extends CreatePolicySnapshotOutput, __MetadataBearer {
20
+ }
21
+ declare const CreatePolicySnapshotCommand_base: {
22
+ new (input: CreatePolicySnapshotCommandInput): import("@smithy/core/client").CommandImpl<CreatePolicySnapshotCommandInput, CreatePolicySnapshotCommandOutput, import("..").NetworkSecurityManagerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreatePolicySnapshotCommandInput): import("@smithy/core/client").CommandImpl<CreatePolicySnapshotCommandInput, CreatePolicySnapshotCommandOutput, import("..").NetworkSecurityManagerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Creates a snapshot of the current published version of the specified policy.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { NetworkSecurityManagerClient, CreatePolicySnapshotCommand } from "@aws-sdk/client-network-security-manager"; // ES Modules import
32
+ * // const { NetworkSecurityManagerClient, CreatePolicySnapshotCommand } = require("@aws-sdk/client-network-security-manager"); // CommonJS import
33
+ * // import type { NetworkSecurityManagerClientConfig } from "@aws-sdk/client-network-security-manager";
34
+ * const config = {}; // type is NetworkSecurityManagerClientConfig
35
+ * const client = new NetworkSecurityManagerClient(config);
36
+ * const input = { // CreatePolicySnapshotInput
37
+ * policyIdentifier: "STRING_VALUE", // required
38
+ * clientToken: "STRING_VALUE",
39
+ * tags: { // TagMap
40
+ * "<keys>": "STRING_VALUE",
41
+ * },
42
+ * };
43
+ * const command = new CreatePolicySnapshotCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // CreatePolicySnapshotOutput
46
+ * // policyId: "STRING_VALUE", // required
47
+ * // policyArn: "STRING_VALUE", // required
48
+ * // policyName: "STRING_VALUE", // required
49
+ * // policyDescription: "STRING_VALUE",
50
+ * // status: "DRAFT" || "ACTIVE" || "DISABLED", // required
51
+ * // priority: Number("int"), // required
52
+ * // associatedTemplateAndRuleList: [ // AssociatedTemplateAndRuleList // required
53
+ * // { // AssociatedTemplateOrRule Union: only one key present
54
+ * // templateArn: "STRING_VALUE",
55
+ * // ruleArn: "STRING_VALUE",
56
+ * // },
57
+ * // ],
58
+ * // version: "STRING_VALUE", // required
59
+ * // updateToken: "STRING_VALUE",
60
+ * // isSnapshot: true || false,
61
+ * // hasPublishedVersion: true || false,
62
+ * // firewallType: "WAF" || "SHIELD_ADVANCED", // required
63
+ * // policyConfiguration: { // PolicyConfiguration
64
+ * // remediationEnabled: true || false, // required
65
+ * // resourcesCleanUp: true || false, // required
66
+ * // wafConfig: { // WafConfig
67
+ * // existingCustomerWebACLResolution: "RETROFIT" || "OVERRIDE_ASSOCIATION" || "NO_REMEDIATION", // required
68
+ * // conflictResolution: "MERGE_WHERE_APPLICABLE", // required
69
+ * // },
70
+ * // },
71
+ * // updatedAt: new Date("TIMESTAMP"),
72
+ * // };
73
+ *
74
+ * ```
75
+ *
76
+ * @param CreatePolicySnapshotCommandInput - {@link CreatePolicySnapshotCommandInput}
77
+ * @returns {@link CreatePolicySnapshotCommandOutput}
78
+ * @see {@link CreatePolicySnapshotCommandInput} for command's `input` shape.
79
+ * @see {@link CreatePolicySnapshotCommandOutput} for command's `response` shape.
80
+ * @see {@link NetworkSecurityManagerClientResolvedConfig | config} for NetworkSecurityManagerClient's `config` shape.
81
+ *
82
+ * @throws {@link AccessDeniedException} (client fault)
83
+ * <p>You do not have sufficient permissions to perform this action.</p>
84
+ *
85
+ * @throws {@link ConflictException} (client fault)
86
+ * <p>The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.</p>
87
+ *
88
+ * @throws {@link InternalServerException} (server fault)
89
+ * <p>The request processing failed because of an internal error in the service. This is a retryable error.</p>
90
+ *
91
+ * @throws {@link ResourceNotFoundException} (client fault)
92
+ * <p>The specified resource was not found. Verify that the resource identifier is correct and that the resource exists, then try your request again.</p>
93
+ *
94
+ * @throws {@link ServiceQuotaExceededException} (client fault)
95
+ * <p>The request would exceed a service quota.</p>
96
+ *
97
+ * @throws {@link ThrottlingException} (client fault)
98
+ * <p>The request was denied because of request throttling. Reduce your request rate and try again.</p>
99
+ *
100
+ * @throws {@link ValidationException} (client fault)
101
+ * <p>The request failed validation. For details, see the <code>reason</code> and <code>fieldList</code> members of the response.</p>
102
+ *
103
+ * @throws {@link NetworkSecurityManagerServiceException}
104
+ * <p>Base exception class for all service exceptions from NetworkSecurityManager service.</p>
105
+ *
106
+ *
107
+ * @example Create a policy snapshot
108
+ * ```javascript
109
+ * // Creates an immutable snapshot of the current published version of a policy. The snapshot is addressable by a version-qualified ARN.
110
+ * const input = {
111
+ * clientToken: "550e8400-e29b-41d4-a716-446655440013",
112
+ * policyIdentifier: "arn:aws:network-security-manager:us-east-1:123456789012:policy:xyz789"
113
+ * };
114
+ * const command = new CreatePolicySnapshotCommand(input);
115
+ * const response = await client.send(command);
116
+ * /* response is
117
+ * {
118
+ * associatedTemplateAndRuleList: [
119
+ * {
120
+ * templateArn: "arn:aws:network-security-manager:us-east-1:123456789012:template:xyz789"
121
+ * }
122
+ * ],
123
+ * firewallType: "WAF",
124
+ * isSnapshot: true,
125
+ * policyArn: "arn:aws:network-security-manager:us-east-1:123456789012:policy:xyz789:2",
126
+ * policyConfiguration: {
127
+ * remediationEnabled: true,
128
+ * resourcesCleanUp: false,
129
+ * wafConfig: {
130
+ * conflictResolution: "MERGE_WHERE_APPLICABLE",
131
+ * existingCustomerWebACLResolution: "NO_REMEDIATION"
132
+ * }
133
+ * },
134
+ * policyId: "xyz789",
135
+ * policyName: "web-app-waf-policy",
136
+ * priority: 2,
137
+ * status: "ACTIVE",
138
+ * updatedAt: "2026-08-20T12:00:00Z",
139
+ * version: "2"
140
+ * }
141
+ * *\/
142
+ * ```
143
+ *
144
+ * @public
145
+ */
146
+ export declare class CreatePolicySnapshotCommand extends CreatePolicySnapshotCommand_base {
147
+ /** @internal type navigation helper, not in runtime. */
148
+ protected static __types: {
149
+ api: {
150
+ input: CreatePolicySnapshotInput;
151
+ output: CreatePolicySnapshotOutput;
152
+ };
153
+ sdk: {
154
+ input: CreatePolicySnapshotCommandInput;
155
+ output: CreatePolicySnapshotCommandOutput;
156
+ };
157
+ };
158
+ }
@@ -0,0 +1,148 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { CreateRuleInput, CreateRuleOutput } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link CreateRuleCommand}.
11
+ */
12
+ export interface CreateRuleCommandInput extends CreateRuleInput {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link CreateRuleCommand}.
18
+ */
19
+ export interface CreateRuleCommandOutput extends CreateRuleOutput, __MetadataBearer {
20
+ }
21
+ declare const CreateRuleCommand_base: {
22
+ new (input: CreateRuleCommandInput): import("@smithy/core/client").CommandImpl<CreateRuleCommandInput, CreateRuleCommandOutput, import("..").NetworkSecurityManagerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateRuleCommandInput): import("@smithy/core/client").CommandImpl<CreateRuleCommandInput, CreateRuleCommandOutput, import("..").NetworkSecurityManagerClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Creates a rule. A rule defines a network security configuration to enforce, such as an AWS WAF rule group or configuration data. Use <code>isPublished</code> to create the rule in published (<code>ACTIVE</code>) or draft (<code>DRAFT</code>) state.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { NetworkSecurityManagerClient, CreateRuleCommand } from "@aws-sdk/client-network-security-manager"; // ES Modules import
32
+ * // const { NetworkSecurityManagerClient, CreateRuleCommand } = require("@aws-sdk/client-network-security-manager"); // CommonJS import
33
+ * // import type { NetworkSecurityManagerClientConfig } from "@aws-sdk/client-network-security-manager";
34
+ * const config = {}; // type is NetworkSecurityManagerClientConfig
35
+ * const client = new NetworkSecurityManagerClient(config);
36
+ * const input = { // CreateRuleInput
37
+ * clientToken: "STRING_VALUE",
38
+ * ruleName: "STRING_VALUE", // required
39
+ * firewallType: "WAF", // required
40
+ * ruleType: "CONFIGURATION" || "INSPECTION", // required
41
+ * ruleDescription: "STRING_VALUE",
42
+ * configuration: "DOCUMENT_VALUE", // required
43
+ * isPublished: true || false,
44
+ * tags: { // TagMap
45
+ * "<keys>": "STRING_VALUE",
46
+ * },
47
+ * };
48
+ * const command = new CreateRuleCommand(input);
49
+ * const response = await client.send(command);
50
+ * // { // CreateRuleOutput
51
+ * // ruleId: "STRING_VALUE", // required
52
+ * // ruleArn: "STRING_VALUE", // required
53
+ * // ruleName: "STRING_VALUE", // required
54
+ * // firewallType: "WAF", // required
55
+ * // ruleType: "CONFIGURATION" || "INSPECTION",
56
+ * // ruleDescription: "STRING_VALUE",
57
+ * // configuration: "DOCUMENT_VALUE", // required
58
+ * // status: "DRAFT" || "ACTIVE" || "DISABLED", // required
59
+ * // version: "STRING_VALUE", // required
60
+ * // updateToken: "STRING_VALUE",
61
+ * // isSnapshot: true || false,
62
+ * // hasPublishedVersion: true || false,
63
+ * // updatedAt: new Date("TIMESTAMP"),
64
+ * // };
65
+ *
66
+ * ```
67
+ *
68
+ * @param CreateRuleCommandInput - {@link CreateRuleCommandInput}
69
+ * @returns {@link CreateRuleCommandOutput}
70
+ * @see {@link CreateRuleCommandInput} for command's `input` shape.
71
+ * @see {@link CreateRuleCommandOutput} for command's `response` shape.
72
+ * @see {@link NetworkSecurityManagerClientResolvedConfig | config} for NetworkSecurityManagerClient's `config` shape.
73
+ *
74
+ * @throws {@link AccessDeniedException} (client fault)
75
+ * <p>You do not have sufficient permissions to perform this action.</p>
76
+ *
77
+ * @throws {@link ConflictException} (client fault)
78
+ * <p>The request conflicts with the current state of the resource. For example, the resource was modified concurrently, or it is in a state that does not allow the requested operation.</p>
79
+ *
80
+ * @throws {@link InternalServerException} (server fault)
81
+ * <p>The request processing failed because of an internal error in the service. This is a retryable error.</p>
82
+ *
83
+ * @throws {@link ServiceQuotaExceededException} (client fault)
84
+ * <p>The request would exceed a service quota.</p>
85
+ *
86
+ * @throws {@link ServiceUnavailableException} (server fault)
87
+ * <p>The service is temporarily unavailable. This is a retryable error.</p>
88
+ *
89
+ * @throws {@link TagPolicyViolationException} (client fault)
90
+ * <p>The request violates a tag policy that is in effect for the account or organization.</p>
91
+ *
92
+ * @throws {@link ThrottlingException} (client fault)
93
+ * <p>The request was denied because of request throttling. Reduce your request rate and try again.</p>
94
+ *
95
+ * @throws {@link ValidationException} (client fault)
96
+ * <p>The request failed validation. For details, see the <code>reason</code> and <code>fieldList</code> members of the response.</p>
97
+ *
98
+ * @throws {@link NetworkSecurityManagerServiceException}
99
+ * <p>Base exception class for all service exceptions from NetworkSecurityManager service.</p>
100
+ *
101
+ *
102
+ * @example Create a WAF rule
103
+ * ```javascript
104
+ * // Creates a new WAF inspection rule in draft state.
105
+ * const input = {
106
+ * clientToken: "550e8400-e29b-41d4-a716-446655440000",
107
+ * configuration: { /* empty *\/ },
108
+ * firewallType: "WAF",
109
+ * isPublished: false,
110
+ * ruleDescription: "Blocks requests from known malicious IP addresses",
111
+ * ruleName: "block-known-bad-ips",
112
+ * ruleType: "INSPECTION"
113
+ * };
114
+ * const command = new CreateRuleCommand(input);
115
+ * const response = await client.send(command);
116
+ * /* response is
117
+ * {
118
+ * configuration: { /* empty *\/ },
119
+ * firewallType: "WAF",
120
+ * hasPublishedVersion: false,
121
+ * isSnapshot: false,
122
+ * ruleArn: "arn:aws:network-security-manager:us-east-1:123456789012:rule:abc123",
123
+ * ruleDescription: "Blocks requests from known malicious IP addresses",
124
+ * ruleId: "abc123",
125
+ * ruleName: "block-known-bad-ips",
126
+ * ruleType: "INSPECTION",
127
+ * status: "DRAFT",
128
+ * updateToken: "c1d2e3f4-4a5b-4c6d-9e7f-8a9b0c1d2e3f",
129
+ * version: "1"
130
+ * }
131
+ * *\/
132
+ * ```
133
+ *
134
+ * @public
135
+ */
136
+ export declare class CreateRuleCommand extends CreateRuleCommand_base {
137
+ /** @internal type navigation helper, not in runtime. */
138
+ protected static __types: {
139
+ api: {
140
+ input: CreateRuleInput;
141
+ output: CreateRuleOutput;
142
+ };
143
+ sdk: {
144
+ input: CreateRuleCommandInput;
145
+ output: CreateRuleCommandOutput;
146
+ };
147
+ };
148
+ }