@aws-sdk/client-securityagent 3.1021.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 (266) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +531 -0
  3. package/dist-cjs/auth/httpAuthSchemeProvider.js +46 -0
  4. package/dist-cjs/endpoint/endpointResolver.js +18 -0
  5. package/dist-cjs/endpoint/ruleset.js +7 -0
  6. package/dist-cjs/index.js +1084 -0
  7. package/dist-cjs/models/SecurityAgentServiceException.js +12 -0
  8. package/dist-cjs/models/errors.js +88 -0
  9. package/dist-cjs/runtimeConfig.browser.js +38 -0
  10. package/dist-cjs/runtimeConfig.js +54 -0
  11. package/dist-cjs/runtimeConfig.native.js +15 -0
  12. package/dist-cjs/runtimeConfig.shared.js +43 -0
  13. package/dist-cjs/schemas/schemas_0.js +1570 -0
  14. package/dist-es/SecurityAgent.js +133 -0
  15. package/dist-es/SecurityAgentClient.js +50 -0
  16. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  17. package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
  18. package/dist-es/commands/AddArtifactCommand.js +16 -0
  19. package/dist-es/commands/BatchDeletePentestsCommand.js +16 -0
  20. package/dist-es/commands/BatchGetAgentSpacesCommand.js +16 -0
  21. package/dist-es/commands/BatchGetArtifactMetadataCommand.js +16 -0
  22. package/dist-es/commands/BatchGetFindingsCommand.js +16 -0
  23. package/dist-es/commands/BatchGetPentestJobTasksCommand.js +16 -0
  24. package/dist-es/commands/BatchGetPentestJobsCommand.js +16 -0
  25. package/dist-es/commands/BatchGetPentestsCommand.js +16 -0
  26. package/dist-es/commands/BatchGetTargetDomainsCommand.js +16 -0
  27. package/dist-es/commands/CreateAgentSpaceCommand.js +16 -0
  28. package/dist-es/commands/CreateApplicationCommand.js +16 -0
  29. package/dist-es/commands/CreateIntegrationCommand.js +16 -0
  30. package/dist-es/commands/CreateMembershipCommand.js +16 -0
  31. package/dist-es/commands/CreatePentestCommand.js +16 -0
  32. package/dist-es/commands/CreateTargetDomainCommand.js +16 -0
  33. package/dist-es/commands/DeleteAgentSpaceCommand.js +16 -0
  34. package/dist-es/commands/DeleteApplicationCommand.js +16 -0
  35. package/dist-es/commands/DeleteArtifactCommand.js +16 -0
  36. package/dist-es/commands/DeleteIntegrationCommand.js +16 -0
  37. package/dist-es/commands/DeleteMembershipCommand.js +16 -0
  38. package/dist-es/commands/DeleteTargetDomainCommand.js +16 -0
  39. package/dist-es/commands/GetApplicationCommand.js +16 -0
  40. package/dist-es/commands/GetArtifactCommand.js +16 -0
  41. package/dist-es/commands/GetIntegrationCommand.js +16 -0
  42. package/dist-es/commands/InitiateProviderRegistrationCommand.js +16 -0
  43. package/dist-es/commands/ListAgentSpacesCommand.js +16 -0
  44. package/dist-es/commands/ListApplicationsCommand.js +16 -0
  45. package/dist-es/commands/ListArtifactsCommand.js +16 -0
  46. package/dist-es/commands/ListDiscoveredEndpointsCommand.js +16 -0
  47. package/dist-es/commands/ListFindingsCommand.js +16 -0
  48. package/dist-es/commands/ListIntegratedResourcesCommand.js +16 -0
  49. package/dist-es/commands/ListIntegrationsCommand.js +16 -0
  50. package/dist-es/commands/ListMembershipsCommand.js +16 -0
  51. package/dist-es/commands/ListPentestJobTasksCommand.js +16 -0
  52. package/dist-es/commands/ListPentestJobsForPentestCommand.js +16 -0
  53. package/dist-es/commands/ListPentestsCommand.js +16 -0
  54. package/dist-es/commands/ListTagsForResourceCommand.js +16 -0
  55. package/dist-es/commands/ListTargetDomainsCommand.js +16 -0
  56. package/dist-es/commands/StartCodeRemediationCommand.js +16 -0
  57. package/dist-es/commands/StartPentestJobCommand.js +16 -0
  58. package/dist-es/commands/StopPentestJobCommand.js +16 -0
  59. package/dist-es/commands/TagResourceCommand.js +16 -0
  60. package/dist-es/commands/UntagResourceCommand.js +16 -0
  61. package/dist-es/commands/UpdateAgentSpaceCommand.js +16 -0
  62. package/dist-es/commands/UpdateApplicationCommand.js +16 -0
  63. package/dist-es/commands/UpdateFindingCommand.js +16 -0
  64. package/dist-es/commands/UpdateIntegratedResourcesCommand.js +16 -0
  65. package/dist-es/commands/UpdatePentestCommand.js +16 -0
  66. package/dist-es/commands/UpdateTargetDomainCommand.js +16 -0
  67. package/dist-es/commands/VerifyTargetDomainCommand.js +16 -0
  68. package/dist-es/commands/index.js +50 -0
  69. package/dist-es/endpoint/EndpointParameters.js +11 -0
  70. package/dist-es/endpoint/endpointResolver.js +14 -0
  71. package/dist-es/endpoint/ruleset.js +4 -0
  72. package/dist-es/extensionConfiguration.js +1 -0
  73. package/dist-es/index.js +9 -0
  74. package/dist-es/models/SecurityAgentServiceException.js +8 -0
  75. package/dist-es/models/enums.js +162 -0
  76. package/dist-es/models/errors.js +79 -0
  77. package/dist-es/models/models_0.js +1 -0
  78. package/dist-es/pagination/Interfaces.js +1 -0
  79. package/dist-es/pagination/ListAgentSpacesPaginator.js +4 -0
  80. package/dist-es/pagination/ListApplicationsPaginator.js +4 -0
  81. package/dist-es/pagination/ListArtifactsPaginator.js +4 -0
  82. package/dist-es/pagination/ListDiscoveredEndpointsPaginator.js +4 -0
  83. package/dist-es/pagination/ListFindingsPaginator.js +4 -0
  84. package/dist-es/pagination/ListIntegratedResourcesPaginator.js +4 -0
  85. package/dist-es/pagination/ListIntegrationsPaginator.js +4 -0
  86. package/dist-es/pagination/ListMembershipsPaginator.js +4 -0
  87. package/dist-es/pagination/ListPentestJobTasksPaginator.js +4 -0
  88. package/dist-es/pagination/ListPentestJobsForPentestPaginator.js +4 -0
  89. package/dist-es/pagination/ListPentestsPaginator.js +4 -0
  90. package/dist-es/pagination/ListTargetDomainsPaginator.js +4 -0
  91. package/dist-es/pagination/index.js +13 -0
  92. package/dist-es/runtimeConfig.browser.js +33 -0
  93. package/dist-es/runtimeConfig.js +49 -0
  94. package/dist-es/runtimeConfig.native.js +11 -0
  95. package/dist-es/runtimeConfig.shared.js +39 -0
  96. package/dist-es/runtimeExtensions.js +9 -0
  97. package/dist-es/schemas/schemas_0.js +1563 -0
  98. package/dist-types/SecurityAgent.d.ts +449 -0
  99. package/dist-types/SecurityAgentClient.d.ts +237 -0
  100. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  101. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  102. package/dist-types/commands/AddArtifactCommand.d.ts +94 -0
  103. package/dist-types/commands/BatchDeletePentestsCommand.d.ts +161 -0
  104. package/dist-types/commands/BatchGetAgentSpacesCommand.d.ts +123 -0
  105. package/dist-types/commands/BatchGetArtifactMetadataCommand.d.ts +101 -0
  106. package/dist-types/commands/BatchGetFindingsCommand.d.ts +111 -0
  107. package/dist-types/commands/BatchGetPentestJobTasksCommand.d.ts +109 -0
  108. package/dist-types/commands/BatchGetPentestJobsCommand.d.ts +187 -0
  109. package/dist-types/commands/BatchGetPentestsCommand.d.ts +158 -0
  110. package/dist-types/commands/BatchGetTargetDomainsCommand.d.ts +99 -0
  111. package/dist-types/commands/CreateAgentSpaceCommand.d.ts +154 -0
  112. package/dist-types/commands/CreateApplicationCommand.d.ts +79 -0
  113. package/dist-types/commands/CreateIntegrationCommand.d.ts +106 -0
  114. package/dist-types/commands/CreateMembershipCommand.d.ts +80 -0
  115. package/dist-types/commands/CreatePentestCommand.d.ts +194 -0
  116. package/dist-types/commands/CreateTargetDomainCommand.d.ts +94 -0
  117. package/dist-types/commands/DeleteAgentSpaceCommand.d.ts +74 -0
  118. package/dist-types/commands/DeleteApplicationCommand.d.ts +72 -0
  119. package/dist-types/commands/DeleteArtifactCommand.d.ts +90 -0
  120. package/dist-types/commands/DeleteIntegrationCommand.d.ts +92 -0
  121. package/dist-types/commands/DeleteMembershipCommand.d.ts +75 -0
  122. package/dist-types/commands/DeleteTargetDomainCommand.d.ts +74 -0
  123. package/dist-types/commands/GetApplicationCommand.d.ts +82 -0
  124. package/dist-types/commands/GetArtifactCommand.d.ts +99 -0
  125. package/dist-types/commands/GetIntegrationCommand.d.ts +96 -0
  126. package/dist-types/commands/InitiateProviderRegistrationCommand.d.ts +95 -0
  127. package/dist-types/commands/ListAgentSpacesCommand.d.ts +83 -0
  128. package/dist-types/commands/ListApplicationsCommand.d.ts +83 -0
  129. package/dist-types/commands/ListArtifactsCommand.d.ts +100 -0
  130. package/dist-types/commands/ListDiscoveredEndpointsCommand.d.ts +89 -0
  131. package/dist-types/commands/ListFindingsCommand.d.ts +97 -0
  132. package/dist-types/commands/ListIntegratedResourcesCommand.d.ts +114 -0
  133. package/dist-types/commands/ListIntegrationsCommand.d.ts +100 -0
  134. package/dist-types/commands/ListMembershipsCommand.d.ts +101 -0
  135. package/dist-types/commands/ListPentestJobTasksCommand.d.ts +92 -0
  136. package/dist-types/commands/ListPentestJobsForPentestCommand.d.ts +87 -0
  137. package/dist-types/commands/ListPentestsCommand.d.ts +85 -0
  138. package/dist-types/commands/ListTagsForResourceCommand.d.ts +76 -0
  139. package/dist-types/commands/ListTargetDomainsCommand.d.ts +82 -0
  140. package/dist-types/commands/StartCodeRemediationCommand.d.ts +76 -0
  141. package/dist-types/commands/StartPentestJobCommand.d.ts +81 -0
  142. package/dist-types/commands/StopPentestJobCommand.d.ts +73 -0
  143. package/dist-types/commands/TagResourceCommand.d.ts +75 -0
  144. package/dist-types/commands/UntagResourceCommand.d.ts +75 -0
  145. package/dist-types/commands/UpdateAgentSpaceCommand.d.ts +150 -0
  146. package/dist-types/commands/UpdateApplicationCommand.d.ts +76 -0
  147. package/dist-types/commands/UpdateFindingCommand.d.ts +75 -0
  148. package/dist-types/commands/UpdateIntegratedResourcesCommand.d.ts +109 -0
  149. package/dist-types/commands/UpdatePentestCommand.d.ts +195 -0
  150. package/dist-types/commands/UpdateTargetDomainCommand.d.ts +91 -0
  151. package/dist-types/commands/VerifyTargetDomainCommand.d.ts +79 -0
  152. package/dist-types/commands/index.d.ts +50 -0
  153. package/dist-types/endpoint/EndpointParameters.d.ts +44 -0
  154. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  155. package/dist-types/endpoint/ruleset.d.ts +2 -0
  156. package/dist-types/extensionConfiguration.d.ts +9 -0
  157. package/dist-types/index.d.ts +17 -0
  158. package/dist-types/models/SecurityAgentServiceException.d.ts +14 -0
  159. package/dist-types/models/enums.d.ts +609 -0
  160. package/dist-types/models/errors.d.ts +93 -0
  161. package/dist-types/models/models_0.d.ts +3749 -0
  162. package/dist-types/pagination/Interfaces.d.ts +8 -0
  163. package/dist-types/pagination/ListAgentSpacesPaginator.d.ts +7 -0
  164. package/dist-types/pagination/ListApplicationsPaginator.d.ts +7 -0
  165. package/dist-types/pagination/ListArtifactsPaginator.d.ts +7 -0
  166. package/dist-types/pagination/ListDiscoveredEndpointsPaginator.d.ts +7 -0
  167. package/dist-types/pagination/ListFindingsPaginator.d.ts +7 -0
  168. package/dist-types/pagination/ListIntegratedResourcesPaginator.d.ts +7 -0
  169. package/dist-types/pagination/ListIntegrationsPaginator.d.ts +7 -0
  170. package/dist-types/pagination/ListMembershipsPaginator.d.ts +7 -0
  171. package/dist-types/pagination/ListPentestJobTasksPaginator.d.ts +7 -0
  172. package/dist-types/pagination/ListPentestJobsForPentestPaginator.d.ts +7 -0
  173. package/dist-types/pagination/ListPentestsPaginator.d.ts +7 -0
  174. package/dist-types/pagination/ListTargetDomainsPaginator.d.ts +7 -0
  175. package/dist-types/pagination/index.d.ts +13 -0
  176. package/dist-types/runtimeConfig.browser.d.ts +55 -0
  177. package/dist-types/runtimeConfig.d.ts +55 -0
  178. package/dist-types/runtimeConfig.native.d.ts +54 -0
  179. package/dist-types/runtimeConfig.shared.d.ts +27 -0
  180. package/dist-types/runtimeExtensions.d.ts +17 -0
  181. package/dist-types/schemas/schemas_0.d.ts +225 -0
  182. package/dist-types/ts3.4/SecurityAgent.d.ts +950 -0
  183. package/dist-types/ts3.4/SecurityAgentClient.d.ts +419 -0
  184. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  185. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
  186. package/dist-types/ts3.4/commands/AddArtifactCommand.d.ts +47 -0
  187. package/dist-types/ts3.4/commands/BatchDeletePentestsCommand.d.ts +51 -0
  188. package/dist-types/ts3.4/commands/BatchGetAgentSpacesCommand.d.ts +51 -0
  189. package/dist-types/ts3.4/commands/BatchGetArtifactMetadataCommand.d.ts +51 -0
  190. package/dist-types/ts3.4/commands/BatchGetFindingsCommand.d.ts +50 -0
  191. package/dist-types/ts3.4/commands/BatchGetPentestJobTasksCommand.d.ts +51 -0
  192. package/dist-types/ts3.4/commands/BatchGetPentestJobsCommand.d.ts +51 -0
  193. package/dist-types/ts3.4/commands/BatchGetPentestsCommand.d.ts +50 -0
  194. package/dist-types/ts3.4/commands/BatchGetTargetDomainsCommand.d.ts +51 -0
  195. package/dist-types/ts3.4/commands/CreateAgentSpaceCommand.d.ts +50 -0
  196. package/dist-types/ts3.4/commands/CreateApplicationCommand.d.ts +51 -0
  197. package/dist-types/ts3.4/commands/CreateIntegrationCommand.d.ts +50 -0
  198. package/dist-types/ts3.4/commands/CreateMembershipCommand.d.ts +50 -0
  199. package/dist-types/ts3.4/commands/CreatePentestCommand.d.ts +47 -0
  200. package/dist-types/ts3.4/commands/CreateTargetDomainCommand.d.ts +51 -0
  201. package/dist-types/ts3.4/commands/DeleteAgentSpaceCommand.d.ts +50 -0
  202. package/dist-types/ts3.4/commands/DeleteApplicationCommand.d.ts +46 -0
  203. package/dist-types/ts3.4/commands/DeleteArtifactCommand.d.ts +47 -0
  204. package/dist-types/ts3.4/commands/DeleteIntegrationCommand.d.ts +50 -0
  205. package/dist-types/ts3.4/commands/DeleteMembershipCommand.d.ts +50 -0
  206. package/dist-types/ts3.4/commands/DeleteTargetDomainCommand.d.ts +51 -0
  207. package/dist-types/ts3.4/commands/GetApplicationCommand.d.ts +50 -0
  208. package/dist-types/ts3.4/commands/GetArtifactCommand.d.ts +47 -0
  209. package/dist-types/ts3.4/commands/GetIntegrationCommand.d.ts +47 -0
  210. package/dist-types/ts3.4/commands/InitiateProviderRegistrationCommand.d.ts +51 -0
  211. package/dist-types/ts3.4/commands/ListAgentSpacesCommand.d.ts +50 -0
  212. package/dist-types/ts3.4/commands/ListApplicationsCommand.d.ts +50 -0
  213. package/dist-types/ts3.4/commands/ListArtifactsCommand.d.ts +47 -0
  214. package/dist-types/ts3.4/commands/ListDiscoveredEndpointsCommand.d.ts +51 -0
  215. package/dist-types/ts3.4/commands/ListFindingsCommand.d.ts +47 -0
  216. package/dist-types/ts3.4/commands/ListIntegratedResourcesCommand.d.ts +51 -0
  217. package/dist-types/ts3.4/commands/ListIntegrationsCommand.d.ts +50 -0
  218. package/dist-types/ts3.4/commands/ListMembershipsCommand.d.ts +50 -0
  219. package/dist-types/ts3.4/commands/ListPentestJobTasksCommand.d.ts +51 -0
  220. package/dist-types/ts3.4/commands/ListPentestJobsForPentestCommand.d.ts +51 -0
  221. package/dist-types/ts3.4/commands/ListPentestsCommand.d.ts +47 -0
  222. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
  223. package/dist-types/ts3.4/commands/ListTargetDomainsCommand.d.ts +50 -0
  224. package/dist-types/ts3.4/commands/StartCodeRemediationCommand.d.ts +51 -0
  225. package/dist-types/ts3.4/commands/StartPentestJobCommand.d.ts +50 -0
  226. package/dist-types/ts3.4/commands/StopPentestJobCommand.d.ts +47 -0
  227. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
  228. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +47 -0
  229. package/dist-types/ts3.4/commands/UpdateAgentSpaceCommand.d.ts +50 -0
  230. package/dist-types/ts3.4/commands/UpdateApplicationCommand.d.ts +51 -0
  231. package/dist-types/ts3.4/commands/UpdateFindingCommand.d.ts +47 -0
  232. package/dist-types/ts3.4/commands/UpdateIntegratedResourcesCommand.d.ts +51 -0
  233. package/dist-types/ts3.4/commands/UpdatePentestCommand.d.ts +47 -0
  234. package/dist-types/ts3.4/commands/UpdateTargetDomainCommand.d.ts +51 -0
  235. package/dist-types/ts3.4/commands/VerifyTargetDomainCommand.d.ts +51 -0
  236. package/dist-types/ts3.4/commands/index.d.ts +50 -0
  237. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
  238. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  239. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  240. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  241. package/dist-types/ts3.4/index.d.ts +12 -0
  242. package/dist-types/ts3.4/models/SecurityAgentServiceException.d.ts +9 -0
  243. package/dist-types/ts3.4/models/enums.d.ts +200 -0
  244. package/dist-types/ts3.4/models/errors.d.ts +46 -0
  245. package/dist-types/ts3.4/models/models_0.d.ts +977 -0
  246. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  247. package/dist-types/ts3.4/pagination/ListAgentSpacesPaginator.d.ts +11 -0
  248. package/dist-types/ts3.4/pagination/ListApplicationsPaginator.d.ts +11 -0
  249. package/dist-types/ts3.4/pagination/ListArtifactsPaginator.d.ts +11 -0
  250. package/dist-types/ts3.4/pagination/ListDiscoveredEndpointsPaginator.d.ts +11 -0
  251. package/dist-types/ts3.4/pagination/ListFindingsPaginator.d.ts +11 -0
  252. package/dist-types/ts3.4/pagination/ListIntegratedResourcesPaginator.d.ts +11 -0
  253. package/dist-types/ts3.4/pagination/ListIntegrationsPaginator.d.ts +11 -0
  254. package/dist-types/ts3.4/pagination/ListMembershipsPaginator.d.ts +11 -0
  255. package/dist-types/ts3.4/pagination/ListPentestJobTasksPaginator.d.ts +11 -0
  256. package/dist-types/ts3.4/pagination/ListPentestJobsForPentestPaginator.d.ts +11 -0
  257. package/dist-types/ts3.4/pagination/ListPentestsPaginator.d.ts +11 -0
  258. package/dist-types/ts3.4/pagination/ListTargetDomainsPaginator.d.ts +11 -0
  259. package/dist-types/ts3.4/pagination/index.d.ts +13 -0
  260. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +100 -0
  261. package/dist-types/ts3.4/runtimeConfig.d.ts +95 -0
  262. package/dist-types/ts3.4/runtimeConfig.native.d.ts +104 -0
  263. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +30 -0
  264. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  265. package/dist-types/ts3.4/schemas/schemas_0.d.ts +225 -0
  266. package/package.json +100 -0
