@aws-sdk/client-accessanalyzer 3.34.0 → 3.37.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 (368) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/{dist/cjs → dist-cjs}/AccessAnalyzer.js +0 -12
  3. package/dist-cjs/AccessAnalyzerClient.js +35 -0
  4. package/{dist/cjs → dist-cjs}/commands/ApplyArchiveRuleCommand.js +2 -28
  5. package/{dist/cjs → dist-cjs}/commands/CancelPolicyGenerationCommand.js +2 -27
  6. package/{dist/cjs → dist-cjs}/commands/CreateAccessPreviewCommand.js +2 -28
  7. package/{dist/cjs → dist-cjs}/commands/CreateAnalyzerCommand.js +2 -27
  8. package/{dist/cjs → dist-cjs}/commands/CreateArchiveRuleCommand.js +2 -29
  9. package/{dist/cjs → dist-cjs}/commands/DeleteAnalyzerCommand.js +2 -29
  10. package/{dist/cjs → dist-cjs}/commands/DeleteArchiveRuleCommand.js +2 -27
  11. package/{dist/cjs → dist-cjs}/commands/GetAccessPreviewCommand.js +2 -27
  12. package/{dist/cjs → dist-cjs}/commands/GetAnalyzedResourceCommand.js +2 -27
  13. package/{dist/cjs → dist-cjs}/commands/GetAnalyzerCommand.js +2 -27
  14. package/{dist/cjs → dist-cjs}/commands/GetArchiveRuleCommand.js +2 -28
  15. package/{dist/cjs → dist-cjs}/commands/GetFindingCommand.js +2 -27
  16. package/{dist/cjs → dist-cjs}/commands/GetGeneratedPolicyCommand.js +2 -28
  17. package/{dist/cjs → dist-cjs}/commands/ListAccessPreviewFindingsCommand.js +2 -28
  18. package/{dist/cjs → dist-cjs}/commands/ListAccessPreviewsCommand.js +2 -27
  19. package/{dist/cjs → dist-cjs}/commands/ListAnalyzedResourcesCommand.js +2 -28
  20. package/{dist/cjs → dist-cjs}/commands/ListAnalyzersCommand.js +2 -27
  21. package/{dist/cjs → dist-cjs}/commands/ListArchiveRulesCommand.js +2 -27
  22. package/{dist/cjs → dist-cjs}/commands/ListFindingsCommand.js +2 -28
  23. package/{dist/cjs → dist-cjs}/commands/ListPolicyGenerationsCommand.js +2 -27
  24. package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +2 -27
  25. package/{dist/cjs → dist-cjs}/commands/StartPolicyGenerationCommand.js +2 -27
  26. package/{dist/cjs → dist-cjs}/commands/StartResourceScanCommand.js +2 -27
  27. package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +2 -27
  28. package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +2 -27
  29. package/{dist/cjs → dist-cjs}/commands/UpdateArchiveRuleCommand.js +2 -27
  30. package/{dist/cjs → dist-cjs}/commands/UpdateFindingsCommand.js +2 -27
  31. package/{dist/cjs → dist-cjs}/commands/ValidatePolicyCommand.js +2 -29
  32. package/{dist/cjs → dist-cjs}/endpoints.js +1 -2
  33. package/{dist/cjs → dist-cjs}/index.js +0 -1
  34. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  35. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -316
  36. package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
  37. package/{dist/cjs → dist-cjs}/pagination/ListAccessPreviewFindingsPaginator.js +0 -11
  38. package/{dist/cjs → dist-cjs}/pagination/ListAccessPreviewsPaginator.js +0 -11
  39. package/{dist/cjs → dist-cjs}/pagination/ListAnalyzedResourcesPaginator.js +0 -11
  40. package/{dist/cjs → dist-cjs}/pagination/ListAnalyzersPaginator.js +0 -11
  41. package/{dist/cjs → dist-cjs}/pagination/ListArchiveRulesPaginator.js +0 -11
  42. package/{dist/cjs → dist-cjs}/pagination/ListFindingsPaginator.js +0 -11
  43. package/{dist/cjs → dist-cjs}/pagination/ListPolicyGenerationsPaginator.js +0 -11
  44. package/{dist/cjs → dist-cjs}/pagination/ValidatePolicyPaginator.js +0 -11
  45. package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +14 -20
  46. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
  47. package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
  48. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
  49. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
  50. package/{dist/es → dist-es}/AccessAnalyzer.js +0 -1
  51. package/{dist/es → dist-es}/AccessAnalyzerClient.js +1 -2
  52. package/{dist/es → dist-es}/commands/ApplyArchiveRuleCommand.js +2 -3
  53. package/{dist/es → dist-es}/commands/CancelPolicyGenerationCommand.js +2 -3
  54. package/{dist/es → dist-es}/commands/CreateAccessPreviewCommand.js +2 -3
  55. package/{dist/es → dist-es}/commands/CreateAnalyzerCommand.js +2 -3
  56. package/{dist/es → dist-es}/commands/CreateArchiveRuleCommand.js +2 -3
  57. package/{dist/es → dist-es}/commands/DeleteAnalyzerCommand.js +2 -3
  58. package/{dist/es → dist-es}/commands/DeleteArchiveRuleCommand.js +2 -3
  59. package/{dist/es → dist-es}/commands/GetAccessPreviewCommand.js +2 -3
  60. package/{dist/es → dist-es}/commands/GetAnalyzedResourceCommand.js +2 -3
  61. package/{dist/es → dist-es}/commands/GetAnalyzerCommand.js +2 -3
  62. package/{dist/es → dist-es}/commands/GetArchiveRuleCommand.js +2 -3
  63. package/{dist/es → dist-es}/commands/GetFindingCommand.js +2 -3
  64. package/{dist/es → dist-es}/commands/GetGeneratedPolicyCommand.js +2 -3
  65. package/{dist/es → dist-es}/commands/ListAccessPreviewFindingsCommand.js +2 -3
  66. package/{dist/es → dist-es}/commands/ListAccessPreviewsCommand.js +2 -3
  67. package/{dist/es → dist-es}/commands/ListAnalyzedResourcesCommand.js +2 -3
  68. package/{dist/es → dist-es}/commands/ListAnalyzersCommand.js +2 -3
  69. package/{dist/es → dist-es}/commands/ListArchiveRulesCommand.js +2 -3
  70. package/{dist/es → dist-es}/commands/ListFindingsCommand.js +2 -3
  71. package/{dist/es → dist-es}/commands/ListPolicyGenerationsCommand.js +2 -3
  72. package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +2 -3
  73. package/{dist/es → dist-es}/commands/StartPolicyGenerationCommand.js +2 -3
  74. package/{dist/es → dist-es}/commands/StartResourceScanCommand.js +2 -3
  75. package/{dist/es → dist-es}/commands/TagResourceCommand.js +2 -3
  76. package/{dist/es → dist-es}/commands/UntagResourceCommand.js +2 -3
  77. package/{dist/es → dist-es}/commands/UpdateArchiveRuleCommand.js +2 -3
  78. package/{dist/es → dist-es}/commands/UpdateFindingsCommand.js +2 -3
  79. package/{dist/es → dist-es}/commands/ValidatePolicyCommand.js +2 -3
  80. package/{dist/es → dist-es}/endpoints.js +1 -2
  81. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  82. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  83. package/{dist/es → dist-es}/models/models_0.js +0 -1
  84. package/dist-es/pagination/Interfaces.js +1 -0
  85. package/{dist/es → dist-es}/pagination/ListAccessPreviewFindingsPaginator.js +0 -1
  86. package/{dist/es → dist-es}/pagination/ListAccessPreviewsPaginator.js +0 -1
  87. package/{dist/es → dist-es}/pagination/ListAnalyzedResourcesPaginator.js +0 -1
  88. package/{dist/es → dist-es}/pagination/ListAnalyzersPaginator.js +0 -1
  89. package/{dist/es → dist-es}/pagination/ListArchiveRulesPaginator.js +0 -1
  90. package/{dist/es → dist-es}/pagination/ListFindingsPaginator.js +0 -1
  91. package/{dist/es → dist-es}/pagination/ListPolicyGenerationsPaginator.js +0 -1
  92. package/{dist/es → dist-es}/pagination/ValidatePolicyPaginator.js +0 -1
  93. package/{dist/es → dist-es}/protocols/Aws_restJson1.js +1 -2
  94. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
  95. package/{dist/es → dist-es}/runtimeConfig.js +1 -2
  96. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
  97. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
  98. package/{dist/types → dist-types}/AccessAnalyzer.d.ts +1 -1
  99. package/{dist/types → dist-types}/AccessAnalyzerClient.d.ts +8 -8
  100. package/{dist/types → dist-types}/commands/ApplyArchiveRuleCommand.d.ts +2 -2
  101. package/{dist/types → dist-types}/commands/CancelPolicyGenerationCommand.d.ts +2 -2
  102. package/{dist/types → dist-types}/commands/CreateAccessPreviewCommand.d.ts +2 -2
  103. package/{dist/types → dist-types}/commands/CreateAnalyzerCommand.d.ts +2 -2
  104. package/{dist/types → dist-types}/commands/CreateArchiveRuleCommand.d.ts +2 -2
  105. package/{dist/types → dist-types}/commands/DeleteAnalyzerCommand.d.ts +2 -2
  106. package/{dist/types → dist-types}/commands/DeleteArchiveRuleCommand.d.ts +2 -2
  107. package/{dist/types → dist-types}/commands/GetAccessPreviewCommand.d.ts +2 -2
  108. package/{dist/types → dist-types}/commands/GetAnalyzedResourceCommand.d.ts +2 -2
  109. package/{dist/types → dist-types}/commands/GetAnalyzerCommand.d.ts +2 -2
  110. package/{dist/types → dist-types}/commands/GetArchiveRuleCommand.d.ts +2 -2
  111. package/{dist/types → dist-types}/commands/GetFindingCommand.d.ts +2 -2
  112. package/{dist/types → dist-types}/commands/GetGeneratedPolicyCommand.d.ts +2 -2
  113. package/{dist/types → dist-types}/commands/ListAccessPreviewFindingsCommand.d.ts +2 -2
  114. package/{dist/types → dist-types}/commands/ListAccessPreviewsCommand.d.ts +2 -2
  115. package/{dist/types → dist-types}/commands/ListAnalyzedResourcesCommand.d.ts +2 -2
  116. package/{dist/types → dist-types}/commands/ListAnalyzersCommand.d.ts +2 -2
  117. package/{dist/types → dist-types}/commands/ListArchiveRulesCommand.d.ts +2 -2
  118. package/{dist/types → dist-types}/commands/ListFindingsCommand.d.ts +2 -2
  119. package/{dist/types → dist-types}/commands/ListPolicyGenerationsCommand.d.ts +2 -2
  120. package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +2 -2
  121. package/{dist/types → dist-types}/commands/StartPolicyGenerationCommand.d.ts +2 -2
  122. package/{dist/types → dist-types}/commands/StartResourceScanCommand.d.ts +2 -2
  123. package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +2 -2
  124. package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +2 -2
  125. package/{dist/types → dist-types}/commands/UpdateArchiveRuleCommand.d.ts +2 -2
  126. package/{dist/types → dist-types}/commands/UpdateFindingsCommand.d.ts +2 -2
  127. package/{dist/types → dist-types}/commands/ValidatePolicyCommand.d.ts +2 -2
  128. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  129. package/{index.ts → dist-types/index.d.ts} +0 -0
  130. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  131. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  132. package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
  133. package/{dist/types → dist-types}/pagination/ListAccessPreviewFindingsPaginator.d.ts +1 -1
  134. package/{dist/types → dist-types}/pagination/ListAccessPreviewsPaginator.d.ts +1 -1
  135. package/{dist/types → dist-types}/pagination/ListAnalyzedResourcesPaginator.d.ts +1 -1
  136. package/{dist/types → dist-types}/pagination/ListAnalyzersPaginator.d.ts +1 -1
  137. package/{dist/types → dist-types}/pagination/ListArchiveRulesPaginator.d.ts +1 -1
  138. package/{dist/types → dist-types}/pagination/ListFindingsPaginator.d.ts +1 -1
  139. package/{dist/types → dist-types}/pagination/ListPolicyGenerationsPaginator.d.ts +1 -1
  140. package/{dist/types → dist-types}/pagination/ValidatePolicyPaginator.d.ts +1 -1
  141. package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
  142. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
  143. package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
  144. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
  145. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  146. package/{dist/types → dist-types}/ts3.4/AccessAnalyzer.d.ts +30 -109
  147. package/{dist/types → dist-types}/ts3.4/AccessAnalyzerClient.d.ts +32 -105
  148. package/dist-types/ts3.4/commands/ApplyArchiveRuleCommand.d.ts +17 -0
  149. package/{dist/types → dist-types}/ts3.4/commands/CancelPolicyGenerationCommand.d.ts +4 -22
  150. package/dist-types/ts3.4/commands/CreateAccessPreviewCommand.d.ts +17 -0
  151. package/dist-types/ts3.4/commands/CreateAnalyzerCommand.d.ts +17 -0
  152. package/dist-types/ts3.4/commands/CreateArchiveRuleCommand.d.ts +17 -0
  153. package/dist-types/ts3.4/commands/DeleteAnalyzerCommand.d.ts +17 -0
  154. package/dist-types/ts3.4/commands/DeleteArchiveRuleCommand.d.ts +17 -0
  155. package/dist-types/ts3.4/commands/GetAccessPreviewCommand.d.ts +17 -0
  156. package/{dist/types → dist-types}/ts3.4/commands/GetAnalyzedResourceCommand.d.ts +4 -22
  157. package/dist-types/ts3.4/commands/GetAnalyzerCommand.d.ts +17 -0
  158. package/dist-types/ts3.4/commands/GetArchiveRuleCommand.d.ts +17 -0
  159. package/dist-types/ts3.4/commands/GetFindingCommand.d.ts +17 -0
  160. package/dist-types/ts3.4/commands/GetGeneratedPolicyCommand.d.ts +17 -0
  161. package/{dist/types → dist-types}/ts3.4/commands/ListAccessPreviewFindingsCommand.d.ts +4 -23
  162. package/{dist/types → dist-types}/ts3.4/commands/ListAccessPreviewsCommand.d.ts +4 -22
  163. package/dist-types/ts3.4/commands/ListAnalyzedResourcesCommand.d.ts +17 -0
  164. package/dist-types/ts3.4/commands/ListAnalyzersCommand.d.ts +17 -0
  165. package/dist-types/ts3.4/commands/ListArchiveRulesCommand.d.ts +17 -0
  166. package/dist-types/ts3.4/commands/ListFindingsCommand.d.ts +17 -0
  167. package/{dist/types → dist-types}/ts3.4/commands/ListPolicyGenerationsCommand.d.ts +4 -22
  168. package/{dist/types → dist-types}/ts3.4/commands/ListTagsForResourceCommand.d.ts +4 -22
  169. package/{dist/types → dist-types}/ts3.4/commands/StartPolicyGenerationCommand.d.ts +4 -22
  170. package/dist-types/ts3.4/commands/StartResourceScanCommand.d.ts +17 -0
  171. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
  172. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
  173. package/dist-types/ts3.4/commands/UpdateArchiveRuleCommand.d.ts +17 -0
  174. package/dist-types/ts3.4/commands/UpdateFindingsCommand.d.ts +17 -0
  175. package/dist-types/ts3.4/commands/ValidatePolicyCommand.d.ts +17 -0
  176. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  177. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  178. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  179. package/dist-types/ts3.4/models/models_0.d.ts +1610 -0
  180. package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
  181. package/{dist/types → dist-types}/ts3.4/pagination/ListAccessPreviewFindingsPaginator.d.ts +1 -1
  182. package/{dist/types → dist-types}/ts3.4/pagination/ListAccessPreviewsPaginator.d.ts +1 -1
  183. package/{dist/types → dist-types}/ts3.4/pagination/ListAnalyzedResourcesPaginator.d.ts +1 -1
  184. package/{dist/types → dist-types}/ts3.4/pagination/ListAnalyzersPaginator.d.ts +1 -1
  185. package/{dist/types → dist-types}/ts3.4/pagination/ListArchiveRulesPaginator.d.ts +1 -1
  186. package/{dist/types → dist-types}/ts3.4/pagination/ListFindingsPaginator.d.ts +1 -1
  187. package/{dist/types → dist-types}/ts3.4/pagination/ListPolicyGenerationsPaginator.d.ts +1 -1
  188. package/{dist/types → dist-types}/ts3.4/pagination/ValidatePolicyPaginator.d.ts +1 -1
  189. package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
  190. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
  191. package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
  192. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
  193. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
  194. package/package.json +45 -42
  195. package/AccessAnalyzer.ts +0 -1031
  196. package/AccessAnalyzerClient.ts +0 -351
  197. package/commands/ApplyArchiveRuleCommand.ts +0 -95
  198. package/commands/CancelPolicyGenerationCommand.ts +0 -94
  199. package/commands/CreateAccessPreviewCommand.ts +0 -95
  200. package/commands/CreateAnalyzerCommand.ts +0 -94
  201. package/commands/CreateArchiveRuleCommand.ts +0 -96
  202. package/commands/DeleteAnalyzerCommand.ts +0 -96
  203. package/commands/DeleteArchiveRuleCommand.ts +0 -94
  204. package/commands/GetAccessPreviewCommand.ts +0 -94
  205. package/commands/GetAnalyzedResourceCommand.ts +0 -94
  206. package/commands/GetAnalyzerCommand.ts +0 -94
  207. package/commands/GetArchiveRuleCommand.ts +0 -95
  208. package/commands/GetFindingCommand.ts +0 -94
  209. package/commands/GetGeneratedPolicyCommand.ts +0 -95
  210. package/commands/ListAccessPreviewFindingsCommand.ts +0 -98
  211. package/commands/ListAccessPreviewsCommand.ts +0 -94
  212. package/commands/ListAnalyzedResourcesCommand.ts +0 -95
  213. package/commands/ListAnalyzersCommand.ts +0 -94
  214. package/commands/ListArchiveRulesCommand.ts +0 -94
  215. package/commands/ListFindingsCommand.ts +0 -95
  216. package/commands/ListPolicyGenerationsCommand.ts +0 -94
  217. package/commands/ListTagsForResourceCommand.ts +0 -94
  218. package/commands/StartPolicyGenerationCommand.ts +0 -94
  219. package/commands/StartResourceScanCommand.ts +0 -94
  220. package/commands/TagResourceCommand.ts +0 -94
  221. package/commands/UntagResourceCommand.ts +0 -94
  222. package/commands/UpdateArchiveRuleCommand.ts +0 -94
  223. package/commands/UpdateFindingsCommand.ts +0 -94
  224. package/commands/ValidatePolicyCommand.ts +0 -96
  225. package/dist/cjs/AccessAnalyzer.js.map +0 -1
  226. package/dist/cjs/AccessAnalyzerClient.js +0 -52
  227. package/dist/cjs/AccessAnalyzerClient.js.map +0 -1
  228. package/dist/cjs/commands/ApplyArchiveRuleCommand.js.map +0 -1
  229. package/dist/cjs/commands/CancelPolicyGenerationCommand.js.map +0 -1
  230. package/dist/cjs/commands/CreateAccessPreviewCommand.js.map +0 -1
  231. package/dist/cjs/commands/CreateAnalyzerCommand.js.map +0 -1
  232. package/dist/cjs/commands/CreateArchiveRuleCommand.js.map +0 -1
  233. package/dist/cjs/commands/DeleteAnalyzerCommand.js.map +0 -1
  234. package/dist/cjs/commands/DeleteArchiveRuleCommand.js.map +0 -1
  235. package/dist/cjs/commands/GetAccessPreviewCommand.js.map +0 -1
  236. package/dist/cjs/commands/GetAnalyzedResourceCommand.js.map +0 -1
  237. package/dist/cjs/commands/GetAnalyzerCommand.js.map +0 -1
  238. package/dist/cjs/commands/GetArchiveRuleCommand.js.map +0 -1
  239. package/dist/cjs/commands/GetFindingCommand.js.map +0 -1
  240. package/dist/cjs/commands/GetGeneratedPolicyCommand.js.map +0 -1
  241. package/dist/cjs/commands/ListAccessPreviewFindingsCommand.js.map +0 -1
  242. package/dist/cjs/commands/ListAccessPreviewsCommand.js.map +0 -1
  243. package/dist/cjs/commands/ListAnalyzedResourcesCommand.js.map +0 -1
  244. package/dist/cjs/commands/ListAnalyzersCommand.js.map +0 -1
  245. package/dist/cjs/commands/ListArchiveRulesCommand.js.map +0 -1
  246. package/dist/cjs/commands/ListFindingsCommand.js.map +0 -1
  247. package/dist/cjs/commands/ListPolicyGenerationsCommand.js.map +0 -1
  248. package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
  249. package/dist/cjs/commands/StartPolicyGenerationCommand.js.map +0 -1
  250. package/dist/cjs/commands/StartResourceScanCommand.js.map +0 -1
  251. package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
  252. package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
  253. package/dist/cjs/commands/UpdateArchiveRuleCommand.js.map +0 -1
  254. package/dist/cjs/commands/UpdateFindingsCommand.js.map +0 -1
  255. package/dist/cjs/commands/ValidatePolicyCommand.js.map +0 -1
  256. package/dist/cjs/endpoints.js.map +0 -1
  257. package/dist/cjs/index.js.map +0 -1
  258. package/dist/cjs/models/index.js.map +0 -1
  259. package/dist/cjs/models/models_0.js.map +0 -1
  260. package/dist/cjs/package.json +0 -93
  261. package/dist/cjs/pagination/Interfaces.js.map +0 -1
  262. package/dist/cjs/pagination/ListAccessPreviewFindingsPaginator.js.map +0 -1
  263. package/dist/cjs/pagination/ListAccessPreviewsPaginator.js.map +0 -1
  264. package/dist/cjs/pagination/ListAnalyzedResourcesPaginator.js.map +0 -1
  265. package/dist/cjs/pagination/ListAnalyzersPaginator.js.map +0 -1
  266. package/dist/cjs/pagination/ListArchiveRulesPaginator.js.map +0 -1
  267. package/dist/cjs/pagination/ListFindingsPaginator.js.map +0 -1
  268. package/dist/cjs/pagination/ListPolicyGenerationsPaginator.js.map +0 -1
  269. package/dist/cjs/pagination/ValidatePolicyPaginator.js.map +0 -1
  270. package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
  271. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  272. package/dist/cjs/runtimeConfig.js.map +0 -1
  273. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  274. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  275. package/dist/es/AccessAnalyzer.js.map +0 -1
  276. package/dist/es/AccessAnalyzerClient.js.map +0 -1
  277. package/dist/es/commands/ApplyArchiveRuleCommand.js.map +0 -1
  278. package/dist/es/commands/CancelPolicyGenerationCommand.js.map +0 -1
  279. package/dist/es/commands/CreateAccessPreviewCommand.js.map +0 -1
  280. package/dist/es/commands/CreateAnalyzerCommand.js.map +0 -1
  281. package/dist/es/commands/CreateArchiveRuleCommand.js.map +0 -1
  282. package/dist/es/commands/DeleteAnalyzerCommand.js.map +0 -1
  283. package/dist/es/commands/DeleteArchiveRuleCommand.js.map +0 -1
  284. package/dist/es/commands/GetAccessPreviewCommand.js.map +0 -1
  285. package/dist/es/commands/GetAnalyzedResourceCommand.js.map +0 -1
  286. package/dist/es/commands/GetAnalyzerCommand.js.map +0 -1
  287. package/dist/es/commands/GetArchiveRuleCommand.js.map +0 -1
  288. package/dist/es/commands/GetFindingCommand.js.map +0 -1
  289. package/dist/es/commands/GetGeneratedPolicyCommand.js.map +0 -1
  290. package/dist/es/commands/ListAccessPreviewFindingsCommand.js.map +0 -1
  291. package/dist/es/commands/ListAccessPreviewsCommand.js.map +0 -1
  292. package/dist/es/commands/ListAnalyzedResourcesCommand.js.map +0 -1
  293. package/dist/es/commands/ListAnalyzersCommand.js.map +0 -1
  294. package/dist/es/commands/ListArchiveRulesCommand.js.map +0 -1
  295. package/dist/es/commands/ListFindingsCommand.js.map +0 -1
  296. package/dist/es/commands/ListPolicyGenerationsCommand.js.map +0 -1
  297. package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
  298. package/dist/es/commands/StartPolicyGenerationCommand.js.map +0 -1
  299. package/dist/es/commands/StartResourceScanCommand.js.map +0 -1
  300. package/dist/es/commands/TagResourceCommand.js.map +0 -1
  301. package/dist/es/commands/UntagResourceCommand.js.map +0 -1
  302. package/dist/es/commands/UpdateArchiveRuleCommand.js.map +0 -1
  303. package/dist/es/commands/UpdateFindingsCommand.js.map +0 -1
  304. package/dist/es/commands/ValidatePolicyCommand.js.map +0 -1
  305. package/dist/es/endpoints.js.map +0 -1
  306. package/dist/es/index.js +0 -41
  307. package/dist/es/index.js.map +0 -1
  308. package/dist/es/models/index.js +0 -2
  309. package/dist/es/models/index.js.map +0 -1
  310. package/dist/es/models/models_0.js.map +0 -1
  311. package/dist/es/package.json +0 -93
  312. package/dist/es/pagination/Interfaces.js +0 -2
  313. package/dist/es/pagination/Interfaces.js.map +0 -1
  314. package/dist/es/pagination/ListAccessPreviewFindingsPaginator.js.map +0 -1
  315. package/dist/es/pagination/ListAccessPreviewsPaginator.js.map +0 -1
  316. package/dist/es/pagination/ListAnalyzedResourcesPaginator.js.map +0 -1
  317. package/dist/es/pagination/ListAnalyzersPaginator.js.map +0 -1
  318. package/dist/es/pagination/ListArchiveRulesPaginator.js.map +0 -1
  319. package/dist/es/pagination/ListFindingsPaginator.js.map +0 -1
  320. package/dist/es/pagination/ListPolicyGenerationsPaginator.js.map +0 -1
  321. package/dist/es/pagination/ValidatePolicyPaginator.js.map +0 -1
  322. package/dist/es/protocols/Aws_restJson1.js.map +0 -1
  323. package/dist/es/runtimeConfig.browser.js.map +0 -1
  324. package/dist/es/runtimeConfig.js.map +0 -1
  325. package/dist/es/runtimeConfig.native.js.map +0 -1
  326. package/dist/es/runtimeConfig.shared.js.map +0 -1
  327. package/dist/types/ts3.4/commands/ApplyArchiveRuleCommand.d.ts +0 -36
  328. package/dist/types/ts3.4/commands/CreateAccessPreviewCommand.d.ts +0 -36
  329. package/dist/types/ts3.4/commands/CreateAnalyzerCommand.d.ts +0 -35
  330. package/dist/types/ts3.4/commands/CreateArchiveRuleCommand.d.ts +0 -37
  331. package/dist/types/ts3.4/commands/DeleteAnalyzerCommand.d.ts +0 -37
  332. package/dist/types/ts3.4/commands/DeleteArchiveRuleCommand.d.ts +0 -35
  333. package/dist/types/ts3.4/commands/GetAccessPreviewCommand.d.ts +0 -35
  334. package/dist/types/ts3.4/commands/GetAnalyzerCommand.d.ts +0 -35
  335. package/dist/types/ts3.4/commands/GetArchiveRuleCommand.d.ts +0 -36
  336. package/dist/types/ts3.4/commands/GetFindingCommand.d.ts +0 -35
  337. package/dist/types/ts3.4/commands/GetGeneratedPolicyCommand.d.ts +0 -36
  338. package/dist/types/ts3.4/commands/ListAnalyzedResourcesCommand.d.ts +0 -36
  339. package/dist/types/ts3.4/commands/ListAnalyzersCommand.d.ts +0 -35
  340. package/dist/types/ts3.4/commands/ListArchiveRulesCommand.d.ts +0 -35
  341. package/dist/types/ts3.4/commands/ListFindingsCommand.d.ts +0 -36
  342. package/dist/types/ts3.4/commands/StartResourceScanCommand.d.ts +0 -35
  343. package/dist/types/ts3.4/commands/TagResourceCommand.d.ts +0 -35
  344. package/dist/types/ts3.4/commands/UntagResourceCommand.d.ts +0 -35
  345. package/dist/types/ts3.4/commands/UpdateArchiveRuleCommand.d.ts +0 -35
  346. package/dist/types/ts3.4/commands/UpdateFindingsCommand.d.ts +0 -35
  347. package/dist/types/ts3.4/commands/ValidatePolicyCommand.d.ts +0 -37
  348. package/dist/types/ts3.4/models/models_0.d.ts +0 -2899
  349. package/endpoints.ts +0 -91
  350. package/jest.config.js +0 -4
  351. package/models/models_0.ts +0 -3591
  352. package/pagination/Interfaces.ts +0 -7
  353. package/pagination/ListAccessPreviewFindingsPaginator.ts +0 -58
  354. package/pagination/ListAccessPreviewsPaginator.ts +0 -58
  355. package/pagination/ListAnalyzedResourcesPaginator.ts +0 -58
  356. package/pagination/ListAnalyzersPaginator.ts +0 -58
  357. package/pagination/ListArchiveRulesPaginator.ts +0 -58
  358. package/pagination/ListFindingsPaginator.ts +0 -58
  359. package/pagination/ListPolicyGenerationsPaginator.ts +0 -58
  360. package/pagination/ValidatePolicyPaginator.ts +0 -58
  361. package/protocols/Aws_restJson1.ts +0 -5106
  362. package/runtimeConfig.browser.ts +0 -40
  363. package/runtimeConfig.native.ts +0 -16
  364. package/runtimeConfig.shared.ts +0 -16
  365. package/runtimeConfig.ts +0 -45
  366. package/tsconfig.es.json +0 -10
  367. package/tsconfig.json +0 -31
  368. package/tsconfig.types.json +0 -8
