@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,110 +0,0 @@
1
- import { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient";
2
- import { GetEventSelectorsRequest, GetEventSelectorsResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1GetEventSelectorsCommand,
5
- serializeAws_json1_1GetEventSelectorsCommand,
6
- } from "../protocols/Aws_json1_1";
7
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
- import { Command as $Command } from "@aws-sdk/smithy-client";
10
- import {
11
- FinalizeHandlerArguments,
12
- Handler,
13
- HandlerExecutionContext,
14
- MiddlewareStack,
15
- HttpHandlerOptions as __HttpHandlerOptions,
16
- MetadataBearer as __MetadataBearer,
17
- SerdeContext as __SerdeContext,
18
- } from "@aws-sdk/types";
19
-
20
- export interface GetEventSelectorsCommandInput extends GetEventSelectorsRequest {}
21
- export interface GetEventSelectorsCommandOutput extends GetEventSelectorsResponse, __MetadataBearer {}
22
-
23
- /**
24
- * <p>Describes the settings for the event selectors that you configured for your trail.
25
- * The information returned for your event selectors includes the following:</p>
26
- * <ul>
27
- * <li>
28
- * <p>If your event selector includes read-only events, write-only events, or
29
- * all events. This applies to both management events and data events.</p>
30
- * </li>
31
- * <li>
32
- * <p>If your event selector includes management events.</p>
33
- * </li>
34
- * <li>
35
- * <p>If your event selector includes data events, the resources on which you are logging data
36
- * events.</p>
37
- * </li>
38
- * </ul>
39
- * <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
40
- * </a> in the <i>CloudTrail User Guide</i>.</p>
41
- * @example
42
- * Use a bare-bones client and the command you need to make an API call.
43
- * ```javascript
44
- * import { CloudTrailClient, GetEventSelectorsCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
45
- * // const { CloudTrailClient, GetEventSelectorsCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
46
- * const client = new CloudTrailClient(config);
47
- * const command = new GetEventSelectorsCommand(input);
48
- * const response = await client.send(command);
49
- * ```
50
- *
51
- * @see {@link GetEventSelectorsCommandInput} for command's `input` shape.
52
- * @see {@link GetEventSelectorsCommandOutput} for command's `response` shape.
53
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
54
- *
55
- */
56
- export class GetEventSelectorsCommand extends $Command<
57
- GetEventSelectorsCommandInput,
58
- GetEventSelectorsCommandOutput,
59
- CloudTrailClientResolvedConfig
60
- > {
61
- // Start section: command_properties
62
- // End section: command_properties
63
-
64
- constructor(readonly input: GetEventSelectorsCommandInput) {
65
- // Start section: command_constructor
66
- super();
67
- // End section: command_constructor
68
- }
69
-
70
- /**
71
- * @internal
72
- */
73
- resolveMiddleware(
74
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
75
- configuration: CloudTrailClientResolvedConfig,
76
- options?: __HttpHandlerOptions
77
- ): Handler<GetEventSelectorsCommandInput, GetEventSelectorsCommandOutput> {
78
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
79
-
80
- const stack = clientStack.concat(this.middlewareStack);
81
-
82
- const { logger } = configuration;
83
- const clientName = "CloudTrailClient";
84
- const commandName = "GetEventSelectorsCommand";
85
- const handlerExecutionContext: HandlerExecutionContext = {
86
- logger,
87
- clientName,
88
- commandName,
89
- inputFilterSensitiveLog: GetEventSelectorsRequest.filterSensitiveLog,
90
- outputFilterSensitiveLog: GetEventSelectorsResponse.filterSensitiveLog,
91
- };
92
- const { requestHandler } = configuration;
93
- return stack.resolve(
94
- (request: FinalizeHandlerArguments<any>) =>
95
- requestHandler.handle(request.request as __HttpRequest, options || {}),
96
- handlerExecutionContext
97
- );
98
- }
99
-
100
- private serialize(input: GetEventSelectorsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
101
- return serializeAws_json1_1GetEventSelectorsCommand(input, context);
102
- }
103
-
104
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetEventSelectorsCommandOutput> {
105
- return deserializeAws_json1_1GetEventSelectorsCommand(output, context);
106
- }
107
-
108
- // Start section: command_body_extra
109
- // End section: command_body_extra
110
- }
@@ -1,100 +0,0 @@
1
- import { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient";
2
- import { GetInsightSelectorsRequest, GetInsightSelectorsResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1GetInsightSelectorsCommand,
5
- serializeAws_json1_1GetInsightSelectorsCommand,
6
- } from "../protocols/Aws_json1_1";
7
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
- import { Command as $Command } from "@aws-sdk/smithy-client";
10
- import {
11
- FinalizeHandlerArguments,
12
- Handler,
13
- HandlerExecutionContext,
14
- MiddlewareStack,
15
- HttpHandlerOptions as __HttpHandlerOptions,
16
- MetadataBearer as __MetadataBearer,
17
- SerdeContext as __SerdeContext,
18
- } from "@aws-sdk/types";
19
-
20
- export interface GetInsightSelectorsCommandInput extends GetInsightSelectorsRequest {}
21
- export interface GetInsightSelectorsCommandOutput extends GetInsightSelectorsResponse, __MetadataBearer {}
22
-
23
- /**
24
- * <p>Describes the settings for the Insights event selectors that you configured for your trail. <code>GetInsightSelectors</code> shows
25
- * if CloudTrail Insights event logging is enabled on the trail, and if it is, which insight types are enabled.
26
- * If you run <code>GetInsightSelectors</code> on a trail that does not have Insights events enabled, the operation throws the exception
27
- * <code>InsightNotEnabledException</code>
28
- * </p>
29
- * <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
30
- * </a> in the <i>CloudTrail User Guide</i>.</p>
31
- * @example
32
- * Use a bare-bones client and the command you need to make an API call.
33
- * ```javascript
34
- * import { CloudTrailClient, GetInsightSelectorsCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
35
- * // const { CloudTrailClient, GetInsightSelectorsCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
36
- * const client = new CloudTrailClient(config);
37
- * const command = new GetInsightSelectorsCommand(input);
38
- * const response = await client.send(command);
39
- * ```
40
- *
41
- * @see {@link GetInsightSelectorsCommandInput} for command's `input` shape.
42
- * @see {@link GetInsightSelectorsCommandOutput} for command's `response` shape.
43
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
44
- *
45
- */
46
- export class GetInsightSelectorsCommand extends $Command<
47
- GetInsightSelectorsCommandInput,
48
- GetInsightSelectorsCommandOutput,
49
- CloudTrailClientResolvedConfig
50
- > {
51
- // Start section: command_properties
52
- // End section: command_properties
53
-
54
- constructor(readonly input: GetInsightSelectorsCommandInput) {
55
- // Start section: command_constructor
56
- super();
57
- // End section: command_constructor
58
- }
59
-
60
- /**
61
- * @internal
62
- */
63
- resolveMiddleware(
64
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
65
- configuration: CloudTrailClientResolvedConfig,
66
- options?: __HttpHandlerOptions
67
- ): Handler<GetInsightSelectorsCommandInput, GetInsightSelectorsCommandOutput> {
68
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
69
-
70
- const stack = clientStack.concat(this.middlewareStack);
71
-
72
- const { logger } = configuration;
73
- const clientName = "CloudTrailClient";
74
- const commandName = "GetInsightSelectorsCommand";
75
- const handlerExecutionContext: HandlerExecutionContext = {
76
- logger,
77
- clientName,
78
- commandName,
79
- inputFilterSensitiveLog: GetInsightSelectorsRequest.filterSensitiveLog,
80
- outputFilterSensitiveLog: GetInsightSelectorsResponse.filterSensitiveLog,
81
- };
82
- const { requestHandler } = configuration;
83
- return stack.resolve(
84
- (request: FinalizeHandlerArguments<any>) =>
85
- requestHandler.handle(request.request as __HttpRequest, options || {}),
86
- handlerExecutionContext
87
- );
88
- }
89
-
90
- private serialize(input: GetInsightSelectorsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
91
- return serializeAws_json1_1GetInsightSelectorsCommand(input, context);
92
- }
93
-
94
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetInsightSelectorsCommandOutput> {
95
- return deserializeAws_json1_1GetInsightSelectorsCommand(output, context);
96
- }
97
-
98
- // Start section: command_body_extra
99
- // End section: command_body_extra
100
- }
@@ -1,91 +0,0 @@
1
- import { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient";
2
- import { GetTrailRequest, GetTrailResponse } from "../models/models_0";
3
- import { deserializeAws_json1_1GetTrailCommand, serializeAws_json1_1GetTrailCommand } from "../protocols/Aws_json1_1";
4
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
6
- import { Command as $Command } from "@aws-sdk/smithy-client";
7
- import {
8
- FinalizeHandlerArguments,
9
- Handler,
10
- HandlerExecutionContext,
11
- MiddlewareStack,
12
- HttpHandlerOptions as __HttpHandlerOptions,
13
- MetadataBearer as __MetadataBearer,
14
- SerdeContext as __SerdeContext,
15
- } from "@aws-sdk/types";
16
-
17
- export interface GetTrailCommandInput extends GetTrailRequest {}
18
- export interface GetTrailCommandOutput extends GetTrailResponse, __MetadataBearer {}
19
-
20
- /**
21
- * <p>Returns settings information for a specified trail.</p>
22
- * @example
23
- * Use a bare-bones client and the command you need to make an API call.
24
- * ```javascript
25
- * import { CloudTrailClient, GetTrailCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
26
- * // const { CloudTrailClient, GetTrailCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
27
- * const client = new CloudTrailClient(config);
28
- * const command = new GetTrailCommand(input);
29
- * const response = await client.send(command);
30
- * ```
31
- *
32
- * @see {@link GetTrailCommandInput} for command's `input` shape.
33
- * @see {@link GetTrailCommandOutput} for command's `response` shape.
34
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
35
- *
36
- */
37
- export class GetTrailCommand extends $Command<
38
- GetTrailCommandInput,
39
- GetTrailCommandOutput,
40
- CloudTrailClientResolvedConfig
41
- > {
42
- // Start section: command_properties
43
- // End section: command_properties
44
-
45
- constructor(readonly input: GetTrailCommandInput) {
46
- // Start section: command_constructor
47
- super();
48
- // End section: command_constructor
49
- }
50
-
51
- /**
52
- * @internal
53
- */
54
- resolveMiddleware(
55
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
56
- configuration: CloudTrailClientResolvedConfig,
57
- options?: __HttpHandlerOptions
58
- ): Handler<GetTrailCommandInput, GetTrailCommandOutput> {
59
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
60
-
61
- const stack = clientStack.concat(this.middlewareStack);
62
-
63
- const { logger } = configuration;
64
- const clientName = "CloudTrailClient";
65
- const commandName = "GetTrailCommand";
66
- const handlerExecutionContext: HandlerExecutionContext = {
67
- logger,
68
- clientName,
69
- commandName,
70
- inputFilterSensitiveLog: GetTrailRequest.filterSensitiveLog,
71
- outputFilterSensitiveLog: GetTrailResponse.filterSensitiveLog,
72
- };
73
- const { requestHandler } = configuration;
74
- return stack.resolve(
75
- (request: FinalizeHandlerArguments<any>) =>
76
- requestHandler.handle(request.request as __HttpRequest, options || {}),
77
- handlerExecutionContext
78
- );
79
- }
80
-
81
- private serialize(input: GetTrailCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
82
- return serializeAws_json1_1GetTrailCommand(input, context);
83
- }
84
-
85
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetTrailCommandOutput> {
86
- return deserializeAws_json1_1GetTrailCommand(output, context);
87
- }
88
-
89
- // Start section: command_body_extra
90
- // End section: command_body_extra
91
- }
@@ -1,94 +0,0 @@
1
- import { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient";
2
- import { GetTrailStatusRequest, GetTrailStatusResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1GetTrailStatusCommand,
5
- serializeAws_json1_1GetTrailStatusCommand,
6
- } from "../protocols/Aws_json1_1";
7
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
- import { Command as $Command } from "@aws-sdk/smithy-client";
10
- import {
11
- FinalizeHandlerArguments,
12
- Handler,
13
- HandlerExecutionContext,
14
- MiddlewareStack,
15
- HttpHandlerOptions as __HttpHandlerOptions,
16
- MetadataBearer as __MetadataBearer,
17
- SerdeContext as __SerdeContext,
18
- } from "@aws-sdk/types";
19
-
20
- export interface GetTrailStatusCommandInput extends GetTrailStatusRequest {}
21
- export interface GetTrailStatusCommandOutput extends GetTrailStatusResponse, __MetadataBearer {}
22
-
23
- /**
24
- * <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>
25
- * @example
26
- * Use a bare-bones client and the command you need to make an API call.
27
- * ```javascript
28
- * import { CloudTrailClient, GetTrailStatusCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
29
- * // const { CloudTrailClient, GetTrailStatusCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
30
- * const client = new CloudTrailClient(config);
31
- * const command = new GetTrailStatusCommand(input);
32
- * const response = await client.send(command);
33
- * ```
34
- *
35
- * @see {@link GetTrailStatusCommandInput} for command's `input` shape.
36
- * @see {@link GetTrailStatusCommandOutput} for command's `response` shape.
37
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
38
- *
39
- */
40
- export class GetTrailStatusCommand extends $Command<
41
- GetTrailStatusCommandInput,
42
- GetTrailStatusCommandOutput,
43
- CloudTrailClientResolvedConfig
44
- > {
45
- // Start section: command_properties
46
- // End section: command_properties
47
-
48
- constructor(readonly input: GetTrailStatusCommandInput) {
49
- // Start section: command_constructor
50
- super();
51
- // End section: command_constructor
52
- }
53
-
54
- /**
55
- * @internal
56
- */
57
- resolveMiddleware(
58
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
59
- configuration: CloudTrailClientResolvedConfig,
60
- options?: __HttpHandlerOptions
61
- ): Handler<GetTrailStatusCommandInput, GetTrailStatusCommandOutput> {
62
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
63
-
64
- const stack = clientStack.concat(this.middlewareStack);
65
-
66
- const { logger } = configuration;
67
- const clientName = "CloudTrailClient";
68
- const commandName = "GetTrailStatusCommand";
69
- const handlerExecutionContext: HandlerExecutionContext = {
70
- logger,
71
- clientName,
72
- commandName,
73
- inputFilterSensitiveLog: GetTrailStatusRequest.filterSensitiveLog,
74
- outputFilterSensitiveLog: GetTrailStatusResponse.filterSensitiveLog,
75
- };
76
- const { requestHandler } = configuration;
77
- return stack.resolve(
78
- (request: FinalizeHandlerArguments<any>) =>
79
- requestHandler.handle(request.request as __HttpRequest, options || {}),
80
- handlerExecutionContext
81
- );
82
- }
83
-
84
- private serialize(input: GetTrailStatusCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
85
- return serializeAws_json1_1GetTrailStatusCommand(input, context);
86
- }
87
-
88
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetTrailStatusCommandOutput> {
89
- return deserializeAws_json1_1GetTrailStatusCommand(output, context);
90
- }
91
-
92
- // Start section: command_body_extra
93
- // End section: command_body_extra
94
- }
@@ -1,99 +0,0 @@
1
- import { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient";
2
- import { ListPublicKeysRequest, ListPublicKeysResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1ListPublicKeysCommand,
5
- serializeAws_json1_1ListPublicKeysCommand,
6
- } from "../protocols/Aws_json1_1";
7
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
- import { Command as $Command } from "@aws-sdk/smithy-client";
10
- import {
11
- FinalizeHandlerArguments,
12
- Handler,
13
- HandlerExecutionContext,
14
- MiddlewareStack,
15
- HttpHandlerOptions as __HttpHandlerOptions,
16
- MetadataBearer as __MetadataBearer,
17
- SerdeContext as __SerdeContext,
18
- } from "@aws-sdk/types";
19
-
20
- export interface ListPublicKeysCommandInput extends ListPublicKeysRequest {}
21
- export interface ListPublicKeysCommandOutput extends ListPublicKeysResponse, __MetadataBearer {}
22
-
23
- /**
24
- * <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>
25
- * <note>
26
- * <p>CloudTrail uses different private and public key pairs per region. Each digest file is signed with a private key
27
- * unique to its region. When you validate a digest file from a specific region, you must look in the same region for its
28
- * corresponding public key.</p>
29
- * </note>
30
- * @example
31
- * Use a bare-bones client and the command you need to make an API call.
32
- * ```javascript
33
- * import { CloudTrailClient, ListPublicKeysCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
34
- * // const { CloudTrailClient, ListPublicKeysCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
35
- * const client = new CloudTrailClient(config);
36
- * const command = new ListPublicKeysCommand(input);
37
- * const response = await client.send(command);
38
- * ```
39
- *
40
- * @see {@link ListPublicKeysCommandInput} for command's `input` shape.
41
- * @see {@link ListPublicKeysCommandOutput} for command's `response` shape.
42
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
43
- *
44
- */
45
- export class ListPublicKeysCommand extends $Command<
46
- ListPublicKeysCommandInput,
47
- ListPublicKeysCommandOutput,
48
- CloudTrailClientResolvedConfig
49
- > {
50
- // Start section: command_properties
51
- // End section: command_properties
52
-
53
- constructor(readonly input: ListPublicKeysCommandInput) {
54
- // Start section: command_constructor
55
- super();
56
- // End section: command_constructor
57
- }
58
-
59
- /**
60
- * @internal
61
- */
62
- resolveMiddleware(
63
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
64
- configuration: CloudTrailClientResolvedConfig,
65
- options?: __HttpHandlerOptions
66
- ): Handler<ListPublicKeysCommandInput, ListPublicKeysCommandOutput> {
67
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
68
-
69
- const stack = clientStack.concat(this.middlewareStack);
70
-
71
- const { logger } = configuration;
72
- const clientName = "CloudTrailClient";
73
- const commandName = "ListPublicKeysCommand";
74
- const handlerExecutionContext: HandlerExecutionContext = {
75
- logger,
76
- clientName,
77
- commandName,
78
- inputFilterSensitiveLog: ListPublicKeysRequest.filterSensitiveLog,
79
- outputFilterSensitiveLog: ListPublicKeysResponse.filterSensitiveLog,
80
- };
81
- const { requestHandler } = configuration;
82
- return stack.resolve(
83
- (request: FinalizeHandlerArguments<any>) =>
84
- requestHandler.handle(request.request as __HttpRequest, options || {}),
85
- handlerExecutionContext
86
- );
87
- }
88
-
89
- private serialize(input: ListPublicKeysCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
90
- return serializeAws_json1_1ListPublicKeysCommand(input, context);
91
- }
92
-
93
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListPublicKeysCommandOutput> {
94
- return deserializeAws_json1_1ListPublicKeysCommand(output, context);
95
- }
96
-
97
- // Start section: command_body_extra
98
- // End section: command_body_extra
99
- }
@@ -1,91 +0,0 @@
1
- import { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient";
2
- import { ListTagsRequest, ListTagsResponse } from "../models/models_0";
3
- import { deserializeAws_json1_1ListTagsCommand, serializeAws_json1_1ListTagsCommand } from "../protocols/Aws_json1_1";
4
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
6
- import { Command as $Command } from "@aws-sdk/smithy-client";
7
- import {
8
- FinalizeHandlerArguments,
9
- Handler,
10
- HandlerExecutionContext,
11
- MiddlewareStack,
12
- HttpHandlerOptions as __HttpHandlerOptions,
13
- MetadataBearer as __MetadataBearer,
14
- SerdeContext as __SerdeContext,
15
- } from "@aws-sdk/types";
16
-
17
- export interface ListTagsCommandInput extends ListTagsRequest {}
18
- export interface ListTagsCommandOutput extends ListTagsResponse, __MetadataBearer {}
19
-
20
- /**
21
- * <p>Lists the tags for the trail in the current region.</p>
22
- * @example
23
- * Use a bare-bones client and the command you need to make an API call.
24
- * ```javascript
25
- * import { CloudTrailClient, ListTagsCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
26
- * // const { CloudTrailClient, ListTagsCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
27
- * const client = new CloudTrailClient(config);
28
- * const command = new ListTagsCommand(input);
29
- * const response = await client.send(command);
30
- * ```
31
- *
32
- * @see {@link ListTagsCommandInput} for command's `input` shape.
33
- * @see {@link ListTagsCommandOutput} for command's `response` shape.
34
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
35
- *
36
- */
37
- export class ListTagsCommand extends $Command<
38
- ListTagsCommandInput,
39
- ListTagsCommandOutput,
40
- CloudTrailClientResolvedConfig
41
- > {
42
- // Start section: command_properties
43
- // End section: command_properties
44
-
45
- constructor(readonly input: ListTagsCommandInput) {
46
- // Start section: command_constructor
47
- super();
48
- // End section: command_constructor
49
- }
50
-
51
- /**
52
- * @internal
53
- */
54
- resolveMiddleware(
55
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
56
- configuration: CloudTrailClientResolvedConfig,
57
- options?: __HttpHandlerOptions
58
- ): Handler<ListTagsCommandInput, ListTagsCommandOutput> {
59
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
60
-
61
- const stack = clientStack.concat(this.middlewareStack);
62
-
63
- const { logger } = configuration;
64
- const clientName = "CloudTrailClient";
65
- const commandName = "ListTagsCommand";
66
- const handlerExecutionContext: HandlerExecutionContext = {
67
- logger,
68
- clientName,
69
- commandName,
70
- inputFilterSensitiveLog: ListTagsRequest.filterSensitiveLog,
71
- outputFilterSensitiveLog: ListTagsResponse.filterSensitiveLog,
72
- };
73
- const { requestHandler } = configuration;
74
- return stack.resolve(
75
- (request: FinalizeHandlerArguments<any>) =>
76
- requestHandler.handle(request.request as __HttpRequest, options || {}),
77
- handlerExecutionContext
78
- );
79
- }
80
-
81
- private serialize(input: ListTagsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
82
- return serializeAws_json1_1ListTagsCommand(input, context);
83
- }
84
-
85
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListTagsCommandOutput> {
86
- return deserializeAws_json1_1ListTagsCommand(output, context);
87
- }
88
-
89
- // Start section: command_body_extra
90
- // End section: command_body_extra
91
- }
@@ -1,94 +0,0 @@
1
- import { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient";
2
- import { ListTrailsRequest, ListTrailsResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1ListTrailsCommand,
5
- serializeAws_json1_1ListTrailsCommand,
6
- } from "../protocols/Aws_json1_1";
7
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
- import { Command as $Command } from "@aws-sdk/smithy-client";
10
- import {
11
- FinalizeHandlerArguments,
12
- Handler,
13
- HandlerExecutionContext,
14
- MiddlewareStack,
15
- HttpHandlerOptions as __HttpHandlerOptions,
16
- MetadataBearer as __MetadataBearer,
17
- SerdeContext as __SerdeContext,
18
- } from "@aws-sdk/types";
19
-
20
- export interface ListTrailsCommandInput extends ListTrailsRequest {}
21
- export interface ListTrailsCommandOutput extends ListTrailsResponse, __MetadataBearer {}
22
-
23
- /**
24
- * <p>Lists trails that are in the current account.</p>
25
- * @example
26
- * Use a bare-bones client and the command you need to make an API call.
27
- * ```javascript
28
- * import { CloudTrailClient, ListTrailsCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
29
- * // const { CloudTrailClient, ListTrailsCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
30
- * const client = new CloudTrailClient(config);
31
- * const command = new ListTrailsCommand(input);
32
- * const response = await client.send(command);
33
- * ```
34
- *
35
- * @see {@link ListTrailsCommandInput} for command's `input` shape.
36
- * @see {@link ListTrailsCommandOutput} for command's `response` shape.
37
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
38
- *
39
- */
40
- export class ListTrailsCommand extends $Command<
41
- ListTrailsCommandInput,
42
- ListTrailsCommandOutput,
43
- CloudTrailClientResolvedConfig
44
- > {
45
- // Start section: command_properties
46
- // End section: command_properties
47
-
48
- constructor(readonly input: ListTrailsCommandInput) {
49
- // Start section: command_constructor
50
- super();
51
- // End section: command_constructor
52
- }
53
-
54
- /**
55
- * @internal
56
- */
57
- resolveMiddleware(
58
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
59
- configuration: CloudTrailClientResolvedConfig,
60
- options?: __HttpHandlerOptions
61
- ): Handler<ListTrailsCommandInput, ListTrailsCommandOutput> {
62
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
63
-
64
- const stack = clientStack.concat(this.middlewareStack);
65
-
66
- const { logger } = configuration;
67
- const clientName = "CloudTrailClient";
68
- const commandName = "ListTrailsCommand";
69
- const handlerExecutionContext: HandlerExecutionContext = {
70
- logger,
71
- clientName,
72
- commandName,
73
- inputFilterSensitiveLog: ListTrailsRequest.filterSensitiveLog,
74
- outputFilterSensitiveLog: ListTrailsResponse.filterSensitiveLog,
75
- };
76
- const { requestHandler } = configuration;
77
- return stack.resolve(
78
- (request: FinalizeHandlerArguments<any>) =>
79
- requestHandler.handle(request.request as __HttpRequest, options || {}),
80
- handlerExecutionContext
81
- );
82
- }
83
-
84
- private serialize(input: ListTrailsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
85
- return serializeAws_json1_1ListTrailsCommand(input, context);
86
- }
87
-
88
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListTrailsCommandOutput> {
89
- return deserializeAws_json1_1ListTrailsCommand(output, context);
90
- }
91
-
92
- // Start section: command_body_extra
93
- // End section: command_body_extra
94
- }