package/README.md ADDED
@@ -0,0 +1,531 @@
1
+ <!-- generated file, do not edit directly -->
2
+
3
+ # @aws-sdk/client-securityagent
4
+
5
+ ## Description
6
+
7
+ AWS SDK for JavaScript SecurityAgent Client for Node.js, Browser and React Native.
8
+
9
+ <p>AWS Security Agent service documentation.</p>
10
+
11
+ ## Installing
12
+
13
+ To install this package, use the CLI of your favorite package manager:
14
+
15
+ - `npm install @aws-sdk/client-securityagent`
16
+ - `yarn add @aws-sdk/client-securityagent`
17
+ - `pnpm add @aws-sdk/client-securityagent`
18
+
19
+ ## Getting Started
20
+
21
+ ### Import
22
+
23
+ The AWS SDK is modulized by clients and commands.
24
+ To send a request, you only need to import the `SecurityAgentClient` and
25
+ the commands you need, for example `ListAgentSpacesCommand`:
26
+
27
+ ```js
28
+ // ES5 example
29
+ const { SecurityAgentClient, ListAgentSpacesCommand } = require("@aws-sdk/client-securityagent");
30
+ ```
31
+
32
+ ```ts
33
+ // ES6+ example
34
+ import { SecurityAgentClient, ListAgentSpacesCommand } from "@aws-sdk/client-securityagent";
35
+ ```
36
+
37
+ ### Usage
38
+
39
+ To send a request:
40
+
41
+ - Instantiate a client with configuration (e.g. credentials, region).
42
+ - See [docs/CLIENTS](https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md) for configuration details.
43
+ - See [@aws-sdk/config](https://github.com/aws/aws-sdk-js-v3/blob/main/packages/config/README.md) for additional options.
44
+ - Instantiate a command with input parameters.
45
+ - Call the `send` operation on the client, providing the command object as input.
46
+
47
+ ```js
48
+ const client = new SecurityAgentClient({ region: "REGION" });
49
+
50
+ const params = { /** input parameters */ };
51
+ const command = new ListAgentSpacesCommand(params);
52
+ ```
53
+
54
+ #### Async/await
55
+
56
+ We recommend using the [await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await)
57
+ operator to wait for the promise returned by send operation as follows:
58
+
59
+ ```js
60
+ // async/await.
61
+ try {
62
+ const data = await client.send(command);
63
+ // process data.
64
+ } catch (error) {
65
+ // error handling.
66
+ } finally {
67
+ // finally.
68
+ }
69
+ ```
70
+
71
+ #### Promises
72
+
73
+ You can also use [Promise chaining](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises#chaining).
74
+
75
+ ```js
76
+ client
77
+ .send(command)
78
+ .then((data) => {
79
+ // process data.
80
+ })
81
+ .catch((error) => {
82
+ // error handling.
83
+ })
84
+ .finally(() => {
85
+ // finally.
86
+ });
87
+ ```
88
+
89
+ #### Aggregated client
90
+
91
+ The aggregated client class is exported from the same package, but without the "Client" suffix.
92
+
93
+ `SecurityAgent` extends `SecurityAgentClient` and additionally supports all operations, waiters, and paginators as methods.
94
+ This style may be familiar to you from the AWS SDK for JavaScript v2.
95
+
96
+ If you are bundling the AWS SDK, we recommend using only the bare-bones client (`SecurityAgentClient`).
97
+ More details are in the blog post on
98
+ [modular packages in AWS SDK for JavaScript](https://aws.amazon.com/blogs/developer/modular-packages-in-aws-sdk-for-javascript/).
99
+
100
+ ```ts
101
+ import { SecurityAgent } from "@aws-sdk/client-securityagent";
102
+
103
+ const client = new SecurityAgent({ region: "REGION" });
104
+
105
+ // async/await.
106
+ try {
107
+ const data = await client.listAgentSpaces(params);
108
+ // process data.
109
+ } catch (error) {
110
+ // error handling.
111
+ }
112
+
113
+ // Promises.
114
+ client
115
+ .listAgentSpaces(params)
116
+ .then((data) => {
117
+ // process data.
118
+ })
119
+ .catch((error) => {
120
+ // error handling.
121
+ });
122
+
123
+ // callbacks (not recommended).
124
+ client.listAgentSpaces(params, (err, data) => {
125
+ // process err and data.
126
+ });
127
+ ```
128
+
129
+ ### Troubleshooting
130
+
131
+ When the service returns an exception, the error will include the exception information,
132
+ as well as response metadata (e.g. request id).
133
+
134
+ ```js
135
+ try {
136
+ const data = await client.send(command);
137
+ // process data.
138
+ } catch (error) {
139
+ const { requestId, cfId, extendedRequestId } = error.$metadata;
140
+ console.log({ requestId, cfId, extendedRequestId });
141
+ /**
142
+ * The keys within exceptions are also parsed.
143
+ * You can access them by specifying exception names:
144
+ * if (error.name === 'SomeServiceException') {
145
+ * const value = error.specialKeyInException;
146
+ * }
147
+ */
148
+ }
149
+ ```
150
+
151
+ See also [docs/ERROR_HANDLING](https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/ERROR_HANDLING.md).
152
+
153
+ ## Getting Help
154
+
155
+ Please use these community resources for getting help.
156
+ We use GitHub issues for tracking bugs and feature requests, but have limited bandwidth to address them.
157
+
158
+ - Visit the [Developer Guide](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/welcome.html)
159
+ or [API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/index.html).
160
+ - Check out the blog posts tagged with [`aws-sdk-js`](https://aws.amazon.com/blogs/developer/tag/aws-sdk-js/)
161
+ on AWS Developer Blog.
162
+ - Ask a question on [StackOverflow](https://stackoverflow.com/questions/tagged/aws-sdk-js) and tag it with `aws-sdk-js`.
163
+ - Join the AWS JavaScript community on [gitter](https://gitter.im/aws/aws-sdk-js-v3).
164
+ - If it turns out that you may have found a bug, please [open an issue](https://github.com/aws/aws-sdk-js-v3/issues/new/choose).
165
+
166
+ To test your universal JavaScript code in Node.js, browser and react-native environments,
167
+ visit our [code samples repo](https://github.com/aws-samples/aws-sdk-js-tests).
168
+
169
+ ## Contributing
170
+
171
+ This client code is generated automatically. Any modifications will be overwritten the next time the `@aws-sdk/client-securityagent` package is updated.
172
+ To contribute to client you can check our [generate clients scripts](https://github.com/aws/aws-sdk-js-v3/tree/main/scripts/generate-clients).
173
+
174
+ ## License
175
+
176
+ This SDK is distributed under the
177
+ [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0),
178
+ see LICENSE for more information.
179
+
180
+ ## Client Commands (Operations List)
181
+
182
+ <details>
183
+ <summary>
184
+ AddArtifact
185
+ </summary>
186
+
187
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/AddArtifactCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/AddArtifactCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/AddArtifactCommandOutput/)
188
+ </details>
189
+ <details>
190
+ <summary>
191
+ BatchDeletePentests
192
+ </summary>
193
+
194
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/BatchDeletePentestsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/BatchDeletePentestsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/BatchDeletePentestsCommandOutput/)
195
+ </details>
196
+ <details>
197
+ <summary>
198
+ BatchGetAgentSpaces
199
+ </summary>
200
+
201
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/BatchGetAgentSpacesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/BatchGetAgentSpacesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/BatchGetAgentSpacesCommandOutput/)
202
+ </details>
203
+ <details>
204
+ <summary>
205
+ BatchGetArtifactMetadata
206
+ </summary>
207
+
208
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/BatchGetArtifactMetadataCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/BatchGetArtifactMetadataCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/BatchGetArtifactMetadataCommandOutput/)
209
+ </details>
210
+ <details>
211
+ <summary>
212
+ BatchGetFindings
213
+ </summary>
214
+
215
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/BatchGetFindingsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/BatchGetFindingsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/BatchGetFindingsCommandOutput/)
216
+ </details>
217
+ <details>
218
+ <summary>
219
+ BatchGetPentestJobs
220
+ </summary>
221
+
222
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/BatchGetPentestJobsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/BatchGetPentestJobsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/BatchGetPentestJobsCommandOutput/)
223
+ </details>
224
+ <details>
225
+ <summary>
226
+ BatchGetPentestJobTasks
227
+ </summary>
228
+
229
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/BatchGetPentestJobTasksCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/BatchGetPentestJobTasksCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/BatchGetPentestJobTasksCommandOutput/)
230
+ </details>
231
+ <details>
232
+ <summary>
233
+ BatchGetPentests
234
+ </summary>
235
+
236
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/BatchGetPentestsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/BatchGetPentestsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/BatchGetPentestsCommandOutput/)
237
+ </details>
238
+ <details>
239
+ <summary>
240
+ BatchGetTargetDomains
241
+ </summary>
242
+
243
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/BatchGetTargetDomainsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/BatchGetTargetDomainsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/BatchGetTargetDomainsCommandOutput/)
244
+ </details>
245
+ <details>
246
+ <summary>
247
+ CreateAgentSpace
248
+ </summary>
249
+
250
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/CreateAgentSpaceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/CreateAgentSpaceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/CreateAgentSpaceCommandOutput/)
251
+ </details>
252
+ <details>
253
+ <summary>
254
+ CreateApplication
255
+ </summary>
256
+
257
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/CreateApplicationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/CreateApplicationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/CreateApplicationCommandOutput/)
258
+ </details>
259
+ <details>
260
+ <summary>
261
+ CreateIntegration
262
+ </summary>
263
+
264
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/CreateIntegrationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/CreateIntegrationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/CreateIntegrationCommandOutput/)
265
+ </details>
266
+ <details>
267
+ <summary>
268
+ CreateMembership
269
+ </summary>
270
+
271
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/CreateMembershipCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/CreateMembershipCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/CreateMembershipCommandOutput/)
272
+ </details>
273
+ <details>
274
+ <summary>
275
+ CreatePentest
276
+ </summary>
277
+
278
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/CreatePentestCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/CreatePentestCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/CreatePentestCommandOutput/)
279
+ </details>
280
+ <details>
281
+ <summary>
282
+ CreateTargetDomain
283
+ </summary>
284
+
285
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/CreateTargetDomainCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/CreateTargetDomainCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/CreateTargetDomainCommandOutput/)
286
+ </details>
287
+ <details>
288
+ <summary>
289
+ DeleteAgentSpace
290
+ </summary>
291
+
292
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/DeleteAgentSpaceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/DeleteAgentSpaceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/DeleteAgentSpaceCommandOutput/)
293
+ </details>
294
+ <details>
295
+ <summary>
296
+ DeleteApplication
297
+ </summary>
298
+
299
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/DeleteApplicationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/DeleteApplicationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/DeleteApplicationCommandOutput/)
300
+ </details>
301
+ <details>
302
+ <summary>
303
+ DeleteArtifact
304
+ </summary>
305
+
306
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/DeleteArtifactCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/DeleteArtifactCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/DeleteArtifactCommandOutput/)
307
+ </details>
308
+ <details>
309
+ <summary>
310
+ DeleteIntegration
311
+ </summary>
312
+
313
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/DeleteIntegrationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/DeleteIntegrationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/DeleteIntegrationCommandOutput/)
314
+ </details>
315
+ <details>
316
+ <summary>
317
+ DeleteMembership
318
+ </summary>
319
+
320
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/DeleteMembershipCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/DeleteMembershipCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/DeleteMembershipCommandOutput/)
321
+ </details>
322
+ <details>
323
+ <summary>
324
+ DeleteTargetDomain
325
+ </summary>
326
+
327
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/DeleteTargetDomainCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/DeleteTargetDomainCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/DeleteTargetDomainCommandOutput/)
328
+ </details>
329
+ <details>
330
+ <summary>
331
+ GetApplication
332
+ </summary>
333
+
334
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/GetApplicationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/GetApplicationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/GetApplicationCommandOutput/)
335
+ </details>
336
+ <details>
337
+ <summary>
338
+ GetArtifact
339
+ </summary>
340
+
341
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/GetArtifactCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/GetArtifactCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/GetArtifactCommandOutput/)
342
+ </details>
343
+ <details>
344
+ <summary>
345
+ GetIntegration
346
+ </summary>
347
+
348
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/GetIntegrationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/GetIntegrationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/GetIntegrationCommandOutput/)
349
+ </details>
350
+ <details>
351
+ <summary>
352
+ InitiateProviderRegistration
353
+ </summary>
354
+
355
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/InitiateProviderRegistrationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/InitiateProviderRegistrationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/InitiateProviderRegistrationCommandOutput/)
356
+ </details>
357
+ <details>
358
+ <summary>
359
+ ListAgentSpaces
360
+ </summary>
361
+
362
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/ListAgentSpacesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/ListAgentSpacesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/ListAgentSpacesCommandOutput/)
363
+ </details>
364
+ <details>
365
+ <summary>
366
+ ListApplications
367
+ </summary>
368
+
369
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/ListApplicationsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/ListApplicationsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/ListApplicationsCommandOutput/)
370
+ </details>
371
+ <details>
372
+ <summary>
373
+ ListArtifacts
374
+ </summary>
375
+
376
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/ListArtifactsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/ListArtifactsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/ListArtifactsCommandOutput/)
377
+ </details>
378
+ <details>
379
+ <summary>
380
+ ListDiscoveredEndpoints
381
+ </summary>
382
+
383
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/ListDiscoveredEndpointsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/ListDiscoveredEndpointsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/ListDiscoveredEndpointsCommandOutput/)
384
+ </details>
385
+ <details>
386
+ <summary>
387
+ ListFindings
388
+ </summary>
389
+
390
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/ListFindingsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/ListFindingsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/ListFindingsCommandOutput/)
391
+ </details>
392
+ <details>
393
+ <summary>
394
+ ListIntegratedResources
395
+ </summary>
396
+
397
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/ListIntegratedResourcesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/ListIntegratedResourcesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/ListIntegratedResourcesCommandOutput/)
398
+ </details>
399
+ <details>
400
+ <summary>
401
+ ListIntegrations
402
+ </summary>
403
+
404
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/ListIntegrationsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/ListIntegrationsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/ListIntegrationsCommandOutput/)
405
+ </details>
406
+ <details>
407
+ <summary>
408
+ ListMemberships
409
+ </summary>
410
+
411
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/ListMembershipsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/ListMembershipsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/ListMembershipsCommandOutput/)
412
+ </details>
413
+ <details>
414
+ <summary>
415
+ ListPentestJobsForPentest
416
+ </summary>
417
+
418
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/ListPentestJobsForPentestCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/ListPentestJobsForPentestCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/ListPentestJobsForPentestCommandOutput/)
419
+ </details>
420
+ <details>
421
+ <summary>
422
+ ListPentestJobTasks
423
+ </summary>
424
+
425
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/ListPentestJobTasksCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/ListPentestJobTasksCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/ListPentestJobTasksCommandOutput/)
426
+ </details>
427
+ <details>
428
+ <summary>
429
+ ListPentests
430
+ </summary>
431
+
432
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/ListPentestsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/ListPentestsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/ListPentestsCommandOutput/)
433
+ </details>
434
+ <details>
435
+ <summary>
436
+ ListTagsForResource
437
+ </summary>
438
+
439
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/ListTagsForResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/ListTagsForResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/ListTagsForResourceCommandOutput/)
440
+ </details>
441
+ <details>
442
+ <summary>
443
+ ListTargetDomains
444
+ </summary>
445
+
446
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/ListTargetDomainsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/ListTargetDomainsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/ListTargetDomainsCommandOutput/)
447
+ </details>
448
+ <details>
449
+ <summary>
450
+ StartCodeRemediation
451
+ </summary>
452
+
453
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/StartCodeRemediationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/StartCodeRemediationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/StartCodeRemediationCommandOutput/)
454
+ </details>
455
+ <details>
456
+ <summary>
457
+ StartPentestJob
458
+ </summary>
459
+
460
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/StartPentestJobCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/StartPentestJobCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/StartPentestJobCommandOutput/)
461
+ </details>
462
+ <details>
463
+ <summary>
464
+ StopPentestJob
465
+ </summary>
466
+
467
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/StopPentestJobCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/StopPentestJobCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/StopPentestJobCommandOutput/)
468
+ </details>
469
+ <details>
470
+ <summary>
471
+ TagResource
472
+ </summary>
473
+
474
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/TagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/TagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/TagResourceCommandOutput/)
475
+ </details>
476
+ <details>
477
+ <summary>
478
+ UntagResource
479
+ </summary>
480
+
481
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/UntagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/UntagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/UntagResourceCommandOutput/)
482
+ </details>
483
+ <details>
484
+ <summary>
485
+ UpdateAgentSpace
486
+ </summary>
487
+
488
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/UpdateAgentSpaceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/UpdateAgentSpaceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/UpdateAgentSpaceCommandOutput/)
489
+ </details>
490
+ <details>
491
+ <summary>
492
+ UpdateApplication
493
+ </summary>
494
+
495
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/UpdateApplicationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/UpdateApplicationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/UpdateApplicationCommandOutput/)
496
+ </details>
497
+ <details>
498
+ <summary>
499
+ UpdateFinding
500
+ </summary>
501
+
502
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/UpdateFindingCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/UpdateFindingCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/UpdateFindingCommandOutput/)
503
+ </details>
504
+ <details>
505
+ <summary>
506
+ UpdateIntegratedResources
507
+ </summary>
508
+
509
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/UpdateIntegratedResourcesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/UpdateIntegratedResourcesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/UpdateIntegratedResourcesCommandOutput/)
510
+ </details>
511
+ <details>
512
+ <summary>
513
+ UpdatePentest
514
+ </summary>
515
+
516
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/UpdatePentestCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/UpdatePentestCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/UpdatePentestCommandOutput/)
517
+ </details>
518
+ <details>
519
+ <summary>
520
+ UpdateTargetDomain
521
+ </summary>
522
+
523
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/UpdateTargetDomainCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/UpdateTargetDomainCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/UpdateTargetDomainCommandOutput/)
524
+ </details>
525
+ <details>
526
+ <summary>
527
+ VerifyTargetDomain
528
+ </summary>
529
+
530
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/securityagent/command/VerifyTargetDomainCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/VerifyTargetDomainCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-securityagent/Interface/VerifyTargetDomainCommandOutput/)
531
+ </details>
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resolveHttpAuthSchemeConfig = exports.defaultSecurityAgentHttpAuthSchemeProvider = exports.defaultSecurityAgentHttpAuthSchemeParametersProvider = void 0;
4
+ const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
5
+ const util_middleware_1 = require("@smithy/util-middleware");
6
+ const defaultSecurityAgentHttpAuthSchemeParametersProvider = async (config, context, input) => {
7
+ return {
8
+ operation: (0, util_middleware_1.getSmithyContext)(context).operation,
9
+ region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
10
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
11
+ })(),
12
+ };
13
+ };
14
+ exports.defaultSecurityAgentHttpAuthSchemeParametersProvider = defaultSecurityAgentHttpAuthSchemeParametersProvider;
15
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
16
+ return {
17
+ schemeId: "aws.auth#sigv4",
18
+ signingProperties: {
19
+ name: "securityagent",
20
+ region: authParameters.region,
21
+ },
22
+ propertiesExtractor: (config, context) => ({
23
+ signingProperties: {
24
+ config,
25
+ context,
26
+ },
27
+ }),
28
+ };
29
+ }
30
+ const defaultSecurityAgentHttpAuthSchemeProvider = (authParameters) => {
31
+ const options = [];
32
+ switch (authParameters.operation) {
33
+ default: {
34
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
35
+ }
36
+ }
37
+ return options;
38
+ };
39
+ exports.defaultSecurityAgentHttpAuthSchemeProvider = defaultSecurityAgentHttpAuthSchemeProvider;
40
+ const resolveHttpAuthSchemeConfig = (config) => {
41
+ const config_0 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config);
42
+ return Object.assign(config_0, {
43
+ authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? []),
44
+ });
45
+ };
46
+ exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.defaultEndpointResolver = void 0;
4
+ const util_endpoints_1 = require("@aws-sdk/util-endpoints");
5
+ const util_endpoints_2 = require("@smithy/util-endpoints");
6
+ const ruleset_1 = require("./ruleset");
7
+ const cache = new util_endpoints_2.EndpointCache({
8
+ size: 50,
9
+ params: ["Endpoint", "Region", "UseFIPS"],
10
+ });
11
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
12
+ return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
13
+ endpointParams: endpointParams,
14
+ logger: context.logger,
15
+ }));
16
+ };
17
+ exports.defaultEndpointResolver = defaultEndpointResolver;
18
+ util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ruleSet = void 0;
4
+ const l = "ref";
5
+ const a = true, b = false, c = "isSet", d = "error", e = "endpoint", f = "tree", g = { "required": false, "type": "string" }, h = { [l]: "Endpoint" }, i = {}, j = [{ "fn": "booleanEquals", "argv": [{ [l]: "UseFIPS" }, true] }], k = [{ [l]: "Region" }];
6
+ const _data = { version: "1.0", parameters: { UseFIPS: { required: a, default: b, type: "boolean" }, Endpoint: g, Region: g }, rules: [{ conditions: [{ fn: c, argv: [h] }], rules: [{ conditions: j, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { endpoint: { url: h, properties: i, headers: i }, type: e }], type: f }, { rules: [{ conditions: [{ fn: c, argv: k }], rules: [{ conditions: [{ fn: "aws.partition", argv: k, assign: "PartitionResult" }], rules: [{ conditions: j, endpoint: { url: "https://securityagent-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: i, headers: i }, type: e }, { endpoint: { url: "https://securityagent.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: i, headers: i }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }], type: f }] };
7
+ exports.ruleSet = _data;