@aws-sdk/client-inspector 3.35.0 → 3.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (301) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist-cjs/Inspector.js +0 -1
  3. package/dist-cjs/InspectorClient.js +0 -1
  4. package/dist-cjs/commands/AddAttributesToFindingsCommand.js +0 -1
  5. package/dist-cjs/commands/CreateAssessmentTargetCommand.js +0 -1
  6. package/dist-cjs/commands/CreateAssessmentTemplateCommand.js +0 -1
  7. package/dist-cjs/commands/CreateExclusionsPreviewCommand.js +0 -1
  8. package/dist-cjs/commands/CreateResourceGroupCommand.js +0 -1
  9. package/dist-cjs/commands/DeleteAssessmentRunCommand.js +0 -1
  10. package/dist-cjs/commands/DeleteAssessmentTargetCommand.js +0 -1
  11. package/dist-cjs/commands/DeleteAssessmentTemplateCommand.js +0 -1
  12. package/dist-cjs/commands/DescribeAssessmentRunsCommand.js +0 -1
  13. package/dist-cjs/commands/DescribeAssessmentTargetsCommand.js +0 -1
  14. package/dist-cjs/commands/DescribeAssessmentTemplatesCommand.js +0 -1
  15. package/dist-cjs/commands/DescribeCrossAccountAccessRoleCommand.js +0 -1
  16. package/dist-cjs/commands/DescribeExclusionsCommand.js +0 -1
  17. package/dist-cjs/commands/DescribeFindingsCommand.js +0 -1
  18. package/dist-cjs/commands/DescribeResourceGroupsCommand.js +0 -1
  19. package/dist-cjs/commands/DescribeRulesPackagesCommand.js +0 -1
  20. package/dist-cjs/commands/GetAssessmentReportCommand.js +0 -1
  21. package/dist-cjs/commands/GetExclusionsPreviewCommand.js +0 -1
  22. package/dist-cjs/commands/GetTelemetryMetadataCommand.js +0 -1
  23. package/dist-cjs/commands/ListAssessmentRunAgentsCommand.js +0 -1
  24. package/dist-cjs/commands/ListAssessmentRunsCommand.js +0 -1
  25. package/dist-cjs/commands/ListAssessmentTargetsCommand.js +0 -1
  26. package/dist-cjs/commands/ListAssessmentTemplatesCommand.js +0 -1
  27. package/dist-cjs/commands/ListEventSubscriptionsCommand.js +0 -1
  28. package/dist-cjs/commands/ListExclusionsCommand.js +0 -1
  29. package/dist-cjs/commands/ListFindingsCommand.js +0 -1
  30. package/dist-cjs/commands/ListRulesPackagesCommand.js +0 -1
  31. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
  32. package/dist-cjs/commands/PreviewAgentsCommand.js +0 -1
  33. package/dist-cjs/commands/RegisterCrossAccountAccessRoleCommand.js +0 -1
  34. package/dist-cjs/commands/RemoveAttributesFromFindingsCommand.js +0 -1
  35. package/dist-cjs/commands/SetTagsForResourceCommand.js +0 -1
  36. package/dist-cjs/commands/StartAssessmentRunCommand.js +0 -1
  37. package/dist-cjs/commands/StopAssessmentRunCommand.js +0 -1
  38. package/dist-cjs/commands/SubscribeToEventCommand.js +0 -1
  39. package/dist-cjs/commands/UnsubscribeFromEventCommand.js +0 -1
  40. package/dist-cjs/commands/UpdateAssessmentTargetCommand.js +0 -1
  41. package/dist-cjs/endpoints.js +0 -1
  42. package/dist-cjs/index.js +0 -1
  43. package/dist-cjs/models/index.js +0 -1
  44. package/dist-cjs/models/models_0.js +0 -1
  45. package/dist-cjs/pagination/GetExclusionsPreviewPaginator.js +0 -1
  46. package/dist-cjs/pagination/Interfaces.js +0 -1
  47. package/dist-cjs/pagination/ListAssessmentRunAgentsPaginator.js +0 -1
  48. package/dist-cjs/pagination/ListAssessmentRunsPaginator.js +0 -1
  49. package/dist-cjs/pagination/ListAssessmentTargetsPaginator.js +0 -1
  50. package/dist-cjs/pagination/ListAssessmentTemplatesPaginator.js +0 -1
  51. package/dist-cjs/pagination/ListEventSubscriptionsPaginator.js +0 -1
  52. package/dist-cjs/pagination/ListExclusionsPaginator.js +0 -1
  53. package/dist-cjs/pagination/ListFindingsPaginator.js +0 -1
  54. package/dist-cjs/pagination/ListRulesPackagesPaginator.js +0 -1
  55. package/dist-cjs/pagination/PreviewAgentsPaginator.js +0 -1
  56. package/dist-cjs/protocols/Aws_json1_1.js +0 -1
  57. package/dist-cjs/runtimeConfig.browser.js +2 -3
  58. package/dist-cjs/runtimeConfig.js +3 -4
  59. package/dist-cjs/runtimeConfig.native.js +0 -1
  60. package/dist-cjs/runtimeConfig.shared.js +0 -1
  61. package/dist-es/Inspector.js +0 -1
  62. package/dist-es/InspectorClient.js +0 -1
  63. package/dist-es/commands/AddAttributesToFindingsCommand.js +0 -1
  64. package/dist-es/commands/CreateAssessmentTargetCommand.js +0 -1
  65. package/dist-es/commands/CreateAssessmentTemplateCommand.js +0 -1
  66. package/dist-es/commands/CreateExclusionsPreviewCommand.js +0 -1
  67. package/dist-es/commands/CreateResourceGroupCommand.js +0 -1
  68. package/dist-es/commands/DeleteAssessmentRunCommand.js +0 -1
  69. package/dist-es/commands/DeleteAssessmentTargetCommand.js +0 -1
  70. package/dist-es/commands/DeleteAssessmentTemplateCommand.js +0 -1
  71. package/dist-es/commands/DescribeAssessmentRunsCommand.js +0 -1
  72. package/dist-es/commands/DescribeAssessmentTargetsCommand.js +0 -1
  73. package/dist-es/commands/DescribeAssessmentTemplatesCommand.js +0 -1
  74. package/dist-es/commands/DescribeCrossAccountAccessRoleCommand.js +0 -1
  75. package/dist-es/commands/DescribeExclusionsCommand.js +0 -1
  76. package/dist-es/commands/DescribeFindingsCommand.js +0 -1
  77. package/dist-es/commands/DescribeResourceGroupsCommand.js +0 -1
  78. package/dist-es/commands/DescribeRulesPackagesCommand.js +0 -1
  79. package/dist-es/commands/GetAssessmentReportCommand.js +0 -1
  80. package/dist-es/commands/GetExclusionsPreviewCommand.js +0 -1
  81. package/dist-es/commands/GetTelemetryMetadataCommand.js +0 -1
  82. package/dist-es/commands/ListAssessmentRunAgentsCommand.js +0 -1
  83. package/dist-es/commands/ListAssessmentRunsCommand.js +0 -1
  84. package/dist-es/commands/ListAssessmentTargetsCommand.js +0 -1
  85. package/dist-es/commands/ListAssessmentTemplatesCommand.js +0 -1
  86. package/dist-es/commands/ListEventSubscriptionsCommand.js +0 -1
  87. package/dist-es/commands/ListExclusionsCommand.js +0 -1
  88. package/dist-es/commands/ListFindingsCommand.js +0 -1
  89. package/dist-es/commands/ListRulesPackagesCommand.js +0 -1
  90. package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
  91. package/dist-es/commands/PreviewAgentsCommand.js +0 -1
  92. package/dist-es/commands/RegisterCrossAccountAccessRoleCommand.js +0 -1
  93. package/dist-es/commands/RemoveAttributesFromFindingsCommand.js +0 -1
  94. package/dist-es/commands/SetTagsForResourceCommand.js +0 -1
  95. package/dist-es/commands/StartAssessmentRunCommand.js +0 -1
  96. package/dist-es/commands/StopAssessmentRunCommand.js +0 -1
  97. package/dist-es/commands/SubscribeToEventCommand.js +0 -1
  98. package/dist-es/commands/UnsubscribeFromEventCommand.js +0 -1
  99. package/dist-es/commands/UpdateAssessmentTargetCommand.js +0 -1
  100. package/dist-es/endpoints.js +0 -1
  101. package/dist-es/index.js +0 -1
  102. package/dist-es/models/index.js +0 -1
  103. package/dist-es/models/models_0.js +0 -1
  104. package/dist-es/pagination/GetExclusionsPreviewPaginator.js +0 -1
  105. package/dist-es/pagination/Interfaces.js +0 -1
  106. package/dist-es/pagination/ListAssessmentRunAgentsPaginator.js +0 -1
  107. package/dist-es/pagination/ListAssessmentRunsPaginator.js +0 -1
  108. package/dist-es/pagination/ListAssessmentTargetsPaginator.js +0 -1
  109. package/dist-es/pagination/ListAssessmentTemplatesPaginator.js +0 -1
  110. package/dist-es/pagination/ListEventSubscriptionsPaginator.js +0 -1
  111. package/dist-es/pagination/ListExclusionsPaginator.js +0 -1
  112. package/dist-es/pagination/ListFindingsPaginator.js +0 -1
  113. package/dist-es/pagination/ListRulesPackagesPaginator.js +0 -1
  114. package/dist-es/pagination/PreviewAgentsPaginator.js +0 -1
  115. package/dist-es/protocols/Aws_json1_1.js +0 -1
  116. package/dist-es/runtimeConfig.browser.js +1 -2
  117. package/dist-es/runtimeConfig.js +2 -3
  118. package/dist-es/runtimeConfig.native.js +0 -1
  119. package/dist-es/runtimeConfig.shared.js +0 -1
  120. package/package.json +33 -30
  121. package/dist-cjs/Inspector.js.map +0 -1
  122. package/dist-cjs/InspectorClient.js.map +0 -1
  123. package/dist-cjs/commands/AddAttributesToFindingsCommand.js.map +0 -1
  124. package/dist-cjs/commands/CreateAssessmentTargetCommand.js.map +0 -1
  125. package/dist-cjs/commands/CreateAssessmentTemplateCommand.js.map +0 -1
  126. package/dist-cjs/commands/CreateExclusionsPreviewCommand.js.map +0 -1
  127. package/dist-cjs/commands/CreateResourceGroupCommand.js.map +0 -1
  128. package/dist-cjs/commands/DeleteAssessmentRunCommand.js.map +0 -1
  129. package/dist-cjs/commands/DeleteAssessmentTargetCommand.js.map +0 -1
  130. package/dist-cjs/commands/DeleteAssessmentTemplateCommand.js.map +0 -1
  131. package/dist-cjs/commands/DescribeAssessmentRunsCommand.js.map +0 -1
  132. package/dist-cjs/commands/DescribeAssessmentTargetsCommand.js.map +0 -1
  133. package/dist-cjs/commands/DescribeAssessmentTemplatesCommand.js.map +0 -1
  134. package/dist-cjs/commands/DescribeCrossAccountAccessRoleCommand.js.map +0 -1
  135. package/dist-cjs/commands/DescribeExclusionsCommand.js.map +0 -1
  136. package/dist-cjs/commands/DescribeFindingsCommand.js.map +0 -1
  137. package/dist-cjs/commands/DescribeResourceGroupsCommand.js.map +0 -1
  138. package/dist-cjs/commands/DescribeRulesPackagesCommand.js.map +0 -1
  139. package/dist-cjs/commands/GetAssessmentReportCommand.js.map +0 -1
  140. package/dist-cjs/commands/GetExclusionsPreviewCommand.js.map +0 -1
  141. package/dist-cjs/commands/GetTelemetryMetadataCommand.js.map +0 -1
  142. package/dist-cjs/commands/ListAssessmentRunAgentsCommand.js.map +0 -1
  143. package/dist-cjs/commands/ListAssessmentRunsCommand.js.map +0 -1
  144. package/dist-cjs/commands/ListAssessmentTargetsCommand.js.map +0 -1
  145. package/dist-cjs/commands/ListAssessmentTemplatesCommand.js.map +0 -1
  146. package/dist-cjs/commands/ListEventSubscriptionsCommand.js.map +0 -1
  147. package/dist-cjs/commands/ListExclusionsCommand.js.map +0 -1
  148. package/dist-cjs/commands/ListFindingsCommand.js.map +0 -1
  149. package/dist-cjs/commands/ListRulesPackagesCommand.js.map +0 -1
  150. package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
  151. package/dist-cjs/commands/PreviewAgentsCommand.js.map +0 -1
  152. package/dist-cjs/commands/RegisterCrossAccountAccessRoleCommand.js.map +0 -1
  153. package/dist-cjs/commands/RemoveAttributesFromFindingsCommand.js.map +0 -1
  154. package/dist-cjs/commands/SetTagsForResourceCommand.js.map +0 -1
  155. package/dist-cjs/commands/StartAssessmentRunCommand.js.map +0 -1
  156. package/dist-cjs/commands/StopAssessmentRunCommand.js.map +0 -1
  157. package/dist-cjs/commands/SubscribeToEventCommand.js.map +0 -1
  158. package/dist-cjs/commands/UnsubscribeFromEventCommand.js.map +0 -1
  159. package/dist-cjs/commands/UpdateAssessmentTargetCommand.js.map +0 -1
  160. package/dist-cjs/endpoints.js.map +0 -1
  161. package/dist-cjs/index.js.map +0 -1
  162. package/dist-cjs/models/index.js.map +0 -1
  163. package/dist-cjs/models/models_0.js.map +0 -1
  164. package/dist-cjs/pagination/GetExclusionsPreviewPaginator.js.map +0 -1
  165. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  166. package/dist-cjs/pagination/ListAssessmentRunAgentsPaginator.js.map +0 -1
  167. package/dist-cjs/pagination/ListAssessmentRunsPaginator.js.map +0 -1
  168. package/dist-cjs/pagination/ListAssessmentTargetsPaginator.js.map +0 -1
  169. package/dist-cjs/pagination/ListAssessmentTemplatesPaginator.js.map +0 -1
  170. package/dist-cjs/pagination/ListEventSubscriptionsPaginator.js.map +0 -1
  171. package/dist-cjs/pagination/ListExclusionsPaginator.js.map +0 -1
  172. package/dist-cjs/pagination/ListFindingsPaginator.js.map +0 -1
  173. package/dist-cjs/pagination/ListRulesPackagesPaginator.js.map +0 -1
  174. package/dist-cjs/pagination/PreviewAgentsPaginator.js.map +0 -1
  175. package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
  176. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  177. package/dist-cjs/runtimeConfig.js.map +0 -1
  178. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  179. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  180. package/dist-es/Inspector.js.map +0 -1
  181. package/dist-es/InspectorClient.js.map +0 -1
  182. package/dist-es/commands/AddAttributesToFindingsCommand.js.map +0 -1
  183. package/dist-es/commands/CreateAssessmentTargetCommand.js.map +0 -1
  184. package/dist-es/commands/CreateAssessmentTemplateCommand.js.map +0 -1
  185. package/dist-es/commands/CreateExclusionsPreviewCommand.js.map +0 -1
  186. package/dist-es/commands/CreateResourceGroupCommand.js.map +0 -1
  187. package/dist-es/commands/DeleteAssessmentRunCommand.js.map +0 -1
  188. package/dist-es/commands/DeleteAssessmentTargetCommand.js.map +0 -1
  189. package/dist-es/commands/DeleteAssessmentTemplateCommand.js.map +0 -1
  190. package/dist-es/commands/DescribeAssessmentRunsCommand.js.map +0 -1
  191. package/dist-es/commands/DescribeAssessmentTargetsCommand.js.map +0 -1
  192. package/dist-es/commands/DescribeAssessmentTemplatesCommand.js.map +0 -1
  193. package/dist-es/commands/DescribeCrossAccountAccessRoleCommand.js.map +0 -1
  194. package/dist-es/commands/DescribeExclusionsCommand.js.map +0 -1
  195. package/dist-es/commands/DescribeFindingsCommand.js.map +0 -1
  196. package/dist-es/commands/DescribeResourceGroupsCommand.js.map +0 -1
  197. package/dist-es/commands/DescribeRulesPackagesCommand.js.map +0 -1
  198. package/dist-es/commands/GetAssessmentReportCommand.js.map +0 -1
  199. package/dist-es/commands/GetExclusionsPreviewCommand.js.map +0 -1
  200. package/dist-es/commands/GetTelemetryMetadataCommand.js.map +0 -1
  201. package/dist-es/commands/ListAssessmentRunAgentsCommand.js.map +0 -1
  202. package/dist-es/commands/ListAssessmentRunsCommand.js.map +0 -1
  203. package/dist-es/commands/ListAssessmentTargetsCommand.js.map +0 -1
  204. package/dist-es/commands/ListAssessmentTemplatesCommand.js.map +0 -1
  205. package/dist-es/commands/ListEventSubscriptionsCommand.js.map +0 -1
  206. package/dist-es/commands/ListExclusionsCommand.js.map +0 -1
  207. package/dist-es/commands/ListFindingsCommand.js.map +0 -1
  208. package/dist-es/commands/ListRulesPackagesCommand.js.map +0 -1
  209. package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
  210. package/dist-es/commands/PreviewAgentsCommand.js.map +0 -1
  211. package/dist-es/commands/RegisterCrossAccountAccessRoleCommand.js.map +0 -1
  212. package/dist-es/commands/RemoveAttributesFromFindingsCommand.js.map +0 -1
  213. package/dist-es/commands/SetTagsForResourceCommand.js.map +0 -1
  214. package/dist-es/commands/StartAssessmentRunCommand.js.map +0 -1
  215. package/dist-es/commands/StopAssessmentRunCommand.js.map +0 -1
  216. package/dist-es/commands/SubscribeToEventCommand.js.map +0 -1
  217. package/dist-es/commands/UnsubscribeFromEventCommand.js.map +0 -1
  218. package/dist-es/commands/UpdateAssessmentTargetCommand.js.map +0 -1
  219. package/dist-es/endpoints.js.map +0 -1
  220. package/dist-es/index.js.map +0 -1
  221. package/dist-es/models/index.js.map +0 -1
  222. package/dist-es/models/models_0.js.map +0 -1
  223. package/dist-es/pagination/GetExclusionsPreviewPaginator.js.map +0 -1
  224. package/dist-es/pagination/Interfaces.js.map +0 -1
  225. package/dist-es/pagination/ListAssessmentRunAgentsPaginator.js.map +0 -1
  226. package/dist-es/pagination/ListAssessmentRunsPaginator.js.map +0 -1
  227. package/dist-es/pagination/ListAssessmentTargetsPaginator.js.map +0 -1
  228. package/dist-es/pagination/ListAssessmentTemplatesPaginator.js.map +0 -1
  229. package/dist-es/pagination/ListEventSubscriptionsPaginator.js.map +0 -1
  230. package/dist-es/pagination/ListExclusionsPaginator.js.map +0 -1
  231. package/dist-es/pagination/ListFindingsPaginator.js.map +0 -1
  232. package/dist-es/pagination/ListRulesPackagesPaginator.js.map +0 -1
  233. package/dist-es/pagination/PreviewAgentsPaginator.js.map +0 -1
  234. package/dist-es/protocols/Aws_json1_1.js.map +0 -1
  235. package/dist-es/runtimeConfig.browser.js.map +0 -1
  236. package/dist-es/runtimeConfig.js.map +0 -1
  237. package/dist-es/runtimeConfig.native.js.map +0 -1
  238. package/dist-es/runtimeConfig.shared.js.map +0 -1
  239. package/jest.config.js +0 -4
  240. package/src/Inspector.ts +0 -1425
  241. package/src/InspectorClient.ts +0 -428
  242. package/src/commands/AddAttributesToFindingsCommand.ts +0 -96
  243. package/src/commands/CreateAssessmentTargetCommand.ts +0 -102
  244. package/src/commands/CreateAssessmentTemplateCommand.ts +0 -98
  245. package/src/commands/CreateExclusionsPreviewCommand.ts +0 -97
  246. package/src/commands/CreateResourceGroupCommand.ts +0 -98
  247. package/src/commands/DeleteAssessmentRunCommand.ts +0 -96
  248. package/src/commands/DeleteAssessmentTargetCommand.ts +0 -96
  249. package/src/commands/DeleteAssessmentTemplateCommand.ts +0 -96
  250. package/src/commands/DescribeAssessmentRunsCommand.ts +0 -96
  251. package/src/commands/DescribeAssessmentTargetsCommand.ts +0 -99
  252. package/src/commands/DescribeAssessmentTemplatesCommand.ts +0 -101
  253. package/src/commands/DescribeCrossAccountAccessRoleCommand.ts +0 -104
  254. package/src/commands/DescribeExclusionsCommand.ts +0 -95
  255. package/src/commands/DescribeFindingsCommand.ts +0 -95
  256. package/src/commands/DescribeResourceGroupsCommand.ts +0 -96
  257. package/src/commands/DescribeRulesPackagesCommand.ts +0 -96
  258. package/src/commands/GetAssessmentReportCommand.ts +0 -96
  259. package/src/commands/GetExclusionsPreviewCommand.ts +0 -97
  260. package/src/commands/GetTelemetryMetadataCommand.ts +0 -96
  261. package/src/commands/ListAssessmentRunAgentsCommand.ts +0 -96
  262. package/src/commands/ListAssessmentRunsCommand.ts +0 -96
  263. package/src/commands/ListAssessmentTargetsCommand.ts +0 -97
  264. package/src/commands/ListAssessmentTemplatesCommand.ts +0 -96
  265. package/src/commands/ListEventSubscriptionsCommand.ts +0 -96
  266. package/src/commands/ListExclusionsCommand.ts +0 -95
  267. package/src/commands/ListFindingsCommand.ts +0 -96
  268. package/src/commands/ListRulesPackagesCommand.ts +0 -95
  269. package/src/commands/ListTagsForResourceCommand.ts +0 -95
  270. package/src/commands/PreviewAgentsCommand.ts +0 -96
  271. package/src/commands/RegisterCrossAccountAccessRoleCommand.ts +0 -102
  272. package/src/commands/RemoveAttributesFromFindingsCommand.ts +0 -101
  273. package/src/commands/SetTagsForResourceCommand.ts +0 -96
  274. package/src/commands/StartAssessmentRunCommand.ts +0 -97
  275. package/src/commands/StopAssessmentRunCommand.ts +0 -96
  276. package/src/commands/SubscribeToEventCommand.ts +0 -96
  277. package/src/commands/UnsubscribeFromEventCommand.ts +0 -96
  278. package/src/commands/UpdateAssessmentTargetCommand.ts +0 -98
  279. package/src/endpoints.ts +0 -86
  280. package/src/index.ts +0 -51
  281. package/src/models/index.ts +0 -1
  282. package/src/models/models_0.ts +0 -3381
  283. package/src/pagination/GetExclusionsPreviewPaginator.ts +0 -59
  284. package/src/pagination/Interfaces.ts +0 -8
  285. package/src/pagination/ListAssessmentRunAgentsPaginator.ts +0 -59
  286. package/src/pagination/ListAssessmentRunsPaginator.ts +0 -59
  287. package/src/pagination/ListAssessmentTargetsPaginator.ts +0 -59
  288. package/src/pagination/ListAssessmentTemplatesPaginator.ts +0 -59
  289. package/src/pagination/ListEventSubscriptionsPaginator.ts +0 -59
  290. package/src/pagination/ListExclusionsPaginator.ts +0 -59
  291. package/src/pagination/ListFindingsPaginator.ts +0 -59
  292. package/src/pagination/ListRulesPackagesPaginator.ts +0 -59
  293. package/src/pagination/PreviewAgentsPaginator.ts +0 -59
  294. package/src/protocols/Aws_json1_1.ts +0 -5926
  295. package/src/runtimeConfig.browser.ts +0 -41
  296. package/src/runtimeConfig.native.ts +0 -17
  297. package/src/runtimeConfig.shared.ts +0 -17
  298. package/src/runtimeConfig.ts +0 -46
  299. package/tsconfig.es.json +0 -10
  300. package/tsconfig.json +0 -33
  301. package/tsconfig.types.json +0 -9
