@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
@@ -1,2899 +0,0 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
2
- /**
3
- * <p>You do not have sufficient access to perform this action.</p>
4
- */
5
- export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
6
- name: "AccessDeniedException";
7
- $fault: "client";
8
- message: string | undefined;
9
- }
10
- export declare namespace AccessDeniedException {
11
- /**
12
- * @internal
13
- */
14
- const filterSensitiveLog: (obj: AccessDeniedException) => any;
15
- }
16
- /**
17
- * <p>A conflict exception error.</p>
18
- */
19
- export interface ConflictException extends __SmithyException, $MetadataBearer {
20
- name: "ConflictException";
21
- $fault: "client";
22
- message: string | undefined;
23
- /**
24
- * <p>The ID of the resource.</p>
25
- */
26
- resourceId: string | undefined;
27
- /**
28
- * <p>The resource type.</p>
29
- */
30
- resourceType: string | undefined;
31
- }
32
- export declare namespace ConflictException {
33
- /**
34
- * @internal
35
- */
36
- const filterSensitiveLog: (obj: ConflictException) => any;
37
- }
38
- /**
39
- * <p>The criteria to use in the filter that defines the archive rule.</p>
40
- */
41
- export interface Criterion {
42
- /**
43
- * <p>An "equals" operator to match for the filter used to create the rule.</p>
44
- */
45
- eq?: string[];
46
- /**
47
- * <p>A "not equals" operator to match for the filter used to create the rule.</p>
48
- */
49
- neq?: string[];
50
- /**
51
- * <p>A "contains" operator to match for the filter used to create the rule.</p>
52
- */
53
- contains?: string[];
54
- /**
55
- * <p>An "exists" operator to match for the filter used to create the rule. </p>
56
- */
57
- exists?: boolean;
58
- }
59
- export declare namespace Criterion {
60
- /**
61
- * @internal
62
- */
63
- const filterSensitiveLog: (obj: Criterion) => any;
64
- }
65
- /**
66
- * <p>Creates an archive rule.</p>
67
- */
68
- export interface CreateArchiveRuleRequest {
69
- /**
70
- * <p>The name of the created analyzer.</p>
71
- */
72
- analyzerName: string | undefined;
73
- /**
74
- * <p>The name of the rule to create.</p>
75
- */
76
- ruleName: string | undefined;
77
- /**
78
- * <p>The criteria for the rule.</p>
79
- */
80
- filter: {
81
- [key: string]: Criterion;
82
- } | undefined;
83
- /**
84
- * <p>A client token.</p>
85
- */
86
- clientToken?: string;
87
- }
88
- export declare namespace CreateArchiveRuleRequest {
89
- /**
90
- * @internal
91
- */
92
- const filterSensitiveLog: (obj: CreateArchiveRuleRequest) => any;
93
- }
94
- /**
95
- * <p>Internal server error.</p>
96
- */
97
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
98
- name: "InternalServerException";
99
- $fault: "server";
100
- $retryable: {};
101
- message: string | undefined;
102
- /**
103
- * <p>The seconds to wait to retry.</p>
104
- */
105
- retryAfterSeconds?: number;
106
- }
107
- export declare namespace InternalServerException {
108
- /**
109
- * @internal
110
- */
111
- const filterSensitiveLog: (obj: InternalServerException) => any;
112
- }
113
- /**
114
- * <p>The specified resource could not be found.</p>
115
- */
116
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
117
- name: "ResourceNotFoundException";
118
- $fault: "client";
119
- message: string | undefined;
120
- /**
121
- * <p>The ID of the resource.</p>
122
- */
123
- resourceId: string | undefined;
124
- /**
125
- * <p>The type of the resource.</p>
126
- */
127
- resourceType: string | undefined;
128
- }
129
- export declare namespace ResourceNotFoundException {
130
- /**
131
- * @internal
132
- */
133
- const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
134
- }
135
- /**
136
- * <p>Service quote met error.</p>
137
- */
138
- export interface ServiceQuotaExceededException extends __SmithyException, $MetadataBearer {
139
- name: "ServiceQuotaExceededException";
140
- $fault: "client";
141
- message: string | undefined;
142
- /**
143
- * <p>The resource ID.</p>
144
- */
145
- resourceId: string | undefined;
146
- /**
147
- * <p>The resource type.</p>
148
- */
149
- resourceType: string | undefined;
150
- }
151
- export declare namespace ServiceQuotaExceededException {
152
- /**
153
- * @internal
154
- */
155
- const filterSensitiveLog: (obj: ServiceQuotaExceededException) => any;
156
- }
157
- /**
158
- * <p>Throttling limit exceeded error.</p>
159
- */
160
- export interface ThrottlingException extends __SmithyException, $MetadataBearer {
161
- name: "ThrottlingException";
162
- $fault: "client";
163
- $retryable: {
164
- throttling: true;
165
- };
166
- message: string | undefined;
167
- /**
168
- * <p>The seconds to wait to retry.</p>
169
- */
170
- retryAfterSeconds?: number;
171
- }
172
- export declare namespace ThrottlingException {
173
- /**
174
- * @internal
175
- */
176
- const filterSensitiveLog: (obj: ThrottlingException) => any;
177
- }
178
- /**
179
- * <p>Contains information about a validation exception.</p>
180
- */
181
- export interface ValidationExceptionField {
182
- /**
183
- * <p>The name of the validation exception.</p>
184
- */
185
- name: string | undefined;
186
- /**
187
- * <p>A message about the validation exception.</p>
188
- */
189
- message: string | undefined;
190
- }
191
- export declare namespace ValidationExceptionField {
192
- /**
193
- * @internal
194
- */
195
- const filterSensitiveLog: (obj: ValidationExceptionField) => any;
196
- }
197
- export declare enum ValidationExceptionReason {
198
- CANNOT_PARSE = "cannotParse",
199
- FIELD_VALIDATION_FAILED = "fieldValidationFailed",
200
- OTHER = "other",
201
- UNKNOWN_OPERATION = "unknownOperation"
202
- }
203
- /**
204
- * <p>Validation exception error.</p>
205
- */
206
- export interface ValidationException extends __SmithyException, $MetadataBearer {
207
- name: "ValidationException";
208
- $fault: "client";
209
- message: string | undefined;
210
- /**
211
- * <p>The reason for the exception.</p>
212
- */
213
- reason: ValidationExceptionReason | string | undefined;
214
- /**
215
- * <p>A list of fields that didn't validate.</p>
216
- */
217
- fieldList?: ValidationExceptionField[];
218
- }
219
- export declare namespace ValidationException {
220
- /**
221
- * @internal
222
- */
223
- const filterSensitiveLog: (obj: ValidationException) => any;
224
- }
225
- /**
226
- * <p>Deletes an archive rule.</p>
227
- */
228
- export interface DeleteArchiveRuleRequest {
229
- /**
230
- * <p>The name of the analyzer that associated with the archive rule to delete.</p>
231
- */
232
- analyzerName: string | undefined;
233
- /**
234
- * <p>The name of the rule to delete.</p>
235
- */
236
- ruleName: string | undefined;
237
- /**
238
- * <p>A client token.</p>
239
- */
240
- clientToken?: string;
241
- }
242
- export declare namespace DeleteArchiveRuleRequest {
243
- /**
244
- * @internal
245
- */
246
- const filterSensitiveLog: (obj: DeleteArchiveRuleRequest) => any;
247
- }
248
- /**
249
- * <p>Retrieves an archive rule.</p>
250
- */
251
- export interface GetArchiveRuleRequest {
252
- /**
253
- * <p>The name of the analyzer to retrieve rules from.</p>
254
- */
255
- analyzerName: string | undefined;
256
- /**
257
- * <p>The name of the rule to retrieve.</p>
258
- */
259
- ruleName: string | undefined;
260
- }
261
- export declare namespace GetArchiveRuleRequest {
262
- /**
263
- * @internal
264
- */
265
- const filterSensitiveLog: (obj: GetArchiveRuleRequest) => any;
266
- }
267
- /**
268
- * <p>Contains information about an archive rule.</p>
269
- */
270
- export interface ArchiveRuleSummary {
271
- /**
272
- * <p>The name of the archive rule.</p>
273
- */
274
- ruleName: string | undefined;
275
- /**
276
- * <p>A filter used to define the archive rule.</p>
277
- */
278
- filter: {
279
- [key: string]: Criterion;
280
- } | undefined;
281
- /**
282
- * <p>The time at which the archive rule was created.</p>
283
- */
284
- createdAt: Date | undefined;
285
- /**
286
- * <p>The time at which the archive rule was last updated.</p>
287
- */
288
- updatedAt: Date | undefined;
289
- }
290
- export declare namespace ArchiveRuleSummary {
291
- /**
292
- * @internal
293
- */
294
- const filterSensitiveLog: (obj: ArchiveRuleSummary) => any;
295
- }
296
- /**
297
- * <p>The response to the request.</p>
298
- */
299
- export interface GetArchiveRuleResponse {
300
- /**
301
- * <p>Contains information about an archive rule.</p>
302
- */
303
- archiveRule: ArchiveRuleSummary | undefined;
304
- }
305
- export declare namespace GetArchiveRuleResponse {
306
- /**
307
- * @internal
308
- */
309
- const filterSensitiveLog: (obj: GetArchiveRuleResponse) => any;
310
- }
311
- /**
312
- * <p>Retrieves a list of archive rules created for the specified analyzer.</p>
313
- */
314
- export interface ListArchiveRulesRequest {
315
- /**
316
- * <p>The name of the analyzer to retrieve rules from.</p>
317
- */
318
- analyzerName: string | undefined;
319
- /**
320
- * <p>A token used for pagination of results returned.</p>
321
- */
322
- nextToken?: string;
323
- /**
324
- * <p>The maximum number of results to return in the request.</p>
325
- */
326
- maxResults?: number;
327
- }
328
- export declare namespace ListArchiveRulesRequest {
329
- /**
330
- * @internal
331
- */
332
- const filterSensitiveLog: (obj: ListArchiveRulesRequest) => any;
333
- }
334
- /**
335
- * <p>The response to the request.</p>
336
- */
337
- export interface ListArchiveRulesResponse {
338
- /**
339
- * <p>A list of archive rules created for the specified analyzer.</p>
340
- */
341
- archiveRules: ArchiveRuleSummary[] | undefined;
342
- /**
343
- * <p>A token used for pagination of results returned.</p>
344
- */
345
- nextToken?: string;
346
- }
347
- export declare namespace ListArchiveRulesResponse {
348
- /**
349
- * @internal
350
- */
351
- const filterSensitiveLog: (obj: ListArchiveRulesResponse) => any;
352
- }
353
- /**
354
- * <p>Updates the specified archive rule.</p>
355
- */
356
- export interface UpdateArchiveRuleRequest {
357
- /**
358
- * <p>The name of the analyzer to update the archive rules for.</p>
359
- */
360
- analyzerName: string | undefined;
361
- /**
362
- * <p>The name of the rule to update.</p>
363
- */
364
- ruleName: string | undefined;
365
- /**
366
- * <p>A filter to match for the rules to update. Only rules that match the filter are
367
- * updated.</p>
368
- */
369
- filter: {
370
- [key: string]: Criterion;
371
- } | undefined;
372
- /**
373
- * <p>A client token.</p>
374
- */
375
- clientToken?: string;
376
- }
377
- export declare namespace UpdateArchiveRuleRequest {
378
- /**
379
- * @internal
380
- */
381
- const filterSensitiveLog: (obj: UpdateArchiveRuleRequest) => any;
382
- }
383
- /**
384
- * <p>An criterion statement in an archive rule. Each archive rule may have multiple
385
- * criteria.</p>
386
- */
387
- export interface InlineArchiveRule {
388
- /**
389
- * <p>The name of the rule.</p>
390
- */
391
- ruleName: string | undefined;
392
- /**
393
- * <p>The condition and values for a criterion.</p>
394
- */
395
- filter: {
396
- [key: string]: Criterion;
397
- } | undefined;
398
- }
399
- export declare namespace InlineArchiveRule {
400
- /**
401
- * @internal
402
- */
403
- const filterSensitiveLog: (obj: InlineArchiveRule) => any;
404
- }
405
- export declare type Type = "ACCOUNT" | "ORGANIZATION";
406
- /**
407
- * <p>Creates an analyzer.</p>
408
- */
409
- export interface CreateAnalyzerRequest {
410
- /**
411
- * <p>The name of the analyzer to create.</p>
412
- */
413
- analyzerName: string | undefined;
414
- /**
415
- * <p>The type of analyzer to create. Only ACCOUNT and ORGANIZATION analyzers are supported.
416
- * You can create only one analyzer per account per Region. You can create up to 5 analyzers
417
- * per organization per Region.</p>
418
- */
419
- type: Type | string | undefined;
420
- /**
421
- * <p>Specifies the archive rules to add for the analyzer. Archive rules automatically archive
422
- * findings that meet the criteria you define for the rule.</p>
423
- */
424
- archiveRules?: InlineArchiveRule[];
425
- /**
426
- * <p>The tags to apply to the analyzer.</p>
427
- */
428
- tags?: {
429
- [key: string]: string;
430
- };
431
- /**
432
- * <p>A client token.</p>
433
- */
434
- clientToken?: string;
435
- }
436
- export declare namespace CreateAnalyzerRequest {
437
- /**
438
- * @internal
439
- */
440
- const filterSensitiveLog: (obj: CreateAnalyzerRequest) => any;
441
- }
442
- /**
443
- * <p>The response to the request to create an analyzer.</p>
444
- */
445
- export interface CreateAnalyzerResponse {
446
- /**
447
- * <p>The ARN of the analyzer that was created by the request.</p>
448
- */
449
- arn?: string;
450
- }
451
- export declare namespace CreateAnalyzerResponse {
452
- /**
453
- * @internal
454
- */
455
- const filterSensitiveLog: (obj: CreateAnalyzerResponse) => any;
456
- }
457
- /**
458
- * <p>Deletes an analyzer.</p>
459
- */
460
- export interface DeleteAnalyzerRequest {
461
- /**
462
- * <p>The name of the analyzer to delete.</p>
463
- */
464
- analyzerName: string | undefined;
465
- /**
466
- * <p>A client token.</p>
467
- */
468
- clientToken?: string;
469
- }
470
- export declare namespace DeleteAnalyzerRequest {
471
- /**
472
- * @internal
473
- */
474
- const filterSensitiveLog: (obj: DeleteAnalyzerRequest) => any;
475
- }
476
- /**
477
- * <p>Retrieves an analyzer.</p>
478
- */
479
- export interface GetAnalyzerRequest {
480
- /**
481
- * <p>The name of the analyzer retrieved.</p>
482
- */
483
- analyzerName: string | undefined;
484
- }
485
- export declare namespace GetAnalyzerRequest {
486
- /**
487
- * @internal
488
- */
489
- const filterSensitiveLog: (obj: GetAnalyzerRequest) => any;
490
- }
491
- export declare type AnalyzerStatus = "ACTIVE" | "CREATING" | "DISABLED" | "FAILED";
492
- export declare type ReasonCode = "AWS_SERVICE_ACCESS_DISABLED" | "DELEGATED_ADMINISTRATOR_DEREGISTERED" | "ORGANIZATION_DELETED" | "SERVICE_LINKED_ROLE_CREATION_FAILED";
493
- /**
494
- * <p>Provides more details about the current status of the analyzer. For example, if the
495
- * creation for the analyzer fails, a <code>Failed</code> status is returned. For an analyzer
496
- * with organization as the type, this failure can be due to an issue with creating the
497
- * service-linked roles required in the member accounts of the Amazon Web Services organization.</p>
498
- */
499
- export interface StatusReason {
500
- /**
501
- * <p>The reason code for the current status of the analyzer.</p>
502
- */
503
- code: ReasonCode | string | undefined;
504
- }
505
- export declare namespace StatusReason {
506
- /**
507
- * @internal
508
- */
509
- const filterSensitiveLog: (obj: StatusReason) => any;
510
- }
511
- /**
512
- * <p>Contains information about the analyzer.</p>
513
- */
514
- export interface AnalyzerSummary {
515
- /**
516
- * <p>The ARN of the analyzer.</p>
517
- */
518
- arn: string | undefined;
519
- /**
520
- * <p>The name of the analyzer.</p>
521
- */
522
- name: string | undefined;
523
- /**
524
- * <p>The type of analyzer, which corresponds to the zone of trust chosen for the
525
- * analyzer.</p>
526
- */
527
- type: Type | string | undefined;
528
- /**
529
- * <p>A timestamp for the time at which the analyzer was created.</p>
530
- */
531
- createdAt: Date | undefined;
532
- /**
533
- * <p>The resource that was most recently analyzed by the analyzer.</p>
534
- */
535
- lastResourceAnalyzed?: string;
536
- /**
537
- * <p>The time at which the most recently analyzed resource was analyzed.</p>
538
- */
539
- lastResourceAnalyzedAt?: Date;
540
- /**
541
- * <p>The tags added to the analyzer.</p>
542
- */
543
- tags?: {
544
- [key: string]: string;
545
- };
546
- /**
547
- * <p>The status of the analyzer. An <code>Active</code> analyzer successfully monitors
548
- * supported resources and generates new findings. The analyzer is <code>Disabled</code> when
549
- * a user action, such as removing trusted access for Identity and Access Management Access Analyzer from Organizations, causes
550
- * the analyzer to stop generating new findings. The status is <code>Creating</code> when the
551
- * analyzer creation is in progress and <code>Failed</code> when the analyzer creation has
552
- * failed. </p>
553
- */
554
- status: AnalyzerStatus | string | undefined;
555
- /**
556
- * <p>The <code>statusReason</code> provides more details about the current status of the
557
- * analyzer. For example, if the creation for the analyzer fails, a <code>Failed</code> status
558
- * is returned. For an analyzer with organization as the type, this failure can be due to an
559
- * issue with creating the service-linked roles required in the member accounts of the Amazon Web Services
560
- * organization.</p>
561
- */
562
- statusReason?: StatusReason;
563
- }
564
- export declare namespace AnalyzerSummary {
565
- /**
566
- * @internal
567
- */
568
- const filterSensitiveLog: (obj: AnalyzerSummary) => any;
569
- }
570
- /**
571
- * <p>The response to the request.</p>
572
- */
573
- export interface GetAnalyzerResponse {
574
- /**
575
- * <p>An <code>AnalyzerSummary</code> object that contains information about the
576
- * analyzer.</p>
577
- */
578
- analyzer: AnalyzerSummary | undefined;
579
- }
580
- export declare namespace GetAnalyzerResponse {
581
- /**
582
- * @internal
583
- */
584
- const filterSensitiveLog: (obj: GetAnalyzerResponse) => any;
585
- }
586
- /**
587
- * <p>Retrieves a list of analyzers.</p>
588
- */
589
- export interface ListAnalyzersRequest {
590
- /**
591
- * <p>A token used for pagination of results returned.</p>
592
- */
593
- nextToken?: string;
594
- /**
595
- * <p>The maximum number of results to return in the response.</p>
596
- */
597
- maxResults?: number;
598
- /**
599
- * <p>The type of analyzer.</p>
600
- */
601
- type?: Type | string;
602
- }
603
- export declare namespace ListAnalyzersRequest {
604
- /**
605
- * @internal
606
- */
607
- const filterSensitiveLog: (obj: ListAnalyzersRequest) => any;
608
- }
609
- /**
610
- * <p>The response to the request.</p>
611
- */
612
- export interface ListAnalyzersResponse {
613
- /**
614
- * <p>The analyzers retrieved.</p>
615
- */
616
- analyzers: AnalyzerSummary[] | undefined;
617
- /**
618
- * <p>A token used for pagination of results returned.</p>
619
- */
620
- nextToken?: string;
621
- }
622
- export declare namespace ListAnalyzersResponse {
623
- /**
624
- * @internal
625
- */
626
- const filterSensitiveLog: (obj: ListAnalyzersResponse) => any;
627
- }
628
- /**
629
- * <p>Retroactively applies an archive rule.</p>
630
- */
631
- export interface ApplyArchiveRuleRequest {
632
- /**
633
- * <p>The Amazon resource name (ARN) of the analyzer.</p>
634
- */
635
- analyzerArn: string | undefined;
636
- /**
637
- * <p>The name of the rule to apply.</p>
638
- */
639
- ruleName: string | undefined;
640
- /**
641
- * <p>A client token.</p>
642
- */
643
- clientToken?: string;
644
- }
645
- export declare namespace ApplyArchiveRuleRequest {
646
- /**
647
- * @internal
648
- */
649
- const filterSensitiveLog: (obj: ApplyArchiveRuleRequest) => any;
650
- }
651
- export interface CancelPolicyGenerationRequest {
652
- /**
653
- * <p>The <code>JobId</code> that is returned by the <code>StartPolicyGeneration</code>
654
- * operation. The <code>JobId</code> can be used with <code>GetGeneratedPolicy</code> to
655
- * retrieve the generated policies or used with <code>CancelPolicyGeneration</code> to cancel
656
- * the policy generation request.</p>
657
- */
658
- jobId: string | undefined;
659
- }
660
- export declare namespace CancelPolicyGenerationRequest {
661
- /**
662
- * @internal
663
- */
664
- const filterSensitiveLog: (obj: CancelPolicyGenerationRequest) => any;
665
- }
666
- export interface CancelPolicyGenerationResponse {
667
- }
668
- export declare namespace CancelPolicyGenerationResponse {
669
- /**
670
- * @internal
671
- */
672
- const filterSensitiveLog: (obj: CancelPolicyGenerationResponse) => any;
673
- }
674
- /**
675
- * <p>The proposed access control configuration for an IAM role. You can propose a
676
- * configuration for a new IAM role or an existing IAM role that you own by specifying the
677
- * trust policy. If the configuration is for a new IAM role, you must specify the trust
678
- * policy. If the configuration is for an existing IAM role that you own and you do not
679
- * propose the trust policy, the access preview uses the existing trust policy for the role.
680
- * The proposed trust policy cannot be an empty string. For more information about role trust
681
- * policy limits, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-quotas.html">IAM and STS
682
- * quotas</a>.</p>
683
- */
684
- export interface IamRoleConfiguration {
685
- /**
686
- * <p>The proposed trust policy for the IAM role.</p>
687
- */
688
- trustPolicy?: string;
689
- }
690
- export declare namespace IamRoleConfiguration {
691
- /**
692
- * @internal
693
- */
694
- const filterSensitiveLog: (obj: IamRoleConfiguration) => any;
695
- }
696
- /**
697
- * <p>Use this structure to propose allowing <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">cryptographic
698
- * operations</a> in the grant only when the operation request includes the specified
699
- * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">encryption
700
- * context</a>. You can specify only one type of encryption context. An empty map is
701
- * treated as not specified. For more information, see <a href="https://docs.aws.amazon.com/kms/latest/APIReference/API_GrantConstraints.html">GrantConstraints</a>.</p>
702
- */
703
- export interface KmsGrantConstraints {
704
- /**
705
- * <p>A list of key-value pairs that must match the encryption context in the <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">cryptographic
706
- * operation</a> request. The grant allows the operation only when the encryption
707
- * context in the request is the same as the encryption context specified in this
708
- * constraint.</p>
709
- */
710
- encryptionContextEquals?: {
711
- [key: string]: string;
712
- };
713
- /**
714
- * <p>A list of key-value pairs that must be included in the encryption context of the <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">cryptographic
715
- * operation</a> request. The grant allows the cryptographic operation only when the
716
- * encryption context in the request includes the key-value pairs specified in this
717
- * constraint, although it can include additional key-value pairs.</p>
718
- */
719
- encryptionContextSubset?: {
720
- [key: string]: string;
721
- };
722
- }
723
- export declare namespace KmsGrantConstraints {
724
- /**
725
- * @internal
726
- */
727
- const filterSensitiveLog: (obj: KmsGrantConstraints) => any;
728
- }
729
- export declare enum KmsGrantOperation {
730
- CREATE_GRANT = "CreateGrant",
731
- DECRYPT = "Decrypt",
732
- DESCRIBE_KEY = "DescribeKey",
733
- ENCRYPT = "Encrypt",
734
- GENERATE_DATA_KEY = "GenerateDataKey",
735
- GENERATE_DATA_KEY_PAIR = "GenerateDataKeyPair",
736
- GENERATE_DATA_KEY_PAIR_WITHOUT_PLAINTEXT = "GenerateDataKeyPairWithoutPlaintext",
737
- GENERATE_DATA_KEY_WITHOUT_PLAINTEXT = "GenerateDataKeyWithoutPlaintext",
738
- GET_PUBLIC_KEY = "GetPublicKey",
739
- REENCRYPT_FROM = "ReEncryptFrom",
740
- REENCRYPT_TO = "ReEncryptTo",
741
- RETIRE_GRANT = "RetireGrant",
742
- SIGN = "Sign",
743
- VERIFY = "Verify"
744
- }
745
- /**
746
- * <p>A proposed grant configuration for a KMS key. For more information, see <a href="https://docs.aws.amazon.com/kms/latest/APIReference/API_CreateGrant.html">CreateGrant</a>.</p>
747
- */
748
- export interface KmsGrantConfiguration {
749
- /**
750
- * <p>A list of operations that the grant permits.</p>
751
- */
752
- operations: (KmsGrantOperation | string)[] | undefined;
753
- /**
754
- * <p>The principal that is given permission to perform the operations that the grant
755
- * permits.</p>
756
- */
757
- granteePrincipal: string | undefined;
758
- /**
759
- * <p>The principal that is given permission to retire the grant by using <a href="https://docs.aws.amazon.com/kms/latest/APIReference/API_RetireGrant.html">RetireGrant</a> operation.</p>
760
- */
761
- retiringPrincipal?: string;
762
- /**
763
- * <p>Use this structure to propose allowing <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations">cryptographic
764
- * operations</a> in the grant only when the operation request includes the specified
765
- * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">encryption
766
- * context</a>.</p>
767
- */
768
- constraints?: KmsGrantConstraints;
769
- /**
770
- * <p> The Amazon Web Services account under which the grant was issued. The account is used to propose
771
- * KMS grants issued by accounts other than the owner of the key.</p>
772
- */
773
- issuingAccount: string | undefined;
774
- }
775
- export declare namespace KmsGrantConfiguration {
776
- /**
777
- * @internal
778
- */
779
- const filterSensitiveLog: (obj: KmsGrantConfiguration) => any;
780
- }
781
- /**
782
- * <p>Proposed access control configuration for a KMS key. You can propose a configuration
783
- * for a new KMS key or an existing KMS key that you own by specifying the key policy and
784
- * KMS grant configuration. If the configuration is for an existing key and you do not
785
- * specify the key policy, the access preview uses the existing policy for the key. If the
786
- * access preview is for a new resource and you do not specify the key policy, then the access
787
- * preview uses the default key policy. The proposed key policy cannot be an empty string. For
788
- * more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default">Default key
789
- * policy</a>. For more information about key policy limits, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/resource-limits.html">Resource
790
- * quotas</a>.</p>
791
- * <p/>
792
- */
793
- export interface KmsKeyConfiguration {
794
- /**
795
- * <p>Resource policy configuration for the KMS key. The only valid value for the name of
796
- * the key policy is <code>default</code>. For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default">Default key
797
- * policy</a>.</p>
798
- */
799
- keyPolicies?: {
800
- [key: string]: string;
801
- };
802
- /**
803
- * <p>A list of proposed grant configurations for the KMS key. If the proposed grant
804
- * configuration is for an existing key, the access preview uses the proposed list of grant
805
- * configurations in place of the existing grants. Otherwise, the access preview uses the
806
- * existing grants for the key.</p>
807
- */
808
- grants?: KmsGrantConfiguration[];
809
- }
810
- export declare namespace KmsKeyConfiguration {
811
- /**
812
- * @internal
813
- */
814
- const filterSensitiveLog: (obj: KmsKeyConfiguration) => any;
815
- }
816
- /**
817
- * <p>This configuration sets the network origin for the Amazon S3 access point or multi-region
818
- * access point to <code>Internet</code>.</p>
819
- */
820
- export interface InternetConfiguration {
821
- }
822
- export declare namespace InternetConfiguration {
823
- /**
824
- * @internal
825
- */
826
- const filterSensitiveLog: (obj: InternetConfiguration) => any;
827
- }
828
- /**
829
- * <p>The proposed virtual private cloud (VPC) configuration for the Amazon S3 access point. VPC
830
- * configuration does not apply to multi-region access points. For more information, see
831
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_VpcConfiguration.html">VpcConfiguration</a>. </p>
832
- */
833
- export interface VpcConfiguration {
834
- /**
835
- * <p> If this field is specified, this access point will only allow connections from the
836
- * specified VPC ID. </p>
837
- */
838
- vpcId: string | undefined;
839
- }
840
- export declare namespace VpcConfiguration {
841
- /**
842
- * @internal
843
- */
844
- const filterSensitiveLog: (obj: VpcConfiguration) => any;
845
- }
846
- /**
847
- * <p>The proposed <code>InternetConfiguration</code> or <code>VpcConfiguration</code> to
848
- * apply to the Amazon S3 access point. <code>VpcConfiguration</code> does not apply to
849
- * multi-region access points. You can make the access point accessible from the internet, or
850
- * you can specify that all requests made through that access point must originate from a
851
- * specific virtual private cloud (VPC). You can specify only one type of network
852
- * configuration. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/creating-access-points.html">Creating access
853
- * points</a>.</p>
854
- */
855
- export declare type NetworkOriginConfiguration = NetworkOriginConfiguration.InternetConfigurationMember | NetworkOriginConfiguration.VpcConfigurationMember | NetworkOriginConfiguration.$UnknownMember;
856
- export declare namespace NetworkOriginConfiguration {
857
- /**
858
- * <p>The proposed virtual private cloud (VPC) configuration for the Amazon S3 access point. VPC
859
- * configuration does not apply to multi-region access points. For more information, see
860
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_VpcConfiguration.html">VpcConfiguration</a>. </p>
861
- */
862
- interface VpcConfigurationMember {
863
- vpcConfiguration: VpcConfiguration;
864
- internetConfiguration?: never;
865
- $unknown?: never;
866
- }
867
- /**
868
- * <p>The configuration for the Amazon S3 access point or multi-region access point with an
869
- * <code>Internet</code> origin.</p>
870
- */
871
- interface InternetConfigurationMember {
872
- vpcConfiguration?: never;
873
- internetConfiguration: InternetConfiguration;
874
- $unknown?: never;
875
- }
876
- interface $UnknownMember {
877
- vpcConfiguration?: never;
878
- internetConfiguration?: never;
879
- $unknown: [
880
- string,
881
- any
882
- ];
883
- }
884
- interface Visitor<T> {
885
- vpcConfiguration: (value: VpcConfiguration) => T;
886
- internetConfiguration: (value: InternetConfiguration) => T;
887
- _: (name: string, value: any) => T;
888
- }
889
- const visit: <T>(value: NetworkOriginConfiguration, visitor: Visitor<T>) => T;
890
- /**
891
- * @internal
892
- */
893
- const filterSensitiveLog: (obj: NetworkOriginConfiguration) => any;
894
- }
895
- /**
896
- * <p>The <code>PublicAccessBlock</code> configuration to apply to this Amazon S3 bucket. If the
897
- * proposed configuration is for an existing Amazon S3 bucket and the configuration is not
898
- * specified, the access preview uses the existing setting. If the proposed configuration is
899
- * for a new bucket and the configuration is not specified, the access preview uses
900
- * <code>false</code>. If the proposed configuration is for a new access point or
901
- * multi-region access point and the access point BPA configuration is not specified, the
902
- * access preview uses <code>true</code>. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-publicaccessblockconfiguration.html">PublicAccessBlockConfiguration</a>. </p>
903
- */
904
- export interface S3PublicAccessBlockConfiguration {
905
- /**
906
- * <p> Specifies whether Amazon S3 should ignore public ACLs for this bucket and objects in this
907
- * bucket. </p>
908
- */
909
- ignorePublicAcls: boolean | undefined;
910
- /**
911
- * <p> Specifies whether Amazon S3 should restrict public bucket policies for this bucket. </p>
912
- */
913
- restrictPublicBuckets: boolean | undefined;
914
- }
915
- export declare namespace S3PublicAccessBlockConfiguration {
916
- /**
917
- * @internal
918
- */
919
- const filterSensitiveLog: (obj: S3PublicAccessBlockConfiguration) => any;
920
- }
921
- /**
922
- * <p>The configuration for an Amazon S3 access point or multi-region access point for the bucket.
923
- * You can propose up to 10 access points or multi-region access points per bucket. If the
924
- * proposed Amazon S3 access point configuration is for an existing bucket, the access preview uses
925
- * the proposed access point configuration in place of the existing access points. To propose
926
- * an access point without a policy, you can provide an empty string as the access point
927
- * policy. For more information, see <a href="https://docs.aws.amazon.com/https:/docs.aws.amazon.com/AmazonS3/latest/dev/creating-access-points.html">Creating access points</a>. For more information about access point policy limits,
928
- * see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/access-points-restrictions-limitations.html">Access points
929
- * restrictions and limitations</a>.</p>
930
- */
931
- export interface S3AccessPointConfiguration {
932
- /**
933
- * <p>The access point or multi-region access point policy.</p>
934
- */
935
- accessPointPolicy?: string;
936
- /**
937
- * <p>The proposed <code>S3PublicAccessBlock</code> configuration to apply to this Amazon S3 access
938
- * point or multi-region access point.</p>
939
- */
940
- publicAccessBlock?: S3PublicAccessBlockConfiguration;
941
- /**
942
- * <p>The proposed <code>Internet</code> and <code>VpcConfiguration</code> to apply to this
943
- * Amazon S3 access point. <code>VpcConfiguration</code> does not apply to multi-region access
944
- * points. If the access preview is for a new resource and neither is specified, the access
945
- * preview uses <code>Internet</code> for the network origin. If the access preview is for an
946
- * existing resource and neither is specified, the access preview uses the exiting network
947
- * origin.</p>
948
- */
949
- networkOrigin?: NetworkOriginConfiguration;
950
- }
951
- export declare namespace S3AccessPointConfiguration {
952
- /**
953
- * @internal
954
- */
955
- const filterSensitiveLog: (obj: S3AccessPointConfiguration) => any;
956
- }
957
- /**
958
- * <p>You specify each grantee as a type-value pair using one of these types. You can specify
959
- * only one type of grantee. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketAcl.html">PutBucketAcl</a>.</p>
960
- */
961
- export declare type AclGrantee = AclGrantee.IdMember | AclGrantee.UriMember | AclGrantee.$UnknownMember;
962
- export declare namespace AclGrantee {
963
- /**
964
- * <p>The value specified is the canonical user ID of an Amazon Web Services account.</p>
965
- */
966
- interface IdMember {
967
- id: string;
968
- uri?: never;
969
- $unknown?: never;
970
- }
971
- /**
972
- * <p>Used for granting permissions to a predefined group.</p>
973
- */
974
- interface UriMember {
975
- id?: never;
976
- uri: string;
977
- $unknown?: never;
978
- }
979
- interface $UnknownMember {
980
- id?: never;
981
- uri?: never;
982
- $unknown: [
983
- string,
984
- any
985
- ];
986
- }
987
- interface Visitor<T> {
988
- id: (value: string) => T;
989
- uri: (value: string) => T;
990
- _: (name: string, value: any) => T;
991
- }
992
- const visit: <T>(value: AclGrantee, visitor: Visitor<T>) => T;
993
- /**
994
- * @internal
995
- */
996
- const filterSensitiveLog: (obj: AclGrantee) => any;
997
- }
998
- export declare enum AclPermission {
999
- FULL_CONTROL = "FULL_CONTROL",
1000
- READ = "READ",
1001
- READ_ACP = "READ_ACP",
1002
- WRITE = "WRITE",
1003
- WRITE_ACP = "WRITE_ACP"
1004
- }
1005
- /**
1006
- * <p>A proposed access control list grant configuration for an Amazon S3 bucket. For more
1007
- * information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#setting-acls">How to Specify an
1008
- * ACL</a>.</p>
1009
- */
1010
- export interface S3BucketAclGrantConfiguration {
1011
- /**
1012
- * <p>The permissions being granted.</p>
1013
- */
1014
- permission: AclPermission | string | undefined;
1015
- /**
1016
- * <p>The grantee to whom you’re assigning access rights.</p>
1017
- */
1018
- grantee: AclGrantee | undefined;
1019
- }
1020
- export declare namespace S3BucketAclGrantConfiguration {
1021
- /**
1022
- * @internal
1023
- */
1024
- const filterSensitiveLog: (obj: S3BucketAclGrantConfiguration) => any;
1025
- }
1026
- /**
1027
- * <p>Proposed access control configuration for an Amazon S3 bucket. You can propose a
1028
- * configuration for a new Amazon S3 bucket or an existing Amazon S3 bucket that you own by specifying
1029
- * the Amazon S3 bucket policy, bucket ACLs, bucket BPA settings, Amazon S3 access points, and
1030
- * multi-region access points attached to the bucket. If the configuration is for an existing
1031
- * Amazon S3 bucket and you do not specify the Amazon S3 bucket policy, the access preview uses the
1032
- * existing policy attached to the bucket. If the access preview is for a new resource and you
1033
- * do not specify the Amazon S3 bucket policy, the access preview assumes a bucket without a
1034
- * policy. To propose deletion of an existing bucket policy, you can specify an empty string.
1035
- * For more information about bucket policy limits, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/example-bucket-policies.html">Bucket Policy
1036
- * Examples</a>.</p>
1037
- */
1038
- export interface S3BucketConfiguration {
1039
- /**
1040
- * <p>The proposed bucket policy for the Amazon S3 bucket.</p>
1041
- */
1042
- bucketPolicy?: string;
1043
- /**
1044
- * <p>The proposed list of ACL grants for the Amazon S3 bucket. You can propose up to 100 ACL
1045
- * grants per bucket. If the proposed grant configuration is for an existing bucket, the
1046
- * access preview uses the proposed list of grant configurations in place of the existing
1047
- * grants. Otherwise, the access preview uses the existing grants for the bucket.</p>
1048
- */
1049
- bucketAclGrants?: S3BucketAclGrantConfiguration[];
1050
- /**
1051
- * <p>The proposed block public access configuration for the Amazon S3 bucket.</p>
1052
- */
1053
- bucketPublicAccessBlock?: S3PublicAccessBlockConfiguration;
1054
- /**
1055
- * <p>The configuration of Amazon S3 access points or multi-region access points for the bucket.
1056
- * You can propose up to 10 new access points per bucket.</p>
1057
- */
1058
- accessPoints?: {
1059
- [key: string]: S3AccessPointConfiguration;
1060
- };
1061
- }
1062
- export declare namespace S3BucketConfiguration {
1063
- /**
1064
- * @internal
1065
- */
1066
- const filterSensitiveLog: (obj: S3BucketConfiguration) => any;
1067
- }
1068
- /**
1069
- * <p>The configuration for a Secrets Manager secret. For more information, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_CreateSecret.html">CreateSecret</a>.</p>
1070
- * <p>You can propose a configuration for a new secret or an existing secret that you own by
1071
- * specifying the secret policy and optional KMS encryption key. If the configuration is for
1072
- * an existing secret and you do not specify the secret policy, the access preview uses the
1073
- * existing policy for the secret. If the access preview is for a new resource and you do not
1074
- * specify the policy, the access preview assumes a secret without a policy. To propose
1075
- * deletion of an existing policy, you can specify an empty string. If the proposed
1076
- * configuration is for a new secret and you do not specify the KMS key ID, the access
1077
- * preview uses the default CMK of the Amazon Web Services account. If you specify an empty string for the
1078
- * KMS key ID, the access preview uses the default CMK of the Amazon Web Services account. For more
1079
- * information about secret policy limits, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_limits.html">Quotas for
1080
- * Secrets Manager.</a>.</p>
1081
- */
1082
- export interface SecretsManagerSecretConfiguration {
1083
- /**
1084
- * <p>The proposed ARN, key ID, or alias of the KMS customer master key (CMK).</p>
1085
- */
1086
- kmsKeyId?: string;
1087
- /**
1088
- * <p>The proposed resource policy defining who can access or manage the secret.</p>
1089
- */
1090
- secretPolicy?: string;
1091
- }
1092
- export declare namespace SecretsManagerSecretConfiguration {
1093
- /**
1094
- * @internal
1095
- */
1096
- const filterSensitiveLog: (obj: SecretsManagerSecretConfiguration) => any;
1097
- }
1098
- /**
1099
- * <p>The proposed access control configuration for an Amazon SQS queue. You can propose a
1100
- * configuration for a new Amazon SQS queue or an existing Amazon SQS queue that you own by specifying
1101
- * the Amazon SQS policy. If the configuration is for an existing Amazon SQS queue and you do not
1102
- * specify the Amazon SQS policy, the access preview uses the existing Amazon SQS policy for the queue.
1103
- * If the access preview is for a new resource and you do not specify the policy, the access
1104
- * preview assumes an Amazon SQS queue without a policy. To propose deletion of an existing Amazon SQS
1105
- * queue policy, you can specify an empty string for the Amazon SQS policy. For more information
1106
- * about Amazon SQS policy limits, see <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/quotas-policies.html">Quotas related
1107
- * to policies</a>.</p>
1108
- */
1109
- export interface SqsQueueConfiguration {
1110
- /**
1111
- * <p> The proposed resource policy for the Amazon SQS queue. </p>
1112
- */
1113
- queuePolicy?: string;
1114
- }
1115
- export declare namespace SqsQueueConfiguration {
1116
- /**
1117
- * @internal
1118
- */
1119
- const filterSensitiveLog: (obj: SqsQueueConfiguration) => any;
1120
- }
1121
- /**
1122
- * <p>Access control configuration structures for your resource. You specify the configuration
1123
- * as a type-value pair. You can specify only one type of access control configuration.</p>
1124
- */
1125
- export declare type Configuration = Configuration.IamRoleMember | Configuration.KmsKeyMember | Configuration.S3BucketMember | Configuration.SecretsManagerSecretMember | Configuration.SqsQueueMember | Configuration.$UnknownMember;
1126
- export declare namespace Configuration {
1127
- /**
1128
- * <p>The access control configuration is for an IAM role. </p>
1129
- */
1130
- interface IamRoleMember {
1131
- iamRole: IamRoleConfiguration;
1132
- kmsKey?: never;
1133
- secretsManagerSecret?: never;
1134
- s3Bucket?: never;
1135
- sqsQueue?: never;
1136
- $unknown?: never;
1137
- }
1138
- /**
1139
- * <p>The access control configuration is for a KMS key. </p>
1140
- */
1141
- interface KmsKeyMember {
1142
- iamRole?: never;
1143
- kmsKey: KmsKeyConfiguration;
1144
- secretsManagerSecret?: never;
1145
- s3Bucket?: never;
1146
- sqsQueue?: never;
1147
- $unknown?: never;
1148
- }
1149
- /**
1150
- * <p>The access control configuration is for a Secrets Manager secret.</p>
1151
- */
1152
- interface SecretsManagerSecretMember {
1153
- iamRole?: never;
1154
- kmsKey?: never;
1155
- secretsManagerSecret: SecretsManagerSecretConfiguration;
1156
- s3Bucket?: never;
1157
- sqsQueue?: never;
1158
- $unknown?: never;
1159
- }
1160
- /**
1161
- * <p>The access control configuration is for an Amazon S3 Bucket. </p>
1162
- */
1163
- interface S3BucketMember {
1164
- iamRole?: never;
1165
- kmsKey?: never;
1166
- secretsManagerSecret?: never;
1167
- s3Bucket: S3BucketConfiguration;
1168
- sqsQueue?: never;
1169
- $unknown?: never;
1170
- }
1171
- /**
1172
- * <p>The access control configuration is for an Amazon SQS queue. </p>
1173
- */
1174
- interface SqsQueueMember {
1175
- iamRole?: never;
1176
- kmsKey?: never;
1177
- secretsManagerSecret?: never;
1178
- s3Bucket?: never;
1179
- sqsQueue: SqsQueueConfiguration;
1180
- $unknown?: never;
1181
- }
1182
- interface $UnknownMember {
1183
- iamRole?: never;
1184
- kmsKey?: never;
1185
- secretsManagerSecret?: never;
1186
- s3Bucket?: never;
1187
- sqsQueue?: never;
1188
- $unknown: [
1189
- string,
1190
- any
1191
- ];
1192
- }
1193
- interface Visitor<T> {
1194
- iamRole: (value: IamRoleConfiguration) => T;
1195
- kmsKey: (value: KmsKeyConfiguration) => T;
1196
- secretsManagerSecret: (value: SecretsManagerSecretConfiguration) => T;
1197
- s3Bucket: (value: S3BucketConfiguration) => T;
1198
- sqsQueue: (value: SqsQueueConfiguration) => T;
1199
- _: (name: string, value: any) => T;
1200
- }
1201
- const visit: <T>(value: Configuration, visitor: Visitor<T>) => T;
1202
- /**
1203
- * @internal
1204
- */
1205
- const filterSensitiveLog: (obj: Configuration) => any;
1206
- }
1207
- export interface CreateAccessPreviewRequest {
1208
- /**
1209
- * <p>The <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-getting-started.html#permission-resources">ARN of
1210
- * the account analyzer</a> used to generate the access preview. You can only create an
1211
- * access preview for analyzers with an <code>Account</code> type and <code>Active</code>
1212
- * status.</p>
1213
- */
1214
- analyzerArn: string | undefined;
1215
- /**
1216
- * <p>Access control configuration for your resource that is used to generate the access
1217
- * preview. The access preview includes findings for external access allowed to the resource
1218
- * with the proposed access control configuration. The configuration must contain exactly one
1219
- * element.</p>
1220
- */
1221
- configurations: {
1222
- [key: string]: Configuration;
1223
- } | undefined;
1224
- /**
1225
- * <p>A client token.</p>
1226
- */
1227
- clientToken?: string;
1228
- }
1229
- export declare namespace CreateAccessPreviewRequest {
1230
- /**
1231
- * @internal
1232
- */
1233
- const filterSensitiveLog: (obj: CreateAccessPreviewRequest) => any;
1234
- }
1235
- export interface CreateAccessPreviewResponse {
1236
- /**
1237
- * <p>The unique ID for the access preview.</p>
1238
- */
1239
- id: string | undefined;
1240
- }
1241
- export declare namespace CreateAccessPreviewResponse {
1242
- /**
1243
- * @internal
1244
- */
1245
- const filterSensitiveLog: (obj: CreateAccessPreviewResponse) => any;
1246
- }
1247
- export interface GetAccessPreviewRequest {
1248
- /**
1249
- * <p>The unique ID for the access preview.</p>
1250
- */
1251
- accessPreviewId: string | undefined;
1252
- /**
1253
- * <p>The <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-getting-started.html#permission-resources">ARN of
1254
- * the analyzer</a> used to generate the access preview.</p>
1255
- */
1256
- analyzerArn: string | undefined;
1257
- }
1258
- export declare namespace GetAccessPreviewRequest {
1259
- /**
1260
- * @internal
1261
- */
1262
- const filterSensitiveLog: (obj: GetAccessPreviewRequest) => any;
1263
- }
1264
- export declare enum AccessPreviewStatus {
1265
- COMPLETED = "COMPLETED",
1266
- CREATING = "CREATING",
1267
- FAILED = "FAILED"
1268
- }
1269
- export declare enum AccessPreviewStatusReasonCode {
1270
- INTERNAL_ERROR = "INTERNAL_ERROR",
1271
- INVALID_CONFIGURATION = "INVALID_CONFIGURATION"
1272
- }
1273
- /**
1274
- * <p>Provides more details about the current status of the access preview. For example, if
1275
- * the creation of the access preview fails, a <code>Failed</code> status is returned. This
1276
- * failure can be due to an internal issue with the analysis or due to an invalid proposed
1277
- * resource configuration.</p>
1278
- */
1279
- export interface AccessPreviewStatusReason {
1280
- /**
1281
- * <p>The reason code for the current status of the access preview.</p>
1282
- */
1283
- code: AccessPreviewStatusReasonCode | string | undefined;
1284
- }
1285
- export declare namespace AccessPreviewStatusReason {
1286
- /**
1287
- * @internal
1288
- */
1289
- const filterSensitiveLog: (obj: AccessPreviewStatusReason) => any;
1290
- }
1291
- /**
1292
- * <p>Contains information about an access preview.</p>
1293
- */
1294
- export interface AccessPreview {
1295
- /**
1296
- * <p>The unique ID for the access preview.</p>
1297
- */
1298
- id: string | undefined;
1299
- /**
1300
- * <p>The ARN of the analyzer used to generate the access preview.</p>
1301
- */
1302
- analyzerArn: string | undefined;
1303
- /**
1304
- * <p>A map of resource ARNs for the proposed resource configuration.</p>
1305
- */
1306
- configurations: {
1307
- [key: string]: Configuration;
1308
- } | undefined;
1309
- /**
1310
- * <p>The time at which the access preview was created.</p>
1311
- */
1312
- createdAt: Date | undefined;
1313
- /**
1314
- * <p>The status of the access preview.</p>
1315
- * <ul>
1316
- * <li>
1317
- * <p>
1318
- * <code>Creating</code> - The access preview creation is in progress.</p>
1319
- * </li>
1320
- * <li>
1321
- * <p>
1322
- * <code>Completed</code> - The access preview is complete. You can preview findings
1323
- * for external access to the resource.</p>
1324
- * </li>
1325
- * <li>
1326
- * <p>
1327
- * <code>Failed</code> - The access preview creation has failed.</p>
1328
- * </li>
1329
- * </ul>
1330
- */
1331
- status: AccessPreviewStatus | string | undefined;
1332
- /**
1333
- * <p>Provides more details about the current status of the access preview.</p>
1334
- * <p>For example, if the creation of the access preview fails, a <code>Failed</code> status
1335
- * is returned. This failure can be due to an internal issue with the analysis or due to an
1336
- * invalid resource configuration.</p>
1337
- */
1338
- statusReason?: AccessPreviewStatusReason;
1339
- }
1340
- export declare namespace AccessPreview {
1341
- /**
1342
- * @internal
1343
- */
1344
- const filterSensitiveLog: (obj: AccessPreview) => any;
1345
- }
1346
- export interface GetAccessPreviewResponse {
1347
- /**
1348
- * <p>An object that contains information about the access preview.</p>
1349
- */
1350
- accessPreview: AccessPreview | undefined;
1351
- }
1352
- export declare namespace GetAccessPreviewResponse {
1353
- /**
1354
- * @internal
1355
- */
1356
- const filterSensitiveLog: (obj: GetAccessPreviewResponse) => any;
1357
- }
1358
- /**
1359
- * <p>Retrieves an analyzed resource.</p>
1360
- */
1361
- export interface GetAnalyzedResourceRequest {
1362
- /**
1363
- * <p>The <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-getting-started.html#permission-resources">ARN of
1364
- * the analyzer</a> to retrieve information from.</p>
1365
- */
1366
- analyzerArn: string | undefined;
1367
- /**
1368
- * <p>The ARN of the resource to retrieve information about.</p>
1369
- */
1370
- resourceArn: string | undefined;
1371
- }
1372
- export declare namespace GetAnalyzedResourceRequest {
1373
- /**
1374
- * @internal
1375
- */
1376
- const filterSensitiveLog: (obj: GetAnalyzedResourceRequest) => any;
1377
- }
1378
- export declare type ResourceType = "AWS::IAM::Role" | "AWS::KMS::Key" | "AWS::Lambda::Function" | "AWS::Lambda::LayerVersion" | "AWS::S3::Bucket" | "AWS::SQS::Queue" | "AWS::SecretsManager::Secret";
1379
- export declare type FindingStatus = "ACTIVE" | "ARCHIVED" | "RESOLVED";
1380
- /**
1381
- * <p>Contains details about the analyzed resource.</p>
1382
- */
1383
- export interface AnalyzedResource {
1384
- /**
1385
- * <p>The ARN of the resource that was analyzed.</p>
1386
- */
1387
- resourceArn: string | undefined;
1388
- /**
1389
- * <p>The type of the resource that was analyzed.</p>
1390
- */
1391
- resourceType: ResourceType | string | undefined;
1392
- /**
1393
- * <p>The time at which the finding was created.</p>
1394
- */
1395
- createdAt: Date | undefined;
1396
- /**
1397
- * <p>The time at which the resource was analyzed.</p>
1398
- */
1399
- analyzedAt: Date | undefined;
1400
- /**
1401
- * <p>The time at which the finding was updated.</p>
1402
- */
1403
- updatedAt: Date | undefined;
1404
- /**
1405
- * <p>Indicates whether the policy that generated the finding grants public access to the
1406
- * resource.</p>
1407
- */
1408
- isPublic: boolean | undefined;
1409
- /**
1410
- * <p>The actions that an external principal is granted permission to use by the policy that
1411
- * generated the finding.</p>
1412
- */
1413
- actions?: string[];
1414
- /**
1415
- * <p>Indicates how the access that generated the finding is granted. This is populated for
1416
- * Amazon S3 bucket findings.</p>
1417
- */
1418
- sharedVia?: string[];
1419
- /**
1420
- * <p>The current status of the finding generated from the analyzed resource.</p>
1421
- */
1422
- status?: FindingStatus | string;
1423
- /**
1424
- * <p>The Amazon Web Services account ID that owns the resource.</p>
1425
- */
1426
- resourceOwnerAccount: string | undefined;
1427
- /**
1428
- * <p>An error message.</p>
1429
- */
1430
- error?: string;
1431
- }
1432
- export declare namespace AnalyzedResource {
1433
- /**
1434
- * @internal
1435
- */
1436
- const filterSensitiveLog: (obj: AnalyzedResource) => any;
1437
- }
1438
- /**
1439
- * <p>The response to the request.</p>
1440
- */
1441
- export interface GetAnalyzedResourceResponse {
1442
- /**
1443
- * <p>An <code>AnalyzedResource</code> object that contains information that IAM Access Analyzer
1444
- * found when it analyzed the resource.</p>
1445
- */
1446
- resource?: AnalyzedResource;
1447
- }
1448
- export declare namespace GetAnalyzedResourceResponse {
1449
- /**
1450
- * @internal
1451
- */
1452
- const filterSensitiveLog: (obj: GetAnalyzedResourceResponse) => any;
1453
- }
1454
- /**
1455
- * <p>Retrieves a finding.</p>
1456
- */
1457
- export interface GetFindingRequest {
1458
- /**
1459
- * <p>The <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-getting-started.html#permission-resources">ARN of
1460
- * the analyzer</a> that generated the finding.</p>
1461
- */
1462
- analyzerArn: string | undefined;
1463
- /**
1464
- * <p>The ID of the finding to retrieve.</p>
1465
- */
1466
- id: string | undefined;
1467
- }
1468
- export declare namespace GetFindingRequest {
1469
- /**
1470
- * @internal
1471
- */
1472
- const filterSensitiveLog: (obj: GetFindingRequest) => any;
1473
- }
1474
- /**
1475
- * <p>Includes details about how the access that generated the finding is granted. This is
1476
- * populated for Amazon S3 bucket findings.</p>
1477
- */
1478
- export interface FindingSourceDetail {
1479
- /**
1480
- * <p>The ARN of the access point that generated the finding. The ARN format depends on
1481
- * whether the ARN represents an access point or a multi-region access point.</p>
1482
- */
1483
- accessPointArn?: string;
1484
- }
1485
- export declare namespace FindingSourceDetail {
1486
- /**
1487
- * @internal
1488
- */
1489
- const filterSensitiveLog: (obj: FindingSourceDetail) => any;
1490
- }
1491
- export declare type FindingSourceType = "BUCKET_ACL" | "POLICY" | "S3_ACCESS_POINT";
1492
- /**
1493
- * <p>The source of the finding. This indicates how the access that generated the finding is
1494
- * granted. It is populated for Amazon S3 bucket findings.</p>
1495
- */
1496
- export interface FindingSource {
1497
- /**
1498
- * <p>Indicates the type of access that generated the finding.</p>
1499
- */
1500
- type: FindingSourceType | string | undefined;
1501
- /**
1502
- * <p>Includes details about how the access that generated the finding is granted. This is
1503
- * populated for Amazon S3 bucket findings.</p>
1504
- */
1505
- detail?: FindingSourceDetail;
1506
- }
1507
- export declare namespace FindingSource {
1508
- /**
1509
- * @internal
1510
- */
1511
- const filterSensitiveLog: (obj: FindingSource) => any;
1512
- }
1513
- /**
1514
- * <p>Contains information about a finding.</p>
1515
- */
1516
- export interface Finding {
1517
- /**
1518
- * <p>The ID of the finding.</p>
1519
- */
1520
- id: string | undefined;
1521
- /**
1522
- * <p>The external principal that access to a resource within the zone of trust.</p>
1523
- */
1524
- principal?: {
1525
- [key: string]: string;
1526
- };
1527
- /**
1528
- * <p>The action in the analyzed policy statement that an external principal has permission to
1529
- * use.</p>
1530
- */
1531
- action?: string[];
1532
- /**
1533
- * <p>The resource that an external principal has access to.</p>
1534
- */
1535
- resource?: string;
1536
- /**
1537
- * <p>Indicates whether the policy that generated the finding allows public access to the
1538
- * resource.</p>
1539
- */
1540
- isPublic?: boolean;
1541
- /**
1542
- * <p>The type of the resource identified in the finding.</p>
1543
- */
1544
- resourceType: ResourceType | string | undefined;
1545
- /**
1546
- * <p>The condition in the analyzed policy statement that resulted in a finding.</p>
1547
- */
1548
- condition: {
1549
- [key: string]: string;
1550
- } | undefined;
1551
- /**
1552
- * <p>The time at which the finding was generated.</p>
1553
- */
1554
- createdAt: Date | undefined;
1555
- /**
1556
- * <p>The time at which the resource was analyzed.</p>
1557
- */
1558
- analyzedAt: Date | undefined;
1559
- /**
1560
- * <p>The time at which the finding was updated.</p>
1561
- */
1562
- updatedAt: Date | undefined;
1563
- /**
1564
- * <p>The current status of the finding.</p>
1565
- */
1566
- status: FindingStatus | string | undefined;
1567
- /**
1568
- * <p>The Amazon Web Services account ID that owns the resource.</p>
1569
- */
1570
- resourceOwnerAccount: string | undefined;
1571
- /**
1572
- * <p>An error.</p>
1573
- */
1574
- error?: string;
1575
- /**
1576
- * <p>The sources of the finding. This indicates how the access that generated the finding is
1577
- * granted. It is populated for Amazon S3 bucket findings.</p>
1578
- */
1579
- sources?: FindingSource[];
1580
- }
1581
- export declare namespace Finding {
1582
- /**
1583
- * @internal
1584
- */
1585
- const filterSensitiveLog: (obj: Finding) => any;
1586
- }
1587
- /**
1588
- * <p>The response to the request.</p>
1589
- */
1590
- export interface GetFindingResponse {
1591
- /**
1592
- * <p>A <code>finding</code> object that contains finding details.</p>
1593
- */
1594
- finding?: Finding;
1595
- }
1596
- export declare namespace GetFindingResponse {
1597
- /**
1598
- * @internal
1599
- */
1600
- const filterSensitiveLog: (obj: GetFindingResponse) => any;
1601
- }
1602
- export interface GetGeneratedPolicyRequest {
1603
- /**
1604
- * <p>The <code>JobId</code> that is returned by the <code>StartPolicyGeneration</code>
1605
- * operation. The <code>JobId</code> can be used with <code>GetGeneratedPolicy</code> to
1606
- * retrieve the generated policies or used with <code>CancelPolicyGeneration</code> to cancel
1607
- * the policy generation request.</p>
1608
- */
1609
- jobId: string | undefined;
1610
- /**
1611
- * <p>The level of detail that you want to generate. You can specify whether to generate
1612
- * policies with placeholders for resource ARNs for actions that support resource level
1613
- * granularity in policies.</p>
1614
- * <p>For example, in the resource section of a policy, you can receive a placeholder such as
1615
- * <code>"Resource":"arn:aws:s3:::${BucketName}"</code> instead of <code>"*"</code>.</p>
1616
- */
1617
- includeResourcePlaceholders?: boolean;
1618
- /**
1619
- * <p>The level of detail that you want to generate. You can specify whether to generate
1620
- * service-level policies. </p>
1621
- * <p>IAM Access Analyzer uses <code>iam:servicelastaccessed</code> to identify services that have
1622
- * been used recently to create this service-level template.</p>
1623
- */
1624
- includeServiceLevelTemplate?: boolean;
1625
- }
1626
- export declare namespace GetGeneratedPolicyRequest {
1627
- /**
1628
- * @internal
1629
- */
1630
- const filterSensitiveLog: (obj: GetGeneratedPolicyRequest) => any;
1631
- }
1632
- /**
1633
- * <p>Contains the text for the generated policy.</p>
1634
- */
1635
- export interface GeneratedPolicy {
1636
- /**
1637
- * <p>The text to use as the content for the new policy. The policy is created using the
1638
- * <a href="https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreatePolicy.html">CreatePolicy</a> action.</p>
1639
- */
1640
- policy: string | undefined;
1641
- }
1642
- export declare namespace GeneratedPolicy {
1643
- /**
1644
- * @internal
1645
- */
1646
- const filterSensitiveLog: (obj: GeneratedPolicy) => any;
1647
- }
1648
- /**
1649
- * <p>Contains details about the CloudTrail trail being analyzed to generate a policy.</p>
1650
- */
1651
- export interface TrailProperties {
1652
- /**
1653
- * <p>Specifies the ARN of the trail. The format of a trail ARN is
1654
- * <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>.</p>
1655
- */
1656
- cloudTrailArn: string | undefined;
1657
- /**
1658
- * <p>A list of regions to get CloudTrail data from and analyze to generate a policy.</p>
1659
- */
1660
- regions?: string[];
1661
- /**
1662
- * <p>Possible values are <code>true</code> or <code>false</code>. If set to
1663
- * <code>true</code>, IAM Access Analyzer retrieves CloudTrail data from all regions to analyze and
1664
- * generate a policy.</p>
1665
- */
1666
- allRegions?: boolean;
1667
- }
1668
- export declare namespace TrailProperties {
1669
- /**
1670
- * @internal
1671
- */
1672
- const filterSensitiveLog: (obj: TrailProperties) => any;
1673
- }
1674
- /**
1675
- * <p>Contains information about CloudTrail access.</p>
1676
- */
1677
- export interface CloudTrailProperties {
1678
- /**
1679
- * <p>A <code>TrailProperties</code> object that contains settings for trail
1680
- * properties.</p>
1681
- */
1682
- trailProperties: TrailProperties[] | undefined;
1683
- /**
1684
- * <p>The start of the time range for which IAM Access Analyzer reviews your CloudTrail events. Events
1685
- * with a timestamp before this time are not considered to generate a policy.</p>
1686
- */
1687
- startTime: Date | undefined;
1688
- /**
1689
- * <p>The end of the time range for which IAM Access Analyzer reviews your CloudTrail events. Events with
1690
- * a timestamp after this time are not considered to generate a policy. If this is not
1691
- * included in the request, the default value is the current time.</p>
1692
- */
1693
- endTime: Date | undefined;
1694
- }
1695
- export declare namespace CloudTrailProperties {
1696
- /**
1697
- * @internal
1698
- */
1699
- const filterSensitiveLog: (obj: CloudTrailProperties) => any;
1700
- }
1701
- /**
1702
- * <p>Contains the generated policy details.</p>
1703
- */
1704
- export interface GeneratedPolicyProperties {
1705
- /**
1706
- * <p>This value is set to <code>true</code> if the generated policy contains all possible
1707
- * actions for a service that IAM Access Analyzer identified from the CloudTrail trail that you specified,
1708
- * and <code>false</code> otherwise.</p>
1709
- */
1710
- isComplete?: boolean;
1711
- /**
1712
- * <p>The ARN of the IAM entity (user or role) for which you are generating a policy.</p>
1713
- */
1714
- principalArn: string | undefined;
1715
- /**
1716
- * <p>Lists details about the <code>Trail</code> used to generated policy.</p>
1717
- */
1718
- cloudTrailProperties?: CloudTrailProperties;
1719
- }
1720
- export declare namespace GeneratedPolicyProperties {
1721
- /**
1722
- * @internal
1723
- */
1724
- const filterSensitiveLog: (obj: GeneratedPolicyProperties) => any;
1725
- }
1726
- /**
1727
- * <p>Contains the text for the generated policy and its details.</p>
1728
- */
1729
- export interface GeneratedPolicyResult {
1730
- /**
1731
- * <p>A <code>GeneratedPolicyProperties</code> object that contains properties of the
1732
- * generated policy.</p>
1733
- */
1734
- properties: GeneratedPolicyProperties | undefined;
1735
- /**
1736
- * <p>The text to use as the content for the new policy. The policy is created using the
1737
- * <a href="https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreatePolicy.html">CreatePolicy</a> action.</p>
1738
- */
1739
- generatedPolicies?: GeneratedPolicy[];
1740
- }
1741
- export declare namespace GeneratedPolicyResult {
1742
- /**
1743
- * @internal
1744
- */
1745
- const filterSensitiveLog: (obj: GeneratedPolicyResult) => any;
1746
- }
1747
- export declare enum JobErrorCode {
1748
- AUTHORIZATION_ERROR = "AUTHORIZATION_ERROR",
1749
- RESOURCE_NOT_FOUND_ERROR = "RESOURCE_NOT_FOUND_ERROR",
1750
- SERVICE_ERROR = "SERVICE_ERROR",
1751
- SERVICE_QUOTA_EXCEEDED_ERROR = "SERVICE_QUOTA_EXCEEDED_ERROR"
1752
- }
1753
- /**
1754
- * <p>Contains the details about the policy generation error.</p>
1755
- */
1756
- export interface JobError {
1757
- /**
1758
- * <p>The job error code.</p>
1759
- */
1760
- code: JobErrorCode | string | undefined;
1761
- /**
1762
- * <p>Specific information about the error. For example, which service quota was exceeded or
1763
- * which resource was not found.</p>
1764
- */
1765
- message: string | undefined;
1766
- }
1767
- export declare namespace JobError {
1768
- /**
1769
- * @internal
1770
- */
1771
- const filterSensitiveLog: (obj: JobError) => any;
1772
- }
1773
- export declare enum JobStatus {
1774
- CANCELED = "CANCELED",
1775
- FAILED = "FAILED",
1776
- IN_PROGRESS = "IN_PROGRESS",
1777
- SUCCEEDED = "SUCCEEDED"
1778
- }
1779
- /**
1780
- * <p>Contains details about the policy generation request.</p>
1781
- */
1782
- export interface JobDetails {
1783
- /**
1784
- * <p>The <code>JobId</code> that is returned by the <code>StartPolicyGeneration</code>
1785
- * operation. The <code>JobId</code> can be used with <code>GetGeneratedPolicy</code> to
1786
- * retrieve the generated policies or used with <code>CancelPolicyGeneration</code> to cancel
1787
- * the policy generation request.</p>
1788
- */
1789
- jobId: string | undefined;
1790
- /**
1791
- * <p>The status of the job request.</p>
1792
- */
1793
- status: JobStatus | string | undefined;
1794
- /**
1795
- * <p>A timestamp of when the job was started.</p>
1796
- */
1797
- startedOn: Date | undefined;
1798
- /**
1799
- * <p>A timestamp of when the job was completed.</p>
1800
- */
1801
- completedOn?: Date;
1802
- /**
1803
- * <p>The job error for the policy generation request.</p>
1804
- */
1805
- jobError?: JobError;
1806
- }
1807
- export declare namespace JobDetails {
1808
- /**
1809
- * @internal
1810
- */
1811
- const filterSensitiveLog: (obj: JobDetails) => any;
1812
- }
1813
- export interface GetGeneratedPolicyResponse {
1814
- /**
1815
- * <p>A <code>GeneratedPolicyDetails</code> object that contains details about the generated
1816
- * policy.</p>
1817
- */
1818
- jobDetails: JobDetails | undefined;
1819
- /**
1820
- * <p>A <code>GeneratedPolicyResult</code> object that contains the generated policies and
1821
- * associated details.</p>
1822
- */
1823
- generatedPolicyResult: GeneratedPolicyResult | undefined;
1824
- }
1825
- export declare namespace GetGeneratedPolicyResponse {
1826
- /**
1827
- * @internal
1828
- */
1829
- const filterSensitiveLog: (obj: GetGeneratedPolicyResponse) => any;
1830
- }
1831
- export interface ListAccessPreviewFindingsRequest {
1832
- /**
1833
- * <p>The unique ID for the access preview.</p>
1834
- */
1835
- accessPreviewId: string | undefined;
1836
- /**
1837
- * <p>The <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-getting-started.html#permission-resources">ARN of
1838
- * the analyzer</a> used to generate the access.</p>
1839
- */
1840
- analyzerArn: string | undefined;
1841
- /**
1842
- * <p>Criteria to filter the returned findings.</p>
1843
- */
1844
- filter?: {
1845
- [key: string]: Criterion;
1846
- };
1847
- /**
1848
- * <p>A token used for pagination of results returned.</p>
1849
- */
1850
- nextToken?: string;
1851
- /**
1852
- * <p>The maximum number of results to return in the response.</p>
1853
- */
1854
- maxResults?: number;
1855
- }
1856
- export declare namespace ListAccessPreviewFindingsRequest {
1857
- /**
1858
- * @internal
1859
- */
1860
- const filterSensitiveLog: (obj: ListAccessPreviewFindingsRequest) => any;
1861
- }
1862
- export declare enum FindingChangeType {
1863
- CHANGED = "CHANGED",
1864
- NEW = "NEW",
1865
- UNCHANGED = "UNCHANGED"
1866
- }
1867
- /**
1868
- * <p>An access preview finding generated by the access preview.</p>
1869
- */
1870
- export interface AccessPreviewFinding {
1871
- /**
1872
- * <p>The ID of the access preview finding. This ID uniquely identifies the element in the
1873
- * list of access preview findings and is not related to the finding ID in Access
1874
- * Analyzer.</p>
1875
- */
1876
- id: string | undefined;
1877
- /**
1878
- * <p>The existing ID of the finding in IAM Access Analyzer, provided only for existing
1879
- * findings.</p>
1880
- */
1881
- existingFindingId?: string;
1882
- /**
1883
- * <p>The existing status of the finding, provided only for existing findings.</p>
1884
- */
1885
- existingFindingStatus?: FindingStatus | string;
1886
- /**
1887
- * <p>The external principal that has access to a resource within the zone of trust.</p>
1888
- */
1889
- principal?: {
1890
- [key: string]: string;
1891
- };
1892
- /**
1893
- * <p>The action in the analyzed policy statement that an external principal has permission to
1894
- * perform.</p>
1895
- */
1896
- action?: string[];
1897
- /**
1898
- * <p>The condition in the analyzed policy statement that resulted in a finding.</p>
1899
- */
1900
- condition?: {
1901
- [key: string]: string;
1902
- };
1903
- /**
1904
- * <p>The resource that an external principal has access to. This is the resource associated
1905
- * with the access preview.</p>
1906
- */
1907
- resource?: string;
1908
- /**
1909
- * <p>Indicates whether the policy that generated the finding allows public access to the
1910
- * resource.</p>
1911
- */
1912
- isPublic?: boolean;
1913
- /**
1914
- * <p>The type of the resource that can be accessed in the finding.</p>
1915
- */
1916
- resourceType: ResourceType | string | undefined;
1917
- /**
1918
- * <p>The time at which the access preview finding was created.</p>
1919
- */
1920
- createdAt: Date | undefined;
1921
- /**
1922
- * <p>Provides context on how the access preview finding compares to existing access
1923
- * identified in IAM Access Analyzer.</p>
1924
- * <ul>
1925
- * <li>
1926
- * <p>
1927
- * <code>New</code> - The finding is for newly-introduced access.</p>
1928
- * </li>
1929
- * <li>
1930
- * <p>
1931
- * <code>Unchanged</code> - The preview finding is an existing finding that would
1932
- * remain unchanged.</p>
1933
- * </li>
1934
- * <li>
1935
- * <p>
1936
- * <code>Changed</code> - The preview finding is an existing finding with a change in
1937
- * status.</p>
1938
- * </li>
1939
- * </ul>
1940
- * <p>For example, a <code>Changed</code> finding with preview status <code>Resolved</code>
1941
- * and existing status <code>Active</code> indicates the existing <code>Active</code> finding
1942
- * would become <code>Resolved</code> as a result of the proposed permissions change.</p>
1943
- */
1944
- changeType: FindingChangeType | string | undefined;
1945
- /**
1946
- * <p>The preview status of the finding. This is what the status of the finding would be after
1947
- * permissions deployment. For example, a <code>Changed</code> finding with preview status
1948
- * <code>Resolved</code> and existing status <code>Active</code> indicates the existing
1949
- * <code>Active</code> finding would become <code>Resolved</code> as a result of the
1950
- * proposed permissions change.</p>
1951
- */
1952
- status: FindingStatus | string | undefined;
1953
- /**
1954
- * <p>The Amazon Web Services account ID that owns the resource. For most Amazon Web Services resources, the owning
1955
- * account is the account in which the resource was created.</p>
1956
- */
1957
- resourceOwnerAccount: string | undefined;
1958
- /**
1959
- * <p>An error.</p>
1960
- */
1961
- error?: string;
1962
- /**
1963
- * <p>The sources of the finding. This indicates how the access that generated the finding is
1964
- * granted. It is populated for Amazon S3 bucket findings.</p>
1965
- */
1966
- sources?: FindingSource[];
1967
- }
1968
- export declare namespace AccessPreviewFinding {
1969
- /**
1970
- * @internal
1971
- */
1972
- const filterSensitiveLog: (obj: AccessPreviewFinding) => any;
1973
- }
1974
- export interface ListAccessPreviewFindingsResponse {
1975
- /**
1976
- * <p>A list of access preview findings that match the specified filter criteria.</p>
1977
- */
1978
- findings: AccessPreviewFinding[] | undefined;
1979
- /**
1980
- * <p>A token used for pagination of results returned.</p>
1981
- */
1982
- nextToken?: string;
1983
- }
1984
- export declare namespace ListAccessPreviewFindingsResponse {
1985
- /**
1986
- * @internal
1987
- */
1988
- const filterSensitiveLog: (obj: ListAccessPreviewFindingsResponse) => any;
1989
- }
1990
- export interface ListAccessPreviewsRequest {
1991
- /**
1992
- * <p>The <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-getting-started.html#permission-resources">ARN of
1993
- * the analyzer</a> used to generate the access preview.</p>
1994
- */
1995
- analyzerArn: string | undefined;
1996
- /**
1997
- * <p>A token used for pagination of results returned.</p>
1998
- */
1999
- nextToken?: string;
2000
- /**
2001
- * <p>The maximum number of results to return in the response.</p>
2002
- */
2003
- maxResults?: number;
2004
- }
2005
- export declare namespace ListAccessPreviewsRequest {
2006
- /**
2007
- * @internal
2008
- */
2009
- const filterSensitiveLog: (obj: ListAccessPreviewsRequest) => any;
2010
- }
2011
- /**
2012
- * <p>Contains a summary of information about an access preview.</p>
2013
- */
2014
- export interface AccessPreviewSummary {
2015
- /**
2016
- * <p>The unique ID for the access preview.</p>
2017
- */
2018
- id: string | undefined;
2019
- /**
2020
- * <p>The ARN of the analyzer used to generate the access preview.</p>
2021
- */
2022
- analyzerArn: string | undefined;
2023
- /**
2024
- * <p>The time at which the access preview was created.</p>
2025
- */
2026
- createdAt: Date | undefined;
2027
- /**
2028
- * <p>The status of the access preview.</p>
2029
- * <ul>
2030
- * <li>
2031
- * <p>
2032
- * <code>Creating</code> - The access preview creation is in progress.</p>
2033
- * </li>
2034
- * <li>
2035
- * <p>
2036
- * <code>Completed</code> - The access preview is complete and previews the findings
2037
- * for external access to the resource.</p>
2038
- * </li>
2039
- * <li>
2040
- * <p>
2041
- * <code>Failed</code> - The access preview creation has failed.</p>
2042
- * </li>
2043
- * </ul>
2044
- */
2045
- status: AccessPreviewStatus | string | undefined;
2046
- /**
2047
- * <p>Provides more details about the current status of the access preview. For example, if
2048
- * the creation of the access preview fails, a <code>Failed</code> status is returned. This
2049
- * failure can be due to an internal issue with the analysis or due to an invalid proposed
2050
- * resource configuration.</p>
2051
- */
2052
- statusReason?: AccessPreviewStatusReason;
2053
- }
2054
- export declare namespace AccessPreviewSummary {
2055
- /**
2056
- * @internal
2057
- */
2058
- const filterSensitiveLog: (obj: AccessPreviewSummary) => any;
2059
- }
2060
- export interface ListAccessPreviewsResponse {
2061
- /**
2062
- * <p>A list of access previews retrieved for the analyzer.</p>
2063
- */
2064
- accessPreviews: AccessPreviewSummary[] | undefined;
2065
- /**
2066
- * <p>A token used for pagination of results returned.</p>
2067
- */
2068
- nextToken?: string;
2069
- }
2070
- export declare namespace ListAccessPreviewsResponse {
2071
- /**
2072
- * @internal
2073
- */
2074
- const filterSensitiveLog: (obj: ListAccessPreviewsResponse) => any;
2075
- }
2076
- /**
2077
- * <p>Retrieves a list of resources that have been analyzed.</p>
2078
- */
2079
- export interface ListAnalyzedResourcesRequest {
2080
- /**
2081
- * <p>The <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-getting-started.html#permission-resources">ARN of
2082
- * the analyzer</a> to retrieve a list of analyzed resources from.</p>
2083
- */
2084
- analyzerArn: string | undefined;
2085
- /**
2086
- * <p>The type of resource.</p>
2087
- */
2088
- resourceType?: ResourceType | string;
2089
- /**
2090
- * <p>A token used for pagination of results returned.</p>
2091
- */
2092
- nextToken?: string;
2093
- /**
2094
- * <p>The maximum number of results to return in the response.</p>
2095
- */
2096
- maxResults?: number;
2097
- }
2098
- export declare namespace ListAnalyzedResourcesRequest {
2099
- /**
2100
- * @internal
2101
- */
2102
- const filterSensitiveLog: (obj: ListAnalyzedResourcesRequest) => any;
2103
- }
2104
- /**
2105
- * <p>Contains the ARN of the analyzed resource.</p>
2106
- */
2107
- export interface AnalyzedResourceSummary {
2108
- /**
2109
- * <p>The ARN of the analyzed resource.</p>
2110
- */
2111
- resourceArn: string | undefined;
2112
- /**
2113
- * <p>The Amazon Web Services account ID that owns the resource.</p>
2114
- */
2115
- resourceOwnerAccount: string | undefined;
2116
- /**
2117
- * <p>The type of resource that was analyzed.</p>
2118
- */
2119
- resourceType: ResourceType | string | undefined;
2120
- }
2121
- export declare namespace AnalyzedResourceSummary {
2122
- /**
2123
- * @internal
2124
- */
2125
- const filterSensitiveLog: (obj: AnalyzedResourceSummary) => any;
2126
- }
2127
- /**
2128
- * <p>The response to the request.</p>
2129
- */
2130
- export interface ListAnalyzedResourcesResponse {
2131
- /**
2132
- * <p>A list of resources that were analyzed.</p>
2133
- */
2134
- analyzedResources: AnalyzedResourceSummary[] | undefined;
2135
- /**
2136
- * <p>A token used for pagination of results returned.</p>
2137
- */
2138
- nextToken?: string;
2139
- }
2140
- export declare namespace ListAnalyzedResourcesResponse {
2141
- /**
2142
- * @internal
2143
- */
2144
- const filterSensitiveLog: (obj: ListAnalyzedResourcesResponse) => any;
2145
- }
2146
- export declare type OrderBy = "ASC" | "DESC";
2147
- /**
2148
- * <p>The criteria used to sort.</p>
2149
- */
2150
- export interface SortCriteria {
2151
- /**
2152
- * <p>The name of the attribute to sort on.</p>
2153
- */
2154
- attributeName?: string;
2155
- /**
2156
- * <p>The sort order, ascending or descending.</p>
2157
- */
2158
- orderBy?: OrderBy | string;
2159
- }
2160
- export declare namespace SortCriteria {
2161
- /**
2162
- * @internal
2163
- */
2164
- const filterSensitiveLog: (obj: SortCriteria) => any;
2165
- }
2166
- /**
2167
- * <p>Retrieves a list of findings generated by the specified analyzer.</p>
2168
- */
2169
- export interface ListFindingsRequest {
2170
- /**
2171
- * <p>The <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-getting-started.html#permission-resources">ARN of
2172
- * the analyzer</a> to retrieve findings from.</p>
2173
- */
2174
- analyzerArn: string | undefined;
2175
- /**
2176
- * <p>A filter to match for the findings to return.</p>
2177
- */
2178
- filter?: {
2179
- [key: string]: Criterion;
2180
- };
2181
- /**
2182
- * <p>The sort order for the findings returned.</p>
2183
- */
2184
- sort?: SortCriteria;
2185
- /**
2186
- * <p>A token used for pagination of results returned.</p>
2187
- */
2188
- nextToken?: string;
2189
- /**
2190
- * <p>The maximum number of results to return in the response.</p>
2191
- */
2192
- maxResults?: number;
2193
- }
2194
- export declare namespace ListFindingsRequest {
2195
- /**
2196
- * @internal
2197
- */
2198
- const filterSensitiveLog: (obj: ListFindingsRequest) => any;
2199
- }
2200
- /**
2201
- * <p>Contains information about a finding.</p>
2202
- */
2203
- export interface FindingSummary {
2204
- /**
2205
- * <p>The ID of the finding.</p>
2206
- */
2207
- id: string | undefined;
2208
- /**
2209
- * <p>The external principal that has access to a resource within the zone of trust.</p>
2210
- */
2211
- principal?: {
2212
- [key: string]: string;
2213
- };
2214
- /**
2215
- * <p>The action in the analyzed policy statement that an external principal has permission to
2216
- * use.</p>
2217
- */
2218
- action?: string[];
2219
- /**
2220
- * <p>The resource that the external principal has access to.</p>
2221
- */
2222
- resource?: string;
2223
- /**
2224
- * <p>Indicates whether the finding reports a resource that has a policy that allows public
2225
- * access.</p>
2226
- */
2227
- isPublic?: boolean;
2228
- /**
2229
- * <p>The type of the resource that the external principal has access to.</p>
2230
- */
2231
- resourceType: ResourceType | string | undefined;
2232
- /**
2233
- * <p>The condition in the analyzed policy statement that resulted in a finding.</p>
2234
- */
2235
- condition: {
2236
- [key: string]: string;
2237
- } | undefined;
2238
- /**
2239
- * <p>The time at which the finding was created.</p>
2240
- */
2241
- createdAt: Date | undefined;
2242
- /**
2243
- * <p>The time at which the resource-based policy that generated the finding was
2244
- * analyzed.</p>
2245
- */
2246
- analyzedAt: Date | undefined;
2247
- /**
2248
- * <p>The time at which the finding was most recently updated.</p>
2249
- */
2250
- updatedAt: Date | undefined;
2251
- /**
2252
- * <p>The status of the finding.</p>
2253
- */
2254
- status: FindingStatus | string | undefined;
2255
- /**
2256
- * <p>The Amazon Web Services account ID that owns the resource.</p>
2257
- */
2258
- resourceOwnerAccount: string | undefined;
2259
- /**
2260
- * <p>The error that resulted in an Error finding.</p>
2261
- */
2262
- error?: string;
2263
- /**
2264
- * <p>The sources of the finding. This indicates how the access that generated the finding is
2265
- * granted. It is populated for Amazon S3 bucket findings.</p>
2266
- */
2267
- sources?: FindingSource[];
2268
- }
2269
- export declare namespace FindingSummary {
2270
- /**
2271
- * @internal
2272
- */
2273
- const filterSensitiveLog: (obj: FindingSummary) => any;
2274
- }
2275
- /**
2276
- * <p>The response to the request.</p>
2277
- */
2278
- export interface ListFindingsResponse {
2279
- /**
2280
- * <p>A list of findings retrieved from the analyzer that match the filter criteria specified,
2281
- * if any.</p>
2282
- */
2283
- findings: FindingSummary[] | undefined;
2284
- /**
2285
- * <p>A token used for pagination of results returned.</p>
2286
- */
2287
- nextToken?: string;
2288
- }
2289
- export declare namespace ListFindingsResponse {
2290
- /**
2291
- * @internal
2292
- */
2293
- const filterSensitiveLog: (obj: ListFindingsResponse) => any;
2294
- }
2295
- export interface ListPolicyGenerationsRequest {
2296
- /**
2297
- * <p>The ARN of the IAM entity (user or role) for which you are generating a policy. Use
2298
- * this with <code>ListGeneratedPolicies</code> to filter the results to only include results
2299
- * for a specific principal.</p>
2300
- */
2301
- principalArn?: string;
2302
- /**
2303
- * <p>The maximum number of results to return in the response.</p>
2304
- */
2305
- maxResults?: number;
2306
- /**
2307
- * <p>A token used for pagination of results returned.</p>
2308
- */
2309
- nextToken?: string;
2310
- }
2311
- export declare namespace ListPolicyGenerationsRequest {
2312
- /**
2313
- * @internal
2314
- */
2315
- const filterSensitiveLog: (obj: ListPolicyGenerationsRequest) => any;
2316
- }
2317
- /**
2318
- * <p>Contains details about the policy generation status and properties.</p>
2319
- */
2320
- export interface PolicyGeneration {
2321
- /**
2322
- * <p>The <code>JobId</code> that is returned by the <code>StartPolicyGeneration</code>
2323
- * operation. The <code>JobId</code> can be used with <code>GetGeneratedPolicy</code> to
2324
- * retrieve the generated policies or used with <code>CancelPolicyGeneration</code> to cancel
2325
- * the policy generation request.</p>
2326
- */
2327
- jobId: string | undefined;
2328
- /**
2329
- * <p>The ARN of the IAM entity (user or role) for which you are generating a policy.</p>
2330
- */
2331
- principalArn: string | undefined;
2332
- /**
2333
- * <p>The status of the policy generation request.</p>
2334
- */
2335
- status: JobStatus | string | undefined;
2336
- /**
2337
- * <p>A timestamp of when the policy generation started.</p>
2338
- */
2339
- startedOn: Date | undefined;
2340
- /**
2341
- * <p>A timestamp of when the policy generation was completed.</p>
2342
- */
2343
- completedOn?: Date;
2344
- }
2345
- export declare namespace PolicyGeneration {
2346
- /**
2347
- * @internal
2348
- */
2349
- const filterSensitiveLog: (obj: PolicyGeneration) => any;
2350
- }
2351
- export interface ListPolicyGenerationsResponse {
2352
- /**
2353
- * <p>A <code>PolicyGeneration</code> object that contains details about the generated
2354
- * policy.</p>
2355
- */
2356
- policyGenerations: PolicyGeneration[] | undefined;
2357
- /**
2358
- * <p>A token used for pagination of results returned.</p>
2359
- */
2360
- nextToken?: string;
2361
- }
2362
- export declare namespace ListPolicyGenerationsResponse {
2363
- /**
2364
- * @internal
2365
- */
2366
- const filterSensitiveLog: (obj: ListPolicyGenerationsResponse) => any;
2367
- }
2368
- /**
2369
- * <p>Retrieves a list of tags applied to the specified resource.</p>
2370
- */
2371
- export interface ListTagsForResourceRequest {
2372
- /**
2373
- * <p>The ARN of the resource to retrieve tags from.</p>
2374
- */
2375
- resourceArn: string | undefined;
2376
- }
2377
- export declare namespace ListTagsForResourceRequest {
2378
- /**
2379
- * @internal
2380
- */
2381
- const filterSensitiveLog: (obj: ListTagsForResourceRequest) => any;
2382
- }
2383
- /**
2384
- * <p>The response to the request.</p>
2385
- */
2386
- export interface ListTagsForResourceResponse {
2387
- /**
2388
- * <p>The tags that are applied to the specified resource.</p>
2389
- */
2390
- tags?: {
2391
- [key: string]: string;
2392
- };
2393
- }
2394
- export declare namespace ListTagsForResourceResponse {
2395
- /**
2396
- * @internal
2397
- */
2398
- const filterSensitiveLog: (obj: ListTagsForResourceResponse) => any;
2399
- }
2400
- /**
2401
- * <p>Contains details about the CloudTrail trail being analyzed to generate a policy.</p>
2402
- */
2403
- export interface Trail {
2404
- /**
2405
- * <p>Specifies the ARN of the trail. The format of a trail ARN is
2406
- * <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code>.</p>
2407
- */
2408
- cloudTrailArn: string | undefined;
2409
- /**
2410
- * <p>A list of regions to get CloudTrail data from and analyze to generate a policy.</p>
2411
- */
2412
- regions?: string[];
2413
- /**
2414
- * <p>Possible values are <code>true</code> or <code>false</code>. If set to
2415
- * <code>true</code>, IAM Access Analyzer retrieves CloudTrail data from all regions to analyze and
2416
- * generate a policy.</p>
2417
- */
2418
- allRegions?: boolean;
2419
- }
2420
- export declare namespace Trail {
2421
- /**
2422
- * @internal
2423
- */
2424
- const filterSensitiveLog: (obj: Trail) => any;
2425
- }
2426
- /**
2427
- * <p>Contains information about CloudTrail access.</p>
2428
- */
2429
- export interface CloudTrailDetails {
2430
- /**
2431
- * <p>A <code>Trail</code> object that contains settings for a trail.</p>
2432
- */
2433
- trails: Trail[] | undefined;
2434
- /**
2435
- * <p>The ARN of the service role that IAM Access Analyzer uses to access your CloudTrail trail and
2436
- * service last accessed information.</p>
2437
- */
2438
- accessRole: string | undefined;
2439
- /**
2440
- * <p>The start of the time range for which IAM Access Analyzer reviews your CloudTrail events. Events
2441
- * with a timestamp before this time are not considered to generate a policy.</p>
2442
- */
2443
- startTime: Date | undefined;
2444
- /**
2445
- * <p>The end of the time range for which IAM Access Analyzer reviews your CloudTrail events. Events with
2446
- * a timestamp after this time are not considered to generate a policy. If this is not
2447
- * included in the request, the default value is the current time.</p>
2448
- */
2449
- endTime?: Date;
2450
- }
2451
- export declare namespace CloudTrailDetails {
2452
- /**
2453
- * @internal
2454
- */
2455
- const filterSensitiveLog: (obj: CloudTrailDetails) => any;
2456
- }
2457
- /**
2458
- * <p>Contains the ARN details about the IAM entity for which the policy is
2459
- * generated.</p>
2460
- */
2461
- export interface PolicyGenerationDetails {
2462
- /**
2463
- * <p>The ARN of the IAM entity (user or role) for which you are generating a policy.</p>
2464
- */
2465
- principalArn: string | undefined;
2466
- }
2467
- export declare namespace PolicyGenerationDetails {
2468
- /**
2469
- * @internal
2470
- */
2471
- const filterSensitiveLog: (obj: PolicyGenerationDetails) => any;
2472
- }
2473
- export interface StartPolicyGenerationRequest {
2474
- /**
2475
- * <p>Contains the ARN of the IAM entity (user or role) for which you are generating a
2476
- * policy.</p>
2477
- */
2478
- policyGenerationDetails: PolicyGenerationDetails | undefined;
2479
- /**
2480
- * <p>A <code>CloudTrailDetails</code> object that contains details about a <code>Trail</code>
2481
- * that you want to analyze to generate policies.</p>
2482
- */
2483
- cloudTrailDetails?: CloudTrailDetails;
2484
- /**
2485
- * <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the
2486
- * request. Idempotency ensures that an API request completes only once. With an idempotent
2487
- * request, if the original request completes successfully, the subsequent retries with the
2488
- * same client token return the result from the original successful request and they have no
2489
- * additional effect.</p>
2490
- * <p>If you do not specify a client token, one is automatically generated by the Amazon Web Services
2491
- * SDK.</p>
2492
- */
2493
- clientToken?: string;
2494
- }
2495
- export declare namespace StartPolicyGenerationRequest {
2496
- /**
2497
- * @internal
2498
- */
2499
- const filterSensitiveLog: (obj: StartPolicyGenerationRequest) => any;
2500
- }
2501
- export interface StartPolicyGenerationResponse {
2502
- /**
2503
- * <p>The <code>JobId</code> that is returned by the <code>StartPolicyGeneration</code>
2504
- * operation. The <code>JobId</code> can be used with <code>GetGeneratedPolicy</code> to
2505
- * retrieve the generated policies or used with <code>CancelPolicyGeneration</code> to cancel
2506
- * the policy generation request.</p>
2507
- */
2508
- jobId: string | undefined;
2509
- }
2510
- export declare namespace StartPolicyGenerationResponse {
2511
- /**
2512
- * @internal
2513
- */
2514
- const filterSensitiveLog: (obj: StartPolicyGenerationResponse) => any;
2515
- }
2516
- /**
2517
- * <p>Starts a scan of the policies applied to the specified resource.</p>
2518
- */
2519
- export interface StartResourceScanRequest {
2520
- /**
2521
- * <p>The <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-getting-started.html#permission-resources">ARN of
2522
- * the analyzer</a> to use to scan the policies applied to the specified
2523
- * resource.</p>
2524
- */
2525
- analyzerArn: string | undefined;
2526
- /**
2527
- * <p>The ARN of the resource to scan.</p>
2528
- */
2529
- resourceArn: string | undefined;
2530
- }
2531
- export declare namespace StartResourceScanRequest {
2532
- /**
2533
- * @internal
2534
- */
2535
- const filterSensitiveLog: (obj: StartResourceScanRequest) => any;
2536
- }
2537
- /**
2538
- * <p>Adds a tag to the specified resource.</p>
2539
- */
2540
- export interface TagResourceRequest {
2541
- /**
2542
- * <p>The ARN of the resource to add the tag to.</p>
2543
- */
2544
- resourceArn: string | undefined;
2545
- /**
2546
- * <p>The tags to add to the resource.</p>
2547
- */
2548
- tags: {
2549
- [key: string]: string;
2550
- } | undefined;
2551
- }
2552
- export declare namespace TagResourceRequest {
2553
- /**
2554
- * @internal
2555
- */
2556
- const filterSensitiveLog: (obj: TagResourceRequest) => any;
2557
- }
2558
- /**
2559
- * <p>The response to the request.</p>
2560
- */
2561
- export interface TagResourceResponse {
2562
- }
2563
- export declare namespace TagResourceResponse {
2564
- /**
2565
- * @internal
2566
- */
2567
- const filterSensitiveLog: (obj: TagResourceResponse) => any;
2568
- }
2569
- /**
2570
- * <p>Removes a tag from the specified resource.</p>
2571
- */
2572
- export interface UntagResourceRequest {
2573
- /**
2574
- * <p>The ARN of the resource to remove the tag from.</p>
2575
- */
2576
- resourceArn: string | undefined;
2577
- /**
2578
- * <p>The key for the tag to add.</p>
2579
- */
2580
- tagKeys: string[] | undefined;
2581
- }
2582
- export declare namespace UntagResourceRequest {
2583
- /**
2584
- * @internal
2585
- */
2586
- const filterSensitiveLog: (obj: UntagResourceRequest) => any;
2587
- }
2588
- /**
2589
- * <p>The response to the request.</p>
2590
- */
2591
- export interface UntagResourceResponse {
2592
- }
2593
- export declare namespace UntagResourceResponse {
2594
- /**
2595
- * @internal
2596
- */
2597
- const filterSensitiveLog: (obj: UntagResourceResponse) => any;
2598
- }
2599
- export declare type FindingStatusUpdate = "ACTIVE" | "ARCHIVED";
2600
- /**
2601
- * <p>Updates findings with the new values provided in the request.</p>
2602
- */
2603
- export interface UpdateFindingsRequest {
2604
- /**
2605
- * <p>The <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-getting-started.html#permission-resources">ARN of
2606
- * the analyzer</a> that generated the findings to update.</p>
2607
- */
2608
- analyzerArn: string | undefined;
2609
- /**
2610
- * <p>The state represents the action to take to update the finding Status. Use
2611
- * <code>ARCHIVE</code> to change an Active finding to an Archived finding. Use
2612
- * <code>ACTIVE</code> to change an Archived finding to an Active finding.</p>
2613
- */
2614
- status: FindingStatusUpdate | string | undefined;
2615
- /**
2616
- * <p>The IDs of the findings to update.</p>
2617
- */
2618
- ids?: string[];
2619
- /**
2620
- * <p>The ARN of the resource identified in the finding.</p>
2621
- */
2622
- resourceArn?: string;
2623
- /**
2624
- * <p>A client token.</p>
2625
- */
2626
- clientToken?: string;
2627
- }
2628
- export declare namespace UpdateFindingsRequest {
2629
- /**
2630
- * @internal
2631
- */
2632
- const filterSensitiveLog: (obj: UpdateFindingsRequest) => any;
2633
- }
2634
- export declare enum Locale {
2635
- DE = "DE",
2636
- EN = "EN",
2637
- ES = "ES",
2638
- FR = "FR",
2639
- IT = "IT",
2640
- JA = "JA",
2641
- KO = "KO",
2642
- PT_BR = "PT_BR",
2643
- ZH_CN = "ZH_CN",
2644
- ZH_TW = "ZH_TW"
2645
- }
2646
- export declare enum PolicyType {
2647
- IDENTITY_POLICY = "IDENTITY_POLICY",
2648
- RESOURCE_POLICY = "RESOURCE_POLICY",
2649
- SERVICE_CONTROL_POLICY = "SERVICE_CONTROL_POLICY"
2650
- }
2651
- export interface ValidatePolicyRequest {
2652
- /**
2653
- * <p>The locale to use for localizing the findings.</p>
2654
- */
2655
- locale?: Locale | string;
2656
- /**
2657
- * <p>The maximum number of results to return in the response.</p>
2658
- */
2659
- maxResults?: number;
2660
- /**
2661
- * <p>A token used for pagination of results returned.</p>
2662
- */
2663
- nextToken?: string;
2664
- /**
2665
- * <p>The JSON policy document to use as the content for the policy.</p>
2666
- */
2667
- policyDocument: string | undefined;
2668
- /**
2669
- * <p>The type of policy to validate. Identity policies grant permissions to IAM principals.
2670
- * Identity policies include managed and inline policies for IAM roles, users, and groups.
2671
- * They also include service-control policies (SCPs) that are attached to an Amazon Web Services
2672
- * organization, organizational unit (OU), or an account.</p>
2673
- * <p>Resource policies grant permissions on Amazon Web Services resources. Resource policies include trust
2674
- * policies for IAM roles and bucket policies for Amazon S3 buckets. You can provide a generic
2675
- * input such as identity policy or resource policy or a specific input such as managed policy
2676
- * or Amazon S3 bucket policy. </p>
2677
- */
2678
- policyType: PolicyType | string | undefined;
2679
- }
2680
- export declare namespace ValidatePolicyRequest {
2681
- /**
2682
- * @internal
2683
- */
2684
- const filterSensitiveLog: (obj: ValidatePolicyRequest) => any;
2685
- }
2686
- export declare enum ValidatePolicyFindingType {
2687
- ERROR = "ERROR",
2688
- SECURITY_WARNING = "SECURITY_WARNING",
2689
- SUGGESTION = "SUGGESTION",
2690
- WARNING = "WARNING"
2691
- }
2692
- /**
2693
- * <p>A reference to a substring of a literal string in a JSON document.</p>
2694
- */
2695
- export interface Substring {
2696
- /**
2697
- * <p>The start index of the substring, starting from 0.</p>
2698
- */
2699
- start: number | undefined;
2700
- /**
2701
- * <p>The length of the substring.</p>
2702
- */
2703
- length: number | undefined;
2704
- }
2705
- export declare namespace Substring {
2706
- /**
2707
- * @internal
2708
- */
2709
- const filterSensitiveLog: (obj: Substring) => any;
2710
- }
2711
- /**
2712
- * <p>A single element in a path through the JSON representation of a policy.</p>
2713
- */
2714
- export declare type PathElement = PathElement.IndexMember | PathElement.KeyMember | PathElement.SubstringMember | PathElement.ValueMember | PathElement.$UnknownMember;
2715
- export declare namespace PathElement {
2716
- /**
2717
- * <p>Refers to an index in a JSON array.</p>
2718
- */
2719
- interface IndexMember {
2720
- index: number;
2721
- key?: never;
2722
- substring?: never;
2723
- value?: never;
2724
- $unknown?: never;
2725
- }
2726
- /**
2727
- * <p>Refers to a key in a JSON object.</p>
2728
- */
2729
- interface KeyMember {
2730
- index?: never;
2731
- key: string;
2732
- substring?: never;
2733
- value?: never;
2734
- $unknown?: never;
2735
- }
2736
- /**
2737
- * <p>Refers to a substring of a literal string in a JSON object.</p>
2738
- */
2739
- interface SubstringMember {
2740
- index?: never;
2741
- key?: never;
2742
- substring: Substring;
2743
- value?: never;
2744
- $unknown?: never;
2745
- }
2746
- /**
2747
- * <p>Refers to the value associated with a given key in a JSON object.</p>
2748
- */
2749
- interface ValueMember {
2750
- index?: never;
2751
- key?: never;
2752
- substring?: never;
2753
- value: string;
2754
- $unknown?: never;
2755
- }
2756
- interface $UnknownMember {
2757
- index?: never;
2758
- key?: never;
2759
- substring?: never;
2760
- value?: never;
2761
- $unknown: [
2762
- string,
2763
- any
2764
- ];
2765
- }
2766
- interface Visitor<T> {
2767
- index: (value: number) => T;
2768
- key: (value: string) => T;
2769
- substring: (value: Substring) => T;
2770
- value: (value: string) => T;
2771
- _: (name: string, value: any) => T;
2772
- }
2773
- const visit: <T>(value: PathElement, visitor: Visitor<T>) => T;
2774
- /**
2775
- * @internal
2776
- */
2777
- const filterSensitiveLog: (obj: PathElement) => any;
2778
- }
2779
- /**
2780
- * <p>A position in a policy.</p>
2781
- */
2782
- export interface Position {
2783
- /**
2784
- * <p>The line of the position, starting from 1.</p>
2785
- */
2786
- line: number | undefined;
2787
- /**
2788
- * <p>The column of the position, starting from 0.</p>
2789
- */
2790
- column: number | undefined;
2791
- /**
2792
- * <p>The offset within the policy that corresponds to the position, starting from 0.</p>
2793
- */
2794
- offset: number | undefined;
2795
- }
2796
- export declare namespace Position {
2797
- /**
2798
- * @internal
2799
- */
2800
- const filterSensitiveLog: (obj: Position) => any;
2801
- }
2802
- /**
2803
- * <p>A span in a policy. The span consists of a start position (inclusive) and end position
2804
- * (exclusive).</p>
2805
- */
2806
- export interface Span {
2807
- /**
2808
- * <p>The start position of the span (inclusive).</p>
2809
- */
2810
- start: Position | undefined;
2811
- /**
2812
- * <p>The end position of the span (exclusive).</p>
2813
- */
2814
- end: Position | undefined;
2815
- }
2816
- export declare namespace Span {
2817
- /**
2818
- * @internal
2819
- */
2820
- const filterSensitiveLog: (obj: Span) => any;
2821
- }
2822
- /**
2823
- * <p>A location in a policy that is represented as a path through the JSON representation and
2824
- * a corresponding span.</p>
2825
- */
2826
- export interface Location {
2827
- /**
2828
- * <p>A path in a policy, represented as a sequence of path elements.</p>
2829
- */
2830
- path: PathElement[] | undefined;
2831
- /**
2832
- * <p>A span in a policy.</p>
2833
- */
2834
- span: Span | undefined;
2835
- }
2836
- export declare namespace Location {
2837
- /**
2838
- * @internal
2839
- */
2840
- const filterSensitiveLog: (obj: Location) => any;
2841
- }
2842
- /**
2843
- * <p>A finding in a policy. Each finding is an actionable recommendation that can be used to
2844
- * improve the policy.</p>
2845
- */
2846
- export interface ValidatePolicyFinding {
2847
- /**
2848
- * <p>A localized message that explains the finding and provides guidance on how to address
2849
- * it.</p>
2850
- */
2851
- findingDetails: string | undefined;
2852
- /**
2853
- * <p>The impact of the finding.</p>
2854
- * <p>Security warnings report when the policy allows access that we consider overly
2855
- * permissive.</p>
2856
- * <p>Errors report when a part of the policy is not functional.</p>
2857
- * <p>Warnings report non-security issues when a policy does not conform to policy writing
2858
- * best practices.</p>
2859
- * <p>Suggestions recommend stylistic improvements in the policy that do not impact
2860
- * access.</p>
2861
- */
2862
- findingType: ValidatePolicyFindingType | string | undefined;
2863
- /**
2864
- * <p>The issue code provides an identifier of the issue associated with this finding.</p>
2865
- */
2866
- issueCode: string | undefined;
2867
- /**
2868
- * <p>A link to additional documentation about the type of finding.</p>
2869
- */
2870
- learnMoreLink: string | undefined;
2871
- /**
2872
- * <p>The list of locations in the policy document that are related to the finding. The issue
2873
- * code provides a summary of an issue identified by the finding.</p>
2874
- */
2875
- locations: Location[] | undefined;
2876
- }
2877
- export declare namespace ValidatePolicyFinding {
2878
- /**
2879
- * @internal
2880
- */
2881
- const filterSensitiveLog: (obj: ValidatePolicyFinding) => any;
2882
- }
2883
- export interface ValidatePolicyResponse {
2884
- /**
2885
- * <p>The list of findings in a policy returned by IAM Access Analyzer based on its suite of policy
2886
- * checks.</p>
2887
- */
2888
- findings: ValidatePolicyFinding[] | undefined;
2889
- /**
2890
- * <p>A token used for pagination of results returned.</p>
2891
- */
2892
- nextToken?: string;
2893
- }
2894
- export declare namespace ValidatePolicyResponse {
2895
- /**
2896
- * @internal
2897
- */
2898
- const filterSensitiveLog: (obj: ValidatePolicyResponse) => any;
2899
- }