@aws-sdk/client-cloudtrail 3.33.0 → 3.36.1

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 (275) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/{dist/cjs → dist-cjs}/CloudTrail.js +0 -19
  3. package/dist-cjs/CloudTrailClient.js +35 -0
  4. package/{dist/cjs → dist-cjs}/commands/AddTagsCommand.js +2 -30
  5. package/{dist/cjs → dist-cjs}/commands/CreateTrailCommand.js +2 -28
  6. package/{dist/cjs → dist-cjs}/commands/DeleteTrailCommand.js +2 -29
  7. package/{dist/cjs → dist-cjs}/commands/DescribeTrailsCommand.js +2 -27
  8. package/dist-cjs/commands/GetEventSelectorsCommand.js +36 -0
  9. package/dist-cjs/commands/GetInsightSelectorsCommand.js +36 -0
  10. package/{dist/cjs → dist-cjs}/commands/GetTrailCommand.js +2 -27
  11. package/{dist/cjs → dist-cjs}/commands/GetTrailStatusCommand.js +2 -27
  12. package/{dist/cjs → dist-cjs}/commands/ListPublicKeysCommand.js +2 -32
  13. package/{dist/cjs → dist-cjs}/commands/ListTagsCommand.js +2 -27
  14. package/{dist/cjs → dist-cjs}/commands/ListTrailsCommand.js +2 -27
  15. package/dist-cjs/commands/LookupEventsCommand.js +36 -0
  16. package/dist-cjs/commands/PutEventSelectorsCommand.js +36 -0
  17. package/{dist/cjs → dist-cjs}/commands/PutInsightSelectorsCommand.js +2 -30
  18. package/{dist/cjs → dist-cjs}/commands/RemoveTagsCommand.js +2 -27
  19. package/{dist/cjs → dist-cjs}/commands/StartLoggingCommand.js +2 -27
  20. package/{dist/cjs → dist-cjs}/commands/StopLoggingCommand.js +2 -33
  21. package/{dist/cjs → dist-cjs}/commands/UpdateTrailCommand.js +2 -32
  22. package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
  23. package/{dist/cjs → dist-cjs}/index.js +0 -1
  24. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  25. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -280
  26. package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
  27. package/{dist/cjs → dist-cjs}/pagination/ListPublicKeysPaginator.js +0 -11
  28. package/{dist/cjs → dist-cjs}/pagination/ListTagsPaginator.js +0 -11
  29. package/{dist/cjs → dist-cjs}/pagination/ListTrailsPaginator.js +0 -11
  30. package/{dist/cjs → dist-cjs}/pagination/LookupEventsPaginator.js +0 -11
  31. package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -6
  32. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
  33. package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
  34. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
  35. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
  36. package/{dist/es → dist-es}/CloudTrail.js +1 -20
  37. package/dist-es/CloudTrailClient.js +37 -0
  38. package/{dist/es → dist-es}/commands/AddTagsCommand.js +4 -33
  39. package/{dist/es → dist-es}/commands/CreateTrailCommand.js +4 -31
  40. package/{dist/es → dist-es}/commands/DeleteTrailCommand.js +4 -32
  41. package/{dist/es → dist-es}/commands/DescribeTrailsCommand.js +4 -30
  42. package/dist-es/commands/GetEventSelectorsCommand.js +39 -0
  43. package/{dist/es → dist-es}/commands/GetInsightSelectorsCommand.js +4 -36
  44. package/{dist/es → dist-es}/commands/GetTrailCommand.js +4 -30
  45. package/{dist/es → dist-es}/commands/GetTrailStatusCommand.js +4 -30
  46. package/{dist/es → dist-es}/commands/ListPublicKeysCommand.js +4 -35
  47. package/{dist/es → dist-es}/commands/ListTagsCommand.js +4 -30
  48. package/{dist/es → dist-es}/commands/ListTrailsCommand.js +4 -30
  49. package/dist-es/commands/LookupEventsCommand.js +39 -0
  50. package/dist-es/commands/PutEventSelectorsCommand.js +39 -0
  51. package/{dist/es → dist-es}/commands/PutInsightSelectorsCommand.js +4 -33
  52. package/{dist/es → dist-es}/commands/RemoveTagsCommand.js +4 -30
  53. package/{dist/es → dist-es}/commands/StartLoggingCommand.js +4 -30
  54. package/{dist/es → dist-es}/commands/StopLoggingCommand.js +4 -36
  55. package/{dist/es → dist-es}/commands/UpdateTrailCommand.js +4 -35
  56. package/{dist/es → dist-es}/endpoints.js +1 -2
  57. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  58. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  59. package/{dist/es → dist-es}/models/models_0.js +0 -280
  60. package/dist-es/pagination/Interfaces.js +1 -0
  61. package/{dist/es → dist-es}/pagination/ListPublicKeysPaginator.js +16 -29
  62. package/{dist/es → dist-es}/pagination/ListTagsPaginator.js +16 -29
  63. package/{dist/es → dist-es}/pagination/ListTrailsPaginator.js +16 -29
  64. package/{dist/es → dist-es}/pagination/LookupEventsPaginator.js +16 -29
  65. package/{dist/es → dist-es}/protocols/Aws_json1_1.js +788 -794
  66. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
  67. package/{dist/es → dist-es}/runtimeConfig.js +1 -5
  68. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
  69. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
  70. package/{dist/types → dist-types}/CloudTrail.d.ts +1 -1
  71. package/{dist/types → dist-types}/CloudTrailClient.d.ts +8 -8
  72. package/{dist/types → dist-types}/commands/AddTagsCommand.d.ts +2 -2
  73. package/{dist/types → dist-types}/commands/CreateTrailCommand.d.ts +2 -2
  74. package/{dist/types → dist-types}/commands/DeleteTrailCommand.d.ts +2 -2
  75. package/{dist/types → dist-types}/commands/DescribeTrailsCommand.d.ts +2 -2
  76. package/{dist/types → dist-types}/commands/GetEventSelectorsCommand.d.ts +2 -2
  77. package/{dist/types → dist-types}/commands/GetInsightSelectorsCommand.d.ts +2 -2
  78. package/{dist/types → dist-types}/commands/GetTrailCommand.d.ts +2 -2
  79. package/{dist/types → dist-types}/commands/GetTrailStatusCommand.d.ts +2 -2
  80. package/{dist/types → dist-types}/commands/ListPublicKeysCommand.d.ts +2 -2
  81. package/{dist/types → dist-types}/commands/ListTagsCommand.d.ts +2 -2
  82. package/{dist/types → dist-types}/commands/ListTrailsCommand.d.ts +2 -2
  83. package/{dist/types → dist-types}/commands/LookupEventsCommand.d.ts +2 -2
  84. package/{dist/types → dist-types}/commands/PutEventSelectorsCommand.d.ts +2 -2
  85. package/{dist/types → dist-types}/commands/PutInsightSelectorsCommand.d.ts +2 -2
  86. package/{dist/types → dist-types}/commands/RemoveTagsCommand.d.ts +2 -2
  87. package/{dist/types → dist-types}/commands/StartLoggingCommand.d.ts +2 -2
  88. package/{dist/types → dist-types}/commands/StopLoggingCommand.d.ts +2 -2
  89. package/{dist/types → dist-types}/commands/UpdateTrailCommand.d.ts +2 -2
  90. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  91. package/{index.ts → dist-types/index.d.ts} +0 -0
  92. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  93. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  94. package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
  95. package/{dist/types → dist-types}/pagination/ListPublicKeysPaginator.d.ts +1 -1
  96. package/{dist/types → dist-types}/pagination/ListTagsPaginator.d.ts +1 -1
  97. package/{dist/types → dist-types}/pagination/ListTrailsPaginator.d.ts +1 -1
  98. package/{dist/types → dist-types}/pagination/LookupEventsPaginator.d.ts +1 -1
  99. package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +2 -2
  100. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
  101. package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
  102. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
  103. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  104. package/dist-types/ts3.4/CloudTrail.d.ts +95 -0
  105. package/{dist/types → dist-types}/ts3.4/CloudTrailClient.d.ts +32 -112
  106. package/dist-types/ts3.4/commands/AddTagsCommand.d.ts +17 -0
  107. package/dist-types/ts3.4/commands/CreateTrailCommand.d.ts +17 -0
  108. package/dist-types/ts3.4/commands/DeleteTrailCommand.d.ts +17 -0
  109. package/dist-types/ts3.4/commands/DescribeTrailsCommand.d.ts +17 -0
  110. package/dist-types/ts3.4/commands/GetEventSelectorsCommand.d.ts +17 -0
  111. package/dist-types/ts3.4/commands/GetInsightSelectorsCommand.d.ts +17 -0
  112. package/dist-types/ts3.4/commands/GetTrailCommand.d.ts +17 -0
  113. package/dist-types/ts3.4/commands/GetTrailStatusCommand.d.ts +17 -0
  114. package/dist-types/ts3.4/commands/ListPublicKeysCommand.d.ts +17 -0
  115. package/dist-types/ts3.4/commands/ListTagsCommand.d.ts +17 -0
  116. package/dist-types/ts3.4/commands/ListTrailsCommand.d.ts +17 -0
  117. package/dist-types/ts3.4/commands/LookupEventsCommand.d.ts +17 -0
  118. package/dist-types/ts3.4/commands/PutEventSelectorsCommand.d.ts +17 -0
  119. package/dist-types/ts3.4/commands/PutInsightSelectorsCommand.d.ts +17 -0
  120. package/dist-types/ts3.4/commands/RemoveTagsCommand.d.ts +17 -0
  121. package/dist-types/ts3.4/commands/StartLoggingCommand.d.ts +17 -0
  122. package/dist-types/ts3.4/commands/StopLoggingCommand.d.ts +17 -0
  123. package/dist-types/ts3.4/commands/UpdateTrailCommand.d.ts +17 -0
  124. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  125. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  126. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  127. package/dist-types/ts3.4/models/models_0.d.ts +1181 -0
  128. package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
  129. package/{dist/types → dist-types}/ts3.4/pagination/ListPublicKeysPaginator.d.ts +1 -1
  130. package/{dist/types → dist-types}/ts3.4/pagination/ListTagsPaginator.d.ts +1 -1
  131. package/{dist/types → dist-types}/ts3.4/pagination/ListTrailsPaginator.d.ts +1 -1
  132. package/{dist/types → dist-types}/ts3.4/pagination/LookupEventsPaginator.d.ts +1 -1
  133. package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +2 -2
  134. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
  135. package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
  136. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
  137. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
  138. package/package.json +52 -49
  139. package/CloudTrail.ts +0 -730
  140. package/CloudTrailClient.ts +0 -310
  141. package/commands/AddTagsCommand.ts +0 -94
  142. package/commands/CreateTrailCommand.ts +0 -95
  143. package/commands/DeleteTrailCommand.ts +0 -96
  144. package/commands/DescribeTrailsCommand.ts +0 -94
  145. package/commands/GetEventSelectorsCommand.ts +0 -110
  146. package/commands/GetInsightSelectorsCommand.ts +0 -100
  147. package/commands/GetTrailCommand.ts +0 -91
  148. package/commands/GetTrailStatusCommand.ts +0 -94
  149. package/commands/ListPublicKeysCommand.ts +0 -99
  150. package/commands/ListTagsCommand.ts +0 -91
  151. package/commands/ListTrailsCommand.ts +0 -94
  152. package/commands/LookupEventsCommand.ts +0 -141
  153. package/commands/PutEventSelectorsCommand.ts +0 -138
  154. package/commands/PutInsightSelectorsCommand.ts +0 -97
  155. package/commands/RemoveTagsCommand.ts +0 -94
  156. package/commands/StartLoggingCommand.ts +0 -94
  157. package/commands/StopLoggingCommand.ts +0 -100
  158. package/commands/UpdateTrailCommand.ts +0 -99
  159. package/dist/cjs/CloudTrail.js.map +0 -1
  160. package/dist/cjs/CloudTrailClient.js +0 -59
  161. package/dist/cjs/CloudTrailClient.js.map +0 -1
  162. package/dist/cjs/commands/AddTagsCommand.js.map +0 -1
  163. package/dist/cjs/commands/CreateTrailCommand.js.map +0 -1
  164. package/dist/cjs/commands/DeleteTrailCommand.js.map +0 -1
  165. package/dist/cjs/commands/DescribeTrailsCommand.js.map +0 -1
  166. package/dist/cjs/commands/GetEventSelectorsCommand.js +0 -77
  167. package/dist/cjs/commands/GetEventSelectorsCommand.js.map +0 -1
  168. package/dist/cjs/commands/GetInsightSelectorsCommand.js +0 -67
  169. package/dist/cjs/commands/GetInsightSelectorsCommand.js.map +0 -1
  170. package/dist/cjs/commands/GetTrailCommand.js.map +0 -1
  171. package/dist/cjs/commands/GetTrailStatusCommand.js.map +0 -1
  172. package/dist/cjs/commands/ListPublicKeysCommand.js.map +0 -1
  173. package/dist/cjs/commands/ListTagsCommand.js.map +0 -1
  174. package/dist/cjs/commands/ListTrailsCommand.js.map +0 -1
  175. package/dist/cjs/commands/LookupEventsCommand.js +0 -108
  176. package/dist/cjs/commands/LookupEventsCommand.js.map +0 -1
  177. package/dist/cjs/commands/PutEventSelectorsCommand.js +0 -105
  178. package/dist/cjs/commands/PutEventSelectorsCommand.js.map +0 -1
  179. package/dist/cjs/commands/PutInsightSelectorsCommand.js.map +0 -1
  180. package/dist/cjs/commands/RemoveTagsCommand.js.map +0 -1
  181. package/dist/cjs/commands/StartLoggingCommand.js.map +0 -1
  182. package/dist/cjs/commands/StopLoggingCommand.js.map +0 -1
  183. package/dist/cjs/commands/UpdateTrailCommand.js.map +0 -1
  184. package/dist/cjs/endpoints.js.map +0 -1
  185. package/dist/cjs/index.js.map +0 -1
  186. package/dist/cjs/models/index.js.map +0 -1
  187. package/dist/cjs/models/models_0.js.map +0 -1
  188. package/dist/cjs/package.json +0 -91
  189. package/dist/cjs/pagination/Interfaces.js.map +0 -1
  190. package/dist/cjs/pagination/ListPublicKeysPaginator.js.map +0 -1
  191. package/dist/cjs/pagination/ListTagsPaginator.js.map +0 -1
  192. package/dist/cjs/pagination/ListTrailsPaginator.js.map +0 -1
  193. package/dist/cjs/pagination/LookupEventsPaginator.js.map +0 -1
  194. package/dist/cjs/protocols/Aws_json1_1.js.map +0 -1
  195. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  196. package/dist/cjs/runtimeConfig.js.map +0 -1
  197. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  198. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  199. package/dist/es/CloudTrail.js.map +0 -1
  200. package/dist/es/CloudTrailClient.js +0 -61
  201. package/dist/es/CloudTrailClient.js.map +0 -1
  202. package/dist/es/commands/AddTagsCommand.js.map +0 -1
  203. package/dist/es/commands/CreateTrailCommand.js.map +0 -1
  204. package/dist/es/commands/DeleteTrailCommand.js.map +0 -1
  205. package/dist/es/commands/DescribeTrailsCommand.js.map +0 -1
  206. package/dist/es/commands/GetEventSelectorsCommand.js +0 -81
  207. package/dist/es/commands/GetEventSelectorsCommand.js.map +0 -1
  208. package/dist/es/commands/GetInsightSelectorsCommand.js.map +0 -1
  209. package/dist/es/commands/GetTrailCommand.js.map +0 -1
  210. package/dist/es/commands/GetTrailStatusCommand.js.map +0 -1
  211. package/dist/es/commands/ListPublicKeysCommand.js.map +0 -1
  212. package/dist/es/commands/ListTagsCommand.js.map +0 -1
  213. package/dist/es/commands/ListTrailsCommand.js.map +0 -1
  214. package/dist/es/commands/LookupEventsCommand.js +0 -112
  215. package/dist/es/commands/LookupEventsCommand.js.map +0 -1
  216. package/dist/es/commands/PutEventSelectorsCommand.js +0 -109
  217. package/dist/es/commands/PutEventSelectorsCommand.js.map +0 -1
  218. package/dist/es/commands/PutInsightSelectorsCommand.js.map +0 -1
  219. package/dist/es/commands/RemoveTagsCommand.js.map +0 -1
  220. package/dist/es/commands/StartLoggingCommand.js.map +0 -1
  221. package/dist/es/commands/StopLoggingCommand.js.map +0 -1
  222. package/dist/es/commands/UpdateTrailCommand.js.map +0 -1
  223. package/dist/es/endpoints.js.map +0 -1
  224. package/dist/es/index.js +0 -27
  225. package/dist/es/index.js.map +0 -1
  226. package/dist/es/models/index.js +0 -2
  227. package/dist/es/models/index.js.map +0 -1
  228. package/dist/es/models/models_0.js.map +0 -1
  229. package/dist/es/package.json +0 -91
  230. package/dist/es/pagination/Interfaces.js +0 -2
  231. package/dist/es/pagination/Interfaces.js.map +0 -1
  232. package/dist/es/pagination/ListPublicKeysPaginator.js.map +0 -1
  233. package/dist/es/pagination/ListTagsPaginator.js.map +0 -1
  234. package/dist/es/pagination/ListTrailsPaginator.js.map +0 -1
  235. package/dist/es/pagination/LookupEventsPaginator.js.map +0 -1
  236. package/dist/es/protocols/Aws_json1_1.js.map +0 -1
  237. package/dist/es/runtimeConfig.browser.js.map +0 -1
  238. package/dist/es/runtimeConfig.js.map +0 -1
  239. package/dist/es/runtimeConfig.native.js.map +0 -1
  240. package/dist/es/runtimeConfig.shared.js.map +0 -1
  241. package/dist/types/ts3.4/CloudTrail.d.ts +0 -286
  242. package/dist/types/ts3.4/commands/AddTagsCommand.d.ts +0 -38
  243. package/dist/types/ts3.4/commands/CreateTrailCommand.d.ts +0 -36
  244. package/dist/types/ts3.4/commands/DeleteTrailCommand.d.ts +0 -37
  245. package/dist/types/ts3.4/commands/DescribeTrailsCommand.d.ts +0 -35
  246. package/dist/types/ts3.4/commands/GetEventSelectorsCommand.d.ts +0 -51
  247. package/dist/types/ts3.4/commands/GetInsightSelectorsCommand.d.ts +0 -41
  248. package/dist/types/ts3.4/commands/GetTrailCommand.d.ts +0 -35
  249. package/dist/types/ts3.4/commands/GetTrailStatusCommand.d.ts +0 -35
  250. package/dist/types/ts3.4/commands/ListPublicKeysCommand.d.ts +0 -40
  251. package/dist/types/ts3.4/commands/ListTagsCommand.d.ts +0 -35
  252. package/dist/types/ts3.4/commands/ListTrailsCommand.d.ts +0 -35
  253. package/dist/types/ts3.4/commands/LookupEventsCommand.d.ts +0 -82
  254. package/dist/types/ts3.4/commands/PutEventSelectorsCommand.d.ts +0 -79
  255. package/dist/types/ts3.4/commands/PutInsightSelectorsCommand.d.ts +0 -38
  256. package/dist/types/ts3.4/commands/RemoveTagsCommand.d.ts +0 -35
  257. package/dist/types/ts3.4/commands/StartLoggingCommand.d.ts +0 -35
  258. package/dist/types/ts3.4/commands/StopLoggingCommand.d.ts +0 -41
  259. package/dist/types/ts3.4/commands/UpdateTrailCommand.d.ts +0 -40
  260. package/dist/types/ts3.4/models/models_0.d.ts +0 -2668
  261. package/endpoints.ts +0 -86
  262. package/jest.config.js +0 -4
  263. package/models/models_0.ts +0 -3167
  264. package/pagination/Interfaces.ts +0 -7
  265. package/pagination/ListPublicKeysPaginator.ts +0 -57
  266. package/pagination/ListTagsPaginator.ts +0 -53
  267. package/pagination/ListTrailsPaginator.ts +0 -53
  268. package/pagination/LookupEventsPaginator.ts +0 -58
  269. package/protocols/Aws_json1_1.ts +0 -4521
  270. package/runtimeConfig.browser.ts +0 -40
  271. package/runtimeConfig.native.ts +0 -16
  272. package/runtimeConfig.shared.ts +0 -16
  273. package/runtimeConfig.ts +0 -45
  274. package/tsconfig.es.json +0 -12
  275. package/tsconfig.json +0 -32
