@aws-sdk/client-cloudwatch-logs 3.34.0 → 3.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (814) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/{dist/cjs → dist-cjs}/CloudWatchLogs.js +0 -0
  3. package/dist-cjs/CloudWatchLogs.js.map +1 -0
  4. package/dist-cjs/CloudWatchLogsClient.js +77 -0
  5. package/dist-cjs/CloudWatchLogsClient.js.map +1 -0
  6. package/dist-cjs/commands/AssociateKmsKeyCommand.js +73 -0
  7. package/dist-cjs/commands/AssociateKmsKeyCommand.js.map +1 -0
  8. package/dist-cjs/commands/CancelExportTaskCommand.js +62 -0
  9. package/dist-cjs/commands/CancelExportTaskCommand.js.map +1 -0
  10. package/dist-cjs/commands/CreateExportTaskCommand.js +74 -0
  11. package/dist-cjs/commands/CreateExportTaskCommand.js.map +1 -0
  12. package/dist-cjs/commands/CreateLogGroupCommand.js +87 -0
  13. package/dist-cjs/commands/CreateLogGroupCommand.js.map +1 -0
  14. package/dist-cjs/commands/CreateLogStreamCommand.js +77 -0
  15. package/dist-cjs/commands/CreateLogStreamCommand.js.map +1 -0
  16. package/dist-cjs/commands/DeleteDestinationCommand.js +63 -0
  17. package/dist-cjs/commands/DeleteDestinationCommand.js.map +1 -0
  18. package/dist-cjs/commands/DeleteLogGroupCommand.js +62 -0
  19. package/dist-cjs/commands/DeleteLogGroupCommand.js.map +1 -0
  20. package/dist-cjs/commands/DeleteLogStreamCommand.js +62 -0
  21. package/dist-cjs/commands/DeleteLogStreamCommand.js.map +1 -0
  22. package/dist-cjs/commands/DeleteMetricFilterCommand.js +61 -0
  23. package/dist-cjs/commands/DeleteMetricFilterCommand.js.map +1 -0
  24. package/dist-cjs/commands/DeleteQueryDefinitionCommand.js +65 -0
  25. package/dist-cjs/commands/DeleteQueryDefinitionCommand.js.map +1 -0
  26. package/dist-cjs/commands/DeleteResourcePolicyCommand.js +62 -0
  27. package/dist-cjs/commands/DeleteResourcePolicyCommand.js.map +1 -0
  28. package/dist-cjs/commands/DeleteRetentionPolicyCommand.js +62 -0
  29. package/dist-cjs/commands/DeleteRetentionPolicyCommand.js.map +1 -0
  30. package/dist-cjs/commands/DeleteSubscriptionFilterCommand.js +61 -0
  31. package/dist-cjs/commands/DeleteSubscriptionFilterCommand.js.map +1 -0
  32. package/dist-cjs/commands/DescribeDestinationsCommand.js +61 -0
  33. package/dist-cjs/commands/DescribeDestinationsCommand.js.map +1 -0
  34. package/dist-cjs/commands/DescribeExportTasksCommand.js +62 -0
  35. package/dist-cjs/commands/DescribeExportTasksCommand.js.map +1 -0
  36. package/dist-cjs/commands/DescribeLogGroupsCommand.js +69 -0
  37. package/dist-cjs/commands/DescribeLogGroupsCommand.js.map +1 -0
  38. package/dist-cjs/commands/DescribeLogStreamsCommand.js +64 -0
  39. package/dist-cjs/commands/DescribeLogStreamsCommand.js.map +1 -0
  40. package/dist-cjs/commands/DescribeMetricFiltersCommand.js +63 -0
  41. package/dist-cjs/commands/DescribeMetricFiltersCommand.js.map +1 -0
  42. package/dist-cjs/commands/DescribeQueriesCommand.js +63 -0
  43. package/dist-cjs/commands/DescribeQueriesCommand.js.map +1 -0
  44. package/dist-cjs/commands/DescribeQueryDefinitionsCommand.js +63 -0
  45. package/dist-cjs/commands/DescribeQueryDefinitionsCommand.js.map +1 -0
  46. package/dist-cjs/commands/DescribeResourcePoliciesCommand.js +61 -0
  47. package/dist-cjs/commands/DescribeResourcePoliciesCommand.js.map +1 -0
  48. package/dist-cjs/commands/DescribeSubscriptionFiltersCommand.js +62 -0
  49. package/dist-cjs/commands/DescribeSubscriptionFiltersCommand.js.map +1 -0
  50. package/dist-cjs/commands/DisassociateKmsKeyCommand.js +64 -0
  51. package/dist-cjs/commands/DisassociateKmsKeyCommand.js.map +1 -0
  52. package/dist-cjs/commands/FilterLogEventsCommand.js +69 -0
  53. package/dist-cjs/commands/FilterLogEventsCommand.js.map +1 -0
  54. package/dist-cjs/commands/GetLogEventsCommand.js +66 -0
  55. package/dist-cjs/commands/GetLogEventsCommand.js.map +1 -0
  56. package/dist-cjs/commands/GetLogGroupFieldsCommand.js +68 -0
  57. package/dist-cjs/commands/GetLogGroupFieldsCommand.js.map +1 -0
  58. package/dist-cjs/commands/GetLogRecordCommand.js +64 -0
  59. package/dist-cjs/commands/GetLogRecordCommand.js.map +1 -0
  60. package/dist-cjs/commands/GetQueryResultsCommand.js +71 -0
  61. package/dist-cjs/commands/GetQueryResultsCommand.js.map +1 -0
  62. package/dist-cjs/commands/ListTagsLogGroupCommand.js +61 -0
  63. package/dist-cjs/commands/ListTagsLogGroupCommand.js.map +1 -0
  64. package/dist-cjs/commands/PutDestinationCommand.js +70 -0
  65. package/dist-cjs/commands/PutDestinationCommand.js.map +1 -0
  66. package/dist-cjs/commands/PutDestinationPolicyCommand.js +66 -0
  67. package/dist-cjs/commands/PutDestinationPolicyCommand.js.map +1 -0
  68. package/dist-cjs/commands/PutLogEventsCommand.js +98 -0
  69. package/dist-cjs/commands/PutLogEventsCommand.js.map +1 -0
  70. package/dist-cjs/commands/PutMetricFilterCommand.js +83 -0
  71. package/dist-cjs/commands/PutMetricFilterCommand.js.map +1 -0
  72. package/dist-cjs/commands/PutQueryDefinitionCommand.js +72 -0
  73. package/dist-cjs/commands/PutQueryDefinitionCommand.js.map +1 -0
  74. package/dist-cjs/commands/PutResourcePolicyCommand.js +63 -0
  75. package/dist-cjs/commands/PutResourcePolicyCommand.js.map +1 -0
  76. package/dist-cjs/commands/PutRetentionPolicyCommand.js +63 -0
  77. package/dist-cjs/commands/PutRetentionPolicyCommand.js.map +1 -0
  78. package/dist-cjs/commands/PutSubscriptionFilterCommand.js +89 -0
  79. package/dist-cjs/commands/PutSubscriptionFilterCommand.js.map +1 -0
  80. package/dist-cjs/commands/StartQueryCommand.js +66 -0
  81. package/dist-cjs/commands/StartQueryCommand.js.map +1 -0
  82. package/dist-cjs/commands/StopQueryCommand.js +62 -0
  83. package/dist-cjs/commands/StopQueryCommand.js.map +1 -0
  84. package/dist-cjs/commands/TagLogGroupCommand.js +70 -0
  85. package/dist-cjs/commands/TagLogGroupCommand.js.map +1 -0
  86. package/dist-cjs/commands/TestMetricFilterCommand.js +62 -0
  87. package/dist-cjs/commands/TestMetricFilterCommand.js.map +1 -0
  88. package/dist-cjs/commands/UntagLogGroupCommand.js +67 -0
  89. package/dist-cjs/commands/UntagLogGroupCommand.js.map +1 -0
  90. package/{dist/cjs → dist-cjs}/endpoints.js +0 -0
  91. package/dist-cjs/endpoints.js.map +1 -0
  92. package/{dist/cjs → dist-cjs}/index.js +0 -0
  93. package/dist-cjs/index.js.map +1 -0
  94. package/{dist/cjs → dist-cjs}/models/index.js +0 -0
  95. package/dist-cjs/models/index.js.map +1 -0
  96. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -0
  97. package/dist-cjs/models/models_0.js.map +1 -0
  98. package/{dist/cjs → dist-cjs}/pagination/DescribeDestinationsPaginator.js +0 -0
  99. package/dist-cjs/pagination/DescribeDestinationsPaginator.js.map +1 -0
  100. package/{dist/cjs → dist-cjs}/pagination/DescribeLogGroupsPaginator.js +0 -0
  101. package/dist-cjs/pagination/DescribeLogGroupsPaginator.js.map +1 -0
  102. package/{dist/cjs → dist-cjs}/pagination/DescribeLogStreamsPaginator.js +0 -0
  103. package/dist-cjs/pagination/DescribeLogStreamsPaginator.js.map +1 -0
  104. package/{dist/cjs → dist-cjs}/pagination/DescribeMetricFiltersPaginator.js +0 -0
  105. package/dist-cjs/pagination/DescribeMetricFiltersPaginator.js.map +1 -0
  106. package/{dist/cjs → dist-cjs}/pagination/DescribeSubscriptionFiltersPaginator.js +0 -0
  107. package/dist-cjs/pagination/DescribeSubscriptionFiltersPaginator.js.map +1 -0
  108. package/{dist/cjs → dist-cjs}/pagination/FilterLogEventsPaginator.js +0 -0
  109. package/dist-cjs/pagination/FilterLogEventsPaginator.js.map +1 -0
  110. package/{dist/cjs → dist-cjs}/pagination/GetLogEventsPaginator.js +0 -0
  111. package/dist-cjs/pagination/GetLogEventsPaginator.js.map +1 -0
  112. package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -0
  113. package/dist-cjs/pagination/Interfaces.js.map +1 -0
  114. package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -0
  115. package/dist-cjs/protocols/Aws_json1_1.js.map +1 -0
  116. package/dist-cjs/runtimeConfig.browser.js +42 -0
  117. package/dist-cjs/runtimeConfig.browser.js.map +1 -0
  118. package/dist-cjs/runtimeConfig.js +47 -0
  119. package/dist-cjs/runtimeConfig.js.map +1 -0
  120. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -0
  121. package/dist-cjs/runtimeConfig.native.js.map +1 -0
  122. package/dist-cjs/runtimeConfig.shared.js +21 -0
  123. package/dist-cjs/runtimeConfig.shared.js.map +1 -0
  124. package/{dist/es → dist-es}/CloudWatchLogs.js +0 -0
  125. package/dist-es/CloudWatchLogs.js.map +1 -0
  126. package/dist-es/CloudWatchLogsClient.js +38 -0
  127. package/dist-es/CloudWatchLogsClient.js.map +1 -0
  128. package/dist-es/commands/AssociateKmsKeyCommand.js +40 -0
  129. package/dist-es/commands/AssociateKmsKeyCommand.js.map +1 -0
  130. package/dist-es/commands/CancelExportTaskCommand.js +40 -0
  131. package/dist-es/commands/CancelExportTaskCommand.js.map +1 -0
  132. package/dist-es/commands/CreateExportTaskCommand.js +40 -0
  133. package/dist-es/commands/CreateExportTaskCommand.js.map +1 -0
  134. package/dist-es/commands/CreateLogGroupCommand.js +40 -0
  135. package/dist-es/commands/CreateLogGroupCommand.js.map +1 -0
  136. package/dist-es/commands/CreateLogStreamCommand.js +40 -0
  137. package/dist-es/commands/CreateLogStreamCommand.js.map +1 -0
  138. package/dist-es/commands/DeleteDestinationCommand.js +40 -0
  139. package/dist-es/commands/DeleteDestinationCommand.js.map +1 -0
  140. package/dist-es/commands/DeleteLogGroupCommand.js +40 -0
  141. package/dist-es/commands/DeleteLogGroupCommand.js.map +1 -0
  142. package/dist-es/commands/DeleteLogStreamCommand.js +40 -0
  143. package/dist-es/commands/DeleteLogStreamCommand.js.map +1 -0
  144. package/dist-es/commands/DeleteMetricFilterCommand.js +40 -0
  145. package/dist-es/commands/DeleteMetricFilterCommand.js.map +1 -0
  146. package/dist-es/commands/DeleteQueryDefinitionCommand.js +40 -0
  147. package/dist-es/commands/DeleteQueryDefinitionCommand.js.map +1 -0
  148. package/dist-es/commands/DeleteResourcePolicyCommand.js +40 -0
  149. package/dist-es/commands/DeleteResourcePolicyCommand.js.map +1 -0
  150. package/dist-es/commands/DeleteRetentionPolicyCommand.js +40 -0
  151. package/dist-es/commands/DeleteRetentionPolicyCommand.js.map +1 -0
  152. package/dist-es/commands/DeleteSubscriptionFilterCommand.js +40 -0
  153. package/dist-es/commands/DeleteSubscriptionFilterCommand.js.map +1 -0
  154. package/dist-es/commands/DescribeDestinationsCommand.js +40 -0
  155. package/dist-es/commands/DescribeDestinationsCommand.js.map +1 -0
  156. package/dist-es/commands/DescribeExportTasksCommand.js +40 -0
  157. package/dist-es/commands/DescribeExportTasksCommand.js.map +1 -0
  158. package/dist-es/commands/DescribeLogGroupsCommand.js +40 -0
  159. package/dist-es/commands/DescribeLogGroupsCommand.js.map +1 -0
  160. package/dist-es/commands/DescribeLogStreamsCommand.js +40 -0
  161. package/dist-es/commands/DescribeLogStreamsCommand.js.map +1 -0
  162. package/dist-es/commands/DescribeMetricFiltersCommand.js +40 -0
  163. package/dist-es/commands/DescribeMetricFiltersCommand.js.map +1 -0
  164. package/dist-es/commands/DescribeQueriesCommand.js +40 -0
  165. package/dist-es/commands/DescribeQueriesCommand.js.map +1 -0
  166. package/dist-es/commands/DescribeQueryDefinitionsCommand.js +40 -0
  167. package/dist-es/commands/DescribeQueryDefinitionsCommand.js.map +1 -0
  168. package/dist-es/commands/DescribeResourcePoliciesCommand.js +40 -0
  169. package/dist-es/commands/DescribeResourcePoliciesCommand.js.map +1 -0
  170. package/dist-es/commands/DescribeSubscriptionFiltersCommand.js +40 -0
  171. package/dist-es/commands/DescribeSubscriptionFiltersCommand.js.map +1 -0
  172. package/dist-es/commands/DisassociateKmsKeyCommand.js +40 -0
  173. package/dist-es/commands/DisassociateKmsKeyCommand.js.map +1 -0
  174. package/dist-es/commands/FilterLogEventsCommand.js +40 -0
  175. package/dist-es/commands/FilterLogEventsCommand.js.map +1 -0
  176. package/dist-es/commands/GetLogEventsCommand.js +40 -0
  177. package/dist-es/commands/GetLogEventsCommand.js.map +1 -0
  178. package/dist-es/commands/GetLogGroupFieldsCommand.js +40 -0
  179. package/dist-es/commands/GetLogGroupFieldsCommand.js.map +1 -0
  180. package/dist-es/commands/GetLogRecordCommand.js +40 -0
  181. package/dist-es/commands/GetLogRecordCommand.js.map +1 -0
  182. package/dist-es/commands/GetQueryResultsCommand.js +40 -0
  183. package/dist-es/commands/GetQueryResultsCommand.js.map +1 -0
  184. package/dist-es/commands/ListTagsLogGroupCommand.js +40 -0
  185. package/dist-es/commands/ListTagsLogGroupCommand.js.map +1 -0
  186. package/dist-es/commands/PutDestinationCommand.js +40 -0
  187. package/dist-es/commands/PutDestinationCommand.js.map +1 -0
  188. package/dist-es/commands/PutDestinationPolicyCommand.js +40 -0
  189. package/dist-es/commands/PutDestinationPolicyCommand.js.map +1 -0
  190. package/dist-es/commands/PutLogEventsCommand.js +40 -0
  191. package/dist-es/commands/PutLogEventsCommand.js.map +1 -0
  192. package/dist-es/commands/PutMetricFilterCommand.js +40 -0
  193. package/dist-es/commands/PutMetricFilterCommand.js.map +1 -0
  194. package/dist-es/commands/PutQueryDefinitionCommand.js +40 -0
  195. package/dist-es/commands/PutQueryDefinitionCommand.js.map +1 -0
  196. package/dist-es/commands/PutResourcePolicyCommand.js +40 -0
  197. package/dist-es/commands/PutResourcePolicyCommand.js.map +1 -0
  198. package/dist-es/commands/PutRetentionPolicyCommand.js +40 -0
  199. package/dist-es/commands/PutRetentionPolicyCommand.js.map +1 -0
  200. package/dist-es/commands/PutSubscriptionFilterCommand.js +40 -0
  201. package/dist-es/commands/PutSubscriptionFilterCommand.js.map +1 -0
  202. package/dist-es/commands/StartQueryCommand.js +40 -0
  203. package/dist-es/commands/StartQueryCommand.js.map +1 -0
  204. package/dist-es/commands/StopQueryCommand.js +40 -0
  205. package/dist-es/commands/StopQueryCommand.js.map +1 -0
  206. package/dist-es/commands/TagLogGroupCommand.js +40 -0
  207. package/dist-es/commands/TagLogGroupCommand.js.map +1 -0
  208. package/dist-es/commands/TestMetricFilterCommand.js +40 -0
  209. package/dist-es/commands/TestMetricFilterCommand.js.map +1 -0
  210. package/dist-es/commands/UntagLogGroupCommand.js +40 -0
  211. package/dist-es/commands/UntagLogGroupCommand.js.map +1 -0
  212. package/{dist/es → dist-es}/endpoints.js +0 -0
  213. package/dist-es/endpoints.js.map +1 -0
  214. package/{dist/es → dist-es}/index.js +0 -0
  215. package/dist-es/index.js.map +1 -0
  216. package/{dist/es → dist-es}/models/index.js +0 -0
  217. package/dist-es/models/index.js.map +1 -0
  218. package/{dist/es → dist-es}/models/models_0.js +0 -0
  219. package/dist-es/models/models_0.js.map +1 -0
  220. package/{dist/es → dist-es}/pagination/DescribeDestinationsPaginator.js +0 -0
  221. package/dist-es/pagination/DescribeDestinationsPaginator.js.map +1 -0
  222. package/{dist/es → dist-es}/pagination/DescribeLogGroupsPaginator.js +0 -0
  223. package/dist-es/pagination/DescribeLogGroupsPaginator.js.map +1 -0
  224. package/{dist/es → dist-es}/pagination/DescribeLogStreamsPaginator.js +0 -0
  225. package/dist-es/pagination/DescribeLogStreamsPaginator.js.map +1 -0
  226. package/{dist/es → dist-es}/pagination/DescribeMetricFiltersPaginator.js +0 -0
  227. package/dist-es/pagination/DescribeMetricFiltersPaginator.js.map +1 -0
  228. package/{dist/es → dist-es}/pagination/DescribeSubscriptionFiltersPaginator.js +0 -0
  229. package/dist-es/pagination/DescribeSubscriptionFiltersPaginator.js.map +1 -0
  230. package/{dist/es → dist-es}/pagination/FilterLogEventsPaginator.js +0 -0
  231. package/dist-es/pagination/FilterLogEventsPaginator.js.map +1 -0
  232. package/{dist/es → dist-es}/pagination/GetLogEventsPaginator.js +0 -0
  233. package/dist-es/pagination/GetLogEventsPaginator.js.map +1 -0
  234. package/{dist/es → dist-es}/pagination/Interfaces.js +0 -0
  235. package/dist-es/pagination/Interfaces.js.map +1 -0
  236. package/{dist/es → dist-es}/protocols/Aws_json1_1.js +0 -0
  237. package/dist-es/protocols/Aws_json1_1.js.map +1 -0
  238. package/dist-es/runtimeConfig.browser.js +17 -0
  239. package/dist-es/runtimeConfig.browser.js.map +1 -0
  240. package/dist-es/runtimeConfig.js +22 -0
  241. package/dist-es/runtimeConfig.js.map +1 -0
  242. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -0
  243. package/dist-es/runtimeConfig.native.js.map +1 -0
  244. package/dist-es/runtimeConfig.shared.js +14 -0
  245. package/dist-es/runtimeConfig.shared.js.map +1 -0
  246. package/dist-types/CloudWatchLogs.d.ts +605 -0
  247. package/dist-types/CloudWatchLogsClient.d.ts +207 -0
  248. package/dist-types/commands/AssociateKmsKeyCommand.d.ts +47 -0
  249. package/dist-types/commands/CancelExportTaskCommand.d.ts +36 -0
  250. package/dist-types/commands/CreateExportTaskCommand.d.ts +48 -0
  251. package/dist-types/commands/CreateLogGroupCommand.d.ts +61 -0
  252. package/dist-types/commands/CreateLogStreamCommand.d.ts +51 -0
  253. package/dist-types/commands/DeleteDestinationCommand.d.ts +37 -0
  254. package/dist-types/commands/DeleteLogGroupCommand.d.ts +36 -0
  255. package/dist-types/commands/DeleteLogStreamCommand.d.ts +36 -0
  256. package/dist-types/commands/DeleteMetricFilterCommand.d.ts +35 -0
  257. package/dist-types/commands/DeleteQueryDefinitionCommand.d.ts +39 -0
  258. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +36 -0
  259. package/dist-types/commands/DeleteRetentionPolicyCommand.d.ts +36 -0
  260. package/dist-types/commands/DeleteSubscriptionFilterCommand.d.ts +35 -0
  261. package/dist-types/commands/DescribeDestinationsCommand.d.ts +35 -0
  262. package/dist-types/commands/DescribeExportTasksCommand.d.ts +36 -0
  263. package/dist-types/commands/DescribeLogGroupsCommand.d.ts +43 -0
  264. package/dist-types/commands/DescribeLogStreamsCommand.d.ts +38 -0
  265. package/dist-types/commands/DescribeMetricFiltersCommand.d.ts +37 -0
  266. package/dist-types/commands/DescribeQueriesCommand.d.ts +37 -0
  267. package/dist-types/commands/DescribeQueryDefinitionsCommand.d.ts +37 -0
  268. package/dist-types/commands/DescribeResourcePoliciesCommand.d.ts +35 -0
  269. package/dist-types/commands/DescribeSubscriptionFiltersCommand.d.ts +36 -0
  270. package/dist-types/commands/DisassociateKmsKeyCommand.d.ts +38 -0
  271. package/dist-types/commands/FilterLogEventsCommand.d.ts +43 -0
  272. package/dist-types/commands/GetLogEventsCommand.d.ts +40 -0
  273. package/dist-types/commands/GetLogGroupFieldsCommand.d.ts +42 -0
  274. package/dist-types/commands/GetLogRecordCommand.d.ts +38 -0
  275. package/dist-types/commands/GetQueryResultsCommand.d.ts +45 -0
  276. package/dist-types/commands/ListTagsLogGroupCommand.d.ts +35 -0
  277. package/dist-types/commands/PutDestinationCommand.d.ts +44 -0
  278. package/dist-types/commands/PutDestinationPolicyCommand.d.ts +40 -0
  279. package/dist-types/commands/PutLogEventsCommand.d.ts +72 -0
  280. package/dist-types/commands/PutMetricFilterCommand.d.ts +57 -0
  281. package/dist-types/commands/PutQueryDefinitionCommand.d.ts +46 -0
  282. package/dist-types/commands/PutResourcePolicyCommand.d.ts +37 -0
  283. package/dist-types/commands/PutRetentionPolicyCommand.d.ts +37 -0
  284. package/dist-types/commands/PutSubscriptionFilterCommand.d.ts +63 -0
  285. package/dist-types/commands/StartQueryCommand.d.ts +40 -0
  286. package/dist-types/commands/StopQueryCommand.d.ts +36 -0
  287. package/dist-types/commands/TagLogGroupCommand.d.ts +44 -0
  288. package/dist-types/commands/TestMetricFilterCommand.d.ts +36 -0
  289. package/dist-types/commands/UntagLogGroupCommand.d.ts +41 -0
  290. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  291. package/{dist/types → dist-types}/index.d.ts +0 -0
  292. package/{dist/types → dist-types}/models/index.d.ts +0 -0
  293. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  294. package/dist-types/pagination/DescribeDestinationsPaginator.d.ts +4 -0
  295. package/dist-types/pagination/DescribeLogGroupsPaginator.d.ts +4 -0
  296. package/dist-types/pagination/DescribeLogStreamsPaginator.d.ts +4 -0
  297. package/dist-types/pagination/DescribeMetricFiltersPaginator.d.ts +4 -0
  298. package/dist-types/pagination/DescribeSubscriptionFiltersPaginator.d.ts +4 -0
  299. package/dist-types/pagination/FilterLogEventsPaginator.d.ts +4 -0
  300. package/dist-types/pagination/GetLogEventsPaginator.d.ts +4 -0
  301. package/dist-types/pagination/Interfaces.d.ts +6 -0
  302. package/dist-types/protocols/Aws_json1_1.d.ts +128 -0
  303. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
  304. package/dist-types/runtimeConfig.d.ts +37 -0
  305. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
  306. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  307. package/dist-types/ts3.4/CloudWatchLogs.d.ts +605 -0
  308. package/dist-types/ts3.4/CloudWatchLogsClient.d.ts +207 -0
  309. package/dist-types/ts3.4/commands/AssociateKmsKeyCommand.d.ts +47 -0
  310. package/dist-types/ts3.4/commands/CancelExportTaskCommand.d.ts +36 -0
  311. package/dist-types/ts3.4/commands/CreateExportTaskCommand.d.ts +48 -0
  312. package/dist-types/ts3.4/commands/CreateLogGroupCommand.d.ts +61 -0
  313. package/dist-types/ts3.4/commands/CreateLogStreamCommand.d.ts +51 -0
  314. package/dist-types/ts3.4/commands/DeleteDestinationCommand.d.ts +37 -0
  315. package/dist-types/ts3.4/commands/DeleteLogGroupCommand.d.ts +36 -0
  316. package/dist-types/ts3.4/commands/DeleteLogStreamCommand.d.ts +36 -0
  317. package/dist-types/ts3.4/commands/DeleteMetricFilterCommand.d.ts +35 -0
  318. package/dist-types/ts3.4/commands/DeleteQueryDefinitionCommand.d.ts +39 -0
  319. package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +36 -0
  320. package/dist-types/ts3.4/commands/DeleteRetentionPolicyCommand.d.ts +36 -0
  321. package/dist-types/ts3.4/commands/DeleteSubscriptionFilterCommand.d.ts +35 -0
  322. package/dist-types/ts3.4/commands/DescribeDestinationsCommand.d.ts +35 -0
  323. package/dist-types/ts3.4/commands/DescribeExportTasksCommand.d.ts +36 -0
  324. package/dist-types/ts3.4/commands/DescribeLogGroupsCommand.d.ts +43 -0
  325. package/dist-types/ts3.4/commands/DescribeLogStreamsCommand.d.ts +38 -0
  326. package/dist-types/ts3.4/commands/DescribeMetricFiltersCommand.d.ts +37 -0
  327. package/dist-types/ts3.4/commands/DescribeQueriesCommand.d.ts +37 -0
  328. package/dist-types/ts3.4/commands/DescribeQueryDefinitionsCommand.d.ts +37 -0
  329. package/dist-types/ts3.4/commands/DescribeResourcePoliciesCommand.d.ts +35 -0
  330. package/dist-types/ts3.4/commands/DescribeSubscriptionFiltersCommand.d.ts +36 -0
  331. package/dist-types/ts3.4/commands/DisassociateKmsKeyCommand.d.ts +38 -0
  332. package/dist-types/ts3.4/commands/FilterLogEventsCommand.d.ts +43 -0
  333. package/dist-types/ts3.4/commands/GetLogEventsCommand.d.ts +40 -0
  334. package/dist-types/ts3.4/commands/GetLogGroupFieldsCommand.d.ts +42 -0
  335. package/dist-types/ts3.4/commands/GetLogRecordCommand.d.ts +38 -0
  336. package/dist-types/ts3.4/commands/GetQueryResultsCommand.d.ts +45 -0
  337. package/dist-types/ts3.4/commands/ListTagsLogGroupCommand.d.ts +35 -0
  338. package/dist-types/ts3.4/commands/PutDestinationCommand.d.ts +44 -0
  339. package/dist-types/ts3.4/commands/PutDestinationPolicyCommand.d.ts +40 -0
  340. package/dist-types/ts3.4/commands/PutLogEventsCommand.d.ts +72 -0
  341. package/dist-types/ts3.4/commands/PutMetricFilterCommand.d.ts +57 -0
  342. package/dist-types/ts3.4/commands/PutQueryDefinitionCommand.d.ts +46 -0
  343. package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +37 -0
  344. package/dist-types/ts3.4/commands/PutRetentionPolicyCommand.d.ts +37 -0
  345. package/dist-types/ts3.4/commands/PutSubscriptionFilterCommand.d.ts +63 -0
  346. package/dist-types/ts3.4/commands/StartQueryCommand.d.ts +40 -0
  347. package/dist-types/ts3.4/commands/StopQueryCommand.d.ts +36 -0
  348. package/dist-types/ts3.4/commands/TagLogGroupCommand.d.ts +44 -0
  349. package/dist-types/ts3.4/commands/TestMetricFilterCommand.d.ts +36 -0
  350. package/dist-types/ts3.4/commands/UntagLogGroupCommand.d.ts +41 -0
  351. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  352. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  353. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  354. package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
  355. package/dist-types/ts3.4/pagination/DescribeDestinationsPaginator.d.ts +4 -0
  356. package/dist-types/ts3.4/pagination/DescribeLogGroupsPaginator.d.ts +4 -0
  357. package/dist-types/ts3.4/pagination/DescribeLogStreamsPaginator.d.ts +4 -0
  358. package/dist-types/ts3.4/pagination/DescribeMetricFiltersPaginator.d.ts +4 -0
  359. package/dist-types/ts3.4/pagination/DescribeSubscriptionFiltersPaginator.d.ts +4 -0
  360. package/dist-types/ts3.4/pagination/FilterLogEventsPaginator.d.ts +4 -0
  361. package/dist-types/ts3.4/pagination/GetLogEventsPaginator.d.ts +4 -0
  362. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  363. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +128 -0
  364. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +0 -0
  365. package/dist-types/ts3.4/runtimeConfig.d.ts +37 -0
  366. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +0 -0
  367. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
  368. package/package.json +42 -42
  369. package/src/CloudWatchLogs.ts +1827 -0
  370. package/src/CloudWatchLogsClient.ts +431 -0
  371. package/src/commands/AssociateKmsKeyCommand.ts +107 -0
  372. package/src/commands/CancelExportTaskCommand.ts +96 -0
  373. package/src/commands/CreateExportTaskCommand.ts +108 -0
  374. package/src/commands/CreateLogGroupCommand.ts +121 -0
  375. package/src/commands/CreateLogStreamCommand.ts +111 -0
  376. package/src/commands/DeleteDestinationCommand.ts +97 -0
  377. package/src/commands/DeleteLogGroupCommand.ts +96 -0
  378. package/src/commands/DeleteLogStreamCommand.ts +96 -0
  379. package/src/commands/DeleteMetricFilterCommand.ts +95 -0
  380. package/src/commands/DeleteQueryDefinitionCommand.ts +99 -0
  381. package/src/commands/DeleteResourcePolicyCommand.ts +96 -0
  382. package/src/commands/DeleteRetentionPolicyCommand.ts +96 -0
  383. package/src/commands/DeleteSubscriptionFilterCommand.ts +95 -0
  384. package/src/commands/DescribeDestinationsCommand.ts +95 -0
  385. package/src/commands/DescribeExportTasksCommand.ts +96 -0
  386. package/src/commands/DescribeLogGroupsCommand.ts +103 -0
  387. package/src/commands/DescribeLogStreamsCommand.ts +98 -0
  388. package/src/commands/DescribeMetricFiltersCommand.ts +97 -0
  389. package/src/commands/DescribeQueriesCommand.ts +97 -0
  390. package/src/commands/DescribeQueryDefinitionsCommand.ts +97 -0
  391. package/src/commands/DescribeResourcePoliciesCommand.ts +95 -0
  392. package/src/commands/DescribeSubscriptionFiltersCommand.ts +101 -0
  393. package/src/commands/DisassociateKmsKeyCommand.ts +98 -0
  394. package/src/commands/FilterLogEventsCommand.ts +103 -0
  395. package/src/commands/GetLogEventsCommand.ts +100 -0
  396. package/src/commands/GetLogGroupFieldsCommand.ts +102 -0
  397. package/src/commands/GetLogRecordCommand.ts +98 -0
  398. package/src/commands/GetQueryResultsCommand.ts +105 -0
  399. package/src/commands/ListTagsLogGroupCommand.ts +95 -0
  400. package/src/commands/PutDestinationCommand.ts +104 -0
  401. package/src/commands/PutDestinationPolicyCommand.ts +100 -0
  402. package/src/commands/PutLogEventsCommand.ts +132 -0
  403. package/src/commands/PutMetricFilterCommand.ts +117 -0
  404. package/src/commands/PutQueryDefinitionCommand.ts +106 -0
  405. package/src/commands/PutResourcePolicyCommand.ts +97 -0
  406. package/src/commands/PutRetentionPolicyCommand.ts +97 -0
  407. package/src/commands/PutSubscriptionFilterCommand.ts +123 -0
  408. package/src/commands/StartQueryCommand.ts +100 -0
  409. package/src/commands/StopQueryCommand.ts +93 -0
  410. package/src/commands/TagLogGroupCommand.ts +104 -0
  411. package/src/commands/TestMetricFilterCommand.ts +96 -0
  412. package/src/commands/UntagLogGroupCommand.ts +101 -0
  413. package/src/endpoints.ts +86 -0
  414. package/{index.ts → src/index.ts} +0 -0
  415. package/{models → src/models}/index.ts +0 -0
  416. package/{models → src/models}/models_0.ts +0 -0
  417. package/src/pagination/DescribeDestinationsPaginator.ts +59 -0
  418. package/src/pagination/DescribeLogGroupsPaginator.ts +59 -0
  419. package/src/pagination/DescribeLogStreamsPaginator.ts +59 -0
  420. package/src/pagination/DescribeMetricFiltersPaginator.ts +59 -0
  421. package/src/pagination/DescribeSubscriptionFiltersPaginator.ts +59 -0
  422. package/src/pagination/FilterLogEventsPaginator.ts +59 -0
  423. package/src/pagination/GetLogEventsPaginator.ts +59 -0
  424. package/src/pagination/Interfaces.ts +8 -0
  425. package/src/protocols/Aws_json1_1.ts +5413 -0
  426. package/src/runtimeConfig.browser.ts +41 -0
  427. package/src/runtimeConfig.native.ts +17 -0
  428. package/src/runtimeConfig.shared.ts +17 -0
  429. package/src/runtimeConfig.ts +46 -0
  430. package/tsconfig.es.json +1 -1
  431. package/tsconfig.json +4 -2
  432. package/tsconfig.types.json +3 -2
  433. package/CloudWatchLogs.ts +0 -1826
  434. package/CloudWatchLogsClient.ts +0 -430
  435. package/commands/AssociateKmsKeyCommand.ts +0 -106
  436. package/commands/CancelExportTaskCommand.ts +0 -95
  437. package/commands/CreateExportTaskCommand.ts +0 -107
  438. package/commands/CreateLogGroupCommand.ts +0 -120
  439. package/commands/CreateLogStreamCommand.ts +0 -110
  440. package/commands/DeleteDestinationCommand.ts +0 -96
  441. package/commands/DeleteLogGroupCommand.ts +0 -95
  442. package/commands/DeleteLogStreamCommand.ts +0 -95
  443. package/commands/DeleteMetricFilterCommand.ts +0 -94
  444. package/commands/DeleteQueryDefinitionCommand.ts +0 -98
  445. package/commands/DeleteResourcePolicyCommand.ts +0 -95
  446. package/commands/DeleteRetentionPolicyCommand.ts +0 -95
  447. package/commands/DeleteSubscriptionFilterCommand.ts +0 -94
  448. package/commands/DescribeDestinationsCommand.ts +0 -94
  449. package/commands/DescribeExportTasksCommand.ts +0 -95
  450. package/commands/DescribeLogGroupsCommand.ts +0 -102
  451. package/commands/DescribeLogStreamsCommand.ts +0 -97
  452. package/commands/DescribeMetricFiltersCommand.ts +0 -96
  453. package/commands/DescribeQueriesCommand.ts +0 -96
  454. package/commands/DescribeQueryDefinitionsCommand.ts +0 -96
  455. package/commands/DescribeResourcePoliciesCommand.ts +0 -94
  456. package/commands/DescribeSubscriptionFiltersCommand.ts +0 -100
  457. package/commands/DisassociateKmsKeyCommand.ts +0 -97
  458. package/commands/FilterLogEventsCommand.ts +0 -102
  459. package/commands/GetLogEventsCommand.ts +0 -99
  460. package/commands/GetLogGroupFieldsCommand.ts +0 -101
  461. package/commands/GetLogRecordCommand.ts +0 -97
  462. package/commands/GetQueryResultsCommand.ts +0 -104
  463. package/commands/ListTagsLogGroupCommand.ts +0 -94
  464. package/commands/PutDestinationCommand.ts +0 -103
  465. package/commands/PutDestinationPolicyCommand.ts +0 -99
  466. package/commands/PutLogEventsCommand.ts +0 -131
  467. package/commands/PutMetricFilterCommand.ts +0 -116
  468. package/commands/PutQueryDefinitionCommand.ts +0 -105
  469. package/commands/PutResourcePolicyCommand.ts +0 -96
  470. package/commands/PutRetentionPolicyCommand.ts +0 -96
  471. package/commands/PutSubscriptionFilterCommand.ts +0 -122
  472. package/commands/StartQueryCommand.ts +0 -99
  473. package/commands/StopQueryCommand.ts +0 -92
  474. package/commands/TagLogGroupCommand.ts +0 -103
  475. package/commands/TestMetricFilterCommand.ts +0 -95
  476. package/commands/UntagLogGroupCommand.ts +0 -100
  477. package/dist/cjs/CloudWatchLogs.js.map +0 -1
  478. package/dist/cjs/CloudWatchLogsClient.js +0 -77
  479. package/dist/cjs/CloudWatchLogsClient.js.map +0 -1
  480. package/dist/cjs/commands/AssociateKmsKeyCommand.js +0 -73
  481. package/dist/cjs/commands/AssociateKmsKeyCommand.js.map +0 -1
  482. package/dist/cjs/commands/CancelExportTaskCommand.js +0 -62
  483. package/dist/cjs/commands/CancelExportTaskCommand.js.map +0 -1
  484. package/dist/cjs/commands/CreateExportTaskCommand.js +0 -74
  485. package/dist/cjs/commands/CreateExportTaskCommand.js.map +0 -1
  486. package/dist/cjs/commands/CreateLogGroupCommand.js +0 -87
  487. package/dist/cjs/commands/CreateLogGroupCommand.js.map +0 -1
  488. package/dist/cjs/commands/CreateLogStreamCommand.js +0 -77
  489. package/dist/cjs/commands/CreateLogStreamCommand.js.map +0 -1
  490. package/dist/cjs/commands/DeleteDestinationCommand.js +0 -63
  491. package/dist/cjs/commands/DeleteDestinationCommand.js.map +0 -1
  492. package/dist/cjs/commands/DeleteLogGroupCommand.js +0 -62
  493. package/dist/cjs/commands/DeleteLogGroupCommand.js.map +0 -1
  494. package/dist/cjs/commands/DeleteLogStreamCommand.js +0 -62
  495. package/dist/cjs/commands/DeleteLogStreamCommand.js.map +0 -1
  496. package/dist/cjs/commands/DeleteMetricFilterCommand.js +0 -61
  497. package/dist/cjs/commands/DeleteMetricFilterCommand.js.map +0 -1
  498. package/dist/cjs/commands/DeleteQueryDefinitionCommand.js +0 -65
  499. package/dist/cjs/commands/DeleteQueryDefinitionCommand.js.map +0 -1
  500. package/dist/cjs/commands/DeleteResourcePolicyCommand.js +0 -62
  501. package/dist/cjs/commands/DeleteResourcePolicyCommand.js.map +0 -1
  502. package/dist/cjs/commands/DeleteRetentionPolicyCommand.js +0 -62
  503. package/dist/cjs/commands/DeleteRetentionPolicyCommand.js.map +0 -1
  504. package/dist/cjs/commands/DeleteSubscriptionFilterCommand.js +0 -61
  505. package/dist/cjs/commands/DeleteSubscriptionFilterCommand.js.map +0 -1
  506. package/dist/cjs/commands/DescribeDestinationsCommand.js +0 -61
  507. package/dist/cjs/commands/DescribeDestinationsCommand.js.map +0 -1
  508. package/dist/cjs/commands/DescribeExportTasksCommand.js +0 -62
  509. package/dist/cjs/commands/DescribeExportTasksCommand.js.map +0 -1
  510. package/dist/cjs/commands/DescribeLogGroupsCommand.js +0 -69
  511. package/dist/cjs/commands/DescribeLogGroupsCommand.js.map +0 -1
  512. package/dist/cjs/commands/DescribeLogStreamsCommand.js +0 -64
  513. package/dist/cjs/commands/DescribeLogStreamsCommand.js.map +0 -1
  514. package/dist/cjs/commands/DescribeMetricFiltersCommand.js +0 -63
  515. package/dist/cjs/commands/DescribeMetricFiltersCommand.js.map +0 -1
  516. package/dist/cjs/commands/DescribeQueriesCommand.js +0 -63
  517. package/dist/cjs/commands/DescribeQueriesCommand.js.map +0 -1
  518. package/dist/cjs/commands/DescribeQueryDefinitionsCommand.js +0 -63
  519. package/dist/cjs/commands/DescribeQueryDefinitionsCommand.js.map +0 -1
  520. package/dist/cjs/commands/DescribeResourcePoliciesCommand.js +0 -61
  521. package/dist/cjs/commands/DescribeResourcePoliciesCommand.js.map +0 -1
  522. package/dist/cjs/commands/DescribeSubscriptionFiltersCommand.js +0 -62
  523. package/dist/cjs/commands/DescribeSubscriptionFiltersCommand.js.map +0 -1
  524. package/dist/cjs/commands/DisassociateKmsKeyCommand.js +0 -64
  525. package/dist/cjs/commands/DisassociateKmsKeyCommand.js.map +0 -1
  526. package/dist/cjs/commands/FilterLogEventsCommand.js +0 -69
  527. package/dist/cjs/commands/FilterLogEventsCommand.js.map +0 -1
  528. package/dist/cjs/commands/GetLogEventsCommand.js +0 -66
  529. package/dist/cjs/commands/GetLogEventsCommand.js.map +0 -1
  530. package/dist/cjs/commands/GetLogGroupFieldsCommand.js +0 -68
  531. package/dist/cjs/commands/GetLogGroupFieldsCommand.js.map +0 -1
  532. package/dist/cjs/commands/GetLogRecordCommand.js +0 -64
  533. package/dist/cjs/commands/GetLogRecordCommand.js.map +0 -1
  534. package/dist/cjs/commands/GetQueryResultsCommand.js +0 -71
  535. package/dist/cjs/commands/GetQueryResultsCommand.js.map +0 -1
  536. package/dist/cjs/commands/ListTagsLogGroupCommand.js +0 -61
  537. package/dist/cjs/commands/ListTagsLogGroupCommand.js.map +0 -1
  538. package/dist/cjs/commands/PutDestinationCommand.js +0 -70
  539. package/dist/cjs/commands/PutDestinationCommand.js.map +0 -1
  540. package/dist/cjs/commands/PutDestinationPolicyCommand.js +0 -66
  541. package/dist/cjs/commands/PutDestinationPolicyCommand.js.map +0 -1
  542. package/dist/cjs/commands/PutLogEventsCommand.js +0 -98
  543. package/dist/cjs/commands/PutLogEventsCommand.js.map +0 -1
  544. package/dist/cjs/commands/PutMetricFilterCommand.js +0 -83
  545. package/dist/cjs/commands/PutMetricFilterCommand.js.map +0 -1
  546. package/dist/cjs/commands/PutQueryDefinitionCommand.js +0 -72
  547. package/dist/cjs/commands/PutQueryDefinitionCommand.js.map +0 -1
  548. package/dist/cjs/commands/PutResourcePolicyCommand.js +0 -63
  549. package/dist/cjs/commands/PutResourcePolicyCommand.js.map +0 -1
  550. package/dist/cjs/commands/PutRetentionPolicyCommand.js +0 -63
  551. package/dist/cjs/commands/PutRetentionPolicyCommand.js.map +0 -1
  552. package/dist/cjs/commands/PutSubscriptionFilterCommand.js +0 -89
  553. package/dist/cjs/commands/PutSubscriptionFilterCommand.js.map +0 -1
  554. package/dist/cjs/commands/StartQueryCommand.js +0 -66
  555. package/dist/cjs/commands/StartQueryCommand.js.map +0 -1
  556. package/dist/cjs/commands/StopQueryCommand.js +0 -62
  557. package/dist/cjs/commands/StopQueryCommand.js.map +0 -1
  558. package/dist/cjs/commands/TagLogGroupCommand.js +0 -70
  559. package/dist/cjs/commands/TagLogGroupCommand.js.map +0 -1
  560. package/dist/cjs/commands/TestMetricFilterCommand.js +0 -62
  561. package/dist/cjs/commands/TestMetricFilterCommand.js.map +0 -1
  562. package/dist/cjs/commands/UntagLogGroupCommand.js +0 -67
  563. package/dist/cjs/commands/UntagLogGroupCommand.js.map +0 -1
  564. package/dist/cjs/endpoints.js.map +0 -1
  565. package/dist/cjs/index.js.map +0 -1
  566. package/dist/cjs/models/index.js.map +0 -1
  567. package/dist/cjs/models/models_0.js.map +0 -1
  568. package/dist/cjs/package.json +0 -91
  569. package/dist/cjs/pagination/DescribeDestinationsPaginator.js.map +0 -1
  570. package/dist/cjs/pagination/DescribeLogGroupsPaginator.js.map +0 -1
  571. package/dist/cjs/pagination/DescribeLogStreamsPaginator.js.map +0 -1
  572. package/dist/cjs/pagination/DescribeMetricFiltersPaginator.js.map +0 -1
  573. package/dist/cjs/pagination/DescribeSubscriptionFiltersPaginator.js.map +0 -1
  574. package/dist/cjs/pagination/FilterLogEventsPaginator.js.map +0 -1
  575. package/dist/cjs/pagination/GetLogEventsPaginator.js.map +0 -1
  576. package/dist/cjs/pagination/Interfaces.js.map +0 -1
  577. package/dist/cjs/protocols/Aws_json1_1.js.map +0 -1
  578. package/dist/cjs/runtimeConfig.browser.js +0 -41
  579. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  580. package/dist/cjs/runtimeConfig.js +0 -46
  581. package/dist/cjs/runtimeConfig.js.map +0 -1
  582. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  583. package/dist/cjs/runtimeConfig.shared.js +0 -21
  584. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  585. package/dist/es/CloudWatchLogs.js.map +0 -1
  586. package/dist/es/CloudWatchLogsClient.js +0 -38
  587. package/dist/es/CloudWatchLogsClient.js.map +0 -1
  588. package/dist/es/commands/AssociateKmsKeyCommand.js +0 -40
  589. package/dist/es/commands/AssociateKmsKeyCommand.js.map +0 -1
  590. package/dist/es/commands/CancelExportTaskCommand.js +0 -40
  591. package/dist/es/commands/CancelExportTaskCommand.js.map +0 -1
  592. package/dist/es/commands/CreateExportTaskCommand.js +0 -40
  593. package/dist/es/commands/CreateExportTaskCommand.js.map +0 -1
  594. package/dist/es/commands/CreateLogGroupCommand.js +0 -40
  595. package/dist/es/commands/CreateLogGroupCommand.js.map +0 -1
  596. package/dist/es/commands/CreateLogStreamCommand.js +0 -40
  597. package/dist/es/commands/CreateLogStreamCommand.js.map +0 -1
  598. package/dist/es/commands/DeleteDestinationCommand.js +0 -40
  599. package/dist/es/commands/DeleteDestinationCommand.js.map +0 -1
  600. package/dist/es/commands/DeleteLogGroupCommand.js +0 -40
  601. package/dist/es/commands/DeleteLogGroupCommand.js.map +0 -1
  602. package/dist/es/commands/DeleteLogStreamCommand.js +0 -40
  603. package/dist/es/commands/DeleteLogStreamCommand.js.map +0 -1
  604. package/dist/es/commands/DeleteMetricFilterCommand.js +0 -40
  605. package/dist/es/commands/DeleteMetricFilterCommand.js.map +0 -1
  606. package/dist/es/commands/DeleteQueryDefinitionCommand.js +0 -40
  607. package/dist/es/commands/DeleteQueryDefinitionCommand.js.map +0 -1
  608. package/dist/es/commands/DeleteResourcePolicyCommand.js +0 -40
  609. package/dist/es/commands/DeleteResourcePolicyCommand.js.map +0 -1
  610. package/dist/es/commands/DeleteRetentionPolicyCommand.js +0 -40
  611. package/dist/es/commands/DeleteRetentionPolicyCommand.js.map +0 -1
  612. package/dist/es/commands/DeleteSubscriptionFilterCommand.js +0 -40
  613. package/dist/es/commands/DeleteSubscriptionFilterCommand.js.map +0 -1
  614. package/dist/es/commands/DescribeDestinationsCommand.js +0 -40
  615. package/dist/es/commands/DescribeDestinationsCommand.js.map +0 -1
  616. package/dist/es/commands/DescribeExportTasksCommand.js +0 -40
  617. package/dist/es/commands/DescribeExportTasksCommand.js.map +0 -1
  618. package/dist/es/commands/DescribeLogGroupsCommand.js +0 -40
  619. package/dist/es/commands/DescribeLogGroupsCommand.js.map +0 -1
  620. package/dist/es/commands/DescribeLogStreamsCommand.js +0 -40
  621. package/dist/es/commands/DescribeLogStreamsCommand.js.map +0 -1
  622. package/dist/es/commands/DescribeMetricFiltersCommand.js +0 -40
  623. package/dist/es/commands/DescribeMetricFiltersCommand.js.map +0 -1
  624. package/dist/es/commands/DescribeQueriesCommand.js +0 -40
  625. package/dist/es/commands/DescribeQueriesCommand.js.map +0 -1
  626. package/dist/es/commands/DescribeQueryDefinitionsCommand.js +0 -40
  627. package/dist/es/commands/DescribeQueryDefinitionsCommand.js.map +0 -1
  628. package/dist/es/commands/DescribeResourcePoliciesCommand.js +0 -40
  629. package/dist/es/commands/DescribeResourcePoliciesCommand.js.map +0 -1
  630. package/dist/es/commands/DescribeSubscriptionFiltersCommand.js +0 -40
  631. package/dist/es/commands/DescribeSubscriptionFiltersCommand.js.map +0 -1
  632. package/dist/es/commands/DisassociateKmsKeyCommand.js +0 -40
  633. package/dist/es/commands/DisassociateKmsKeyCommand.js.map +0 -1
  634. package/dist/es/commands/FilterLogEventsCommand.js +0 -40
  635. package/dist/es/commands/FilterLogEventsCommand.js.map +0 -1
  636. package/dist/es/commands/GetLogEventsCommand.js +0 -40
  637. package/dist/es/commands/GetLogEventsCommand.js.map +0 -1
  638. package/dist/es/commands/GetLogGroupFieldsCommand.js +0 -40
  639. package/dist/es/commands/GetLogGroupFieldsCommand.js.map +0 -1
  640. package/dist/es/commands/GetLogRecordCommand.js +0 -40
  641. package/dist/es/commands/GetLogRecordCommand.js.map +0 -1
  642. package/dist/es/commands/GetQueryResultsCommand.js +0 -40
  643. package/dist/es/commands/GetQueryResultsCommand.js.map +0 -1
  644. package/dist/es/commands/ListTagsLogGroupCommand.js +0 -40
  645. package/dist/es/commands/ListTagsLogGroupCommand.js.map +0 -1
  646. package/dist/es/commands/PutDestinationCommand.js +0 -40
  647. package/dist/es/commands/PutDestinationCommand.js.map +0 -1
  648. package/dist/es/commands/PutDestinationPolicyCommand.js +0 -40
  649. package/dist/es/commands/PutDestinationPolicyCommand.js.map +0 -1
  650. package/dist/es/commands/PutLogEventsCommand.js +0 -40
  651. package/dist/es/commands/PutLogEventsCommand.js.map +0 -1
  652. package/dist/es/commands/PutMetricFilterCommand.js +0 -40
  653. package/dist/es/commands/PutMetricFilterCommand.js.map +0 -1
  654. package/dist/es/commands/PutQueryDefinitionCommand.js +0 -40
  655. package/dist/es/commands/PutQueryDefinitionCommand.js.map +0 -1
  656. package/dist/es/commands/PutResourcePolicyCommand.js +0 -40
  657. package/dist/es/commands/PutResourcePolicyCommand.js.map +0 -1
  658. package/dist/es/commands/PutRetentionPolicyCommand.js +0 -40
  659. package/dist/es/commands/PutRetentionPolicyCommand.js.map +0 -1
  660. package/dist/es/commands/PutSubscriptionFilterCommand.js +0 -40
  661. package/dist/es/commands/PutSubscriptionFilterCommand.js.map +0 -1
  662. package/dist/es/commands/StartQueryCommand.js +0 -40
  663. package/dist/es/commands/StartQueryCommand.js.map +0 -1
  664. package/dist/es/commands/StopQueryCommand.js +0 -40
  665. package/dist/es/commands/StopQueryCommand.js.map +0 -1
  666. package/dist/es/commands/TagLogGroupCommand.js +0 -40
  667. package/dist/es/commands/TagLogGroupCommand.js.map +0 -1
  668. package/dist/es/commands/TestMetricFilterCommand.js +0 -40
  669. package/dist/es/commands/TestMetricFilterCommand.js.map +0 -1
  670. package/dist/es/commands/UntagLogGroupCommand.js +0 -40
  671. package/dist/es/commands/UntagLogGroupCommand.js.map +0 -1
  672. package/dist/es/endpoints.js.map +0 -1
  673. package/dist/es/index.js.map +0 -1
  674. package/dist/es/models/index.js.map +0 -1
  675. package/dist/es/models/models_0.js.map +0 -1
  676. package/dist/es/package.json +0 -91
  677. package/dist/es/pagination/DescribeDestinationsPaginator.js.map +0 -1
  678. package/dist/es/pagination/DescribeLogGroupsPaginator.js.map +0 -1
  679. package/dist/es/pagination/DescribeLogStreamsPaginator.js.map +0 -1
  680. package/dist/es/pagination/DescribeMetricFiltersPaginator.js.map +0 -1
  681. package/dist/es/pagination/DescribeSubscriptionFiltersPaginator.js.map +0 -1
  682. package/dist/es/pagination/FilterLogEventsPaginator.js.map +0 -1
  683. package/dist/es/pagination/GetLogEventsPaginator.js.map +0 -1
  684. package/dist/es/pagination/Interfaces.js.map +0 -1
  685. package/dist/es/protocols/Aws_json1_1.js.map +0 -1
  686. package/dist/es/runtimeConfig.browser.js +0 -17
  687. package/dist/es/runtimeConfig.browser.js.map +0 -1
  688. package/dist/es/runtimeConfig.js +0 -22
  689. package/dist/es/runtimeConfig.js.map +0 -1
  690. package/dist/es/runtimeConfig.native.js.map +0 -1
  691. package/dist/es/runtimeConfig.shared.js +0 -14
  692. package/dist/es/runtimeConfig.shared.js.map +0 -1
  693. package/dist/types/CloudWatchLogs.d.ts +0 -605
  694. package/dist/types/CloudWatchLogsClient.d.ts +0 -207
  695. package/dist/types/commands/AssociateKmsKeyCommand.d.ts +0 -47
  696. package/dist/types/commands/CancelExportTaskCommand.d.ts +0 -36
  697. package/dist/types/commands/CreateExportTaskCommand.d.ts +0 -48
  698. package/dist/types/commands/CreateLogGroupCommand.d.ts +0 -61
  699. package/dist/types/commands/CreateLogStreamCommand.d.ts +0 -51
  700. package/dist/types/commands/DeleteDestinationCommand.d.ts +0 -37
  701. package/dist/types/commands/DeleteLogGroupCommand.d.ts +0 -36
  702. package/dist/types/commands/DeleteLogStreamCommand.d.ts +0 -36
  703. package/dist/types/commands/DeleteMetricFilterCommand.d.ts +0 -35
  704. package/dist/types/commands/DeleteQueryDefinitionCommand.d.ts +0 -39
  705. package/dist/types/commands/DeleteResourcePolicyCommand.d.ts +0 -36
  706. package/dist/types/commands/DeleteRetentionPolicyCommand.d.ts +0 -36
  707. package/dist/types/commands/DeleteSubscriptionFilterCommand.d.ts +0 -35
  708. package/dist/types/commands/DescribeDestinationsCommand.d.ts +0 -35
  709. package/dist/types/commands/DescribeExportTasksCommand.d.ts +0 -36
  710. package/dist/types/commands/DescribeLogGroupsCommand.d.ts +0 -43
  711. package/dist/types/commands/DescribeLogStreamsCommand.d.ts +0 -38
  712. package/dist/types/commands/DescribeMetricFiltersCommand.d.ts +0 -37
  713. package/dist/types/commands/DescribeQueriesCommand.d.ts +0 -37
  714. package/dist/types/commands/DescribeQueryDefinitionsCommand.d.ts +0 -37
  715. package/dist/types/commands/DescribeResourcePoliciesCommand.d.ts +0 -35
  716. package/dist/types/commands/DescribeSubscriptionFiltersCommand.d.ts +0 -36
  717. package/dist/types/commands/DisassociateKmsKeyCommand.d.ts +0 -38
  718. package/dist/types/commands/FilterLogEventsCommand.d.ts +0 -43
  719. package/dist/types/commands/GetLogEventsCommand.d.ts +0 -40
  720. package/dist/types/commands/GetLogGroupFieldsCommand.d.ts +0 -42
  721. package/dist/types/commands/GetLogRecordCommand.d.ts +0 -38
  722. package/dist/types/commands/GetQueryResultsCommand.d.ts +0 -45
  723. package/dist/types/commands/ListTagsLogGroupCommand.d.ts +0 -35
  724. package/dist/types/commands/PutDestinationCommand.d.ts +0 -44
  725. package/dist/types/commands/PutDestinationPolicyCommand.d.ts +0 -40
  726. package/dist/types/commands/PutLogEventsCommand.d.ts +0 -72
  727. package/dist/types/commands/PutMetricFilterCommand.d.ts +0 -57
  728. package/dist/types/commands/PutQueryDefinitionCommand.d.ts +0 -46
  729. package/dist/types/commands/PutResourcePolicyCommand.d.ts +0 -37
  730. package/dist/types/commands/PutRetentionPolicyCommand.d.ts +0 -37
  731. package/dist/types/commands/PutSubscriptionFilterCommand.d.ts +0 -63
  732. package/dist/types/commands/StartQueryCommand.d.ts +0 -40
  733. package/dist/types/commands/StopQueryCommand.d.ts +0 -36
  734. package/dist/types/commands/TagLogGroupCommand.d.ts +0 -44
  735. package/dist/types/commands/TestMetricFilterCommand.d.ts +0 -36
  736. package/dist/types/commands/UntagLogGroupCommand.d.ts +0 -41
  737. package/dist/types/pagination/DescribeDestinationsPaginator.d.ts +0 -4
  738. package/dist/types/pagination/DescribeLogGroupsPaginator.d.ts +0 -4
  739. package/dist/types/pagination/DescribeLogStreamsPaginator.d.ts +0 -4
  740. package/dist/types/pagination/DescribeMetricFiltersPaginator.d.ts +0 -4
  741. package/dist/types/pagination/DescribeSubscriptionFiltersPaginator.d.ts +0 -4
  742. package/dist/types/pagination/FilterLogEventsPaginator.d.ts +0 -4
  743. package/dist/types/pagination/GetLogEventsPaginator.d.ts +0 -4
  744. package/dist/types/pagination/Interfaces.d.ts +0 -6
  745. package/dist/types/protocols/Aws_json1_1.d.ts +0 -128
  746. package/dist/types/runtimeConfig.d.ts +0 -37
  747. package/dist/types/ts3.4/CloudWatchLogs.d.ts +0 -605
  748. package/dist/types/ts3.4/CloudWatchLogsClient.d.ts +0 -207
  749. package/dist/types/ts3.4/commands/AssociateKmsKeyCommand.d.ts +0 -47
  750. package/dist/types/ts3.4/commands/CancelExportTaskCommand.d.ts +0 -36
  751. package/dist/types/ts3.4/commands/CreateExportTaskCommand.d.ts +0 -48
  752. package/dist/types/ts3.4/commands/CreateLogGroupCommand.d.ts +0 -61
  753. package/dist/types/ts3.4/commands/CreateLogStreamCommand.d.ts +0 -51
  754. package/dist/types/ts3.4/commands/DeleteDestinationCommand.d.ts +0 -37
  755. package/dist/types/ts3.4/commands/DeleteLogGroupCommand.d.ts +0 -36
  756. package/dist/types/ts3.4/commands/DeleteLogStreamCommand.d.ts +0 -36
  757. package/dist/types/ts3.4/commands/DeleteMetricFilterCommand.d.ts +0 -35
  758. package/dist/types/ts3.4/commands/DeleteQueryDefinitionCommand.d.ts +0 -39
  759. package/dist/types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +0 -36
  760. package/dist/types/ts3.4/commands/DeleteRetentionPolicyCommand.d.ts +0 -36
  761. package/dist/types/ts3.4/commands/DeleteSubscriptionFilterCommand.d.ts +0 -35
  762. package/dist/types/ts3.4/commands/DescribeDestinationsCommand.d.ts +0 -35
  763. package/dist/types/ts3.4/commands/DescribeExportTasksCommand.d.ts +0 -36
  764. package/dist/types/ts3.4/commands/DescribeLogGroupsCommand.d.ts +0 -43
  765. package/dist/types/ts3.4/commands/DescribeLogStreamsCommand.d.ts +0 -38
  766. package/dist/types/ts3.4/commands/DescribeMetricFiltersCommand.d.ts +0 -37
  767. package/dist/types/ts3.4/commands/DescribeQueriesCommand.d.ts +0 -37
  768. package/dist/types/ts3.4/commands/DescribeQueryDefinitionsCommand.d.ts +0 -37
  769. package/dist/types/ts3.4/commands/DescribeResourcePoliciesCommand.d.ts +0 -35
  770. package/dist/types/ts3.4/commands/DescribeSubscriptionFiltersCommand.d.ts +0 -36
  771. package/dist/types/ts3.4/commands/DisassociateKmsKeyCommand.d.ts +0 -38
  772. package/dist/types/ts3.4/commands/FilterLogEventsCommand.d.ts +0 -43
  773. package/dist/types/ts3.4/commands/GetLogEventsCommand.d.ts +0 -40
  774. package/dist/types/ts3.4/commands/GetLogGroupFieldsCommand.d.ts +0 -42
  775. package/dist/types/ts3.4/commands/GetLogRecordCommand.d.ts +0 -38
  776. package/dist/types/ts3.4/commands/GetQueryResultsCommand.d.ts +0 -45
  777. package/dist/types/ts3.4/commands/ListTagsLogGroupCommand.d.ts +0 -35
  778. package/dist/types/ts3.4/commands/PutDestinationCommand.d.ts +0 -44
  779. package/dist/types/ts3.4/commands/PutDestinationPolicyCommand.d.ts +0 -40
  780. package/dist/types/ts3.4/commands/PutLogEventsCommand.d.ts +0 -72
  781. package/dist/types/ts3.4/commands/PutMetricFilterCommand.d.ts +0 -57
  782. package/dist/types/ts3.4/commands/PutQueryDefinitionCommand.d.ts +0 -46
  783. package/dist/types/ts3.4/commands/PutResourcePolicyCommand.d.ts +0 -37
  784. package/dist/types/ts3.4/commands/PutRetentionPolicyCommand.d.ts +0 -37
  785. package/dist/types/ts3.4/commands/PutSubscriptionFilterCommand.d.ts +0 -63
  786. package/dist/types/ts3.4/commands/StartQueryCommand.d.ts +0 -40
  787. package/dist/types/ts3.4/commands/StopQueryCommand.d.ts +0 -36
  788. package/dist/types/ts3.4/commands/TagLogGroupCommand.d.ts +0 -44
  789. package/dist/types/ts3.4/commands/TestMetricFilterCommand.d.ts +0 -36
  790. package/dist/types/ts3.4/commands/UntagLogGroupCommand.d.ts +0 -41
  791. package/dist/types/ts3.4/pagination/DescribeDestinationsPaginator.d.ts +0 -4
  792. package/dist/types/ts3.4/pagination/DescribeLogGroupsPaginator.d.ts +0 -4
  793. package/dist/types/ts3.4/pagination/DescribeLogStreamsPaginator.d.ts +0 -4
  794. package/dist/types/ts3.4/pagination/DescribeMetricFiltersPaginator.d.ts +0 -4
  795. package/dist/types/ts3.4/pagination/DescribeSubscriptionFiltersPaginator.d.ts +0 -4
  796. package/dist/types/ts3.4/pagination/FilterLogEventsPaginator.d.ts +0 -4
  797. package/dist/types/ts3.4/pagination/GetLogEventsPaginator.d.ts +0 -4
  798. package/dist/types/ts3.4/pagination/Interfaces.d.ts +0 -6
  799. package/dist/types/ts3.4/protocols/Aws_json1_1.d.ts +0 -128
  800. package/dist/types/ts3.4/runtimeConfig.d.ts +0 -37
  801. package/endpoints.ts +0 -86
  802. package/pagination/DescribeDestinationsPaginator.ts +0 -58
  803. package/pagination/DescribeLogGroupsPaginator.ts +0 -58
  804. package/pagination/DescribeLogStreamsPaginator.ts +0 -58
  805. package/pagination/DescribeMetricFiltersPaginator.ts +0 -58
  806. package/pagination/DescribeSubscriptionFiltersPaginator.ts +0 -58
  807. package/pagination/FilterLogEventsPaginator.ts +0 -58
  808. package/pagination/GetLogEventsPaginator.ts +0 -58
  809. package/pagination/Interfaces.ts +0 -7
  810. package/protocols/Aws_json1_1.ts +0 -5412
  811. package/runtimeConfig.browser.ts +0 -40
  812. package/runtimeConfig.native.ts +0 -16
  813. package/runtimeConfig.shared.ts +0 -16
  814. package/runtimeConfig.ts +0 -45