package/AccessAnalyzer.ts DELETED
@@ -1,1031 +0,0 @@
1
- import { AccessAnalyzerClient } from "./AccessAnalyzerClient";
2
- import {
3
- ApplyArchiveRuleCommand,
4
- ApplyArchiveRuleCommandInput,
5
- ApplyArchiveRuleCommandOutput,
6
- } from "./commands/ApplyArchiveRuleCommand";
7
- import {
8
- CancelPolicyGenerationCommand,
9
- CancelPolicyGenerationCommandInput,
10
- CancelPolicyGenerationCommandOutput,
11
- } from "./commands/CancelPolicyGenerationCommand";
12
- import {
13
- CreateAccessPreviewCommand,
14
- CreateAccessPreviewCommandInput,
15
- CreateAccessPreviewCommandOutput,
16
- } from "./commands/CreateAccessPreviewCommand";
17
- import {
18
- CreateAnalyzerCommand,
19
- CreateAnalyzerCommandInput,
20
- CreateAnalyzerCommandOutput,
21
- } from "./commands/CreateAnalyzerCommand";
22
- import {
23
- CreateArchiveRuleCommand,
24
- CreateArchiveRuleCommandInput,
25
- CreateArchiveRuleCommandOutput,
26
- } from "./commands/CreateArchiveRuleCommand";
27
- import {
28
- DeleteAnalyzerCommand,
29
- DeleteAnalyzerCommandInput,
30
- DeleteAnalyzerCommandOutput,
31
- } from "./commands/DeleteAnalyzerCommand";
32
- import {
33
- DeleteArchiveRuleCommand,
34
- DeleteArchiveRuleCommandInput,
35
- DeleteArchiveRuleCommandOutput,
36
- } from "./commands/DeleteArchiveRuleCommand";
37
- import {
38
- GetAccessPreviewCommand,
39
- GetAccessPreviewCommandInput,
40
- GetAccessPreviewCommandOutput,
41
- } from "./commands/GetAccessPreviewCommand";
42
- import {
43
- GetAnalyzedResourceCommand,
44
- GetAnalyzedResourceCommandInput,
45
- GetAnalyzedResourceCommandOutput,
46
- } from "./commands/GetAnalyzedResourceCommand";
47
- import { GetAnalyzerCommand, GetAnalyzerCommandInput, GetAnalyzerCommandOutput } from "./commands/GetAnalyzerCommand";
48
- import {
49
- GetArchiveRuleCommand,
50
- GetArchiveRuleCommandInput,
51
- GetArchiveRuleCommandOutput,
52
- } from "./commands/GetArchiveRuleCommand";
53
- import { GetFindingCommand, GetFindingCommandInput, GetFindingCommandOutput } from "./commands/GetFindingCommand";
54
- import {
55
- GetGeneratedPolicyCommand,
56
- GetGeneratedPolicyCommandInput,
57
- GetGeneratedPolicyCommandOutput,
58
- } from "./commands/GetGeneratedPolicyCommand";
59
- import {
60
- ListAccessPreviewFindingsCommand,
61
- ListAccessPreviewFindingsCommandInput,
62
- ListAccessPreviewFindingsCommandOutput,
63
- } from "./commands/ListAccessPreviewFindingsCommand";
64
- import {
65
- ListAccessPreviewsCommand,
66
- ListAccessPreviewsCommandInput,
67
- ListAccessPreviewsCommandOutput,
68
- } from "./commands/ListAccessPreviewsCommand";
69
- import {
70
- ListAnalyzedResourcesCommand,
71
- ListAnalyzedResourcesCommandInput,
72
- ListAnalyzedResourcesCommandOutput,
73
- } from "./commands/ListAnalyzedResourcesCommand";
74
- import {
75
- ListAnalyzersCommand,
76
- ListAnalyzersCommandInput,
77
- ListAnalyzersCommandOutput,
78
- } from "./commands/ListAnalyzersCommand";
79
- import {
80
- ListArchiveRulesCommand,
81
- ListArchiveRulesCommandInput,
82
- ListArchiveRulesCommandOutput,
83
- } from "./commands/ListArchiveRulesCommand";
84
- import {
85
- ListFindingsCommand,
86
- ListFindingsCommandInput,
87
- ListFindingsCommandOutput,
88
- } from "./commands/ListFindingsCommand";
89
- import {
90
- ListPolicyGenerationsCommand,
91
- ListPolicyGenerationsCommandInput,
92
- ListPolicyGenerationsCommandOutput,
93
- } from "./commands/ListPolicyGenerationsCommand";
94
- import {
95
- ListTagsForResourceCommand,
96
- ListTagsForResourceCommandInput,
97
- ListTagsForResourceCommandOutput,
98
- } from "./commands/ListTagsForResourceCommand";
99
- import {
100
- StartPolicyGenerationCommand,
101
- StartPolicyGenerationCommandInput,
102
- StartPolicyGenerationCommandOutput,
103
- } from "./commands/StartPolicyGenerationCommand";
104
- import {
105
- StartResourceScanCommand,
106
- StartResourceScanCommandInput,
107
- StartResourceScanCommandOutput,
108
- } from "./commands/StartResourceScanCommand";
109
- import { TagResourceCommand, TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
110
- import {
111
- UntagResourceCommand,
112
- UntagResourceCommandInput,
113
- UntagResourceCommandOutput,
114
- } from "./commands/UntagResourceCommand";
115
- import {
116
- UpdateArchiveRuleCommand,
117
- UpdateArchiveRuleCommandInput,
118
- UpdateArchiveRuleCommandOutput,
119
- } from "./commands/UpdateArchiveRuleCommand";
120
- import {
121
- UpdateFindingsCommand,
122
- UpdateFindingsCommandInput,
123
- UpdateFindingsCommandOutput,
124
- } from "./commands/UpdateFindingsCommand";
125
- import {
126
- ValidatePolicyCommand,
127
- ValidatePolicyCommandInput,
128
- ValidatePolicyCommandOutput,
129
- } from "./commands/ValidatePolicyCommand";
130
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
131
-
132
- /**
133
- * <p>Identity and Access Management Access Analyzer helps identify potential resource-access risks by enabling you to
134
- * identify any policies that grant access to an external principal. It does this by using
135
- * logic-based reasoning to analyze resource-based policies in your Amazon Web Services environment. An
136
- * external principal can be another Amazon Web Services account, a root user, an IAM user or role, a
137
- * federated user, an Amazon Web Services service, or an anonymous user. You can also use IAM Access Analyzer to
138
- * preview and validate public and cross-account access to your resources before deploying
139
- * permissions changes. This guide describes the Identity and Access Management Access Analyzer operations that you can
140
- * call programmatically. For general information about IAM Access Analyzer, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/what-is-access-analyzer.html">Identity and Access Management Access Analyzer</a> in the <b>IAM User Guide</b>.</p>
141
- * <p>To start using IAM Access Analyzer, you first need to create an analyzer.</p>
142
- */
143
- export class AccessAnalyzer extends AccessAnalyzerClient {
144
- /**
145
- * <p>Retroactively applies the archive rule to existing findings that meet the archive rule
146
- * criteria.</p>
147
- */
148
- public applyArchiveRule(
149
- args: ApplyArchiveRuleCommandInput,
150
- options?: __HttpHandlerOptions
151
- ): Promise<ApplyArchiveRuleCommandOutput>;
152
- public applyArchiveRule(
153
- args: ApplyArchiveRuleCommandInput,
154
- cb: (err: any, data?: ApplyArchiveRuleCommandOutput) => void
155
- ): void;
156
- public applyArchiveRule(
157
- args: ApplyArchiveRuleCommandInput,
158
- options: __HttpHandlerOptions,
159
- cb: (err: any, data?: ApplyArchiveRuleCommandOutput) => void
160
- ): void;
161
- public applyArchiveRule(
162
- args: ApplyArchiveRuleCommandInput,
163
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ApplyArchiveRuleCommandOutput) => void),
164
- cb?: (err: any, data?: ApplyArchiveRuleCommandOutput) => void
165
- ): Promise<ApplyArchiveRuleCommandOutput> | void {
166
- const command = new ApplyArchiveRuleCommand(args);
167
- if (typeof optionsOrCb === "function") {
168
- this.send(command, optionsOrCb);
169
- } else if (typeof cb === "function") {
170
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
171
- this.send(command, optionsOrCb || {}, cb);
172
- } else {
173
- return this.send(command, optionsOrCb);
174
- }
175
- }
176
-
177
- /**
178
- * <p>Cancels the requested policy generation.</p>
179
- */
180
- public cancelPolicyGeneration(
181
- args: CancelPolicyGenerationCommandInput,
182
- options?: __HttpHandlerOptions
183
- ): Promise<CancelPolicyGenerationCommandOutput>;
184
- public cancelPolicyGeneration(
185
- args: CancelPolicyGenerationCommandInput,
186
- cb: (err: any, data?: CancelPolicyGenerationCommandOutput) => void
187
- ): void;
188
- public cancelPolicyGeneration(
189
- args: CancelPolicyGenerationCommandInput,
190
- options: __HttpHandlerOptions,
191
- cb: (err: any, data?: CancelPolicyGenerationCommandOutput) => void
192
- ): void;
193
- public cancelPolicyGeneration(
194
- args: CancelPolicyGenerationCommandInput,
195
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CancelPolicyGenerationCommandOutput) => void),
196
- cb?: (err: any, data?: CancelPolicyGenerationCommandOutput) => void
197
- ): Promise<CancelPolicyGenerationCommandOutput> | void {
198
- const command = new CancelPolicyGenerationCommand(args);
199
- if (typeof optionsOrCb === "function") {
200
- this.send(command, optionsOrCb);
201
- } else if (typeof cb === "function") {
202
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
203
- this.send(command, optionsOrCb || {}, cb);
204
- } else {
205
- return this.send(command, optionsOrCb);
206
- }
207
- }
208
-
209
- /**
210
- * <p>Creates an access preview that allows you to preview IAM Access Analyzer findings for your
211
- * resource before deploying resource permissions.</p>
212
- */
213
- public createAccessPreview(
214
- args: CreateAccessPreviewCommandInput,
215
- options?: __HttpHandlerOptions
216
- ): Promise<CreateAccessPreviewCommandOutput>;
217
- public createAccessPreview(
218
- args: CreateAccessPreviewCommandInput,
219
- cb: (err: any, data?: CreateAccessPreviewCommandOutput) => void
220
- ): void;
221
- public createAccessPreview(
222
- args: CreateAccessPreviewCommandInput,
223
- options: __HttpHandlerOptions,
224
- cb: (err: any, data?: CreateAccessPreviewCommandOutput) => void
225
- ): void;
226
- public createAccessPreview(
227
- args: CreateAccessPreviewCommandInput,
228
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateAccessPreviewCommandOutput) => void),
229
- cb?: (err: any, data?: CreateAccessPreviewCommandOutput) => void
230
- ): Promise<CreateAccessPreviewCommandOutput> | void {
231
- const command = new CreateAccessPreviewCommand(args);
232
- if (typeof optionsOrCb === "function") {
233
- this.send(command, optionsOrCb);
234
- } else if (typeof cb === "function") {
235
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
236
- this.send(command, optionsOrCb || {}, cb);
237
- } else {
238
- return this.send(command, optionsOrCb);
239
- }
240
- }
241
-
242
- /**
243
- * <p>Creates an analyzer for your account.</p>
244
- */
245
- public createAnalyzer(
246
- args: CreateAnalyzerCommandInput,
247
- options?: __HttpHandlerOptions
248
- ): Promise<CreateAnalyzerCommandOutput>;
249
- public createAnalyzer(
250
- args: CreateAnalyzerCommandInput,
251
- cb: (err: any, data?: CreateAnalyzerCommandOutput) => void
252
- ): void;
253
- public createAnalyzer(
254
- args: CreateAnalyzerCommandInput,
255
- options: __HttpHandlerOptions,
256
- cb: (err: any, data?: CreateAnalyzerCommandOutput) => void
257
- ): void;
258
- public createAnalyzer(
259
- args: CreateAnalyzerCommandInput,
260
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateAnalyzerCommandOutput) => void),
261
- cb?: (err: any, data?: CreateAnalyzerCommandOutput) => void
262
- ): Promise<CreateAnalyzerCommandOutput> | void {
263
- const command = new CreateAnalyzerCommand(args);
264
- if (typeof optionsOrCb === "function") {
265
- this.send(command, optionsOrCb);
266
- } else if (typeof cb === "function") {
267
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
268
- this.send(command, optionsOrCb || {}, cb);
269
- } else {
270
- return this.send(command, optionsOrCb);
271
- }
272
- }
273
-
274
- /**
275
- * <p>Creates an archive rule for the specified analyzer. Archive rules automatically archive
276
- * new findings that meet the criteria you define when you create the rule.</p>
277
- * <p>To learn about filter keys that you can use to create an archive rule, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-reference-filter-keys.html">IAM Access Analyzer filter keys</a> in the <b>IAM User Guide</b>.</p>
278
- */
279
- public createArchiveRule(
280
- args: CreateArchiveRuleCommandInput,
281
- options?: __HttpHandlerOptions
282
- ): Promise<CreateArchiveRuleCommandOutput>;
283
- public createArchiveRule(
284
- args: CreateArchiveRuleCommandInput,
285
- cb: (err: any, data?: CreateArchiveRuleCommandOutput) => void
286
- ): void;
287
- public createArchiveRule(
288
- args: CreateArchiveRuleCommandInput,
289
- options: __HttpHandlerOptions,
290
- cb: (err: any, data?: CreateArchiveRuleCommandOutput) => void
291
- ): void;
292
- public createArchiveRule(
293
- args: CreateArchiveRuleCommandInput,
294
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateArchiveRuleCommandOutput) => void),
295
- cb?: (err: any, data?: CreateArchiveRuleCommandOutput) => void
296
- ): Promise<CreateArchiveRuleCommandOutput> | void {
297
- const command = new CreateArchiveRuleCommand(args);
298
- if (typeof optionsOrCb === "function") {
299
- this.send(command, optionsOrCb);
300
- } else if (typeof cb === "function") {
301
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
302
- this.send(command, optionsOrCb || {}, cb);
303
- } else {
304
- return this.send(command, optionsOrCb);
305
- }
306
- }
307
-
308
- /**
309
- * <p>Deletes the specified analyzer. When you delete an analyzer, IAM Access Analyzer is disabled
310
- * for the account or organization in the current or specific Region. All findings that were
311
- * generated by the analyzer are deleted. You cannot undo this action.</p>
312
- */
313
- public deleteAnalyzer(
314
- args: DeleteAnalyzerCommandInput,
315
- options?: __HttpHandlerOptions
316
- ): Promise<DeleteAnalyzerCommandOutput>;
317
- public deleteAnalyzer(
318
- args: DeleteAnalyzerCommandInput,
319
- cb: (err: any, data?: DeleteAnalyzerCommandOutput) => void
320
- ): void;
321
- public deleteAnalyzer(
322
- args: DeleteAnalyzerCommandInput,
323
- options: __HttpHandlerOptions,
324
- cb: (err: any, data?: DeleteAnalyzerCommandOutput) => void
325
- ): void;
326
- public deleteAnalyzer(
327
- args: DeleteAnalyzerCommandInput,
328
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteAnalyzerCommandOutput) => void),
329
- cb?: (err: any, data?: DeleteAnalyzerCommandOutput) => void
330
- ): Promise<DeleteAnalyzerCommandOutput> | void {
331
- const command = new DeleteAnalyzerCommand(args);
332
- if (typeof optionsOrCb === "function") {
333
- this.send(command, optionsOrCb);
334
- } else if (typeof cb === "function") {
335
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
336
- this.send(command, optionsOrCb || {}, cb);
337
- } else {
338
- return this.send(command, optionsOrCb);
339
- }
340
- }
341
-
342
- /**
343
- * <p>Deletes the specified archive rule.</p>
344
- */
345
- public deleteArchiveRule(
346
- args: DeleteArchiveRuleCommandInput,
347
- options?: __HttpHandlerOptions
348
- ): Promise<DeleteArchiveRuleCommandOutput>;
349
- public deleteArchiveRule(
350
- args: DeleteArchiveRuleCommandInput,
351
- cb: (err: any, data?: DeleteArchiveRuleCommandOutput) => void
352
- ): void;
353
- public deleteArchiveRule(
354
- args: DeleteArchiveRuleCommandInput,
355
- options: __HttpHandlerOptions,
356
- cb: (err: any, data?: DeleteArchiveRuleCommandOutput) => void
357
- ): void;
358
- public deleteArchiveRule(
359
- args: DeleteArchiveRuleCommandInput,
360
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteArchiveRuleCommandOutput) => void),
361
- cb?: (err: any, data?: DeleteArchiveRuleCommandOutput) => void
362
- ): Promise<DeleteArchiveRuleCommandOutput> | void {
363
- const command = new DeleteArchiveRuleCommand(args);
364
- if (typeof optionsOrCb === "function") {
365
- this.send(command, optionsOrCb);
366
- } else if (typeof cb === "function") {
367
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
368
- this.send(command, optionsOrCb || {}, cb);
369
- } else {
370
- return this.send(command, optionsOrCb);
371
- }
372
- }
373
-
374
- /**
375
- * <p>Retrieves information about an access preview for the specified analyzer.</p>
376
- */
377
- public getAccessPreview(
378
- args: GetAccessPreviewCommandInput,
379
- options?: __HttpHandlerOptions
380
- ): Promise<GetAccessPreviewCommandOutput>;
381
- public getAccessPreview(
382
- args: GetAccessPreviewCommandInput,
383
- cb: (err: any, data?: GetAccessPreviewCommandOutput) => void
384
- ): void;
385
- public getAccessPreview(
386
- args: GetAccessPreviewCommandInput,
387
- options: __HttpHandlerOptions,
388
- cb: (err: any, data?: GetAccessPreviewCommandOutput) => void
389
- ): void;
390
- public getAccessPreview(
391
- args: GetAccessPreviewCommandInput,
392
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetAccessPreviewCommandOutput) => void),
393
- cb?: (err: any, data?: GetAccessPreviewCommandOutput) => void
394
- ): Promise<GetAccessPreviewCommandOutput> | void {
395
- const command = new GetAccessPreviewCommand(args);
396
- if (typeof optionsOrCb === "function") {
397
- this.send(command, optionsOrCb);
398
- } else if (typeof cb === "function") {
399
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
400
- this.send(command, optionsOrCb || {}, cb);
401
- } else {
402
- return this.send(command, optionsOrCb);
403
- }
404
- }
405
-
406
- /**
407
- * <p>Retrieves information about a resource that was analyzed.</p>
408
- */
409
- public getAnalyzedResource(
410
- args: GetAnalyzedResourceCommandInput,
411
- options?: __HttpHandlerOptions
412
- ): Promise<GetAnalyzedResourceCommandOutput>;
413
- public getAnalyzedResource(
414
- args: GetAnalyzedResourceCommandInput,
415
- cb: (err: any, data?: GetAnalyzedResourceCommandOutput) => void
416
- ): void;
417
- public getAnalyzedResource(
418
- args: GetAnalyzedResourceCommandInput,
419
- options: __HttpHandlerOptions,
420
- cb: (err: any, data?: GetAnalyzedResourceCommandOutput) => void
421
- ): void;
422
- public getAnalyzedResource(
423
- args: GetAnalyzedResourceCommandInput,
424
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetAnalyzedResourceCommandOutput) => void),
425
- cb?: (err: any, data?: GetAnalyzedResourceCommandOutput) => void
426
- ): Promise<GetAnalyzedResourceCommandOutput> | void {
427
- const command = new GetAnalyzedResourceCommand(args);
428
- if (typeof optionsOrCb === "function") {
429
- this.send(command, optionsOrCb);
430
- } else if (typeof cb === "function") {
431
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
432
- this.send(command, optionsOrCb || {}, cb);
433
- } else {
434
- return this.send(command, optionsOrCb);
435
- }
436
- }
437
-
438
- /**
439
- * <p>Retrieves information about the specified analyzer.</p>
440
- */
441
- public getAnalyzer(args: GetAnalyzerCommandInput, options?: __HttpHandlerOptions): Promise<GetAnalyzerCommandOutput>;
442
- public getAnalyzer(args: GetAnalyzerCommandInput, cb: (err: any, data?: GetAnalyzerCommandOutput) => void): void;
443
- public getAnalyzer(
444
- args: GetAnalyzerCommandInput,
445
- options: __HttpHandlerOptions,
446
- cb: (err: any, data?: GetAnalyzerCommandOutput) => void
447
- ): void;
448
- public getAnalyzer(
449
- args: GetAnalyzerCommandInput,
450
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetAnalyzerCommandOutput) => void),
451
- cb?: (err: any, data?: GetAnalyzerCommandOutput) => void
452
- ): Promise<GetAnalyzerCommandOutput> | void {
453
- const command = new GetAnalyzerCommand(args);
454
- if (typeof optionsOrCb === "function") {
455
- this.send(command, optionsOrCb);
456
- } else if (typeof cb === "function") {
457
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
458
- this.send(command, optionsOrCb || {}, cb);
459
- } else {
460
- return this.send(command, optionsOrCb);
461
- }
462
- }
463
-
464
- /**
465
- * <p>Retrieves information about an archive rule.</p>
466
- * <p>To learn about filter keys that you can use to create an archive rule, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-reference-filter-keys.html">IAM Access Analyzer filter keys</a> in the <b>IAM User Guide</b>.</p>
467
- */
468
- public getArchiveRule(
469
- args: GetArchiveRuleCommandInput,
470
- options?: __HttpHandlerOptions
471
- ): Promise<GetArchiveRuleCommandOutput>;
472
- public getArchiveRule(
473
- args: GetArchiveRuleCommandInput,
474
- cb: (err: any, data?: GetArchiveRuleCommandOutput) => void
475
- ): void;
476
- public getArchiveRule(
477
- args: GetArchiveRuleCommandInput,
478
- options: __HttpHandlerOptions,
479
- cb: (err: any, data?: GetArchiveRuleCommandOutput) => void
480
- ): void;
481
- public getArchiveRule(
482
- args: GetArchiveRuleCommandInput,
483
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetArchiveRuleCommandOutput) => void),
484
- cb?: (err: any, data?: GetArchiveRuleCommandOutput) => void
485
- ): Promise<GetArchiveRuleCommandOutput> | void {
486
- const command = new GetArchiveRuleCommand(args);
487
- if (typeof optionsOrCb === "function") {
488
- this.send(command, optionsOrCb);
489
- } else if (typeof cb === "function") {
490
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
491
- this.send(command, optionsOrCb || {}, cb);
492
- } else {
493
- return this.send(command, optionsOrCb);
494
- }
495
- }
496
-
497
- /**
498
- * <p>Retrieves information about the specified finding.</p>
499
- */
500
- public getFinding(args: GetFindingCommandInput, options?: __HttpHandlerOptions): Promise<GetFindingCommandOutput>;
501
- public getFinding(args: GetFindingCommandInput, cb: (err: any, data?: GetFindingCommandOutput) => void): void;
502
- public getFinding(
503
- args: GetFindingCommandInput,
504
- options: __HttpHandlerOptions,
505
- cb: (err: any, data?: GetFindingCommandOutput) => void
506
- ): void;
507
- public getFinding(
508
- args: GetFindingCommandInput,
509
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetFindingCommandOutput) => void),
510
- cb?: (err: any, data?: GetFindingCommandOutput) => void
511
- ): Promise<GetFindingCommandOutput> | void {
512
- const command = new GetFindingCommand(args);
513
- if (typeof optionsOrCb === "function") {
514
- this.send(command, optionsOrCb);
515
- } else if (typeof cb === "function") {
516
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
517
- this.send(command, optionsOrCb || {}, cb);
518
- } else {
519
- return this.send(command, optionsOrCb);
520
- }
521
- }
522
-
523
- /**
524
- * <p>Retrieves the policy that was generated using <code>StartPolicyGeneration</code>.
525
- * </p>
526
- */
527
- public getGeneratedPolicy(
528
- args: GetGeneratedPolicyCommandInput,
529
- options?: __HttpHandlerOptions
530
- ): Promise<GetGeneratedPolicyCommandOutput>;
531
- public getGeneratedPolicy(
532
- args: GetGeneratedPolicyCommandInput,
533
- cb: (err: any, data?: GetGeneratedPolicyCommandOutput) => void
534
- ): void;
535
- public getGeneratedPolicy(
536
- args: GetGeneratedPolicyCommandInput,
537
- options: __HttpHandlerOptions,
538
- cb: (err: any, data?: GetGeneratedPolicyCommandOutput) => void
539
- ): void;
540
- public getGeneratedPolicy(
541
- args: GetGeneratedPolicyCommandInput,
542
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetGeneratedPolicyCommandOutput) => void),
543
- cb?: (err: any, data?: GetGeneratedPolicyCommandOutput) => void
544
- ): Promise<GetGeneratedPolicyCommandOutput> | void {
545
- const command = new GetGeneratedPolicyCommand(args);
546
- if (typeof optionsOrCb === "function") {
547
- this.send(command, optionsOrCb);
548
- } else if (typeof cb === "function") {
549
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
550
- this.send(command, optionsOrCb || {}, cb);
551
- } else {
552
- return this.send(command, optionsOrCb);
553
- }
554
- }
555
-
556
- /**
557
- * <p>Retrieves a list of access preview findings generated by the specified access
558
- * preview.</p>
559
- */
560
- public listAccessPreviewFindings(
561
- args: ListAccessPreviewFindingsCommandInput,
562
- options?: __HttpHandlerOptions
563
- ): Promise<ListAccessPreviewFindingsCommandOutput>;
564
- public listAccessPreviewFindings(
565
- args: ListAccessPreviewFindingsCommandInput,
566
- cb: (err: any, data?: ListAccessPreviewFindingsCommandOutput) => void
567
- ): void;
568
- public listAccessPreviewFindings(
569
- args: ListAccessPreviewFindingsCommandInput,
570
- options: __HttpHandlerOptions,
571
- cb: (err: any, data?: ListAccessPreviewFindingsCommandOutput) => void
572
- ): void;
573
- public listAccessPreviewFindings(
574
- args: ListAccessPreviewFindingsCommandInput,
575
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListAccessPreviewFindingsCommandOutput) => void),
576
- cb?: (err: any, data?: ListAccessPreviewFindingsCommandOutput) => void
577
- ): Promise<ListAccessPreviewFindingsCommandOutput> | void {
578
- const command = new ListAccessPreviewFindingsCommand(args);
579
- if (typeof optionsOrCb === "function") {
580
- this.send(command, optionsOrCb);
581
- } else if (typeof cb === "function") {
582
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
583
- this.send(command, optionsOrCb || {}, cb);
584
- } else {
585
- return this.send(command, optionsOrCb);
586
- }
587
- }
588
-
589
- /**
590
- * <p>Retrieves a list of access previews for the specified analyzer.</p>
591
- */
592
- public listAccessPreviews(
593
- args: ListAccessPreviewsCommandInput,
594
- options?: __HttpHandlerOptions
595
- ): Promise<ListAccessPreviewsCommandOutput>;
596
- public listAccessPreviews(
597
- args: ListAccessPreviewsCommandInput,
598
- cb: (err: any, data?: ListAccessPreviewsCommandOutput) => void
599
- ): void;
600
- public listAccessPreviews(
601
- args: ListAccessPreviewsCommandInput,
602
- options: __HttpHandlerOptions,
603
- cb: (err: any, data?: ListAccessPreviewsCommandOutput) => void
604
- ): void;
605
- public listAccessPreviews(
606
- args: ListAccessPreviewsCommandInput,
607
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListAccessPreviewsCommandOutput) => void),
608
- cb?: (err: any, data?: ListAccessPreviewsCommandOutput) => void
609
- ): Promise<ListAccessPreviewsCommandOutput> | void {
610
- const command = new ListAccessPreviewsCommand(args);
611
- if (typeof optionsOrCb === "function") {
612
- this.send(command, optionsOrCb);
613
- } else if (typeof cb === "function") {
614
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
615
- this.send(command, optionsOrCb || {}, cb);
616
- } else {
617
- return this.send(command, optionsOrCb);
618
- }
619
- }
620
-
621
- /**
622
- * <p>Retrieves a list of resources of the specified type that have been analyzed by the
623
- * specified analyzer..</p>
624
- */
625
- public listAnalyzedResources(
626
- args: ListAnalyzedResourcesCommandInput,
627
- options?: __HttpHandlerOptions
628
- ): Promise<ListAnalyzedResourcesCommandOutput>;
629
- public listAnalyzedResources(
630
- args: ListAnalyzedResourcesCommandInput,
631
- cb: (err: any, data?: ListAnalyzedResourcesCommandOutput) => void
632
- ): void;
633
- public listAnalyzedResources(
634
- args: ListAnalyzedResourcesCommandInput,
635
- options: __HttpHandlerOptions,
636
- cb: (err: any, data?: ListAnalyzedResourcesCommandOutput) => void
637
- ): void;
638
- public listAnalyzedResources(
639
- args: ListAnalyzedResourcesCommandInput,
640
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListAnalyzedResourcesCommandOutput) => void),
641
- cb?: (err: any, data?: ListAnalyzedResourcesCommandOutput) => void
642
- ): Promise<ListAnalyzedResourcesCommandOutput> | void {
643
- const command = new ListAnalyzedResourcesCommand(args);
644
- if (typeof optionsOrCb === "function") {
645
- this.send(command, optionsOrCb);
646
- } else if (typeof cb === "function") {
647
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
648
- this.send(command, optionsOrCb || {}, cb);
649
- } else {
650
- return this.send(command, optionsOrCb);
651
- }
652
- }
653
-
654
- /**
655
- * <p>Retrieves a list of analyzers.</p>
656
- */
657
- public listAnalyzers(
658
- args: ListAnalyzersCommandInput,
659
- options?: __HttpHandlerOptions
660
- ): Promise<ListAnalyzersCommandOutput>;
661
- public listAnalyzers(
662
- args: ListAnalyzersCommandInput,
663
- cb: (err: any, data?: ListAnalyzersCommandOutput) => void
664
- ): void;
665
- public listAnalyzers(
666
- args: ListAnalyzersCommandInput,
667
- options: __HttpHandlerOptions,
668
- cb: (err: any, data?: ListAnalyzersCommandOutput) => void
669
- ): void;
670
- public listAnalyzers(
671
- args: ListAnalyzersCommandInput,
672
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListAnalyzersCommandOutput) => void),
673
- cb?: (err: any, data?: ListAnalyzersCommandOutput) => void
674
- ): Promise<ListAnalyzersCommandOutput> | void {
675
- const command = new ListAnalyzersCommand(args);
676
- if (typeof optionsOrCb === "function") {
677
- this.send(command, optionsOrCb);
678
- } else if (typeof cb === "function") {
679
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
680
- this.send(command, optionsOrCb || {}, cb);
681
- } else {
682
- return this.send(command, optionsOrCb);
683
- }
684
- }
685
-
686
- /**
687
- * <p>Retrieves a list of archive rules created for the specified analyzer.</p>
688
- */
689
- public listArchiveRules(
690
- args: ListArchiveRulesCommandInput,
691
- options?: __HttpHandlerOptions
692
- ): Promise<ListArchiveRulesCommandOutput>;
693
- public listArchiveRules(
694
- args: ListArchiveRulesCommandInput,
695
- cb: (err: any, data?: ListArchiveRulesCommandOutput) => void
696
- ): void;
697
- public listArchiveRules(
698
- args: ListArchiveRulesCommandInput,
699
- options: __HttpHandlerOptions,
700
- cb: (err: any, data?: ListArchiveRulesCommandOutput) => void
701
- ): void;
702
- public listArchiveRules(
703
- args: ListArchiveRulesCommandInput,
704
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListArchiveRulesCommandOutput) => void),
705
- cb?: (err: any, data?: ListArchiveRulesCommandOutput) => void
706
- ): Promise<ListArchiveRulesCommandOutput> | void {
707
- const command = new ListArchiveRulesCommand(args);
708
- if (typeof optionsOrCb === "function") {
709
- this.send(command, optionsOrCb);
710
- } else if (typeof cb === "function") {
711
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
712
- this.send(command, optionsOrCb || {}, cb);
713
- } else {
714
- return this.send(command, optionsOrCb);
715
- }
716
- }
717
-
718
- /**
719
- * <p>Retrieves a list of findings generated by the specified analyzer.</p>
720
- * <p>To learn about filter keys that you can use to retrieve a list of findings, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-reference-filter-keys.html">IAM Access Analyzer filter keys</a> in the <b>IAM User Guide</b>.</p>
721
- */
722
- public listFindings(
723
- args: ListFindingsCommandInput,
724
- options?: __HttpHandlerOptions
725
- ): Promise<ListFindingsCommandOutput>;
726
- public listFindings(args: ListFindingsCommandInput, cb: (err: any, data?: ListFindingsCommandOutput) => void): void;
727
- public listFindings(
728
- args: ListFindingsCommandInput,
729
- options: __HttpHandlerOptions,
730
- cb: (err: any, data?: ListFindingsCommandOutput) => void
731
- ): void;
732
- public listFindings(
733
- args: ListFindingsCommandInput,
734
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListFindingsCommandOutput) => void),
735
- cb?: (err: any, data?: ListFindingsCommandOutput) => void
736
- ): Promise<ListFindingsCommandOutput> | void {
737
- const command = new ListFindingsCommand(args);
738
- if (typeof optionsOrCb === "function") {
739
- this.send(command, optionsOrCb);
740
- } else if (typeof cb === "function") {
741
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
742
- this.send(command, optionsOrCb || {}, cb);
743
- } else {
744
- return this.send(command, optionsOrCb);
745
- }
746
- }
747
-
748
- /**
749
- * <p>Lists all of the policy generations requested in the last seven days.</p>
750
- */
751
- public listPolicyGenerations(
752
- args: ListPolicyGenerationsCommandInput,
753
- options?: __HttpHandlerOptions
754
- ): Promise<ListPolicyGenerationsCommandOutput>;
755
- public listPolicyGenerations(
756
- args: ListPolicyGenerationsCommandInput,
757
- cb: (err: any, data?: ListPolicyGenerationsCommandOutput) => void
758
- ): void;
759
- public listPolicyGenerations(
760
- args: ListPolicyGenerationsCommandInput,
761
- options: __HttpHandlerOptions,
762
- cb: (err: any, data?: ListPolicyGenerationsCommandOutput) => void
763
- ): void;
764
- public listPolicyGenerations(
765
- args: ListPolicyGenerationsCommandInput,
766
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListPolicyGenerationsCommandOutput) => void),
767
- cb?: (err: any, data?: ListPolicyGenerationsCommandOutput) => void
768
- ): Promise<ListPolicyGenerationsCommandOutput> | void {
769
- const command = new ListPolicyGenerationsCommand(args);
770
- if (typeof optionsOrCb === "function") {
771
- this.send(command, optionsOrCb);
772
- } else if (typeof cb === "function") {
773
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
774
- this.send(command, optionsOrCb || {}, cb);
775
- } else {
776
- return this.send(command, optionsOrCb);
777
- }
778
- }
779
-
780
- /**
781
- * <p>Retrieves a list of tags applied to the specified resource.</p>
782
- */
783
- public listTagsForResource(
784
- args: ListTagsForResourceCommandInput,
785
- options?: __HttpHandlerOptions
786
- ): Promise<ListTagsForResourceCommandOutput>;
787
- public listTagsForResource(
788
- args: ListTagsForResourceCommandInput,
789
- cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
790
- ): void;
791
- public listTagsForResource(
792
- args: ListTagsForResourceCommandInput,
793
- options: __HttpHandlerOptions,
794
- cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
795
- ): void;
796
- public listTagsForResource(
797
- args: ListTagsForResourceCommandInput,
798
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListTagsForResourceCommandOutput) => void),
799
- cb?: (err: any, data?: ListTagsForResourceCommandOutput) => void
800
- ): Promise<ListTagsForResourceCommandOutput> | void {
801
- const command = new ListTagsForResourceCommand(args);
802
- if (typeof optionsOrCb === "function") {
803
- this.send(command, optionsOrCb);
804
- } else if (typeof cb === "function") {
805
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
806
- this.send(command, optionsOrCb || {}, cb);
807
- } else {
808
- return this.send(command, optionsOrCb);
809
- }
810
- }
811
-
812
- /**
813
- * <p>Starts the policy generation request.</p>
814
- */
815
- public startPolicyGeneration(
816
- args: StartPolicyGenerationCommandInput,
817
- options?: __HttpHandlerOptions
818
- ): Promise<StartPolicyGenerationCommandOutput>;
819
- public startPolicyGeneration(
820
- args: StartPolicyGenerationCommandInput,
821
- cb: (err: any, data?: StartPolicyGenerationCommandOutput) => void
822
- ): void;
823
- public startPolicyGeneration(
824
- args: StartPolicyGenerationCommandInput,
825
- options: __HttpHandlerOptions,
826
- cb: (err: any, data?: StartPolicyGenerationCommandOutput) => void
827
- ): void;
828
- public startPolicyGeneration(
829
- args: StartPolicyGenerationCommandInput,
830
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: StartPolicyGenerationCommandOutput) => void),
831
- cb?: (err: any, data?: StartPolicyGenerationCommandOutput) => void
832
- ): Promise<StartPolicyGenerationCommandOutput> | void {
833
- const command = new StartPolicyGenerationCommand(args);
834
- if (typeof optionsOrCb === "function") {
835
- this.send(command, optionsOrCb);
836
- } else if (typeof cb === "function") {
837
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
838
- this.send(command, optionsOrCb || {}, cb);
839
- } else {
840
- return this.send(command, optionsOrCb);
841
- }
842
- }
843
-
844
- /**
845
- * <p>Immediately starts a scan of the policies applied to the specified resource.</p>
846
- */
847
- public startResourceScan(
848
- args: StartResourceScanCommandInput,
849
- options?: __HttpHandlerOptions
850
- ): Promise<StartResourceScanCommandOutput>;
851
- public startResourceScan(
852
- args: StartResourceScanCommandInput,
853
- cb: (err: any, data?: StartResourceScanCommandOutput) => void
854
- ): void;
855
- public startResourceScan(
856
- args: StartResourceScanCommandInput,
857
- options: __HttpHandlerOptions,
858
- cb: (err: any, data?: StartResourceScanCommandOutput) => void
859
- ): void;
860
- public startResourceScan(
861
- args: StartResourceScanCommandInput,
862
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: StartResourceScanCommandOutput) => void),
863
- cb?: (err: any, data?: StartResourceScanCommandOutput) => void
864
- ): Promise<StartResourceScanCommandOutput> | void {
865
- const command = new StartResourceScanCommand(args);
866
- if (typeof optionsOrCb === "function") {
867
- this.send(command, optionsOrCb);
868
- } else if (typeof cb === "function") {
869
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
870
- this.send(command, optionsOrCb || {}, cb);
871
- } else {
872
- return this.send(command, optionsOrCb);
873
- }
874
- }
875
-
876
- /**
877
- * <p>Adds a tag to the specified resource.</p>
878
- */
879
- public tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
880
- public tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
881
- public tagResource(
882
- args: TagResourceCommandInput,
883
- options: __HttpHandlerOptions,
884
- cb: (err: any, data?: TagResourceCommandOutput) => void
885
- ): void;
886
- public tagResource(
887
- args: TagResourceCommandInput,
888
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: TagResourceCommandOutput) => void),
889
- cb?: (err: any, data?: TagResourceCommandOutput) => void
890
- ): Promise<TagResourceCommandOutput> | void {
891
- const command = new TagResourceCommand(args);
892
- if (typeof optionsOrCb === "function") {
893
- this.send(command, optionsOrCb);
894
- } else if (typeof cb === "function") {
895
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
896
- this.send(command, optionsOrCb || {}, cb);
897
- } else {
898
- return this.send(command, optionsOrCb);
899
- }
900
- }
901
-
902
- /**
903
- * <p>Removes a tag from the specified resource.</p>
904
- */
905
- public untagResource(
906
- args: UntagResourceCommandInput,
907
- options?: __HttpHandlerOptions
908
- ): Promise<UntagResourceCommandOutput>;
909
- public untagResource(
910
- args: UntagResourceCommandInput,
911
- cb: (err: any, data?: UntagResourceCommandOutput) => void
912
- ): void;
913
- public untagResource(
914
- args: UntagResourceCommandInput,
915
- options: __HttpHandlerOptions,
916
- cb: (err: any, data?: UntagResourceCommandOutput) => void
917
- ): void;
918
- public untagResource(
919
- args: UntagResourceCommandInput,
920
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UntagResourceCommandOutput) => void),
921
- cb?: (err: any, data?: UntagResourceCommandOutput) => void
922
- ): Promise<UntagResourceCommandOutput> | void {
923
- const command = new UntagResourceCommand(args);
924
- if (typeof optionsOrCb === "function") {
925
- this.send(command, optionsOrCb);
926
- } else if (typeof cb === "function") {
927
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
928
- this.send(command, optionsOrCb || {}, cb);
929
- } else {
930
- return this.send(command, optionsOrCb);
931
- }
932
- }
933
-
934
- /**
935
- * <p>Updates the criteria and values for the specified archive rule.</p>
936
- */
937
- public updateArchiveRule(
938
- args: UpdateArchiveRuleCommandInput,
939
- options?: __HttpHandlerOptions
940
- ): Promise<UpdateArchiveRuleCommandOutput>;
941
- public updateArchiveRule(
942
- args: UpdateArchiveRuleCommandInput,
943
- cb: (err: any, data?: UpdateArchiveRuleCommandOutput) => void
944
- ): void;
945
- public updateArchiveRule(
946
- args: UpdateArchiveRuleCommandInput,
947
- options: __HttpHandlerOptions,
948
- cb: (err: any, data?: UpdateArchiveRuleCommandOutput) => void
949
- ): void;
950
- public updateArchiveRule(
951
- args: UpdateArchiveRuleCommandInput,
952
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateArchiveRuleCommandOutput) => void),
953
- cb?: (err: any, data?: UpdateArchiveRuleCommandOutput) => void
954
- ): Promise<UpdateArchiveRuleCommandOutput> | void {
955
- const command = new UpdateArchiveRuleCommand(args);
956
- if (typeof optionsOrCb === "function") {
957
- this.send(command, optionsOrCb);
958
- } else if (typeof cb === "function") {
959
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
960
- this.send(command, optionsOrCb || {}, cb);
961
- } else {
962
- return this.send(command, optionsOrCb);
963
- }
964
- }
965
-
966
- /**
967
- * <p>Updates the status for the specified findings.</p>
968
- */
969
- public updateFindings(
970
- args: UpdateFindingsCommandInput,
971
- options?: __HttpHandlerOptions
972
- ): Promise<UpdateFindingsCommandOutput>;
973
- public updateFindings(
974
- args: UpdateFindingsCommandInput,
975
- cb: (err: any, data?: UpdateFindingsCommandOutput) => void
976
- ): void;
977
- public updateFindings(
978
- args: UpdateFindingsCommandInput,
979
- options: __HttpHandlerOptions,
980
- cb: (err: any, data?: UpdateFindingsCommandOutput) => void
981
- ): void;
982
- public updateFindings(
983
- args: UpdateFindingsCommandInput,
984
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateFindingsCommandOutput) => void),
985
- cb?: (err: any, data?: UpdateFindingsCommandOutput) => void
986
- ): Promise<UpdateFindingsCommandOutput> | void {
987
- const command = new UpdateFindingsCommand(args);
988
- if (typeof optionsOrCb === "function") {
989
- this.send(command, optionsOrCb);
990
- } else if (typeof cb === "function") {
991
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
992
- this.send(command, optionsOrCb || {}, cb);
993
- } else {
994
- return this.send(command, optionsOrCb);
995
- }
996
- }
997
-
998
- /**
999
- * <p>Requests the validation of a policy and returns a list of findings. The findings help
1000
- * you identify issues and provide actionable recommendations to resolve the issue and enable
1001
- * you to author functional policies that meet security best practices. </p>
1002
- */
1003
- public validatePolicy(
1004
- args: ValidatePolicyCommandInput,
1005
- options?: __HttpHandlerOptions
1006
- ): Promise<ValidatePolicyCommandOutput>;
1007
- public validatePolicy(
1008
- args: ValidatePolicyCommandInput,
1009
- cb: (err: any, data?: ValidatePolicyCommandOutput) => void
1010
- ): void;
1011
- public validatePolicy(
1012
- args: ValidatePolicyCommandInput,
1013
- options: __HttpHandlerOptions,
1014
- cb: (err: any, data?: ValidatePolicyCommandOutput) => void
1015
- ): void;
1016
- public validatePolicy(
1017
- args: ValidatePolicyCommandInput,
1018
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ValidatePolicyCommandOutput) => void),
1019
- cb?: (err: any, data?: ValidatePolicyCommandOutput) => void
1020
- ): Promise<ValidatePolicyCommandOutput> | void {
1021
- const command = new ValidatePolicyCommand(args);
1022
- if (typeof optionsOrCb === "function") {
1023
- this.send(command, optionsOrCb);
1024
- } else if (typeof cb === "function") {
1025
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1026
- this.send(command, optionsOrCb || {}, cb);
1027
- } else {
1028
- return this.send(command, optionsOrCb);
1029
- }
1030
- }
1031
- }