@@ -1,428 +0,0 @@
1
- import {
2
- EndpointsInputConfig,
3
- EndpointsResolvedConfig,
4
- RegionInputConfig,
5
- RegionResolvedConfig,
6
- resolveEndpointsConfig,
7
- resolveRegionConfig,
8
- } from "@aws-sdk/config-resolver";
9
- import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
10
- import {
11
- getHostHeaderPlugin,
12
- HostHeaderInputConfig,
13
- HostHeaderResolvedConfig,
14
- resolveHostHeaderConfig,
15
- } from "@aws-sdk/middleware-host-header";
16
- import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
17
- import { getRetryPlugin, resolveRetryConfig, RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
18
- import {
19
- AwsAuthInputConfig,
20
- AwsAuthResolvedConfig,
21
- getAwsAuthPlugin,
22
- resolveAwsAuthConfig,
23
- } from "@aws-sdk/middleware-signing";
24
- import {
25
- getUserAgentPlugin,
26
- resolveUserAgentConfig,
27
- UserAgentInputConfig,
28
- UserAgentResolvedConfig,
29
- } from "@aws-sdk/middleware-user-agent";
30
- import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
31
- import {
32
- Client as __Client,
33
- SmithyConfiguration as __SmithyConfiguration,
34
- SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
35
- } from "@aws-sdk/smithy-client";
36
- import {
37
- Credentials as __Credentials,
38
- Decoder as __Decoder,
39
- Encoder as __Encoder,
40
- Hash as __Hash,
41
- HashConstructor as __HashConstructor,
42
- HttpHandlerOptions as __HttpHandlerOptions,
43
- Logger as __Logger,
44
- Provider as __Provider,
45
- Provider,
46
- RegionInfoProvider,
47
- StreamCollector as __StreamCollector,
48
- UrlParser as __UrlParser,
49
- UserAgent as __UserAgent,
50
- } from "@aws-sdk/types";
51
-
52
- import {
53
- AddAttributesToFindingsCommandInput,
54
- AddAttributesToFindingsCommandOutput,
55
- } from "./commands/AddAttributesToFindingsCommand";
56
- import {
57
- CreateAssessmentTargetCommandInput,
58
- CreateAssessmentTargetCommandOutput,
59
- } from "./commands/CreateAssessmentTargetCommand";
60
- import {
61
- CreateAssessmentTemplateCommandInput,
62
- CreateAssessmentTemplateCommandOutput,
63
- } from "./commands/CreateAssessmentTemplateCommand";
64
- import {
65
- CreateExclusionsPreviewCommandInput,
66
- CreateExclusionsPreviewCommandOutput,
67
- } from "./commands/CreateExclusionsPreviewCommand";
68
- import {
69
- CreateResourceGroupCommandInput,
70
- CreateResourceGroupCommandOutput,
71
- } from "./commands/CreateResourceGroupCommand";
72
- import {
73
- DeleteAssessmentRunCommandInput,
74
- DeleteAssessmentRunCommandOutput,
75
- } from "./commands/DeleteAssessmentRunCommand";
76
- import {
77
- DeleteAssessmentTargetCommandInput,
78
- DeleteAssessmentTargetCommandOutput,
79
- } from "./commands/DeleteAssessmentTargetCommand";
80
- import {
81
- DeleteAssessmentTemplateCommandInput,
82
- DeleteAssessmentTemplateCommandOutput,
83
- } from "./commands/DeleteAssessmentTemplateCommand";
84
- import {
85
- DescribeAssessmentRunsCommandInput,
86
- DescribeAssessmentRunsCommandOutput,
87
- } from "./commands/DescribeAssessmentRunsCommand";
88
- import {
89
- DescribeAssessmentTargetsCommandInput,
90
- DescribeAssessmentTargetsCommandOutput,
91
- } from "./commands/DescribeAssessmentTargetsCommand";
92
- import {
93
- DescribeAssessmentTemplatesCommandInput,
94
- DescribeAssessmentTemplatesCommandOutput,
95
- } from "./commands/DescribeAssessmentTemplatesCommand";
96
- import {
97
- DescribeCrossAccountAccessRoleCommandInput,
98
- DescribeCrossAccountAccessRoleCommandOutput,
99
- } from "./commands/DescribeCrossAccountAccessRoleCommand";
100
- import { DescribeExclusionsCommandInput, DescribeExclusionsCommandOutput } from "./commands/DescribeExclusionsCommand";
101
- import { DescribeFindingsCommandInput, DescribeFindingsCommandOutput } from "./commands/DescribeFindingsCommand";
102
- import {
103
- DescribeResourceGroupsCommandInput,
104
- DescribeResourceGroupsCommandOutput,
105
- } from "./commands/DescribeResourceGroupsCommand";
106
- import {
107
- DescribeRulesPackagesCommandInput,
108
- DescribeRulesPackagesCommandOutput,
109
- } from "./commands/DescribeRulesPackagesCommand";
110
- import {
111
- GetAssessmentReportCommandInput,
112
- GetAssessmentReportCommandOutput,
113
- } from "./commands/GetAssessmentReportCommand";
114
- import {
115
- GetExclusionsPreviewCommandInput,
116
- GetExclusionsPreviewCommandOutput,
117
- } from "./commands/GetExclusionsPreviewCommand";
118
- import {
119
- GetTelemetryMetadataCommandInput,
120
- GetTelemetryMetadataCommandOutput,
121
- } from "./commands/GetTelemetryMetadataCommand";
122
- import {
123
- ListAssessmentRunAgentsCommandInput,
124
- ListAssessmentRunAgentsCommandOutput,
125
- } from "./commands/ListAssessmentRunAgentsCommand";
126
- import { ListAssessmentRunsCommandInput, ListAssessmentRunsCommandOutput } from "./commands/ListAssessmentRunsCommand";
127
- import {
128
- ListAssessmentTargetsCommandInput,
129
- ListAssessmentTargetsCommandOutput,
130
- } from "./commands/ListAssessmentTargetsCommand";
131
- import {
132
- ListAssessmentTemplatesCommandInput,
133
- ListAssessmentTemplatesCommandOutput,
134
- } from "./commands/ListAssessmentTemplatesCommand";
135
- import {
136
- ListEventSubscriptionsCommandInput,
137
- ListEventSubscriptionsCommandOutput,
138
- } from "./commands/ListEventSubscriptionsCommand";
139
- import { ListExclusionsCommandInput, ListExclusionsCommandOutput } from "./commands/ListExclusionsCommand";
140
- import { ListFindingsCommandInput, ListFindingsCommandOutput } from "./commands/ListFindingsCommand";
141
- import { ListRulesPackagesCommandInput, ListRulesPackagesCommandOutput } from "./commands/ListRulesPackagesCommand";
142
- import {
143
- ListTagsForResourceCommandInput,
144
- ListTagsForResourceCommandOutput,
145
- } from "./commands/ListTagsForResourceCommand";
146
- import { PreviewAgentsCommandInput, PreviewAgentsCommandOutput } from "./commands/PreviewAgentsCommand";
147
- import {
148
- RegisterCrossAccountAccessRoleCommandInput,
149
- RegisterCrossAccountAccessRoleCommandOutput,
150
- } from "./commands/RegisterCrossAccountAccessRoleCommand";
151
- import {
152
- RemoveAttributesFromFindingsCommandInput,
153
- RemoveAttributesFromFindingsCommandOutput,
154
- } from "./commands/RemoveAttributesFromFindingsCommand";
155
- import { SetTagsForResourceCommandInput, SetTagsForResourceCommandOutput } from "./commands/SetTagsForResourceCommand";
156
- import { StartAssessmentRunCommandInput, StartAssessmentRunCommandOutput } from "./commands/StartAssessmentRunCommand";
157
- import { StopAssessmentRunCommandInput, StopAssessmentRunCommandOutput } from "./commands/StopAssessmentRunCommand";
158
- import { SubscribeToEventCommandInput, SubscribeToEventCommandOutput } from "./commands/SubscribeToEventCommand";
159
- import {
160
- UnsubscribeFromEventCommandInput,
161
- UnsubscribeFromEventCommandOutput,
162
- } from "./commands/UnsubscribeFromEventCommand";
163
- import {
164
- UpdateAssessmentTargetCommandInput,
165
- UpdateAssessmentTargetCommandOutput,
166
- } from "./commands/UpdateAssessmentTargetCommand";
167
- import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
168
-
169
- export type ServiceInputTypes =
170
- | AddAttributesToFindingsCommandInput
171
- | CreateAssessmentTargetCommandInput
172
- | CreateAssessmentTemplateCommandInput
173
- | CreateExclusionsPreviewCommandInput
174
- | CreateResourceGroupCommandInput
175
- | DeleteAssessmentRunCommandInput
176
- | DeleteAssessmentTargetCommandInput
177
- | DeleteAssessmentTemplateCommandInput
178
- | DescribeAssessmentRunsCommandInput
179
- | DescribeAssessmentTargetsCommandInput
180
- | DescribeAssessmentTemplatesCommandInput
181
- | DescribeCrossAccountAccessRoleCommandInput
182
- | DescribeExclusionsCommandInput
183
- | DescribeFindingsCommandInput
184
- | DescribeResourceGroupsCommandInput
185
- | DescribeRulesPackagesCommandInput
186
- | GetAssessmentReportCommandInput
187
- | GetExclusionsPreviewCommandInput
188
- | GetTelemetryMetadataCommandInput
189
- | ListAssessmentRunAgentsCommandInput
190
- | ListAssessmentRunsCommandInput
191
- | ListAssessmentTargetsCommandInput
192
- | ListAssessmentTemplatesCommandInput
193
- | ListEventSubscriptionsCommandInput
194
- | ListExclusionsCommandInput
195
- | ListFindingsCommandInput
196
- | ListRulesPackagesCommandInput
197
- | ListTagsForResourceCommandInput
198
- | PreviewAgentsCommandInput
199
- | RegisterCrossAccountAccessRoleCommandInput
200
- | RemoveAttributesFromFindingsCommandInput
201
- | SetTagsForResourceCommandInput
202
- | StartAssessmentRunCommandInput
203
- | StopAssessmentRunCommandInput
204
- | SubscribeToEventCommandInput
205
- | UnsubscribeFromEventCommandInput
206
- | UpdateAssessmentTargetCommandInput;
207
-
208
- export type ServiceOutputTypes =
209
- | AddAttributesToFindingsCommandOutput
210
- | CreateAssessmentTargetCommandOutput
211
- | CreateAssessmentTemplateCommandOutput
212
- | CreateExclusionsPreviewCommandOutput
213
- | CreateResourceGroupCommandOutput
214
- | DeleteAssessmentRunCommandOutput
215
- | DeleteAssessmentTargetCommandOutput
216
- | DeleteAssessmentTemplateCommandOutput
217
- | DescribeAssessmentRunsCommandOutput
218
- | DescribeAssessmentTargetsCommandOutput
219
- | DescribeAssessmentTemplatesCommandOutput
220
- | DescribeCrossAccountAccessRoleCommandOutput
221
- | DescribeExclusionsCommandOutput
222
- | DescribeFindingsCommandOutput
223
- | DescribeResourceGroupsCommandOutput
224
- | DescribeRulesPackagesCommandOutput
225
- | GetAssessmentReportCommandOutput
226
- | GetExclusionsPreviewCommandOutput
227
- | GetTelemetryMetadataCommandOutput
228
- | ListAssessmentRunAgentsCommandOutput
229
- | ListAssessmentRunsCommandOutput
230
- | ListAssessmentTargetsCommandOutput
231
- | ListAssessmentTemplatesCommandOutput
232
- | ListEventSubscriptionsCommandOutput
233
- | ListExclusionsCommandOutput
234
- | ListFindingsCommandOutput
235
- | ListRulesPackagesCommandOutput
236
- | ListTagsForResourceCommandOutput
237
- | PreviewAgentsCommandOutput
238
- | RegisterCrossAccountAccessRoleCommandOutput
239
- | RemoveAttributesFromFindingsCommandOutput
240
- | SetTagsForResourceCommandOutput
241
- | StartAssessmentRunCommandOutput
242
- | StopAssessmentRunCommandOutput
243
- | SubscribeToEventCommandOutput
244
- | UnsubscribeFromEventCommandOutput
245
- | UpdateAssessmentTargetCommandOutput;
246
-
247
- export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
248
- /**
249
- * The HTTP handler to use. Fetch in browser and Https in Nodejs.
250
- */
251
- requestHandler?: __HttpHandler;
252
-
253
- /**
254
- * A constructor for a class implementing the {@link __Hash} interface
255
- * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
256
- * @internal
257
- */
258
- sha256?: __HashConstructor;
259
-
260
- /**
261
- * The function that will be used to convert strings into HTTP endpoints.
262
- * @internal
263
- */
264
- urlParser?: __UrlParser;
265
-
266
- /**
267
- * A function that can calculate the length of a request body.
268
- * @internal
269
- */
270
- bodyLengthChecker?: (body: any) => number | undefined;
271
-
272
- /**
273
- * A function that converts a stream into an array of bytes.
274
- * @internal
275
- */
276
- streamCollector?: __StreamCollector;
277
-
278
- /**
279
- * The function that will be used to convert a base64-encoded string to a byte array.
280
- * @internal
281
- */
282
- base64Decoder?: __Decoder;
283
-
284
- /**
285
- * The function that will be used to convert binary data to a base64-encoded string.
286
- * @internal
287
- */
288
- base64Encoder?: __Encoder;
289
-
290
- /**
291
- * The function that will be used to convert a UTF8-encoded string to a byte array.
292
- * @internal
293
- */
294
- utf8Decoder?: __Decoder;
295
-
296
- /**
297
- * The function that will be used to convert binary data to a UTF-8 encoded string.
298
- * @internal
299
- */
300
- utf8Encoder?: __Encoder;
301
-
302
- /**
303
- * The runtime environment.
304
- * @internal
305
- */
306
- runtime?: string;
307
-
308
- /**
309
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
310
- * trait of an operation.
311
- */
312
- disableHostPrefix?: boolean;
313
-
314
- /**
315
- * Value for how many times a request will be made at most in case of retry.
316
- */
317
- maxAttempts?: number | __Provider<number>;
318
-
319
- /**
320
- * Specifies which retry algorithm to use.
321
- */
322
- retryMode?: string | __Provider<string>;
323
-
324
- /**
325
- * Optional logger for logging debug/info/warn/error.
326
- */
327
- logger?: __Logger;
328
-
329
- /**
330
- * Unique service identifier.
331
- * @internal
332
- */
333
- serviceId?: string;
334
-
335
- /**
336
- * The AWS region to which this client will send requests
337
- */
338
- region?: string | __Provider<string>;
339
-
340
- /**
341
- * Default credentials provider; Not available in browser runtime.
342
- * @internal
343
- */
344
- credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
345
-
346
- /**
347
- * Fetch related hostname, signing name or signing region with given region.
348
- * @internal
349
- */
350
- regionInfoProvider?: RegionInfoProvider;
351
-
352
- /**
353
- * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
354
- * @internal
355
- */
356
- defaultUserAgentProvider?: Provider<__UserAgent>;
357
- }
358
-
359
- type InspectorClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
360
- ClientDefaults &
361
- RegionInputConfig &
362
- EndpointsInputConfig &
363
- RetryInputConfig &
364
- HostHeaderInputConfig &
365
- AwsAuthInputConfig &
366
- UserAgentInputConfig;
367
- /**
368
- * The configuration interface of InspectorClient class constructor that set the region, credentials and other options.
369
- */
370
- export interface InspectorClientConfig extends InspectorClientConfigType {}
371
-
372
- type InspectorClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
373
- Required<ClientDefaults> &
374
- RegionResolvedConfig &
375
- EndpointsResolvedConfig &
376
- RetryResolvedConfig &
377
- HostHeaderResolvedConfig &
378
- AwsAuthResolvedConfig &
379
- UserAgentResolvedConfig;
380
- /**
381
- * The resolved configuration interface of InspectorClient class. This is resolved and normalized from the {@link InspectorClientConfig | constructor configuration interface}.
382
- */
383
- export interface InspectorClientResolvedConfig extends InspectorClientResolvedConfigType {}
384
-
385
- /**
386
- * <fullname>Amazon Inspector</fullname>
387
- * <p>Amazon Inspector enables you to analyze the behavior of your AWS resources and to
388
- * identify potential security issues. For more information, see <a href="https://docs.aws.amazon.com/inspector/latest/userguide/inspector_introduction.html"> Amazon Inspector User
389
- * Guide</a>.</p>
390
- */
391
- export class InspectorClient extends __Client<
392
- __HttpHandlerOptions,
393
- ServiceInputTypes,
394
- ServiceOutputTypes,
395
- InspectorClientResolvedConfig
396
- > {
397
- /**
398
- * The resolved configuration of InspectorClient class. This is resolved and normalized from the {@link InspectorClientConfig | constructor configuration interface}.
399
- */
400
- readonly config: InspectorClientResolvedConfig;
401
-
402
- constructor(configuration: InspectorClientConfig) {
403
- const _config_0 = __getRuntimeConfig(configuration);
404
- const _config_1 = resolveRegionConfig(_config_0);
405
- const _config_2 = resolveEndpointsConfig(_config_1);
406
- const _config_3 = resolveRetryConfig(_config_2);
407
- const _config_4 = resolveHostHeaderConfig(_config_3);
408
- const _config_5 = resolveAwsAuthConfig(_config_4);
409
- const _config_6 = resolveUserAgentConfig(_config_5);
410
- super(_config_6);
411
- this.config = _config_6;
412
- this.middlewareStack.use(getRetryPlugin(this.config));
413
- this.middlewareStack.use(getContentLengthPlugin(this.config));
414
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
415
- this.middlewareStack.use(getLoggerPlugin(this.config));
416
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
417
- this.middlewareStack.use(getUserAgentPlugin(this.config));
418
- }
419
-
420
- /**
421
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
422
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
423
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
424
- */
425
- destroy(): void {
426
- super.destroy();
427
- }
428
- }
@@ -1,96 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { InspectorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../InspectorClient";
15
- import { AddAttributesToFindingsRequest, AddAttributesToFindingsResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1AddAttributesToFindingsCommand,
18
- serializeAws_json1_1AddAttributesToFindingsCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface AddAttributesToFindingsCommandInput extends AddAttributesToFindingsRequest {}
22
- export interface AddAttributesToFindingsCommandOutput extends AddAttributesToFindingsResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Assigns attributes (key and value pairs) to the findings that are specified by the
26
- * ARNs of the findings.</p>
27
- * @example
28
- * Use a bare-bones client and the command you need to make an API call.
29
- * ```javascript
30
- * import { InspectorClient, AddAttributesToFindingsCommand } from "@aws-sdk/client-inspector"; // ES Modules import
31
- * // const { InspectorClient, AddAttributesToFindingsCommand } = require("@aws-sdk/client-inspector"); // CommonJS import
32
- * const client = new InspectorClient(config);
33
- * const command = new AddAttributesToFindingsCommand(input);
34
- * const response = await client.send(command);
35
- * ```
36
- *
37
- * @see {@link AddAttributesToFindingsCommandInput} for command's `input` shape.
38
- * @see {@link AddAttributesToFindingsCommandOutput} for command's `response` shape.
39
- * @see {@link InspectorClientResolvedConfig | config} for command's `input` shape.
40
- *
41
- */
42
- export class AddAttributesToFindingsCommand extends $Command<
43
- AddAttributesToFindingsCommandInput,
44
- AddAttributesToFindingsCommandOutput,
45
- InspectorClientResolvedConfig
46
- > {
47
- // Start section: command_properties
48
- // End section: command_properties
49
-
50
- constructor(readonly input: AddAttributesToFindingsCommandInput) {
51
- // Start section: command_constructor
52
- super();
53
- // End section: command_constructor
54
- }
55
-
56
- /**
57
- * @internal
58
- */
59
- resolveMiddleware(
60
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
61
- configuration: InspectorClientResolvedConfig,
62
- options?: __HttpHandlerOptions
63
- ): Handler<AddAttributesToFindingsCommandInput, AddAttributesToFindingsCommandOutput> {
64
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
65
-
66
- const stack = clientStack.concat(this.middlewareStack);
67
-
68
- const { logger } = configuration;
69
- const clientName = "InspectorClient";
70
- const commandName = "AddAttributesToFindingsCommand";
71
- const handlerExecutionContext: HandlerExecutionContext = {
72
- logger,
73
- clientName,
74
- commandName,
75
- inputFilterSensitiveLog: AddAttributesToFindingsRequest.filterSensitiveLog,
76
- outputFilterSensitiveLog: AddAttributesToFindingsResponse.filterSensitiveLog,
77
- };
78
- const { requestHandler } = configuration;
79
- return stack.resolve(
80
- (request: FinalizeHandlerArguments<any>) =>
81
- requestHandler.handle(request.request as __HttpRequest, options || {}),
82
- handlerExecutionContext
83
- );
84
- }
85
-
86
- private serialize(input: AddAttributesToFindingsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
87
- return serializeAws_json1_1AddAttributesToFindingsCommand(input, context);
88
- }
89
-
90
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<AddAttributesToFindingsCommandOutput> {
91
- return deserializeAws_json1_1AddAttributesToFindingsCommand(output, context);
92
- }
93
-
94
- // Start section: command_body_extra
95
- // End section: command_body_extra
96
- }
@@ -1,102 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { InspectorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../InspectorClient";
15
- import { CreateAssessmentTargetRequest, CreateAssessmentTargetResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1CreateAssessmentTargetCommand,
18
- serializeAws_json1_1CreateAssessmentTargetCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface CreateAssessmentTargetCommandInput extends CreateAssessmentTargetRequest {}
22
- export interface CreateAssessmentTargetCommandOutput extends CreateAssessmentTargetResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Creates a new assessment target using the ARN of the resource group that is generated
26
- * by <a>CreateResourceGroup</a>. If resourceGroupArn is not specified, all EC2
27
- * instances in the current AWS account and region are included in the assessment target. If
28
- * the <a href="https://docs.aws.amazon.com/inspector/latest/userguide/inspector_slr.html">service-linked role</a> isn’t already registered, this action also creates and
29
- * registers a service-linked role to grant Amazon Inspector access to AWS Services needed to
30
- * perform security assessments. You can create up to 50 assessment targets per AWS account.
31
- * You can run up to 500 concurrent agents per AWS account. For more information, see <a href="https://docs.aws.amazon.com/inspector/latest/userguide/inspector_applications.html">
32
- * Amazon Inspector Assessment Targets</a>.</p>
33
- * @example
34
- * Use a bare-bones client and the command you need to make an API call.
35
- * ```javascript
36
- * import { InspectorClient, CreateAssessmentTargetCommand } from "@aws-sdk/client-inspector"; // ES Modules import
37
- * // const { InspectorClient, CreateAssessmentTargetCommand } = require("@aws-sdk/client-inspector"); // CommonJS import
38
- * const client = new InspectorClient(config);
39
- * const command = new CreateAssessmentTargetCommand(input);
40
- * const response = await client.send(command);
41
- * ```
42
- *
43
- * @see {@link CreateAssessmentTargetCommandInput} for command's `input` shape.
44
- * @see {@link CreateAssessmentTargetCommandOutput} for command's `response` shape.
45
- * @see {@link InspectorClientResolvedConfig | config} for command's `input` shape.
46
- *
47
- */
48
- export class CreateAssessmentTargetCommand extends $Command<
49
- CreateAssessmentTargetCommandInput,
50
- CreateAssessmentTargetCommandOutput,
51
- InspectorClientResolvedConfig
52
- > {
53
- // Start section: command_properties
54
- // End section: command_properties
55
-
56
- constructor(readonly input: CreateAssessmentTargetCommandInput) {
57
- // Start section: command_constructor
58
- super();
59
- // End section: command_constructor
60
- }
61
-
62
- /**
63
- * @internal
64
- */
65
- resolveMiddleware(
66
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
67
- configuration: InspectorClientResolvedConfig,
68
- options?: __HttpHandlerOptions
69
- ): Handler<CreateAssessmentTargetCommandInput, CreateAssessmentTargetCommandOutput> {
70
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
71
-
72
- const stack = clientStack.concat(this.middlewareStack);
73
-
74
- const { logger } = configuration;
75
- const clientName = "InspectorClient";
76
- const commandName = "CreateAssessmentTargetCommand";
77
- const handlerExecutionContext: HandlerExecutionContext = {
78
- logger,
79
- clientName,
80
- commandName,
81
- inputFilterSensitiveLog: CreateAssessmentTargetRequest.filterSensitiveLog,
82
- outputFilterSensitiveLog: CreateAssessmentTargetResponse.filterSensitiveLog,
83
- };
84
- const { requestHandler } = configuration;
85
- return stack.resolve(
86
- (request: FinalizeHandlerArguments<any>) =>
87
- requestHandler.handle(request.request as __HttpRequest, options || {}),
88
- handlerExecutionContext
89
- );
90
- }
91
-
92
- private serialize(input: CreateAssessmentTargetCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
93
- return serializeAws_json1_1CreateAssessmentTargetCommand(input, context);
94
- }
95
-
96
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateAssessmentTargetCommandOutput> {
97
- return deserializeAws_json1_1CreateAssessmentTargetCommand(output, context);
98
- }
99
-
100
- // Start section: command_body_extra
101
- // End section: command_body_extra
102
- }