package/CloudWatchLogs.ts DELETED
@@ -1,1826 +0,0 @@
1
- import { CloudWatchLogsClient } from "./CloudWatchLogsClient";
2
- import {
3
- AssociateKmsKeyCommand,
4
- AssociateKmsKeyCommandInput,
5
- AssociateKmsKeyCommandOutput,
6
- } from "./commands/AssociateKmsKeyCommand";
7
- import {
8
- CancelExportTaskCommand,
9
- CancelExportTaskCommandInput,
10
- CancelExportTaskCommandOutput,
11
- } from "./commands/CancelExportTaskCommand";
12
- import {
13
- CreateExportTaskCommand,
14
- CreateExportTaskCommandInput,
15
- CreateExportTaskCommandOutput,
16
- } from "./commands/CreateExportTaskCommand";
17
- import {
18
- CreateLogGroupCommand,
19
- CreateLogGroupCommandInput,
20
- CreateLogGroupCommandOutput,
21
- } from "./commands/CreateLogGroupCommand";
22
- import {
23
- CreateLogStreamCommand,
24
- CreateLogStreamCommandInput,
25
- CreateLogStreamCommandOutput,
26
- } from "./commands/CreateLogStreamCommand";
27
- import {
28
- DeleteDestinationCommand,
29
- DeleteDestinationCommandInput,
30
- DeleteDestinationCommandOutput,
31
- } from "./commands/DeleteDestinationCommand";
32
- import {
33
- DeleteLogGroupCommand,
34
- DeleteLogGroupCommandInput,
35
- DeleteLogGroupCommandOutput,
36
- } from "./commands/DeleteLogGroupCommand";
37
- import {
38
- DeleteLogStreamCommand,
39
- DeleteLogStreamCommandInput,
40
- DeleteLogStreamCommandOutput,
41
- } from "./commands/DeleteLogStreamCommand";
42
- import {
43
- DeleteMetricFilterCommand,
44
- DeleteMetricFilterCommandInput,
45
- DeleteMetricFilterCommandOutput,
46
- } from "./commands/DeleteMetricFilterCommand";
47
- import {
48
- DeleteQueryDefinitionCommand,
49
- DeleteQueryDefinitionCommandInput,
50
- DeleteQueryDefinitionCommandOutput,
51
- } from "./commands/DeleteQueryDefinitionCommand";
52
- import {
53
- DeleteResourcePolicyCommand,
54
- DeleteResourcePolicyCommandInput,
55
- DeleteResourcePolicyCommandOutput,
56
- } from "./commands/DeleteResourcePolicyCommand";
57
- import {
58
- DeleteRetentionPolicyCommand,
59
- DeleteRetentionPolicyCommandInput,
60
- DeleteRetentionPolicyCommandOutput,
61
- } from "./commands/DeleteRetentionPolicyCommand";
62
- import {
63
- DeleteSubscriptionFilterCommand,
64
- DeleteSubscriptionFilterCommandInput,
65
- DeleteSubscriptionFilterCommandOutput,
66
- } from "./commands/DeleteSubscriptionFilterCommand";
67
- import {
68
- DescribeDestinationsCommand,
69
- DescribeDestinationsCommandInput,
70
- DescribeDestinationsCommandOutput,
71
- } from "./commands/DescribeDestinationsCommand";
72
- import {
73
- DescribeExportTasksCommand,
74
- DescribeExportTasksCommandInput,
75
- DescribeExportTasksCommandOutput,
76
- } from "./commands/DescribeExportTasksCommand";
77
- import {
78
- DescribeLogGroupsCommand,
79
- DescribeLogGroupsCommandInput,
80
- DescribeLogGroupsCommandOutput,
81
- } from "./commands/DescribeLogGroupsCommand";
82
- import {
83
- DescribeLogStreamsCommand,
84
- DescribeLogStreamsCommandInput,
85
- DescribeLogStreamsCommandOutput,
86
- } from "./commands/DescribeLogStreamsCommand";
87
- import {
88
- DescribeMetricFiltersCommand,
89
- DescribeMetricFiltersCommandInput,
90
- DescribeMetricFiltersCommandOutput,
91
- } from "./commands/DescribeMetricFiltersCommand";
92
- import {
93
- DescribeQueriesCommand,
94
- DescribeQueriesCommandInput,
95
- DescribeQueriesCommandOutput,
96
- } from "./commands/DescribeQueriesCommand";
97
- import {
98
- DescribeQueryDefinitionsCommand,
99
- DescribeQueryDefinitionsCommandInput,
100
- DescribeQueryDefinitionsCommandOutput,
101
- } from "./commands/DescribeQueryDefinitionsCommand";
102
- import {
103
- DescribeResourcePoliciesCommand,
104
- DescribeResourcePoliciesCommandInput,
105
- DescribeResourcePoliciesCommandOutput,
106
- } from "./commands/DescribeResourcePoliciesCommand";
107
- import {
108
- DescribeSubscriptionFiltersCommand,
109
- DescribeSubscriptionFiltersCommandInput,
110
- DescribeSubscriptionFiltersCommandOutput,
111
- } from "./commands/DescribeSubscriptionFiltersCommand";
112
- import {
113
- DisassociateKmsKeyCommand,
114
- DisassociateKmsKeyCommandInput,
115
- DisassociateKmsKeyCommandOutput,
116
- } from "./commands/DisassociateKmsKeyCommand";
117
- import {
118
- FilterLogEventsCommand,
119
- FilterLogEventsCommandInput,
120
- FilterLogEventsCommandOutput,
121
- } from "./commands/FilterLogEventsCommand";
122
- import {
123
- GetLogEventsCommand,
124
- GetLogEventsCommandInput,
125
- GetLogEventsCommandOutput,
126
- } from "./commands/GetLogEventsCommand";
127
- import {
128
- GetLogGroupFieldsCommand,
129
- GetLogGroupFieldsCommandInput,
130
- GetLogGroupFieldsCommandOutput,
131
- } from "./commands/GetLogGroupFieldsCommand";
132
- import {
133
- GetLogRecordCommand,
134
- GetLogRecordCommandInput,
135
- GetLogRecordCommandOutput,
136
- } from "./commands/GetLogRecordCommand";
137
- import {
138
- GetQueryResultsCommand,
139
- GetQueryResultsCommandInput,
140
- GetQueryResultsCommandOutput,
141
- } from "./commands/GetQueryResultsCommand";
142
- import {
143
- ListTagsLogGroupCommand,
144
- ListTagsLogGroupCommandInput,
145
- ListTagsLogGroupCommandOutput,
146
- } from "./commands/ListTagsLogGroupCommand";
147
- import {
148
- PutDestinationCommand,
149
- PutDestinationCommandInput,
150
- PutDestinationCommandOutput,
151
- } from "./commands/PutDestinationCommand";
152
- import {
153
- PutDestinationPolicyCommand,
154
- PutDestinationPolicyCommandInput,
155
- PutDestinationPolicyCommandOutput,
156
- } from "./commands/PutDestinationPolicyCommand";
157
- import {
158
- PutLogEventsCommand,
159
- PutLogEventsCommandInput,
160
- PutLogEventsCommandOutput,
161
- } from "./commands/PutLogEventsCommand";
162
- import {
163
- PutMetricFilterCommand,
164
- PutMetricFilterCommandInput,
165
- PutMetricFilterCommandOutput,
166
- } from "./commands/PutMetricFilterCommand";
167
- import {
168
- PutQueryDefinitionCommand,
169
- PutQueryDefinitionCommandInput,
170
- PutQueryDefinitionCommandOutput,
171
- } from "./commands/PutQueryDefinitionCommand";
172
- import {
173
- PutResourcePolicyCommand,
174
- PutResourcePolicyCommandInput,
175
- PutResourcePolicyCommandOutput,
176
- } from "./commands/PutResourcePolicyCommand";
177
- import {
178
- PutRetentionPolicyCommand,
179
- PutRetentionPolicyCommandInput,
180
- PutRetentionPolicyCommandOutput,
181
- } from "./commands/PutRetentionPolicyCommand";
182
- import {
183
- PutSubscriptionFilterCommand,
184
- PutSubscriptionFilterCommandInput,
185
- PutSubscriptionFilterCommandOutput,
186
- } from "./commands/PutSubscriptionFilterCommand";
187
- import { StartQueryCommand, StartQueryCommandInput, StartQueryCommandOutput } from "./commands/StartQueryCommand";
188
- import { StopQueryCommand, StopQueryCommandInput, StopQueryCommandOutput } from "./commands/StopQueryCommand";
189
- import { TagLogGroupCommand, TagLogGroupCommandInput, TagLogGroupCommandOutput } from "./commands/TagLogGroupCommand";
190
- import {
191
- TestMetricFilterCommand,
192
- TestMetricFilterCommandInput,
193
- TestMetricFilterCommandOutput,
194
- } from "./commands/TestMetricFilterCommand";
195
- import {
196
- UntagLogGroupCommand,
197
- UntagLogGroupCommandInput,
198
- UntagLogGroupCommandOutput,
199
- } from "./commands/UntagLogGroupCommand";
200
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
201
-
202
- /**
203
- * <p>You can use Amazon CloudWatch Logs to monitor, store, and access your log files from
204
- * EC2 instances, CloudTrail, and other sources. You can then retrieve the associated
205
- * log data from CloudWatch Logs using the CloudWatch console, CloudWatch Logs commands in the
206
- * Amazon Web Services CLI, CloudWatch Logs API, or CloudWatch Logs SDK.</p>
207
- * <p>You can use CloudWatch Logs to:</p>
208
- * <ul>
209
- * <li>
210
- * <p>
211
- * <b>Monitor logs from EC2 instances in real-time</b>: You
212
- * can use CloudWatch Logs to monitor applications and systems using log data. For example,
213
- * CloudWatch Logs can track the number of errors that occur in your application logs and
214
- * send you a notification whenever the rate of errors exceeds a threshold that you specify.
215
- * CloudWatch Logs uses your log data for monitoring so no code changes are required. For
216
- * example, you can monitor application logs for specific literal terms (such as
217
- * "NullReferenceException") or count the number of occurrences of a literal term at a
218
- * particular position in log data (such as "404" status codes in an Apache access log). When
219
- * the term you are searching for is found, CloudWatch Logs reports the data to a CloudWatch
220
- * metric that you specify.</p>
221
- * </li>
222
- * <li>
223
- * <p>
224
- * <b>Monitor CloudTrail logged events</b>: You can
225
- * create alarms in CloudWatch and receive notifications of particular API activity as
226
- * captured by CloudTrail. You can use the notification to perform troubleshooting.</p>
227
- * </li>
228
- * <li>
229
- * <p>
230
- * <b>Archive log data</b>: You can use CloudWatch Logs to
231
- * store your log data in highly durable storage. You can change the log retention setting so
232
- * that any log events older than this setting are automatically deleted. The CloudWatch Logs
233
- * agent makes it easy to quickly send both rotated and non-rotated log data off of a host
234
- * and into the log service. You can then access the raw log data when you need it.</p>
235
- * </li>
236
- * </ul>
237
- */
238
- export class CloudWatchLogs extends CloudWatchLogsClient {
239
- /**
240
- * <p>Associates the specified Key Management Service customer master key (CMK) with the specified log group.</p>
241
- * <p>Associating an KMS CMK with a log group overrides any existing associations between the log group and a CMK.
242
- * After a CMK is associated with a log group, all newly ingested data for the log group is encrypted using the CMK.
243
- * This association is stored as long as the data encrypted with the CMK is still within CloudWatch Logs.
244
- * This enables CloudWatch Logs to decrypt this data whenever it is requested.</p>
245
- * <important>
246
- * <p>CloudWatch Logs supports only symmetric CMKs. Do not use an associate an asymmetric CMK
247
- * with your log group. For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Using Symmetric and Asymmetric
248
- * Keys</a>.</p>
249
- * </important>
250
- * <p>It can take up to 5 minutes for this operation to take effect.</p>
251
- * <p>If you attempt to associate a CMK with a log group but the CMK does not exist or the
252
- * CMK is disabled, you receive an <code>InvalidParameterException</code> error. </p>
253
- */
254
- public associateKmsKey(
255
- args: AssociateKmsKeyCommandInput,
256
- options?: __HttpHandlerOptions
257
- ): Promise<AssociateKmsKeyCommandOutput>;
258
- public associateKmsKey(
259
- args: AssociateKmsKeyCommandInput,
260
- cb: (err: any, data?: AssociateKmsKeyCommandOutput) => void
261
- ): void;
262
- public associateKmsKey(
263
- args: AssociateKmsKeyCommandInput,
264
- options: __HttpHandlerOptions,
265
- cb: (err: any, data?: AssociateKmsKeyCommandOutput) => void
266
- ): void;
267
- public associateKmsKey(
268
- args: AssociateKmsKeyCommandInput,
269
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: AssociateKmsKeyCommandOutput) => void),
270
- cb?: (err: any, data?: AssociateKmsKeyCommandOutput) => void
271
- ): Promise<AssociateKmsKeyCommandOutput> | void {
272
- const command = new AssociateKmsKeyCommand(args);
273
- if (typeof optionsOrCb === "function") {
274
- this.send(command, optionsOrCb);
275
- } else if (typeof cb === "function") {
276
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
277
- this.send(command, optionsOrCb || {}, cb);
278
- } else {
279
- return this.send(command, optionsOrCb);
280
- }
281
- }
282
-
283
- /**
284
- * <p>Cancels the specified export task.</p>
285
- * <p>The task must be in the <code>PENDING</code> or <code>RUNNING</code> state.</p>
286
- */
287
- public cancelExportTask(
288
- args: CancelExportTaskCommandInput,
289
- options?: __HttpHandlerOptions
290
- ): Promise<CancelExportTaskCommandOutput>;
291
- public cancelExportTask(
292
- args: CancelExportTaskCommandInput,
293
- cb: (err: any, data?: CancelExportTaskCommandOutput) => void
294
- ): void;
295
- public cancelExportTask(
296
- args: CancelExportTaskCommandInput,
297
- options: __HttpHandlerOptions,
298
- cb: (err: any, data?: CancelExportTaskCommandOutput) => void
299
- ): void;
300
- public cancelExportTask(
301
- args: CancelExportTaskCommandInput,
302
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CancelExportTaskCommandOutput) => void),
303
- cb?: (err: any, data?: CancelExportTaskCommandOutput) => void
304
- ): Promise<CancelExportTaskCommandOutput> | void {
305
- const command = new CancelExportTaskCommand(args);
306
- if (typeof optionsOrCb === "function") {
307
- this.send(command, optionsOrCb);
308
- } else if (typeof cb === "function") {
309
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
310
- this.send(command, optionsOrCb || {}, cb);
311
- } else {
312
- return this.send(command, optionsOrCb);
313
- }
314
- }
315
-
316
- /**
317
- * <p>Creates an export task, which allows you to efficiently export data from a
318
- * log group to an Amazon S3 bucket. When you perform a <code>CreateExportTask</code>
319
- * operation, you must use credentials that have permission to write to the S3 bucket
320
- * that you specify as the destination.</p>
321
- * <p>This is an asynchronous call. If all the required information is provided, this
322
- * operation initiates an export task and responds with the ID of the task. After the task has started,
323
- * you can use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeExportTasks.html">DescribeExportTasks</a> to get the status of the export task. Each account can
324
- * only have one active (<code>RUNNING</code> or <code>PENDING</code>) export task at a time.
325
- * To cancel an export task, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CancelExportTask.html">CancelExportTask</a>.</p>
326
- * <p>You can export logs from multiple log groups or multiple time ranges to the same S3
327
- * bucket. To separate out log data for each export task, you can specify a prefix to be used as
328
- * the Amazon S3 key prefix for all exported objects.</p>
329
- * <p>Exporting to S3 buckets that are encrypted with AES-256 is supported. Exporting to S3 buckets
330
- * encrypted with SSE-KMS is not supported. </p>
331
- */
332
- public createExportTask(
333
- args: CreateExportTaskCommandInput,
334
- options?: __HttpHandlerOptions
335
- ): Promise<CreateExportTaskCommandOutput>;
336
- public createExportTask(
337
- args: CreateExportTaskCommandInput,
338
- cb: (err: any, data?: CreateExportTaskCommandOutput) => void
339
- ): void;
340
- public createExportTask(
341
- args: CreateExportTaskCommandInput,
342
- options: __HttpHandlerOptions,
343
- cb: (err: any, data?: CreateExportTaskCommandOutput) => void
344
- ): void;
345
- public createExportTask(
346
- args: CreateExportTaskCommandInput,
347
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateExportTaskCommandOutput) => void),
348
- cb?: (err: any, data?: CreateExportTaskCommandOutput) => void
349
- ): Promise<CreateExportTaskCommandOutput> | void {
350
- const command = new CreateExportTaskCommand(args);
351
- if (typeof optionsOrCb === "function") {
352
- this.send(command, optionsOrCb);
353
- } else if (typeof cb === "function") {
354
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
355
- this.send(command, optionsOrCb || {}, cb);
356
- } else {
357
- return this.send(command, optionsOrCb);
358
- }
359
- }
360
-
361
- /**
362
- * <p>Creates a log group with the specified name. You can create up to 20,000 log groups per account.</p>
363
- * <p>You must use the following guidelines when naming a log group:</p>
364
- * <ul>
365
- * <li>
366
- * <p>Log group names must be unique within a region for an Amazon Web Services account.</p>
367
- * </li>
368
- * <li>
369
- * <p>Log group names can be between 1 and 512 characters long.</p>
370
- * </li>
371
- * <li>
372
- * <p>Log group names consist of the following characters: a-z, A-Z, 0-9, '_' (underscore), '-' (hyphen),
373
- * '/' (forward slash), '.' (period), and '#' (number sign)</p>
374
- * </li>
375
- * </ul>
376
- * <p>When you create a log group, by default the log events in the log group never expire. To set
377
- * a retention policy so that events expire and are deleted after a specified time, use
378
- * <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutRetentionPolicy.html">PutRetentionPolicy</a>.</p>
379
- * <p>If you associate a Key Management Service customer master key (CMK) with the log group, ingested data is encrypted using the CMK.
380
- * This association is stored as long as the data encrypted with the CMK is still within CloudWatch Logs.
381
- * This enables CloudWatch Logs to decrypt this data whenever it is requested.</p>
382
- * <p>If you attempt to associate a CMK with the log group but the CMK does not exist or the
383
- * CMK is disabled, you receive an <code>InvalidParameterException</code> error. </p>
384
- * <important>
385
- * <p>CloudWatch Logs supports only symmetric CMKs. Do not associate an asymmetric CMK with
386
- * your log group. For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Using Symmetric and Asymmetric
387
- * Keys</a>.</p>
388
- * </important>
389
- */
390
- public createLogGroup(
391
- args: CreateLogGroupCommandInput,
392
- options?: __HttpHandlerOptions
393
- ): Promise<CreateLogGroupCommandOutput>;
394
- public createLogGroup(
395
- args: CreateLogGroupCommandInput,
396
- cb: (err: any, data?: CreateLogGroupCommandOutput) => void
397
- ): void;
398
- public createLogGroup(
399
- args: CreateLogGroupCommandInput,
400
- options: __HttpHandlerOptions,
401
- cb: (err: any, data?: CreateLogGroupCommandOutput) => void
402
- ): void;
403
- public createLogGroup(
404
- args: CreateLogGroupCommandInput,
405
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateLogGroupCommandOutput) => void),
406
- cb?: (err: any, data?: CreateLogGroupCommandOutput) => void
407
- ): Promise<CreateLogGroupCommandOutput> | void {
408
- const command = new CreateLogGroupCommand(args);
409
- if (typeof optionsOrCb === "function") {
410
- this.send(command, optionsOrCb);
411
- } else if (typeof cb === "function") {
412
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
413
- this.send(command, optionsOrCb || {}, cb);
414
- } else {
415
- return this.send(command, optionsOrCb);
416
- }
417
- }
418
-
419
- /**
420
- * <p>Creates a log stream for the specified log group. A log stream is a sequence of log events
421
- * that originate from a single source, such as an application instance or a resource that is
422
- * being monitored.</p>
423
- * <p>There is no limit on the number of log streams that you can create for a log group. There is a limit
424
- * of 50 TPS on <code>CreateLogStream</code> operations, after which transactions are throttled.</p>
425
- * <p>You must use the following guidelines when naming a log stream:</p>
426
- * <ul>
427
- * <li>
428
- * <p>Log stream names must be unique within the log group.</p>
429
- * </li>
430
- * <li>
431
- * <p>Log stream names can be between 1 and 512 characters long.</p>
432
- * </li>
433
- * <li>
434
- * <p>The ':' (colon) and '*' (asterisk) characters are not allowed.</p>
435
- * </li>
436
- * </ul>
437
- */
438
- public createLogStream(
439
- args: CreateLogStreamCommandInput,
440
- options?: __HttpHandlerOptions
441
- ): Promise<CreateLogStreamCommandOutput>;
442
- public createLogStream(
443
- args: CreateLogStreamCommandInput,
444
- cb: (err: any, data?: CreateLogStreamCommandOutput) => void
445
- ): void;
446
- public createLogStream(
447
- args: CreateLogStreamCommandInput,
448
- options: __HttpHandlerOptions,
449
- cb: (err: any, data?: CreateLogStreamCommandOutput) => void
450
- ): void;
451
- public createLogStream(
452
- args: CreateLogStreamCommandInput,
453
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateLogStreamCommandOutput) => void),
454
- cb?: (err: any, data?: CreateLogStreamCommandOutput) => void
455
- ): Promise<CreateLogStreamCommandOutput> | void {
456
- const command = new CreateLogStreamCommand(args);
457
- if (typeof optionsOrCb === "function") {
458
- this.send(command, optionsOrCb);
459
- } else if (typeof cb === "function") {
460
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
461
- this.send(command, optionsOrCb || {}, cb);
462
- } else {
463
- return this.send(command, optionsOrCb);
464
- }
465
- }
466
-
467
- /**
468
- * <p>Deletes the specified destination, and eventually disables all the
469
- * subscription filters that publish to it. This operation does not delete the
470
- * physical resource encapsulated by the destination.</p>
471
- */
472
- public deleteDestination(
473
- args: DeleteDestinationCommandInput,
474
- options?: __HttpHandlerOptions
475
- ): Promise<DeleteDestinationCommandOutput>;
476
- public deleteDestination(
477
- args: DeleteDestinationCommandInput,
478
- cb: (err: any, data?: DeleteDestinationCommandOutput) => void
479
- ): void;
480
- public deleteDestination(
481
- args: DeleteDestinationCommandInput,
482
- options: __HttpHandlerOptions,
483
- cb: (err: any, data?: DeleteDestinationCommandOutput) => void
484
- ): void;
485
- public deleteDestination(
486
- args: DeleteDestinationCommandInput,
487
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteDestinationCommandOutput) => void),
488
- cb?: (err: any, data?: DeleteDestinationCommandOutput) => void
489
- ): Promise<DeleteDestinationCommandOutput> | void {
490
- const command = new DeleteDestinationCommand(args);
491
- if (typeof optionsOrCb === "function") {
492
- this.send(command, optionsOrCb);
493
- } else if (typeof cb === "function") {
494
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
495
- this.send(command, optionsOrCb || {}, cb);
496
- } else {
497
- return this.send(command, optionsOrCb);
498
- }
499
- }
500
-
501
- /**
502
- * <p>Deletes the specified log group and permanently deletes all the archived
503
- * log events associated with the log group.</p>
504
- */
505
- public deleteLogGroup(
506
- args: DeleteLogGroupCommandInput,
507
- options?: __HttpHandlerOptions
508
- ): Promise<DeleteLogGroupCommandOutput>;
509
- public deleteLogGroup(
510
- args: DeleteLogGroupCommandInput,
511
- cb: (err: any, data?: DeleteLogGroupCommandOutput) => void
512
- ): void;
513
- public deleteLogGroup(
514
- args: DeleteLogGroupCommandInput,
515
- options: __HttpHandlerOptions,
516
- cb: (err: any, data?: DeleteLogGroupCommandOutput) => void
517
- ): void;
518
- public deleteLogGroup(
519
- args: DeleteLogGroupCommandInput,
520
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteLogGroupCommandOutput) => void),
521
- cb?: (err: any, data?: DeleteLogGroupCommandOutput) => void
522
- ): Promise<DeleteLogGroupCommandOutput> | void {
523
- const command = new DeleteLogGroupCommand(args);
524
- if (typeof optionsOrCb === "function") {
525
- this.send(command, optionsOrCb);
526
- } else if (typeof cb === "function") {
527
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
528
- this.send(command, optionsOrCb || {}, cb);
529
- } else {
530
- return this.send(command, optionsOrCb);
531
- }
532
- }
533
-
534
- /**
535
- * <p>Deletes the specified log stream and permanently deletes all the archived log events associated
536
- * with the log stream.</p>
537
- */
538
- public deleteLogStream(
539
- args: DeleteLogStreamCommandInput,
540
- options?: __HttpHandlerOptions
541
- ): Promise<DeleteLogStreamCommandOutput>;
542
- public deleteLogStream(
543
- args: DeleteLogStreamCommandInput,
544
- cb: (err: any, data?: DeleteLogStreamCommandOutput) => void
545
- ): void;
546
- public deleteLogStream(
547
- args: DeleteLogStreamCommandInput,
548
- options: __HttpHandlerOptions,
549
- cb: (err: any, data?: DeleteLogStreamCommandOutput) => void
550
- ): void;
551
- public deleteLogStream(
552
- args: DeleteLogStreamCommandInput,
553
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteLogStreamCommandOutput) => void),
554
- cb?: (err: any, data?: DeleteLogStreamCommandOutput) => void
555
- ): Promise<DeleteLogStreamCommandOutput> | void {
556
- const command = new DeleteLogStreamCommand(args);
557
- if (typeof optionsOrCb === "function") {
558
- this.send(command, optionsOrCb);
559
- } else if (typeof cb === "function") {
560
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
561
- this.send(command, optionsOrCb || {}, cb);
562
- } else {
563
- return this.send(command, optionsOrCb);
564
- }
565
- }
566
-
567
- /**
568
- * <p>Deletes the specified metric filter.</p>
569
- */
570
- public deleteMetricFilter(
571
- args: DeleteMetricFilterCommandInput,
572
- options?: __HttpHandlerOptions
573
- ): Promise<DeleteMetricFilterCommandOutput>;
574
- public deleteMetricFilter(
575
- args: DeleteMetricFilterCommandInput,
576
- cb: (err: any, data?: DeleteMetricFilterCommandOutput) => void
577
- ): void;
578
- public deleteMetricFilter(
579
- args: DeleteMetricFilterCommandInput,
580
- options: __HttpHandlerOptions,
581
- cb: (err: any, data?: DeleteMetricFilterCommandOutput) => void
582
- ): void;
583
- public deleteMetricFilter(
584
- args: DeleteMetricFilterCommandInput,
585
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteMetricFilterCommandOutput) => void),
586
- cb?: (err: any, data?: DeleteMetricFilterCommandOutput) => void
587
- ): Promise<DeleteMetricFilterCommandOutput> | void {
588
- const command = new DeleteMetricFilterCommand(args);
589
- if (typeof optionsOrCb === "function") {
590
- this.send(command, optionsOrCb);
591
- } else if (typeof cb === "function") {
592
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
593
- this.send(command, optionsOrCb || {}, cb);
594
- } else {
595
- return this.send(command, optionsOrCb);
596
- }
597
- }
598
-
599
- /**
600
- * <p>Deletes a saved CloudWatch Logs Insights query definition.
601
- * A query definition contains details about a saved CloudWatch Logs Insights query.</p>
602
- * <p>Each <code>DeleteQueryDefinition</code> operation can delete one query definition.</p>
603
- * <p>You must have the <code>logs:DeleteQueryDefinition</code> permission to be able to perform
604
- * this operation.</p>
605
- */
606
- public deleteQueryDefinition(
607
- args: DeleteQueryDefinitionCommandInput,
608
- options?: __HttpHandlerOptions
609
- ): Promise<DeleteQueryDefinitionCommandOutput>;
610
- public deleteQueryDefinition(
611
- args: DeleteQueryDefinitionCommandInput,
612
- cb: (err: any, data?: DeleteQueryDefinitionCommandOutput) => void
613
- ): void;
614
- public deleteQueryDefinition(
615
- args: DeleteQueryDefinitionCommandInput,
616
- options: __HttpHandlerOptions,
617
- cb: (err: any, data?: DeleteQueryDefinitionCommandOutput) => void
618
- ): void;
619
- public deleteQueryDefinition(
620
- args: DeleteQueryDefinitionCommandInput,
621
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteQueryDefinitionCommandOutput) => void),
622
- cb?: (err: any, data?: DeleteQueryDefinitionCommandOutput) => void
623
- ): Promise<DeleteQueryDefinitionCommandOutput> | void {
624
- const command = new DeleteQueryDefinitionCommand(args);
625
- if (typeof optionsOrCb === "function") {
626
- this.send(command, optionsOrCb);
627
- } else if (typeof cb === "function") {
628
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
629
- this.send(command, optionsOrCb || {}, cb);
630
- } else {
631
- return this.send(command, optionsOrCb);
632
- }
633
- }
634
-
635
- /**
636
- * <p>Deletes a resource policy from this account. This revokes
637
- * the access of the identities in that policy to put log events to this account.</p>
638
- */
639
- public deleteResourcePolicy(
640
- args: DeleteResourcePolicyCommandInput,
641
- options?: __HttpHandlerOptions
642
- ): Promise<DeleteResourcePolicyCommandOutput>;
643
- public deleteResourcePolicy(
644
- args: DeleteResourcePolicyCommandInput,
645
- cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void
646
- ): void;
647
- public deleteResourcePolicy(
648
- args: DeleteResourcePolicyCommandInput,
649
- options: __HttpHandlerOptions,
650
- cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void
651
- ): void;
652
- public deleteResourcePolicy(
653
- args: DeleteResourcePolicyCommandInput,
654
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteResourcePolicyCommandOutput) => void),
655
- cb?: (err: any, data?: DeleteResourcePolicyCommandOutput) => void
656
- ): Promise<DeleteResourcePolicyCommandOutput> | void {
657
- const command = new DeleteResourcePolicyCommand(args);
658
- if (typeof optionsOrCb === "function") {
659
- this.send(command, optionsOrCb);
660
- } else if (typeof cb === "function") {
661
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
662
- this.send(command, optionsOrCb || {}, cb);
663
- } else {
664
- return this.send(command, optionsOrCb);
665
- }
666
- }
667
-
668
- /**
669
- * <p>Deletes the specified retention policy.</p>
670
- * <p>Log events do not expire if they belong to log groups without a retention policy.</p>
671
- */
672
- public deleteRetentionPolicy(
673
- args: DeleteRetentionPolicyCommandInput,
674
- options?: __HttpHandlerOptions
675
- ): Promise<DeleteRetentionPolicyCommandOutput>;
676
- public deleteRetentionPolicy(
677
- args: DeleteRetentionPolicyCommandInput,
678
- cb: (err: any, data?: DeleteRetentionPolicyCommandOutput) => void
679
- ): void;
680
- public deleteRetentionPolicy(
681
- args: DeleteRetentionPolicyCommandInput,
682
- options: __HttpHandlerOptions,
683
- cb: (err: any, data?: DeleteRetentionPolicyCommandOutput) => void
684
- ): void;
685
- public deleteRetentionPolicy(
686
- args: DeleteRetentionPolicyCommandInput,
687
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteRetentionPolicyCommandOutput) => void),
688
- cb?: (err: any, data?: DeleteRetentionPolicyCommandOutput) => void
689
- ): Promise<DeleteRetentionPolicyCommandOutput> | void {
690
- const command = new DeleteRetentionPolicyCommand(args);
691
- if (typeof optionsOrCb === "function") {
692
- this.send(command, optionsOrCb);
693
- } else if (typeof cb === "function") {
694
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
695
- this.send(command, optionsOrCb || {}, cb);
696
- } else {
697
- return this.send(command, optionsOrCb);
698
- }
699
- }
700
-
701
- /**
702
- * <p>Deletes the specified subscription filter.</p>
703
- */
704
- public deleteSubscriptionFilter(
705
- args: DeleteSubscriptionFilterCommandInput,
706
- options?: __HttpHandlerOptions
707
- ): Promise<DeleteSubscriptionFilterCommandOutput>;
708
- public deleteSubscriptionFilter(
709
- args: DeleteSubscriptionFilterCommandInput,
710
- cb: (err: any, data?: DeleteSubscriptionFilterCommandOutput) => void
711
- ): void;
712
- public deleteSubscriptionFilter(
713
- args: DeleteSubscriptionFilterCommandInput,
714
- options: __HttpHandlerOptions,
715
- cb: (err: any, data?: DeleteSubscriptionFilterCommandOutput) => void
716
- ): void;
717
- public deleteSubscriptionFilter(
718
- args: DeleteSubscriptionFilterCommandInput,
719
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteSubscriptionFilterCommandOutput) => void),
720
- cb?: (err: any, data?: DeleteSubscriptionFilterCommandOutput) => void
721
- ): Promise<DeleteSubscriptionFilterCommandOutput> | void {
722
- const command = new DeleteSubscriptionFilterCommand(args);
723
- if (typeof optionsOrCb === "function") {
724
- this.send(command, optionsOrCb);
725
- } else if (typeof cb === "function") {
726
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
727
- this.send(command, optionsOrCb || {}, cb);
728
- } else {
729
- return this.send(command, optionsOrCb);
730
- }
731
- }
732
-
733
- /**
734
- * <p>Lists all your destinations. The results are ASCII-sorted by destination name.</p>
735
- */
736
- public describeDestinations(
737
- args: DescribeDestinationsCommandInput,
738
- options?: __HttpHandlerOptions
739
- ): Promise<DescribeDestinationsCommandOutput>;
740
- public describeDestinations(
741
- args: DescribeDestinationsCommandInput,
742
- cb: (err: any, data?: DescribeDestinationsCommandOutput) => void
743
- ): void;
744
- public describeDestinations(
745
- args: DescribeDestinationsCommandInput,
746
- options: __HttpHandlerOptions,
747
- cb: (err: any, data?: DescribeDestinationsCommandOutput) => void
748
- ): void;
749
- public describeDestinations(
750
- args: DescribeDestinationsCommandInput,
751
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeDestinationsCommandOutput) => void),
752
- cb?: (err: any, data?: DescribeDestinationsCommandOutput) => void
753
- ): Promise<DescribeDestinationsCommandOutput> | void {
754
- const command = new DescribeDestinationsCommand(args);
755
- if (typeof optionsOrCb === "function") {
756
- this.send(command, optionsOrCb);
757
- } else if (typeof cb === "function") {
758
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
759
- this.send(command, optionsOrCb || {}, cb);
760
- } else {
761
- return this.send(command, optionsOrCb);
762
- }
763
- }
764
-
765
- /**
766
- * <p>Lists the specified export tasks. You can list all your export tasks or filter
767
- * the results based on task ID or task status.</p>
768
- */
769
- public describeExportTasks(
770
- args: DescribeExportTasksCommandInput,
771
- options?: __HttpHandlerOptions
772
- ): Promise<DescribeExportTasksCommandOutput>;
773
- public describeExportTasks(
774
- args: DescribeExportTasksCommandInput,
775
- cb: (err: any, data?: DescribeExportTasksCommandOutput) => void
776
- ): void;
777
- public describeExportTasks(
778
- args: DescribeExportTasksCommandInput,
779
- options: __HttpHandlerOptions,
780
- cb: (err: any, data?: DescribeExportTasksCommandOutput) => void
781
- ): void;
782
- public describeExportTasks(
783
- args: DescribeExportTasksCommandInput,
784
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeExportTasksCommandOutput) => void),
785
- cb?: (err: any, data?: DescribeExportTasksCommandOutput) => void
786
- ): Promise<DescribeExportTasksCommandOutput> | void {
787
- const command = new DescribeExportTasksCommand(args);
788
- if (typeof optionsOrCb === "function") {
789
- this.send(command, optionsOrCb);
790
- } else if (typeof cb === "function") {
791
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
792
- this.send(command, optionsOrCb || {}, cb);
793
- } else {
794
- return this.send(command, optionsOrCb);
795
- }
796
- }
797
-
798
- /**
799
- * <p>Lists the specified log groups. You can list all your log groups or filter the results by prefix.
800
- * The results are ASCII-sorted by log group name.</p>
801
- * <p>CloudWatch Logs doesn’t support IAM policies that control access to the <code>DescribeLogGroups</code> action by using the
802
- * <code>aws:ResourceTag/<i>key-name</i>
803
- * </code> condition key. Other CloudWatch Logs actions
804
- * do support the use of the <code>aws:ResourceTag/<i>key-name</i>
805
- * </code> condition key to control access.
806
- * For more information about using tags to control access, see
807
- * <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_tags.html">Controlling access to Amazon Web Services resources using tags</a>.</p>
808
- */
809
- public describeLogGroups(
810
- args: DescribeLogGroupsCommandInput,
811
- options?: __HttpHandlerOptions
812
- ): Promise<DescribeLogGroupsCommandOutput>;
813
- public describeLogGroups(
814
- args: DescribeLogGroupsCommandInput,
815
- cb: (err: any, data?: DescribeLogGroupsCommandOutput) => void
816
- ): void;
817
- public describeLogGroups(
818
- args: DescribeLogGroupsCommandInput,
819
- options: __HttpHandlerOptions,
820
- cb: (err: any, data?: DescribeLogGroupsCommandOutput) => void
821
- ): void;
822
- public describeLogGroups(
823
- args: DescribeLogGroupsCommandInput,
824
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeLogGroupsCommandOutput) => void),
825
- cb?: (err: any, data?: DescribeLogGroupsCommandOutput) => void
826
- ): Promise<DescribeLogGroupsCommandOutput> | void {
827
- const command = new DescribeLogGroupsCommand(args);
828
- if (typeof optionsOrCb === "function") {
829
- this.send(command, optionsOrCb);
830
- } else if (typeof cb === "function") {
831
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
832
- this.send(command, optionsOrCb || {}, cb);
833
- } else {
834
- return this.send(command, optionsOrCb);
835
- }
836
- }
837
-
838
- /**
839
- * <p>Lists the log streams for the specified log group.
840
- * You can list all the log streams or filter the results by prefix.
841
- * You can also control how the results are ordered.</p>
842
- * <p>This operation has a limit of five transactions per second, after which transactions are throttled.</p>
843
- */
844
- public describeLogStreams(
845
- args: DescribeLogStreamsCommandInput,
846
- options?: __HttpHandlerOptions
847
- ): Promise<DescribeLogStreamsCommandOutput>;
848
- public describeLogStreams(
849
- args: DescribeLogStreamsCommandInput,
850
- cb: (err: any, data?: DescribeLogStreamsCommandOutput) => void
851
- ): void;
852
- public describeLogStreams(
853
- args: DescribeLogStreamsCommandInput,
854
- options: __HttpHandlerOptions,
855
- cb: (err: any, data?: DescribeLogStreamsCommandOutput) => void
856
- ): void;
857
- public describeLogStreams(
858
- args: DescribeLogStreamsCommandInput,
859
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeLogStreamsCommandOutput) => void),
860
- cb?: (err: any, data?: DescribeLogStreamsCommandOutput) => void
861
- ): Promise<DescribeLogStreamsCommandOutput> | void {
862
- const command = new DescribeLogStreamsCommand(args);
863
- if (typeof optionsOrCb === "function") {
864
- this.send(command, optionsOrCb);
865
- } else if (typeof cb === "function") {
866
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
867
- this.send(command, optionsOrCb || {}, cb);
868
- } else {
869
- return this.send(command, optionsOrCb);
870
- }
871
- }
872
-
873
- /**
874
- * <p>Lists the specified metric filters. You can list all of the metric filters or filter
875
- * the results by log name, prefix, metric name, or metric namespace. The results are
876
- * ASCII-sorted by filter name.</p>
877
- */
878
- public describeMetricFilters(
879
- args: DescribeMetricFiltersCommandInput,
880
- options?: __HttpHandlerOptions
881
- ): Promise<DescribeMetricFiltersCommandOutput>;
882
- public describeMetricFilters(
883
- args: DescribeMetricFiltersCommandInput,
884
- cb: (err: any, data?: DescribeMetricFiltersCommandOutput) => void
885
- ): void;
886
- public describeMetricFilters(
887
- args: DescribeMetricFiltersCommandInput,
888
- options: __HttpHandlerOptions,
889
- cb: (err: any, data?: DescribeMetricFiltersCommandOutput) => void
890
- ): void;
891
- public describeMetricFilters(
892
- args: DescribeMetricFiltersCommandInput,
893
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeMetricFiltersCommandOutput) => void),
894
- cb?: (err: any, data?: DescribeMetricFiltersCommandOutput) => void
895
- ): Promise<DescribeMetricFiltersCommandOutput> | void {
896
- const command = new DescribeMetricFiltersCommand(args);
897
- if (typeof optionsOrCb === "function") {
898
- this.send(command, optionsOrCb);
899
- } else if (typeof cb === "function") {
900
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
901
- this.send(command, optionsOrCb || {}, cb);
902
- } else {
903
- return this.send(command, optionsOrCb);
904
- }
905
- }
906
-
907
- /**
908
- * <p>Returns a list of CloudWatch Logs Insights queries that are scheduled, executing, or have
909
- * been executed recently in this account. You can request all queries or limit it to queries of
910
- * a specific log group or queries with a certain status.</p>
911
- */
912
- public describeQueries(
913
- args: DescribeQueriesCommandInput,
914
- options?: __HttpHandlerOptions
915
- ): Promise<DescribeQueriesCommandOutput>;
916
- public describeQueries(
917
- args: DescribeQueriesCommandInput,
918
- cb: (err: any, data?: DescribeQueriesCommandOutput) => void
919
- ): void;
920
- public describeQueries(
921
- args: DescribeQueriesCommandInput,
922
- options: __HttpHandlerOptions,
923
- cb: (err: any, data?: DescribeQueriesCommandOutput) => void
924
- ): void;
925
- public describeQueries(
926
- args: DescribeQueriesCommandInput,
927
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeQueriesCommandOutput) => void),
928
- cb?: (err: any, data?: DescribeQueriesCommandOutput) => void
929
- ): Promise<DescribeQueriesCommandOutput> | void {
930
- const command = new DescribeQueriesCommand(args);
931
- if (typeof optionsOrCb === "function") {
932
- this.send(command, optionsOrCb);
933
- } else if (typeof cb === "function") {
934
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
935
- this.send(command, optionsOrCb || {}, cb);
936
- } else {
937
- return this.send(command, optionsOrCb);
938
- }
939
- }
940
-
941
- /**
942
- * <p>This operation returns a paginated list of your saved CloudWatch Logs Insights query definitions.</p>
943
- * <p>You can use the <code>queryDefinitionNamePrefix</code> parameter to limit the results to only the
944
- * query definitions that have names that start with a certain string.</p>
945
- */
946
- public describeQueryDefinitions(
947
- args: DescribeQueryDefinitionsCommandInput,
948
- options?: __HttpHandlerOptions
949
- ): Promise<DescribeQueryDefinitionsCommandOutput>;
950
- public describeQueryDefinitions(
951
- args: DescribeQueryDefinitionsCommandInput,
952
- cb: (err: any, data?: DescribeQueryDefinitionsCommandOutput) => void
953
- ): void;
954
- public describeQueryDefinitions(
955
- args: DescribeQueryDefinitionsCommandInput,
956
- options: __HttpHandlerOptions,
957
- cb: (err: any, data?: DescribeQueryDefinitionsCommandOutput) => void
958
- ): void;
959
- public describeQueryDefinitions(
960
- args: DescribeQueryDefinitionsCommandInput,
961
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeQueryDefinitionsCommandOutput) => void),
962
- cb?: (err: any, data?: DescribeQueryDefinitionsCommandOutput) => void
963
- ): Promise<DescribeQueryDefinitionsCommandOutput> | void {
964
- const command = new DescribeQueryDefinitionsCommand(args);
965
- if (typeof optionsOrCb === "function") {
966
- this.send(command, optionsOrCb);
967
- } else if (typeof cb === "function") {
968
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
969
- this.send(command, optionsOrCb || {}, cb);
970
- } else {
971
- return this.send(command, optionsOrCb);
972
- }
973
- }
974
-
975
- /**
976
- * <p>Lists the resource policies in this account.</p>
977
- */
978
- public describeResourcePolicies(
979
- args: DescribeResourcePoliciesCommandInput,
980
- options?: __HttpHandlerOptions
981
- ): Promise<DescribeResourcePoliciesCommandOutput>;
982
- public describeResourcePolicies(
983
- args: DescribeResourcePoliciesCommandInput,
984
- cb: (err: any, data?: DescribeResourcePoliciesCommandOutput) => void
985
- ): void;
986
- public describeResourcePolicies(
987
- args: DescribeResourcePoliciesCommandInput,
988
- options: __HttpHandlerOptions,
989
- cb: (err: any, data?: DescribeResourcePoliciesCommandOutput) => void
990
- ): void;
991
- public describeResourcePolicies(
992
- args: DescribeResourcePoliciesCommandInput,
993
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeResourcePoliciesCommandOutput) => void),
994
- cb?: (err: any, data?: DescribeResourcePoliciesCommandOutput) => void
995
- ): Promise<DescribeResourcePoliciesCommandOutput> | void {
996
- const command = new DescribeResourcePoliciesCommand(args);
997
- if (typeof optionsOrCb === "function") {
998
- this.send(command, optionsOrCb);
999
- } else if (typeof cb === "function") {
1000
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1001
- this.send(command, optionsOrCb || {}, cb);
1002
- } else {
1003
- return this.send(command, optionsOrCb);
1004
- }
1005
- }
1006
-
1007
- /**
1008
- * <p>Lists the subscription filters for the specified log group. You can list all the subscription filters or filter the results by prefix.
1009
- * The results are ASCII-sorted by filter name.</p>
1010
- */
1011
- public describeSubscriptionFilters(
1012
- args: DescribeSubscriptionFiltersCommandInput,
1013
- options?: __HttpHandlerOptions
1014
- ): Promise<DescribeSubscriptionFiltersCommandOutput>;
1015
- public describeSubscriptionFilters(
1016
- args: DescribeSubscriptionFiltersCommandInput,
1017
- cb: (err: any, data?: DescribeSubscriptionFiltersCommandOutput) => void
1018
- ): void;
1019
- public describeSubscriptionFilters(
1020
- args: DescribeSubscriptionFiltersCommandInput,
1021
- options: __HttpHandlerOptions,
1022
- cb: (err: any, data?: DescribeSubscriptionFiltersCommandOutput) => void
1023
- ): void;
1024
- public describeSubscriptionFilters(
1025
- args: DescribeSubscriptionFiltersCommandInput,
1026
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeSubscriptionFiltersCommandOutput) => void),
1027
- cb?: (err: any, data?: DescribeSubscriptionFiltersCommandOutput) => void
1028
- ): Promise<DescribeSubscriptionFiltersCommandOutput> | void {
1029
- const command = new DescribeSubscriptionFiltersCommand(args);
1030
- if (typeof optionsOrCb === "function") {
1031
- this.send(command, optionsOrCb);
1032
- } else if (typeof cb === "function") {
1033
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1034
- this.send(command, optionsOrCb || {}, cb);
1035
- } else {
1036
- return this.send(command, optionsOrCb);
1037
- }
1038
- }
1039
-
1040
- /**
1041
- * <p>Disassociates the associated Key Management Service customer master key (CMK) from the specified log group.</p>
1042
- * <p>After the KMS CMK is disassociated from the log group, CloudWatch Logs stops encrypting newly ingested data for the log group.
1043
- * All previously ingested data remains encrypted, and CloudWatch Logs requires permissions for the CMK whenever the encrypted data is requested.</p>
1044
- * <p>Note that it can take up to 5 minutes for this operation to take effect.</p>
1045
- */
1046
- public disassociateKmsKey(
1047
- args: DisassociateKmsKeyCommandInput,
1048
- options?: __HttpHandlerOptions
1049
- ): Promise<DisassociateKmsKeyCommandOutput>;
1050
- public disassociateKmsKey(
1051
- args: DisassociateKmsKeyCommandInput,
1052
- cb: (err: any, data?: DisassociateKmsKeyCommandOutput) => void
1053
- ): void;
1054
- public disassociateKmsKey(
1055
- args: DisassociateKmsKeyCommandInput,
1056
- options: __HttpHandlerOptions,
1057
- cb: (err: any, data?: DisassociateKmsKeyCommandOutput) => void
1058
- ): void;
1059
- public disassociateKmsKey(
1060
- args: DisassociateKmsKeyCommandInput,
1061
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DisassociateKmsKeyCommandOutput) => void),
1062
- cb?: (err: any, data?: DisassociateKmsKeyCommandOutput) => void
1063
- ): Promise<DisassociateKmsKeyCommandOutput> | void {
1064
- const command = new DisassociateKmsKeyCommand(args);
1065
- if (typeof optionsOrCb === "function") {
1066
- this.send(command, optionsOrCb);
1067
- } else if (typeof cb === "function") {
1068
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1069
- this.send(command, optionsOrCb || {}, cb);
1070
- } else {
1071
- return this.send(command, optionsOrCb);
1072
- }
1073
- }
1074
-
1075
- /**
1076
- * <p>Lists log events from the specified log group. You can list all the log events or filter the results
1077
- * using a filter pattern, a time range, and the name of the log stream.</p>
1078
- * <p>By default, this operation returns as many log events as can fit in 1 MB (up to 10,000
1079
- * log events) or all the events found within the time range that you specify. If the results
1080
- * include a token, then there are more log events available, and you can get additional results
1081
- * by specifying the token in a subsequent call. This operation can return empty results
1082
- * while there are more log events available through the token.</p>
1083
- * <p>The returned log events are sorted by event timestamp, the timestamp when the event was ingested
1084
- * by CloudWatch Logs, and the ID of the <code>PutLogEvents</code> request.</p>
1085
- */
1086
- public filterLogEvents(
1087
- args: FilterLogEventsCommandInput,
1088
- options?: __HttpHandlerOptions
1089
- ): Promise<FilterLogEventsCommandOutput>;
1090
- public filterLogEvents(
1091
- args: FilterLogEventsCommandInput,
1092
- cb: (err: any, data?: FilterLogEventsCommandOutput) => void
1093
- ): void;
1094
- public filterLogEvents(
1095
- args: FilterLogEventsCommandInput,
1096
- options: __HttpHandlerOptions,
1097
- cb: (err: any, data?: FilterLogEventsCommandOutput) => void
1098
- ): void;
1099
- public filterLogEvents(
1100
- args: FilterLogEventsCommandInput,
1101
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: FilterLogEventsCommandOutput) => void),
1102
- cb?: (err: any, data?: FilterLogEventsCommandOutput) => void
1103
- ): Promise<FilterLogEventsCommandOutput> | void {
1104
- const command = new FilterLogEventsCommand(args);
1105
- if (typeof optionsOrCb === "function") {
1106
- this.send(command, optionsOrCb);
1107
- } else if (typeof cb === "function") {
1108
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1109
- this.send(command, optionsOrCb || {}, cb);
1110
- } else {
1111
- return this.send(command, optionsOrCb);
1112
- }
1113
- }
1114
-
1115
- /**
1116
- * <p>Lists log events from the specified log stream. You can list all of the log events or
1117
- * filter using a time range.</p>
1118
- *
1119
- * <p>By default, this operation returns as many log events as can fit in a response size of 1MB (up to 10,000 log events).
1120
- * You can get additional log events by specifying one of the tokens in a subsequent call.
1121
- * This operation can return empty results while there are more log events available through the token.</p>
1122
- */
1123
- public getLogEvents(
1124
- args: GetLogEventsCommandInput,
1125
- options?: __HttpHandlerOptions
1126
- ): Promise<GetLogEventsCommandOutput>;
1127
- public getLogEvents(args: GetLogEventsCommandInput, cb: (err: any, data?: GetLogEventsCommandOutput) => void): void;
1128
- public getLogEvents(
1129
- args: GetLogEventsCommandInput,
1130
- options: __HttpHandlerOptions,
1131
- cb: (err: any, data?: GetLogEventsCommandOutput) => void
1132
- ): void;
1133
- public getLogEvents(
1134
- args: GetLogEventsCommandInput,
1135
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetLogEventsCommandOutput) => void),
1136
- cb?: (err: any, data?: GetLogEventsCommandOutput) => void
1137
- ): Promise<GetLogEventsCommandOutput> | void {
1138
- const command = new GetLogEventsCommand(args);
1139
- if (typeof optionsOrCb === "function") {
1140
- this.send(command, optionsOrCb);
1141
- } else if (typeof cb === "function") {
1142
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1143
- this.send(command, optionsOrCb || {}, cb);
1144
- } else {
1145
- return this.send(command, optionsOrCb);
1146
- }
1147
- }
1148
-
1149
- /**
1150
- * <p>Returns a list of the fields that are included in log events in the specified log group, along with the percentage of log events
1151
- * that contain each field. The search is limited to a time period that you specify.</p>
1152
- * <p>In the results, fields that start with @ are fields generated by CloudWatch Logs. For
1153
- * example, <code>@timestamp</code> is the timestamp of each log event. For more information about the fields that are
1154
- * generated by CloudWatch logs, see
1155
- * <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_AnalyzeLogData-discoverable-fields.html">Supported Logs and Discovered Fields</a>.</p>
1156
- * <p>The response results are sorted by the frequency percentage, starting
1157
- * with the highest percentage.</p>
1158
- */
1159
- public getLogGroupFields(
1160
- args: GetLogGroupFieldsCommandInput,
1161
- options?: __HttpHandlerOptions
1162
- ): Promise<GetLogGroupFieldsCommandOutput>;
1163
- public getLogGroupFields(
1164
- args: GetLogGroupFieldsCommandInput,
1165
- cb: (err: any, data?: GetLogGroupFieldsCommandOutput) => void
1166
- ): void;
1167
- public getLogGroupFields(
1168
- args: GetLogGroupFieldsCommandInput,
1169
- options: __HttpHandlerOptions,
1170
- cb: (err: any, data?: GetLogGroupFieldsCommandOutput) => void
1171
- ): void;
1172
- public getLogGroupFields(
1173
- args: GetLogGroupFieldsCommandInput,
1174
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetLogGroupFieldsCommandOutput) => void),
1175
- cb?: (err: any, data?: GetLogGroupFieldsCommandOutput) => void
1176
- ): Promise<GetLogGroupFieldsCommandOutput> | void {
1177
- const command = new GetLogGroupFieldsCommand(args);
1178
- if (typeof optionsOrCb === "function") {
1179
- this.send(command, optionsOrCb);
1180
- } else if (typeof cb === "function") {
1181
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1182
- this.send(command, optionsOrCb || {}, cb);
1183
- } else {
1184
- return this.send(command, optionsOrCb);
1185
- }
1186
- }
1187
-
1188
- /**
1189
- * <p>Retrieves all of the fields and values of a single log event. All fields are retrieved,
1190
- * even if the original query that produced the <code>logRecordPointer</code> retrieved only a
1191
- * subset of fields. Fields are returned as field name/field value pairs.</p>
1192
- * <p>The full unparsed log event is returned within <code>@message</code>.</p>
1193
- */
1194
- public getLogRecord(
1195
- args: GetLogRecordCommandInput,
1196
- options?: __HttpHandlerOptions
1197
- ): Promise<GetLogRecordCommandOutput>;
1198
- public getLogRecord(args: GetLogRecordCommandInput, cb: (err: any, data?: GetLogRecordCommandOutput) => void): void;
1199
- public getLogRecord(
1200
- args: GetLogRecordCommandInput,
1201
- options: __HttpHandlerOptions,
1202
- cb: (err: any, data?: GetLogRecordCommandOutput) => void
1203
- ): void;
1204
- public getLogRecord(
1205
- args: GetLogRecordCommandInput,
1206
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetLogRecordCommandOutput) => void),
1207
- cb?: (err: any, data?: GetLogRecordCommandOutput) => void
1208
- ): Promise<GetLogRecordCommandOutput> | void {
1209
- const command = new GetLogRecordCommand(args);
1210
- if (typeof optionsOrCb === "function") {
1211
- this.send(command, optionsOrCb);
1212
- } else if (typeof cb === "function") {
1213
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1214
- this.send(command, optionsOrCb || {}, cb);
1215
- } else {
1216
- return this.send(command, optionsOrCb);
1217
- }
1218
- }
1219
-
1220
- /**
1221
- * <p>Returns the results from the specified query.</p>
1222
- * <p>Only the fields requested in the query are returned, along with a <code>@ptr</code>
1223
- * field, which is the identifier for the log record. You can use the value of <code>@ptr</code>
1224
- * in a <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_GetLogRecord.html">GetLogRecord</a>
1225
- * operation to get the full log record.</p>
1226
- * <p>
1227
- * <code>GetQueryResults</code>
1228
- * does not start a query execution. To run a query, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_StartQuery.html">StartQuery</a>.</p>
1229
- * <p>If the value of the <code>Status</code> field in the output is <code>Running</code>, this operation
1230
- * returns only partial results. If you see a value of <code>Scheduled</code> or <code>Running</code> for the status,
1231
- * you can retry the operation later to see the final results. </p>
1232
- */
1233
- public getQueryResults(
1234
- args: GetQueryResultsCommandInput,
1235
- options?: __HttpHandlerOptions
1236
- ): Promise<GetQueryResultsCommandOutput>;
1237
- public getQueryResults(
1238
- args: GetQueryResultsCommandInput,
1239
- cb: (err: any, data?: GetQueryResultsCommandOutput) => void
1240
- ): void;
1241
- public getQueryResults(
1242
- args: GetQueryResultsCommandInput,
1243
- options: __HttpHandlerOptions,
1244
- cb: (err: any, data?: GetQueryResultsCommandOutput) => void
1245
- ): void;
1246
- public getQueryResults(
1247
- args: GetQueryResultsCommandInput,
1248
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetQueryResultsCommandOutput) => void),
1249
- cb?: (err: any, data?: GetQueryResultsCommandOutput) => void
1250
- ): Promise<GetQueryResultsCommandOutput> | void {
1251
- const command = new GetQueryResultsCommand(args);
1252
- if (typeof optionsOrCb === "function") {
1253
- this.send(command, optionsOrCb);
1254
- } else if (typeof cb === "function") {
1255
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1256
- this.send(command, optionsOrCb || {}, cb);
1257
- } else {
1258
- return this.send(command, optionsOrCb);
1259
- }
1260
- }
1261
-
1262
- /**
1263
- * <p>Lists the tags for the specified log group.</p>
1264
- */
1265
- public listTagsLogGroup(
1266
- args: ListTagsLogGroupCommandInput,
1267
- options?: __HttpHandlerOptions
1268
- ): Promise<ListTagsLogGroupCommandOutput>;
1269
- public listTagsLogGroup(
1270
- args: ListTagsLogGroupCommandInput,
1271
- cb: (err: any, data?: ListTagsLogGroupCommandOutput) => void
1272
- ): void;
1273
- public listTagsLogGroup(
1274
- args: ListTagsLogGroupCommandInput,
1275
- options: __HttpHandlerOptions,
1276
- cb: (err: any, data?: ListTagsLogGroupCommandOutput) => void
1277
- ): void;
1278
- public listTagsLogGroup(
1279
- args: ListTagsLogGroupCommandInput,
1280
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListTagsLogGroupCommandOutput) => void),
1281
- cb?: (err: any, data?: ListTagsLogGroupCommandOutput) => void
1282
- ): Promise<ListTagsLogGroupCommandOutput> | void {
1283
- const command = new ListTagsLogGroupCommand(args);
1284
- if (typeof optionsOrCb === "function") {
1285
- this.send(command, optionsOrCb);
1286
- } else if (typeof cb === "function") {
1287
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1288
- this.send(command, optionsOrCb || {}, cb);
1289
- } else {
1290
- return this.send(command, optionsOrCb);
1291
- }
1292
- }
1293
-
1294
- /**
1295
- * <p>Creates or updates a destination. This operation is used only to create destinations for cross-account subscriptions.</p>
1296
- * <p>A destination encapsulates a physical resource (such
1297
- * as an Amazon Kinesis stream) and enables you to subscribe to a real-time stream of log events
1298
- * for a different account, ingested using <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutLogEvents.html">PutLogEvents</a>.</p>
1299
- * <p>Through an access policy, a destination controls what is written to it.
1300
- * By default, <code>PutDestination</code> does not set any access policy with the destination,
1301
- * which means a cross-account user cannot call <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutSubscriptionFilter.html">PutSubscriptionFilter</a> against
1302
- * this destination. To enable this, the destination owner must call <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDestinationPolicy.html">PutDestinationPolicy</a> after <code>PutDestination</code>.</p>
1303
- * <p>To perform a <code>PutDestination</code> operation, you must also have the
1304
- * <code>iam:PassRole</code> permission.</p>
1305
- */
1306
- public putDestination(
1307
- args: PutDestinationCommandInput,
1308
- options?: __HttpHandlerOptions
1309
- ): Promise<PutDestinationCommandOutput>;
1310
- public putDestination(
1311
- args: PutDestinationCommandInput,
1312
- cb: (err: any, data?: PutDestinationCommandOutput) => void
1313
- ): void;
1314
- public putDestination(
1315
- args: PutDestinationCommandInput,
1316
- options: __HttpHandlerOptions,
1317
- cb: (err: any, data?: PutDestinationCommandOutput) => void
1318
- ): void;
1319
- public putDestination(
1320
- args: PutDestinationCommandInput,
1321
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutDestinationCommandOutput) => void),
1322
- cb?: (err: any, data?: PutDestinationCommandOutput) => void
1323
- ): Promise<PutDestinationCommandOutput> | void {
1324
- const command = new PutDestinationCommand(args);
1325
- if (typeof optionsOrCb === "function") {
1326
- this.send(command, optionsOrCb);
1327
- } else if (typeof cb === "function") {
1328
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1329
- this.send(command, optionsOrCb || {}, cb);
1330
- } else {
1331
- return this.send(command, optionsOrCb);
1332
- }
1333
- }
1334
-
1335
- /**
1336
- * <p>Creates or updates an access policy associated with an existing
1337
- * destination. An access policy is an <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/policies_overview.html">IAM policy document</a> that is used
1338
- * to authorize claims to register a subscription filter against a given destination.</p>
1339
- * <p>If multiple Amazon Web Services accounts are sending logs to this destination, each sender account must be
1340
- * listed separately in the policy. The policy does not support specifying <code>*</code>
1341
- * as the Principal or the use of the <code>aws:PrincipalOrgId</code> global key.</p>
1342
- */
1343
- public putDestinationPolicy(
1344
- args: PutDestinationPolicyCommandInput,
1345
- options?: __HttpHandlerOptions
1346
- ): Promise<PutDestinationPolicyCommandOutput>;
1347
- public putDestinationPolicy(
1348
- args: PutDestinationPolicyCommandInput,
1349
- cb: (err: any, data?: PutDestinationPolicyCommandOutput) => void
1350
- ): void;
1351
- public putDestinationPolicy(
1352
- args: PutDestinationPolicyCommandInput,
1353
- options: __HttpHandlerOptions,
1354
- cb: (err: any, data?: PutDestinationPolicyCommandOutput) => void
1355
- ): void;
1356
- public putDestinationPolicy(
1357
- args: PutDestinationPolicyCommandInput,
1358
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutDestinationPolicyCommandOutput) => void),
1359
- cb?: (err: any, data?: PutDestinationPolicyCommandOutput) => void
1360
- ): Promise<PutDestinationPolicyCommandOutput> | void {
1361
- const command = new PutDestinationPolicyCommand(args);
1362
- if (typeof optionsOrCb === "function") {
1363
- this.send(command, optionsOrCb);
1364
- } else if (typeof cb === "function") {
1365
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1366
- this.send(command, optionsOrCb || {}, cb);
1367
- } else {
1368
- return this.send(command, optionsOrCb);
1369
- }
1370
- }
1371
-
1372
- /**
1373
- * <p>Uploads a batch of log events to the specified log stream.</p>
1374
- * <p>You must include the sequence token obtained from the response of the previous call. An
1375
- * upload in a newly created log stream does not require a sequence token. You can also get the
1376
- * sequence token in the <code>expectedSequenceToken</code> field from
1377
- * <code>InvalidSequenceTokenException</code>. If you call <code>PutLogEvents</code> twice
1378
- * within a narrow time period using the same value for <code>sequenceToken</code>, both calls
1379
- * might be successful or one might be rejected.</p>
1380
- * <p>The batch of events must satisfy the following constraints:</p>
1381
- * <ul>
1382
- * <li>
1383
- * <p>The maximum batch size is 1,048,576 bytes. This size is calculated as the sum of
1384
- * all event messages in UTF-8, plus 26 bytes for each log event.</p>
1385
- * </li>
1386
- * <li>
1387
- * <p>None of the log events in the batch can be more than 2 hours in the future.</p>
1388
- * </li>
1389
- * <li>
1390
- * <p>None of the log events in the batch can be older than 14 days or older than the retention
1391
- * period of the log group.</p>
1392
- * </li>
1393
- * <li>
1394
- * <p>The log events in the batch must be in chronological order by their timestamp. The
1395
- * timestamp is the time the event occurred, expressed as the number of milliseconds after
1396
- * Jan 1, 1970 00:00:00 UTC. (In Amazon Web Services Tools for PowerShell and the Amazon Web Services SDK for .NET, the
1397
- * timestamp is specified in .NET format: yyyy-mm-ddThh:mm:ss. For example,
1398
- * 2017-09-15T13:45:30.) </p>
1399
- * </li>
1400
- * <li>
1401
- * <p>A batch of log events in a single request cannot span more than 24 hours. Otherwise, the operation fails.</p>
1402
- * </li>
1403
- * <li>
1404
- * <p>The maximum number of log events in a batch is 10,000.</p>
1405
- * </li>
1406
- * <li>
1407
- * <p>There is a quota of 5 requests per second per log stream. Additional requests are throttled. This quota can't be changed.</p>
1408
- * </li>
1409
- * </ul>
1410
- * <p>If a call to <code>PutLogEvents</code> returns "UnrecognizedClientException" the most likely cause is an invalid Amazon Web Services access key ID or secret key. </p>
1411
- */
1412
- public putLogEvents(
1413
- args: PutLogEventsCommandInput,
1414
- options?: __HttpHandlerOptions
1415
- ): Promise<PutLogEventsCommandOutput>;
1416
- public putLogEvents(args: PutLogEventsCommandInput, cb: (err: any, data?: PutLogEventsCommandOutput) => void): void;
1417
- public putLogEvents(
1418
- args: PutLogEventsCommandInput,
1419
- options: __HttpHandlerOptions,
1420
- cb: (err: any, data?: PutLogEventsCommandOutput) => void
1421
- ): void;
1422
- public putLogEvents(
1423
- args: PutLogEventsCommandInput,
1424
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutLogEventsCommandOutput) => void),
1425
- cb?: (err: any, data?: PutLogEventsCommandOutput) => void
1426
- ): Promise<PutLogEventsCommandOutput> | void {
1427
- const command = new PutLogEventsCommand(args);
1428
- if (typeof optionsOrCb === "function") {
1429
- this.send(command, optionsOrCb);
1430
- } else if (typeof cb === "function") {
1431
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1432
- this.send(command, optionsOrCb || {}, cb);
1433
- } else {
1434
- return this.send(command, optionsOrCb);
1435
- }
1436
- }
1437
-
1438
- /**
1439
- * <p>Creates or updates a metric filter and associates it with the specified log group.
1440
- * Metric filters allow you to configure rules to extract metric data from log events ingested
1441
- * through <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutLogEvents.html">PutLogEvents</a>.</p>
1442
- * <p>The maximum number of metric filters that can be associated with a log group is
1443
- * 100.</p>
1444
- * <p>When you create a metric filter, you can also optionally assign a unit and dimensions
1445
- * to the metric that is created.</p>
1446
- * <important>
1447
- * <p>Metrics extracted from log events are charged as custom metrics.
1448
- * To prevent unexpected high charges, do not specify high-cardinality fields such as
1449
- * <code>IPAddress</code> or <code>requestID</code> as dimensions. Each different value
1450
- * found for
1451
- * a dimension is treated as a separate metric and accrues charges as a separate custom metric.
1452
- * </p>
1453
- * <p>To help prevent accidental high charges, Amazon disables a metric filter
1454
- * if it generates 1000 different name/value pairs for the dimensions that you
1455
- * have specified within a certain amount of time.</p>
1456
- * <p>You can also set up a billing alarm to alert you if your charges are higher than
1457
- * expected. For more information,
1458
- * see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/monitor_estimated_charges_with_cloudwatch.html">
1459
- * Creating a Billing Alarm to Monitor Your Estimated Amazon Web Services Charges</a>.
1460
- * </p>
1461
- * </important>
1462
- */
1463
- public putMetricFilter(
1464
- args: PutMetricFilterCommandInput,
1465
- options?: __HttpHandlerOptions
1466
- ): Promise<PutMetricFilterCommandOutput>;
1467
- public putMetricFilter(
1468
- args: PutMetricFilterCommandInput,
1469
- cb: (err: any, data?: PutMetricFilterCommandOutput) => void
1470
- ): void;
1471
- public putMetricFilter(
1472
- args: PutMetricFilterCommandInput,
1473
- options: __HttpHandlerOptions,
1474
- cb: (err: any, data?: PutMetricFilterCommandOutput) => void
1475
- ): void;
1476
- public putMetricFilter(
1477
- args: PutMetricFilterCommandInput,
1478
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutMetricFilterCommandOutput) => void),
1479
- cb?: (err: any, data?: PutMetricFilterCommandOutput) => void
1480
- ): Promise<PutMetricFilterCommandOutput> | void {
1481
- const command = new PutMetricFilterCommand(args);
1482
- if (typeof optionsOrCb === "function") {
1483
- this.send(command, optionsOrCb);
1484
- } else if (typeof cb === "function") {
1485
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1486
- this.send(command, optionsOrCb || {}, cb);
1487
- } else {
1488
- return this.send(command, optionsOrCb);
1489
- }
1490
- }
1491
-
1492
- /**
1493
- * <p>Creates or updates a query definition for CloudWatch Logs Insights. For
1494
- * more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AnalyzingLogData.html">Analyzing Log Data with CloudWatch Logs Insights</a>.</p>
1495
- *
1496
- * <p>To update a query definition, specify its
1497
- * <code>queryDefinitionId</code> in your request. The values of <code>name</code>, <code>queryString</code>,
1498
- * and <code>logGroupNames</code> are changed to the values that you specify in your update
1499
- * operation. No current values are retained from the current query definition. For example, if
1500
- * you update a current query definition that includes log groups, and you don't specify the
1501
- * <code>logGroupNames</code> parameter in your update operation, the query definition changes
1502
- * to contain no log groups.</p>
1503
- * <p>You must have the <code>logs:PutQueryDefinition</code> permission to be able to perform
1504
- * this operation.</p>
1505
- */
1506
- public putQueryDefinition(
1507
- args: PutQueryDefinitionCommandInput,
1508
- options?: __HttpHandlerOptions
1509
- ): Promise<PutQueryDefinitionCommandOutput>;
1510
- public putQueryDefinition(
1511
- args: PutQueryDefinitionCommandInput,
1512
- cb: (err: any, data?: PutQueryDefinitionCommandOutput) => void
1513
- ): void;
1514
- public putQueryDefinition(
1515
- args: PutQueryDefinitionCommandInput,
1516
- options: __HttpHandlerOptions,
1517
- cb: (err: any, data?: PutQueryDefinitionCommandOutput) => void
1518
- ): void;
1519
- public putQueryDefinition(
1520
- args: PutQueryDefinitionCommandInput,
1521
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutQueryDefinitionCommandOutput) => void),
1522
- cb?: (err: any, data?: PutQueryDefinitionCommandOutput) => void
1523
- ): Promise<PutQueryDefinitionCommandOutput> | void {
1524
- const command = new PutQueryDefinitionCommand(args);
1525
- if (typeof optionsOrCb === "function") {
1526
- this.send(command, optionsOrCb);
1527
- } else if (typeof cb === "function") {
1528
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1529
- this.send(command, optionsOrCb || {}, cb);
1530
- } else {
1531
- return this.send(command, optionsOrCb);
1532
- }
1533
- }
1534
-
1535
- /**
1536
- * <p>Creates or updates a resource policy allowing other Amazon Web Services services to put log events to
1537
- * this account, such as Amazon Route 53. An account can have up to 10 resource policies per Amazon Web Services
1538
- * Region.</p>
1539
- */
1540
- public putResourcePolicy(
1541
- args: PutResourcePolicyCommandInput,
1542
- options?: __HttpHandlerOptions
1543
- ): Promise<PutResourcePolicyCommandOutput>;
1544
- public putResourcePolicy(
1545
- args: PutResourcePolicyCommandInput,
1546
- cb: (err: any, data?: PutResourcePolicyCommandOutput) => void
1547
- ): void;
1548
- public putResourcePolicy(
1549
- args: PutResourcePolicyCommandInput,
1550
- options: __HttpHandlerOptions,
1551
- cb: (err: any, data?: PutResourcePolicyCommandOutput) => void
1552
- ): void;
1553
- public putResourcePolicy(
1554
- args: PutResourcePolicyCommandInput,
1555
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutResourcePolicyCommandOutput) => void),
1556
- cb?: (err: any, data?: PutResourcePolicyCommandOutput) => void
1557
- ): Promise<PutResourcePolicyCommandOutput> | void {
1558
- const command = new PutResourcePolicyCommand(args);
1559
- if (typeof optionsOrCb === "function") {
1560
- this.send(command, optionsOrCb);
1561
- } else if (typeof cb === "function") {
1562
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1563
- this.send(command, optionsOrCb || {}, cb);
1564
- } else {
1565
- return this.send(command, optionsOrCb);
1566
- }
1567
- }
1568
-
1569
- /**
1570
- * <p>Sets the retention of the specified log group. A retention policy allows you to
1571
- * configure the number of days for which to retain log events in the specified log
1572
- * group.</p>
1573
- */
1574
- public putRetentionPolicy(
1575
- args: PutRetentionPolicyCommandInput,
1576
- options?: __HttpHandlerOptions
1577
- ): Promise<PutRetentionPolicyCommandOutput>;
1578
- public putRetentionPolicy(
1579
- args: PutRetentionPolicyCommandInput,
1580
- cb: (err: any, data?: PutRetentionPolicyCommandOutput) => void
1581
- ): void;
1582
- public putRetentionPolicy(
1583
- args: PutRetentionPolicyCommandInput,
1584
- options: __HttpHandlerOptions,
1585
- cb: (err: any, data?: PutRetentionPolicyCommandOutput) => void
1586
- ): void;
1587
- public putRetentionPolicy(
1588
- args: PutRetentionPolicyCommandInput,
1589
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutRetentionPolicyCommandOutput) => void),
1590
- cb?: (err: any, data?: PutRetentionPolicyCommandOutput) => void
1591
- ): Promise<PutRetentionPolicyCommandOutput> | void {
1592
- const command = new PutRetentionPolicyCommand(args);
1593
- if (typeof optionsOrCb === "function") {
1594
- this.send(command, optionsOrCb);
1595
- } else if (typeof cb === "function") {
1596
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1597
- this.send(command, optionsOrCb || {}, cb);
1598
- } else {
1599
- return this.send(command, optionsOrCb);
1600
- }
1601
- }
1602
-
1603
- /**
1604
- * <p>Creates or updates a subscription filter and associates it with the specified log
1605
- * group. Subscription filters allow you to subscribe to a real-time stream of log events
1606
- * ingested through <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutLogEvents.html">PutLogEvents</a> and have them delivered to a specific
1607
- * destination. When log events are sent to the
1608
- * receiving service, they are Base64 encoded
1609
- * and compressed with the gzip format.</p>
1610
- * <p>The following destinations are supported for subscription filters:</p>
1611
- * <ul>
1612
- * <li>
1613
- * <p>An Amazon Kinesis stream belonging to the same account as the subscription filter,
1614
- * for same-account delivery.</p>
1615
- * </li>
1616
- * <li>
1617
- * <p>A logical destination that belongs to a different account, for cross-account delivery.</p>
1618
- * </li>
1619
- * <li>
1620
- * <p>An Amazon Kinesis Firehose delivery stream that belongs to the same account as the
1621
- * subscription filter, for same-account delivery.</p>
1622
- * </li>
1623
- * <li>
1624
- * <p>An Lambda function that belongs to the same account as the subscription filter,
1625
- * for same-account delivery.</p>
1626
- * </li>
1627
- * </ul>
1628
- * <p>Each log group can have up to two subscription filters associated with it. If you are
1629
- * updating an existing filter, you must specify the correct name in <code>filterName</code>.
1630
- * </p>
1631
- * <p>To perform a <code>PutSubscriptionFilter</code> operation, you must also have the
1632
- * <code>iam:PassRole</code> permission.</p>
1633
- */
1634
- public putSubscriptionFilter(
1635
- args: PutSubscriptionFilterCommandInput,
1636
- options?: __HttpHandlerOptions
1637
- ): Promise<PutSubscriptionFilterCommandOutput>;
1638
- public putSubscriptionFilter(
1639
- args: PutSubscriptionFilterCommandInput,
1640
- cb: (err: any, data?: PutSubscriptionFilterCommandOutput) => void
1641
- ): void;
1642
- public putSubscriptionFilter(
1643
- args: PutSubscriptionFilterCommandInput,
1644
- options: __HttpHandlerOptions,
1645
- cb: (err: any, data?: PutSubscriptionFilterCommandOutput) => void
1646
- ): void;
1647
- public putSubscriptionFilter(
1648
- args: PutSubscriptionFilterCommandInput,
1649
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutSubscriptionFilterCommandOutput) => void),
1650
- cb?: (err: any, data?: PutSubscriptionFilterCommandOutput) => void
1651
- ): Promise<PutSubscriptionFilterCommandOutput> | void {
1652
- const command = new PutSubscriptionFilterCommand(args);
1653
- if (typeof optionsOrCb === "function") {
1654
- this.send(command, optionsOrCb);
1655
- } else if (typeof cb === "function") {
1656
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1657
- this.send(command, optionsOrCb || {}, cb);
1658
- } else {
1659
- return this.send(command, optionsOrCb);
1660
- }
1661
- }
1662
-
1663
- /**
1664
- * <p>Schedules a query of a log group using CloudWatch Logs Insights. You specify the log group
1665
- * and time range to query and the query string to use.</p>
1666
- * <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html">CloudWatch Logs Insights Query Syntax</a>.</p>
1667
- *
1668
- * <p>Queries time out after 15 minutes of execution. If your queries are timing out, reduce the
1669
- * time range being searched or partition your query into a number of queries.</p>
1670
- */
1671
- public startQuery(args: StartQueryCommandInput, options?: __HttpHandlerOptions): Promise<StartQueryCommandOutput>;
1672
- public startQuery(args: StartQueryCommandInput, cb: (err: any, data?: StartQueryCommandOutput) => void): void;
1673
- public startQuery(
1674
- args: StartQueryCommandInput,
1675
- options: __HttpHandlerOptions,
1676
- cb: (err: any, data?: StartQueryCommandOutput) => void
1677
- ): void;
1678
- public startQuery(
1679
- args: StartQueryCommandInput,
1680
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: StartQueryCommandOutput) => void),
1681
- cb?: (err: any, data?: StartQueryCommandOutput) => void
1682
- ): Promise<StartQueryCommandOutput> | void {
1683
- const command = new StartQueryCommand(args);
1684
- if (typeof optionsOrCb === "function") {
1685
- this.send(command, optionsOrCb);
1686
- } else if (typeof cb === "function") {
1687
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1688
- this.send(command, optionsOrCb || {}, cb);
1689
- } else {
1690
- return this.send(command, optionsOrCb);
1691
- }
1692
- }
1693
-
1694
- /**
1695
- * <p>Stops a CloudWatch Logs Insights query that is in progress. If the query has already ended, the operation
1696
- * returns an error indicating that the specified query is not running.</p>
1697
- */
1698
- public stopQuery(args: StopQueryCommandInput, options?: __HttpHandlerOptions): Promise<StopQueryCommandOutput>;
1699
- public stopQuery(args: StopQueryCommandInput, cb: (err: any, data?: StopQueryCommandOutput) => void): void;
1700
- public stopQuery(
1701
- args: StopQueryCommandInput,
1702
- options: __HttpHandlerOptions,
1703
- cb: (err: any, data?: StopQueryCommandOutput) => void
1704
- ): void;
1705
- public stopQuery(
1706
- args: StopQueryCommandInput,
1707
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: StopQueryCommandOutput) => void),
1708
- cb?: (err: any, data?: StopQueryCommandOutput) => void
1709
- ): Promise<StopQueryCommandOutput> | void {
1710
- const command = new StopQueryCommand(args);
1711
- if (typeof optionsOrCb === "function") {
1712
- this.send(command, optionsOrCb);
1713
- } else if (typeof cb === "function") {
1714
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1715
- this.send(command, optionsOrCb || {}, cb);
1716
- } else {
1717
- return this.send(command, optionsOrCb);
1718
- }
1719
- }
1720
-
1721
- /**
1722
- * <p>Adds or updates the specified tags for the specified log group.</p>
1723
- * <p>To list the tags for a log group, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsLogGroup.html">ListTagsLogGroup</a>.
1724
- * To remove tags, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UntagLogGroup.html">UntagLogGroup</a>.</p>
1725
- * <p>For more information about tags, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html#log-group-tagging">Tag Log Groups in Amazon CloudWatch Logs</a>
1726
- * in the <i>Amazon CloudWatch Logs User Guide</i>.</p>
1727
- * <p>CloudWatch Logs doesn’t support IAM policies that prevent users from assigning specified tags to
1728
- * log groups using the <code>aws:Resource/<i>key-name</i>
1729
- * </code> or <code>aws:TagKeys</code> condition keys.
1730
- * For more information about using tags to control access, see
1731
- * <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_tags.html">Controlling access to Amazon Web Services resources using tags</a>.</p>
1732
- */
1733
- public tagLogGroup(args: TagLogGroupCommandInput, options?: __HttpHandlerOptions): Promise<TagLogGroupCommandOutput>;
1734
- public tagLogGroup(args: TagLogGroupCommandInput, cb: (err: any, data?: TagLogGroupCommandOutput) => void): void;
1735
- public tagLogGroup(
1736
- args: TagLogGroupCommandInput,
1737
- options: __HttpHandlerOptions,
1738
- cb: (err: any, data?: TagLogGroupCommandOutput) => void
1739
- ): void;
1740
- public tagLogGroup(
1741
- args: TagLogGroupCommandInput,
1742
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: TagLogGroupCommandOutput) => void),
1743
- cb?: (err: any, data?: TagLogGroupCommandOutput) => void
1744
- ): Promise<TagLogGroupCommandOutput> | void {
1745
- const command = new TagLogGroupCommand(args);
1746
- if (typeof optionsOrCb === "function") {
1747
- this.send(command, optionsOrCb);
1748
- } else if (typeof cb === "function") {
1749
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1750
- this.send(command, optionsOrCb || {}, cb);
1751
- } else {
1752
- return this.send(command, optionsOrCb);
1753
- }
1754
- }
1755
-
1756
- /**
1757
- * <p>Tests the filter pattern of a metric filter against a sample of log event messages. You
1758
- * can use this operation to validate the correctness of a metric filter pattern.</p>
1759
- */
1760
- public testMetricFilter(
1761
- args: TestMetricFilterCommandInput,
1762
- options?: __HttpHandlerOptions
1763
- ): Promise<TestMetricFilterCommandOutput>;
1764
- public testMetricFilter(
1765
- args: TestMetricFilterCommandInput,
1766
- cb: (err: any, data?: TestMetricFilterCommandOutput) => void
1767
- ): void;
1768
- public testMetricFilter(
1769
- args: TestMetricFilterCommandInput,
1770
- options: __HttpHandlerOptions,
1771
- cb: (err: any, data?: TestMetricFilterCommandOutput) => void
1772
- ): void;
1773
- public testMetricFilter(
1774
- args: TestMetricFilterCommandInput,
1775
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: TestMetricFilterCommandOutput) => void),
1776
- cb?: (err: any, data?: TestMetricFilterCommandOutput) => void
1777
- ): Promise<TestMetricFilterCommandOutput> | void {
1778
- const command = new TestMetricFilterCommand(args);
1779
- if (typeof optionsOrCb === "function") {
1780
- this.send(command, optionsOrCb);
1781
- } else if (typeof cb === "function") {
1782
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1783
- this.send(command, optionsOrCb || {}, cb);
1784
- } else {
1785
- return this.send(command, optionsOrCb);
1786
- }
1787
- }
1788
-
1789
- /**
1790
- * <p>Removes the specified tags from the specified log group.</p>
1791
- * <p>To list the tags for a log group, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsLogGroup.html">ListTagsLogGroup</a>.
1792
- * To add tags, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_TagLogGroup.html">TagLogGroup</a>.</p>
1793
- * <p>CloudWatch Logs doesn’t support IAM policies that prevent users from assigning specified tags to
1794
- * log groups using the <code>aws:Resource/<i>key-name</i>
1795
- * </code> or <code>aws:TagKeys</code> condition keys.
1796
- * </p>
1797
- */
1798
- public untagLogGroup(
1799
- args: UntagLogGroupCommandInput,
1800
- options?: __HttpHandlerOptions
1801
- ): Promise<UntagLogGroupCommandOutput>;
1802
- public untagLogGroup(
1803
- args: UntagLogGroupCommandInput,
1804
- cb: (err: any, data?: UntagLogGroupCommandOutput) => void
1805
- ): void;
1806
- public untagLogGroup(
1807
- args: UntagLogGroupCommandInput,
1808
- options: __HttpHandlerOptions,
1809
- cb: (err: any, data?: UntagLogGroupCommandOutput) => void
1810
- ): void;
1811
- public untagLogGroup(
1812
- args: UntagLogGroupCommandInput,
1813
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UntagLogGroupCommandOutput) => void),
1814
- cb?: (err: any, data?: UntagLogGroupCommandOutput) => void
1815
- ): Promise<UntagLogGroupCommandOutput> | void {
1816
- const command = new UntagLogGroupCommand(args);
1817
- if (typeof optionsOrCb === "function") {
1818
- this.send(command, optionsOrCb);
1819
- } else if (typeof cb === "function") {
1820
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1821
- this.send(command, optionsOrCb || {}, cb);
1822
- } else {
1823
- return this.send(command, optionsOrCb);
1824
- }
1825
- }
1826
- }