@@ -1,38 +0,0 @@
1
- import { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient";
2
- import { AddTagsRequest, AddTagsResponse } from "../models/models_0";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
5
- export interface AddTagsCommandInput extends AddTagsRequest {
6
- }
7
- export interface AddTagsCommandOutput extends AddTagsResponse, __MetadataBearer {
8
- }
9
- /**
10
- * <p>Adds one or more tags to a trail, up to a limit of 50. Overwrites an existing tag's value when a new value is specified for an existing tag key.
11
- * Tag key names must be unique for a trail; you cannot have two keys with the same name but different values.
12
- * If you specify a key without a value, the tag will be created with the specified key and a value of null.
13
- * You can tag a trail that applies to all Amazon Web Services Regions only from the Region in which the trail was created (also known as its home region).</p>
14
- * @example
15
- * Use a bare-bones client and the command you need to make an API call.
16
- * ```javascript
17
- * import { CloudTrailClient, AddTagsCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
18
- * // const { CloudTrailClient, AddTagsCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
19
- * const client = new CloudTrailClient(config);
20
- * const command = new AddTagsCommand(input);
21
- * const response = await client.send(command);
22
- * ```
23
- *
24
- * @see {@link AddTagsCommandInput} for command's `input` shape.
25
- * @see {@link AddTagsCommandOutput} for command's `response` shape.
26
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
27
- *
28
- */
29
- export declare class AddTagsCommand extends $Command<AddTagsCommandInput, AddTagsCommandOutput, CloudTrailClientResolvedConfig> {
30
- readonly input: AddTagsCommandInput;
31
- constructor(input: AddTagsCommandInput);
32
- /**
33
- * @internal
34
- */
35
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<AddTagsCommandInput, AddTagsCommandOutput>;
36
- private serialize;
37
- private deserialize;
38
- }
@@ -1,36 +0,0 @@
1
- import { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient";
2
- import { CreateTrailRequest, CreateTrailResponse } from "../models/models_0";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
5
- export interface CreateTrailCommandInput extends CreateTrailRequest {
6
- }
7
- export interface CreateTrailCommandOutput extends CreateTrailResponse, __MetadataBearer {
8
- }
9
- /**
10
- * <p>Creates a trail that specifies the settings for delivery of log data to an Amazon S3 bucket.
11
- * </p>
12
- * @example
13
- * Use a bare-bones client and the command you need to make an API call.
14
- * ```javascript
15
- * import { CloudTrailClient, CreateTrailCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
16
- * // const { CloudTrailClient, CreateTrailCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
17
- * const client = new CloudTrailClient(config);
18
- * const command = new CreateTrailCommand(input);
19
- * const response = await client.send(command);
20
- * ```
21
- *
22
- * @see {@link CreateTrailCommandInput} for command's `input` shape.
23
- * @see {@link CreateTrailCommandOutput} for command's `response` shape.
24
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
25
- *
26
- */
27
- export declare class CreateTrailCommand extends $Command<CreateTrailCommandInput, CreateTrailCommandOutput, CloudTrailClientResolvedConfig> {
28
- readonly input: CreateTrailCommandInput;
29
- constructor(input: CreateTrailCommandInput);
30
- /**
31
- * @internal
32
- */
33
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateTrailCommandInput, CreateTrailCommandOutput>;
34
- private serialize;
35
- private deserialize;
36
- }
@@ -1,37 +0,0 @@
1
- import { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient";
2
- import { DeleteTrailRequest, DeleteTrailResponse } from "../models/models_0";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
5
- export interface DeleteTrailCommandInput extends DeleteTrailRequest {
6
- }
7
- export interface DeleteTrailCommandOutput extends DeleteTrailResponse, __MetadataBearer {
8
- }
9
- /**
10
- * <p>Deletes a trail. This operation must be called from the region in which the trail was
11
- * created. <code>DeleteTrail</code> cannot be called on the shadow trails (replicated trails
12
- * in other regions) of a trail that is enabled in all regions.</p>
13
- * @example
14
- * Use a bare-bones client and the command you need to make an API call.
15
- * ```javascript
16
- * import { CloudTrailClient, DeleteTrailCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
17
- * // const { CloudTrailClient, DeleteTrailCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
18
- * const client = new CloudTrailClient(config);
19
- * const command = new DeleteTrailCommand(input);
20
- * const response = await client.send(command);
21
- * ```
22
- *
23
- * @see {@link DeleteTrailCommandInput} for command's `input` shape.
24
- * @see {@link DeleteTrailCommandOutput} for command's `response` shape.
25
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
26
- *
27
- */
28
- export declare class DeleteTrailCommand extends $Command<DeleteTrailCommandInput, DeleteTrailCommandOutput, CloudTrailClientResolvedConfig> {
29
- readonly input: DeleteTrailCommandInput;
30
- constructor(input: DeleteTrailCommandInput);
31
- /**
32
- * @internal
33
- */
34
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteTrailCommandInput, DeleteTrailCommandOutput>;
35
- private serialize;
36
- private deserialize;
37
- }
@@ -1,35 +0,0 @@
1
- import { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient";
2
- import { DescribeTrailsRequest, DescribeTrailsResponse } from "../models/models_0";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
5
- export interface DescribeTrailsCommandInput extends DescribeTrailsRequest {
6
- }
7
- export interface DescribeTrailsCommandOutput extends DescribeTrailsResponse, __MetadataBearer {
8
- }
9
- /**
10
- * <p>Retrieves settings for one or more trails associated with the current region for your account.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { CloudTrailClient, DescribeTrailsCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
15
- * // const { CloudTrailClient, DescribeTrailsCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
16
- * const client = new CloudTrailClient(config);
17
- * const command = new DescribeTrailsCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link DescribeTrailsCommandInput} for command's `input` shape.
22
- * @see {@link DescribeTrailsCommandOutput} for command's `response` shape.
23
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
- export declare class DescribeTrailsCommand extends $Command<DescribeTrailsCommandInput, DescribeTrailsCommandOutput, CloudTrailClientResolvedConfig> {
27
- readonly input: DescribeTrailsCommandInput;
28
- constructor(input: DescribeTrailsCommandInput);
29
- /**
30
- * @internal
31
- */
32
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DescribeTrailsCommandInput, DescribeTrailsCommandOutput>;
33
- private serialize;
34
- private deserialize;
35
- }
@@ -1,51 +0,0 @@
1
- import { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient";
2
- import { GetEventSelectorsRequest, GetEventSelectorsResponse } from "../models/models_0";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
5
- export interface GetEventSelectorsCommandInput extends GetEventSelectorsRequest {
6
- }
7
- export interface GetEventSelectorsCommandOutput extends GetEventSelectorsResponse, __MetadataBearer {
8
- }
9
- /**
10
- * <p>Describes the settings for the event selectors that you configured for your trail.
11
- * The information returned for your event selectors includes the following:</p>
12
- * <ul>
13
- * <li>
14
- * <p>If your event selector includes read-only events, write-only events, or
15
- * all events. This applies to both management events and data events.</p>
16
- * </li>
17
- * <li>
18
- * <p>If your event selector includes management events.</p>
19
- * </li>
20
- * <li>
21
- * <p>If your event selector includes data events, the resources on which you are logging data
22
- * events.</p>
23
- * </li>
24
- * </ul>
25
- * <p>For more information, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-and-data-events-with-cloudtrail.html">Logging Data and Management Events for Trails
26
- * </a> in the <i>CloudTrail User Guide</i>.</p>
27
- * @example
28
- * Use a bare-bones client and the command you need to make an API call.
29
- * ```javascript
30
- * import { CloudTrailClient, GetEventSelectorsCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
31
- * // const { CloudTrailClient, GetEventSelectorsCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
32
- * const client = new CloudTrailClient(config);
33
- * const command = new GetEventSelectorsCommand(input);
34
- * const response = await client.send(command);
35
- * ```
36
- *
37
- * @see {@link GetEventSelectorsCommandInput} for command's `input` shape.
38
- * @see {@link GetEventSelectorsCommandOutput} for command's `response` shape.
39
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
40
- *
41
- */
42
- export declare class GetEventSelectorsCommand extends $Command<GetEventSelectorsCommandInput, GetEventSelectorsCommandOutput, CloudTrailClientResolvedConfig> {
43
- readonly input: GetEventSelectorsCommandInput;
44
- constructor(input: GetEventSelectorsCommandInput);
45
- /**
46
- * @internal
47
- */
48
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetEventSelectorsCommandInput, GetEventSelectorsCommandOutput>;
49
- private serialize;
50
- private deserialize;
51
- }
@@ -1,41 +0,0 @@
1
- import { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient";
2
- import { GetInsightSelectorsRequest, GetInsightSelectorsResponse } from "../models/models_0";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
5
- export interface GetInsightSelectorsCommandInput extends GetInsightSelectorsRequest {
6
- }
7
- export interface GetInsightSelectorsCommandOutput extends GetInsightSelectorsResponse, __MetadataBearer {
8
- }
9
- /**
10
- * <p>Describes the settings for the Insights event selectors that you configured for your trail. <code>GetInsightSelectors</code> shows
11
- * if CloudTrail Insights event logging is enabled on the trail, and if it is, which insight types are enabled.
12
- * If you run <code>GetInsightSelectors</code> on a trail that does not have Insights events enabled, the operation throws the exception
13
- * <code>InsightNotEnabledException</code>
14
- * </p>
15
- * <p>For more information, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-insights-events-with-cloudtrail.html">Logging CloudTrail Insights Events for Trails
16
- * </a> in the <i>CloudTrail User Guide</i>.</p>
17
- * @example
18
- * Use a bare-bones client and the command you need to make an API call.
19
- * ```javascript
20
- * import { CloudTrailClient, GetInsightSelectorsCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
21
- * // const { CloudTrailClient, GetInsightSelectorsCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
22
- * const client = new CloudTrailClient(config);
23
- * const command = new GetInsightSelectorsCommand(input);
24
- * const response = await client.send(command);
25
- * ```
26
- *
27
- * @see {@link GetInsightSelectorsCommandInput} for command's `input` shape.
28
- * @see {@link GetInsightSelectorsCommandOutput} for command's `response` shape.
29
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
30
- *
31
- */
32
- export declare class GetInsightSelectorsCommand extends $Command<GetInsightSelectorsCommandInput, GetInsightSelectorsCommandOutput, CloudTrailClientResolvedConfig> {
33
- readonly input: GetInsightSelectorsCommandInput;
34
- constructor(input: GetInsightSelectorsCommandInput);
35
- /**
36
- * @internal
37
- */
38
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetInsightSelectorsCommandInput, GetInsightSelectorsCommandOutput>;
39
- private serialize;
40
- private deserialize;
41
- }
@@ -1,35 +0,0 @@
1
- import { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient";
2
- import { GetTrailRequest, GetTrailResponse } from "../models/models_0";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
5
- export interface GetTrailCommandInput extends GetTrailRequest {
6
- }
7
- export interface GetTrailCommandOutput extends GetTrailResponse, __MetadataBearer {
8
- }
9
- /**
10
- * <p>Returns settings information for a specified trail.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { CloudTrailClient, GetTrailCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
15
- * // const { CloudTrailClient, GetTrailCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
16
- * const client = new CloudTrailClient(config);
17
- * const command = new GetTrailCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link GetTrailCommandInput} for command's `input` shape.
22
- * @see {@link GetTrailCommandOutput} for command's `response` shape.
23
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
- export declare class GetTrailCommand extends $Command<GetTrailCommandInput, GetTrailCommandOutput, CloudTrailClientResolvedConfig> {
27
- readonly input: GetTrailCommandInput;
28
- constructor(input: GetTrailCommandInput);
29
- /**
30
- * @internal
31
- */
32
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetTrailCommandInput, GetTrailCommandOutput>;
33
- private serialize;
34
- private deserialize;
35
- }
@@ -1,35 +0,0 @@
1
- import { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient";
2
- import { GetTrailStatusRequest, GetTrailStatusResponse } from "../models/models_0";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
5
- export interface GetTrailStatusCommandInput extends GetTrailStatusRequest {
6
- }
7
- export interface GetTrailStatusCommandOutput extends GetTrailStatusResponse, __MetadataBearer {
8
- }
9
- /**
10
- * <p>Returns a JSON-formatted list of information about the specified trail. Fields include information on delivery errors, Amazon SNS and Amazon S3 errors, and start and stop logging times for each trail. This operation returns trail status from a single region. To return trail status from all regions, you must call the operation on each region.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { CloudTrailClient, GetTrailStatusCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
15
- * // const { CloudTrailClient, GetTrailStatusCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
16
- * const client = new CloudTrailClient(config);
17
- * const command = new GetTrailStatusCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link GetTrailStatusCommandInput} for command's `input` shape.
22
- * @see {@link GetTrailStatusCommandOutput} for command's `response` shape.
23
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
- export declare class GetTrailStatusCommand extends $Command<GetTrailStatusCommandInput, GetTrailStatusCommandOutput, CloudTrailClientResolvedConfig> {
27
- readonly input: GetTrailStatusCommandInput;
28
- constructor(input: GetTrailStatusCommandInput);
29
- /**
30
- * @internal
31
- */
32
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetTrailStatusCommandInput, GetTrailStatusCommandOutput>;
33
- private serialize;
34
- private deserialize;
35
- }
@@ -1,40 +0,0 @@
1
- import { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient";
2
- import { ListPublicKeysRequest, ListPublicKeysResponse } from "../models/models_0";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
5
- export interface ListPublicKeysCommandInput extends ListPublicKeysRequest {
6
- }
7
- export interface ListPublicKeysCommandOutput extends ListPublicKeysResponse, __MetadataBearer {
8
- }
9
- /**
10
- * <p>Returns all public keys whose private keys were used to sign the digest files within the specified time range. The public key is needed to validate digest files that were signed with its corresponding private key.</p>
11
- * <note>
12
- * <p>CloudTrail uses different private and public key pairs per region. Each digest file is signed with a private key
13
- * unique to its region. When you validate a digest file from a specific region, you must look in the same region for its
14
- * corresponding public key.</p>
15
- * </note>
16
- * @example
17
- * Use a bare-bones client and the command you need to make an API call.
18
- * ```javascript
19
- * import { CloudTrailClient, ListPublicKeysCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
20
- * // const { CloudTrailClient, ListPublicKeysCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
21
- * const client = new CloudTrailClient(config);
22
- * const command = new ListPublicKeysCommand(input);
23
- * const response = await client.send(command);
24
- * ```
25
- *
26
- * @see {@link ListPublicKeysCommandInput} for command's `input` shape.
27
- * @see {@link ListPublicKeysCommandOutput} for command's `response` shape.
28
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
29
- *
30
- */
31
- export declare class ListPublicKeysCommand extends $Command<ListPublicKeysCommandInput, ListPublicKeysCommandOutput, CloudTrailClientResolvedConfig> {
32
- readonly input: ListPublicKeysCommandInput;
33
- constructor(input: ListPublicKeysCommandInput);
34
- /**
35
- * @internal
36
- */
37
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListPublicKeysCommandInput, ListPublicKeysCommandOutput>;
38
- private serialize;
39
- private deserialize;
40
- }
@@ -1,35 +0,0 @@
1
- import { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient";
2
- import { ListTagsRequest, ListTagsResponse } from "../models/models_0";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
5
- export interface ListTagsCommandInput extends ListTagsRequest {
6
- }
7
- export interface ListTagsCommandOutput extends ListTagsResponse, __MetadataBearer {
8
- }
9
- /**
10
- * <p>Lists the tags for the trail in the current region.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { CloudTrailClient, ListTagsCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
15
- * // const { CloudTrailClient, ListTagsCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
16
- * const client = new CloudTrailClient(config);
17
- * const command = new ListTagsCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link ListTagsCommandInput} for command's `input` shape.
22
- * @see {@link ListTagsCommandOutput} for command's `response` shape.
23
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
- export declare class ListTagsCommand extends $Command<ListTagsCommandInput, ListTagsCommandOutput, CloudTrailClientResolvedConfig> {
27
- readonly input: ListTagsCommandInput;
28
- constructor(input: ListTagsCommandInput);
29
- /**
30
- * @internal
31
- */
32
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListTagsCommandInput, ListTagsCommandOutput>;
33
- private serialize;
34
- private deserialize;
35
- }
@@ -1,35 +0,0 @@
1
- import { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient";
2
- import { ListTrailsRequest, ListTrailsResponse } from "../models/models_0";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
5
- export interface ListTrailsCommandInput extends ListTrailsRequest {
6
- }
7
- export interface ListTrailsCommandOutput extends ListTrailsResponse, __MetadataBearer {
8
- }
9
- /**
10
- * <p>Lists trails that are in the current account.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { CloudTrailClient, ListTrailsCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
15
- * // const { CloudTrailClient, ListTrailsCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
16
- * const client = new CloudTrailClient(config);
17
- * const command = new ListTrailsCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link ListTrailsCommandInput} for command's `input` shape.
22
- * @see {@link ListTrailsCommandOutput} for command's `response` shape.
23
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
- export declare class ListTrailsCommand extends $Command<ListTrailsCommandInput, ListTrailsCommandOutput, CloudTrailClientResolvedConfig> {
27
- readonly input: ListTrailsCommandInput;
28
- constructor(input: ListTrailsCommandInput);
29
- /**
30
- * @internal
31
- */
32
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListTrailsCommandInput, ListTrailsCommandOutput>;
33
- private serialize;
34
- private deserialize;
35
- }
@@ -1,82 +0,0 @@
1
- import { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient";
2
- import { LookupEventsRequest, LookupEventsResponse } from "../models/models_0";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
5
- export interface LookupEventsCommandInput extends LookupEventsRequest {
6
- }
7
- export interface LookupEventsCommandOutput extends LookupEventsResponse, __MetadataBearer {
8
- }
9
- /**
10
- * <p>Looks up <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-concepts.html#cloudtrail-concepts-management-events">management events</a> or
11
- * <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-concepts.html#cloudtrail-concepts-insights-events">CloudTrail Insights events</a> that are captured by CloudTrail.
12
- * You can look up events that occurred in a region within the last 90 days. Lookup supports the following attributes for management events:</p>
13
- * <ul>
14
- * <li>
15
- * <p>Amazon Web Services access key</p>
16
- * </li>
17
- * <li>
18
- * <p>Event ID</p>
19
- * </li>
20
- * <li>
21
- * <p>Event name</p>
22
- * </li>
23
- * <li>
24
- * <p>Event source</p>
25
- * </li>
26
- * <li>
27
- * <p>Read only</p>
28
- * </li>
29
- * <li>
30
- * <p>Resource name</p>
31
- * </li>
32
- * <li>
33
- * <p>Resource type</p>
34
- * </li>
35
- * <li>
36
- * <p>User name</p>
37
- * </li>
38
- * </ul>
39
- * <p>Lookup supports the following attributes for Insights events:</p>
40
- * <ul>
41
- * <li>
42
- * <p>Event ID</p>
43
- * </li>
44
- * <li>
45
- * <p>Event name</p>
46
- * </li>
47
- * <li>
48
- * <p>Event source</p>
49
- * </li>
50
- * </ul>
51
- * <p>All attributes are optional. The default number of results returned is 50, with a
52
- * maximum of 50 possible. The response includes a token that you can use to get the next page
53
- * of results.</p>
54
- * <important>
55
- * <p>The rate of lookup requests is limited to two per second, per account, per region. If this
56
- * limit is exceeded, a throttling error occurs.</p>
57
- * </important>
58
- * @example
59
- * Use a bare-bones client and the command you need to make an API call.
60
- * ```javascript
61
- * import { CloudTrailClient, LookupEventsCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
62
- * // const { CloudTrailClient, LookupEventsCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
63
- * const client = new CloudTrailClient(config);
64
- * const command = new LookupEventsCommand(input);
65
- * const response = await client.send(command);
66
- * ```
67
- *
68
- * @see {@link LookupEventsCommandInput} for command's `input` shape.
69
- * @see {@link LookupEventsCommandOutput} for command's `response` shape.
70
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
71
- *
72
- */
73
- export declare class LookupEventsCommand extends $Command<LookupEventsCommandInput, LookupEventsCommandOutput, CloudTrailClientResolvedConfig> {
74
- readonly input: LookupEventsCommandInput;
75
- constructor(input: LookupEventsCommandInput);
76
- /**
77
- * @internal
78
- */
79
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<LookupEventsCommandInput, LookupEventsCommandOutput>;
80
- private serialize;
81
- private deserialize;
82
- }
@@ -1,79 +0,0 @@
1
- import { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient";
2
- import { PutEventSelectorsRequest, PutEventSelectorsResponse } from "../models/models_0";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
5
- export interface PutEventSelectorsCommandInput extends PutEventSelectorsRequest {
6
- }
7
- export interface PutEventSelectorsCommandOutput extends PutEventSelectorsResponse, __MetadataBearer {
8
- }
9
- /**
10
- * <p>Configures an event selector or advanced event selectors for your trail.
11
- * Use event selectors or advanced event selectors to specify management and data event settings for your trail. By
12
- * default, trails created without specific event selectors are configured to log all read and
13
- * write management events, and no data events.</p>
14
- * <p>When an event occurs in your account, CloudTrail
15
- * evaluates the event selectors or advanced event selectors in all trails. For each trail, if the event matches
16
- * any event selector, the trail processes and logs the event. If the event doesn't match any event
17
- * selector, the trail doesn't log the event.</p>
18
- * <p>Example</p>
19
- * <ol>
20
- * <li>
21
- * <p>You create an event selector for a trail and specify that you want
22
- * write-only events.</p>
23
- * </li>
24
- * <li>
25
- * <p>The EC2 <code>GetConsoleOutput</code> and <code>RunInstances</code> API
26
- * operations occur in your account.</p>
27
- * </li>
28
- * <li>
29
- * <p>CloudTrail evaluates whether the events match your event
30
- * selectors.</p>
31
- * </li>
32
- * <li>
33
- * <p>The <code>RunInstances</code> is a write-only event and it matches your
34
- * event selector. The trail logs the event.</p>
35
- * </li>
36
- * <li>
37
- * <p>The <code>GetConsoleOutput</code> is a read-only event that doesn't
38
- * match your event selector. The trail doesn't log the event.
39
- * </p>
40
- * </li>
41
- * </ol>
42
- * <p>The <code>PutEventSelectors</code> operation must be called from the region in which
43
- * the trail was created; otherwise, an <code>InvalidHomeRegionException</code> exception is
44
- * thrown.</p>
45
- * <p>You can configure up to five event selectors for each trail. For more information, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-and-data-events-with-cloudtrail.html">Logging data and management events for trails
46
- * </a> and <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/WhatIsCloudTrail-Limits.html">Quotas in CloudTrail</a>
47
- * in the <i>CloudTrail User Guide</i>.</p>
48
- * <p>You can add advanced event selectors, and conditions for your advanced
49
- * event selectors, up to a maximum of 500 values for all conditions and selectors on a trail.
50
- * You can use either <code>AdvancedEventSelectors</code> or <code>EventSelectors</code>, but not both. If you apply <code>AdvancedEventSelectors</code>
51
- * to a trail, any existing <code>EventSelectors</code> are overwritten. For more information about
52
- * advanced event selectors, see
53
- * <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html">Logging
54
- * data events for trails</a> in the <i>CloudTrail User Guide</i>.</p>
55
- * @example
56
- * Use a bare-bones client and the command you need to make an API call.
57
- * ```javascript
58
- * import { CloudTrailClient, PutEventSelectorsCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
59
- * // const { CloudTrailClient, PutEventSelectorsCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
60
- * const client = new CloudTrailClient(config);
61
- * const command = new PutEventSelectorsCommand(input);
62
- * const response = await client.send(command);
63
- * ```
64
- *
65
- * @see {@link PutEventSelectorsCommandInput} for command's `input` shape.
66
- * @see {@link PutEventSelectorsCommandOutput} for command's `response` shape.
67
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
68
- *
69
- */
70
- export declare class PutEventSelectorsCommand extends $Command<PutEventSelectorsCommandInput, PutEventSelectorsCommandOutput, CloudTrailClientResolvedConfig> {
71
- readonly input: PutEventSelectorsCommandInput;
72
- constructor(input: PutEventSelectorsCommandInput);
73
- /**
74
- * @internal
75
- */
76
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutEventSelectorsCommandInput, PutEventSelectorsCommandOutput>;
77
- private serialize;
78
- private deserialize;
79
- }
@@ -1,38 +0,0 @@
1
- import { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient";
2
- import { PutInsightSelectorsRequest, PutInsightSelectorsResponse } from "../models/models_0";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
5
- export interface PutInsightSelectorsCommandInput extends PutInsightSelectorsRequest {
6
- }
7
- export interface PutInsightSelectorsCommandOutput extends PutInsightSelectorsResponse, __MetadataBearer {
8
- }
9
- /**
10
- * <p>Lets you enable Insights event logging by specifying the Insights
11
- * selectors that you want to enable on an existing trail. You also use
12
- * <code>PutInsightSelectors</code> to turn off Insights event logging, by passing an empty list of insight types.
13
- * The valid Insights event type in this release is <code>ApiCallRateInsight</code>.</p>
14
- * @example
15
- * Use a bare-bones client and the command you need to make an API call.
16
- * ```javascript
17
- * import { CloudTrailClient, PutInsightSelectorsCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
18
- * // const { CloudTrailClient, PutInsightSelectorsCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
19
- * const client = new CloudTrailClient(config);
20
- * const command = new PutInsightSelectorsCommand(input);
21
- * const response = await client.send(command);
22
- * ```
23
- *
24
- * @see {@link PutInsightSelectorsCommandInput} for command's `input` shape.
25
- * @see {@link PutInsightSelectorsCommandOutput} for command's `response` shape.
26
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
27
- *
28
- */
29
- export declare class PutInsightSelectorsCommand extends $Command<PutInsightSelectorsCommandInput, PutInsightSelectorsCommandOutput, CloudTrailClientResolvedConfig> {
30
- readonly input: PutInsightSelectorsCommandInput;
31
- constructor(input: PutInsightSelectorsCommandInput);
32
- /**
33
- * @internal
34
- */
35
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutInsightSelectorsCommandInput, PutInsightSelectorsCommandOutput>;
36
- private serialize;
37
- private deserialize;
38
- }