@aws-sdk/client-cloudwatch-logs 3.477.0 → 3.481.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 (349) hide show
  1. package/dist-cjs/commands/AssociateKmsKeyCommand.js +18 -41
  2. package/dist-cjs/commands/CancelExportTaskCommand.js +18 -41
  3. package/dist-cjs/commands/CreateDeliveryCommand.js +18 -41
  4. package/dist-cjs/commands/CreateExportTaskCommand.js +18 -41
  5. package/dist-cjs/commands/CreateLogAnomalyDetectorCommand.js +18 -41
  6. package/dist-cjs/commands/CreateLogGroupCommand.js +18 -41
  7. package/dist-cjs/commands/CreateLogStreamCommand.js +18 -41
  8. package/dist-cjs/commands/DeleteAccountPolicyCommand.js +18 -41
  9. package/dist-cjs/commands/DeleteDataProtectionPolicyCommand.js +18 -41
  10. package/dist-cjs/commands/DeleteDeliveryCommand.js +18 -41
  11. package/dist-cjs/commands/DeleteDeliveryDestinationCommand.js +18 -41
  12. package/dist-cjs/commands/DeleteDeliveryDestinationPolicyCommand.js +18 -41
  13. package/dist-cjs/commands/DeleteDeliverySourceCommand.js +18 -41
  14. package/dist-cjs/commands/DeleteDestinationCommand.js +18 -41
  15. package/dist-cjs/commands/DeleteLogAnomalyDetectorCommand.js +18 -41
  16. package/dist-cjs/commands/DeleteLogGroupCommand.js +18 -41
  17. package/dist-cjs/commands/DeleteLogStreamCommand.js +18 -41
  18. package/dist-cjs/commands/DeleteMetricFilterCommand.js +18 -41
  19. package/dist-cjs/commands/DeleteQueryDefinitionCommand.js +18 -41
  20. package/dist-cjs/commands/DeleteResourcePolicyCommand.js +18 -41
  21. package/dist-cjs/commands/DeleteRetentionPolicyCommand.js +18 -41
  22. package/dist-cjs/commands/DeleteSubscriptionFilterCommand.js +18 -41
  23. package/dist-cjs/commands/DescribeAccountPoliciesCommand.js +18 -41
  24. package/dist-cjs/commands/DescribeDeliveriesCommand.js +18 -41
  25. package/dist-cjs/commands/DescribeDeliveryDestinationsCommand.js +18 -41
  26. package/dist-cjs/commands/DescribeDeliverySourcesCommand.js +18 -41
  27. package/dist-cjs/commands/DescribeDestinationsCommand.js +18 -41
  28. package/dist-cjs/commands/DescribeExportTasksCommand.js +18 -41
  29. package/dist-cjs/commands/DescribeLogGroupsCommand.js +18 -41
  30. package/dist-cjs/commands/DescribeLogStreamsCommand.js +18 -41
  31. package/dist-cjs/commands/DescribeMetricFiltersCommand.js +18 -41
  32. package/dist-cjs/commands/DescribeQueriesCommand.js +18 -41
  33. package/dist-cjs/commands/DescribeQueryDefinitionsCommand.js +18 -41
  34. package/dist-cjs/commands/DescribeResourcePoliciesCommand.js +18 -41
  35. package/dist-cjs/commands/DescribeSubscriptionFiltersCommand.js +18 -41
  36. package/dist-cjs/commands/DisassociateKmsKeyCommand.js +18 -41
  37. package/dist-cjs/commands/FilterLogEventsCommand.js +18 -41
  38. package/dist-cjs/commands/GetDataProtectionPolicyCommand.js +18 -41
  39. package/dist-cjs/commands/GetDeliveryCommand.js +18 -41
  40. package/dist-cjs/commands/GetDeliveryDestinationCommand.js +18 -41
  41. package/dist-cjs/commands/GetDeliveryDestinationPolicyCommand.js +18 -41
  42. package/dist-cjs/commands/GetDeliverySourceCommand.js +18 -41
  43. package/dist-cjs/commands/GetLogAnomalyDetectorCommand.js +18 -41
  44. package/dist-cjs/commands/GetLogEventsCommand.js +18 -41
  45. package/dist-cjs/commands/GetLogGroupFieldsCommand.js +18 -41
  46. package/dist-cjs/commands/GetLogRecordCommand.js +18 -41
  47. package/dist-cjs/commands/GetQueryResultsCommand.js +18 -41
  48. package/dist-cjs/commands/ListAnomaliesCommand.js +18 -41
  49. package/dist-cjs/commands/ListLogAnomalyDetectorsCommand.js +18 -41
  50. package/dist-cjs/commands/ListTagsForResourceCommand.js +18 -41
  51. package/dist-cjs/commands/ListTagsLogGroupCommand.js +18 -41
  52. package/dist-cjs/commands/PutAccountPolicyCommand.js +18 -41
  53. package/dist-cjs/commands/PutDataProtectionPolicyCommand.js +18 -41
  54. package/dist-cjs/commands/PutDeliveryDestinationCommand.js +18 -41
  55. package/dist-cjs/commands/PutDeliveryDestinationPolicyCommand.js +18 -41
  56. package/dist-cjs/commands/PutDeliverySourceCommand.js +18 -41
  57. package/dist-cjs/commands/PutDestinationCommand.js +18 -41
  58. package/dist-cjs/commands/PutDestinationPolicyCommand.js +18 -41
  59. package/dist-cjs/commands/PutLogEventsCommand.js +18 -41
  60. package/dist-cjs/commands/PutMetricFilterCommand.js +18 -41
  61. package/dist-cjs/commands/PutQueryDefinitionCommand.js +18 -41
  62. package/dist-cjs/commands/PutResourcePolicyCommand.js +18 -41
  63. package/dist-cjs/commands/PutRetentionPolicyCommand.js +18 -41
  64. package/dist-cjs/commands/PutSubscriptionFilterCommand.js +18 -41
  65. package/dist-cjs/commands/StartLiveTailCommand.js +22 -44
  66. package/dist-cjs/commands/StartQueryCommand.js +18 -41
  67. package/dist-cjs/commands/StopQueryCommand.js +18 -41
  68. package/dist-cjs/commands/TagLogGroupCommand.js +18 -41
  69. package/dist-cjs/commands/TagResourceCommand.js +18 -41
  70. package/dist-cjs/commands/TestMetricFilterCommand.js +18 -41
  71. package/dist-cjs/commands/UntagLogGroupCommand.js +18 -41
  72. package/dist-cjs/commands/UntagResourceCommand.js +18 -41
  73. package/dist-cjs/commands/UpdateAnomalyCommand.js +18 -41
  74. package/dist-cjs/commands/UpdateLogAnomalyDetectorCommand.js +18 -41
  75. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  76. package/dist-cjs/pagination/DescribeDeliveriesPaginator.js +2 -24
  77. package/dist-cjs/pagination/DescribeDeliveryDestinationsPaginator.js +2 -24
  78. package/dist-cjs/pagination/DescribeDeliverySourcesPaginator.js +2 -24
  79. package/dist-cjs/pagination/DescribeDestinationsPaginator.js +2 -24
  80. package/dist-cjs/pagination/DescribeLogGroupsPaginator.js +2 -24
  81. package/dist-cjs/pagination/DescribeLogStreamsPaginator.js +2 -24
  82. package/dist-cjs/pagination/DescribeMetricFiltersPaginator.js +2 -24
  83. package/dist-cjs/pagination/DescribeSubscriptionFiltersPaginator.js +2 -24
  84. package/dist-cjs/pagination/FilterLogEventsPaginator.js +2 -24
  85. package/dist-cjs/pagination/GetLogEventsPaginator.js +2 -24
  86. package/dist-cjs/pagination/ListAnomaliesPaginator.js +2 -24
  87. package/dist-cjs/pagination/ListLogAnomalyDetectorsPaginator.js +2 -24
  88. package/dist-es/commands/AssociateKmsKeyCommand.js +18 -41
  89. package/dist-es/commands/CancelExportTaskCommand.js +18 -41
  90. package/dist-es/commands/CreateDeliveryCommand.js +18 -41
  91. package/dist-es/commands/CreateExportTaskCommand.js +18 -41
  92. package/dist-es/commands/CreateLogAnomalyDetectorCommand.js +18 -41
  93. package/dist-es/commands/CreateLogGroupCommand.js +18 -41
  94. package/dist-es/commands/CreateLogStreamCommand.js +18 -41
  95. package/dist-es/commands/DeleteAccountPolicyCommand.js +18 -41
  96. package/dist-es/commands/DeleteDataProtectionPolicyCommand.js +18 -41
  97. package/dist-es/commands/DeleteDeliveryCommand.js +18 -41
  98. package/dist-es/commands/DeleteDeliveryDestinationCommand.js +18 -41
  99. package/dist-es/commands/DeleteDeliveryDestinationPolicyCommand.js +18 -41
  100. package/dist-es/commands/DeleteDeliverySourceCommand.js +18 -41
  101. package/dist-es/commands/DeleteDestinationCommand.js +18 -41
  102. package/dist-es/commands/DeleteLogAnomalyDetectorCommand.js +18 -41
  103. package/dist-es/commands/DeleteLogGroupCommand.js +18 -41
  104. package/dist-es/commands/DeleteLogStreamCommand.js +18 -41
  105. package/dist-es/commands/DeleteMetricFilterCommand.js +18 -41
  106. package/dist-es/commands/DeleteQueryDefinitionCommand.js +18 -41
  107. package/dist-es/commands/DeleteResourcePolicyCommand.js +18 -41
  108. package/dist-es/commands/DeleteRetentionPolicyCommand.js +18 -41
  109. package/dist-es/commands/DeleteSubscriptionFilterCommand.js +18 -41
  110. package/dist-es/commands/DescribeAccountPoliciesCommand.js +18 -41
  111. package/dist-es/commands/DescribeDeliveriesCommand.js +18 -41
  112. package/dist-es/commands/DescribeDeliveryDestinationsCommand.js +18 -41
  113. package/dist-es/commands/DescribeDeliverySourcesCommand.js +18 -41
  114. package/dist-es/commands/DescribeDestinationsCommand.js +18 -41
  115. package/dist-es/commands/DescribeExportTasksCommand.js +18 -41
  116. package/dist-es/commands/DescribeLogGroupsCommand.js +18 -41
  117. package/dist-es/commands/DescribeLogStreamsCommand.js +18 -41
  118. package/dist-es/commands/DescribeMetricFiltersCommand.js +18 -41
  119. package/dist-es/commands/DescribeQueriesCommand.js +18 -41
  120. package/dist-es/commands/DescribeQueryDefinitionsCommand.js +18 -41
  121. package/dist-es/commands/DescribeResourcePoliciesCommand.js +18 -41
  122. package/dist-es/commands/DescribeSubscriptionFiltersCommand.js +18 -41
  123. package/dist-es/commands/DisassociateKmsKeyCommand.js +18 -41
  124. package/dist-es/commands/FilterLogEventsCommand.js +18 -41
  125. package/dist-es/commands/GetDataProtectionPolicyCommand.js +18 -41
  126. package/dist-es/commands/GetDeliveryCommand.js +18 -41
  127. package/dist-es/commands/GetDeliveryDestinationCommand.js +18 -41
  128. package/dist-es/commands/GetDeliveryDestinationPolicyCommand.js +18 -41
  129. package/dist-es/commands/GetDeliverySourceCommand.js +18 -41
  130. package/dist-es/commands/GetLogAnomalyDetectorCommand.js +18 -41
  131. package/dist-es/commands/GetLogEventsCommand.js +18 -41
  132. package/dist-es/commands/GetLogGroupFieldsCommand.js +18 -41
  133. package/dist-es/commands/GetLogRecordCommand.js +18 -41
  134. package/dist-es/commands/GetQueryResultsCommand.js +18 -41
  135. package/dist-es/commands/ListAnomaliesCommand.js +18 -41
  136. package/dist-es/commands/ListLogAnomalyDetectorsCommand.js +18 -41
  137. package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
  138. package/dist-es/commands/ListTagsLogGroupCommand.js +18 -41
  139. package/dist-es/commands/PutAccountPolicyCommand.js +18 -41
  140. package/dist-es/commands/PutDataProtectionPolicyCommand.js +18 -41
  141. package/dist-es/commands/PutDeliveryDestinationCommand.js +18 -41
  142. package/dist-es/commands/PutDeliveryDestinationPolicyCommand.js +18 -41
  143. package/dist-es/commands/PutDeliverySourceCommand.js +18 -41
  144. package/dist-es/commands/PutDestinationCommand.js +18 -41
  145. package/dist-es/commands/PutDestinationPolicyCommand.js +18 -41
  146. package/dist-es/commands/PutLogEventsCommand.js +18 -41
  147. package/dist-es/commands/PutMetricFilterCommand.js +18 -41
  148. package/dist-es/commands/PutQueryDefinitionCommand.js +18 -41
  149. package/dist-es/commands/PutResourcePolicyCommand.js +18 -41
  150. package/dist-es/commands/PutRetentionPolicyCommand.js +18 -41
  151. package/dist-es/commands/PutSubscriptionFilterCommand.js +18 -41
  152. package/dist-es/commands/StartLiveTailCommand.js +22 -44
  153. package/dist-es/commands/StartQueryCommand.js +18 -41
  154. package/dist-es/commands/StopQueryCommand.js +18 -41
  155. package/dist-es/commands/TagLogGroupCommand.js +18 -41
  156. package/dist-es/commands/TagResourceCommand.js +18 -41
  157. package/dist-es/commands/TestMetricFilterCommand.js +18 -41
  158. package/dist-es/commands/UntagLogGroupCommand.js +18 -41
  159. package/dist-es/commands/UntagResourceCommand.js +18 -41
  160. package/dist-es/commands/UpdateAnomalyCommand.js +18 -41
  161. package/dist-es/commands/UpdateLogAnomalyDetectorCommand.js +18 -41
  162. package/dist-es/endpoint/EndpointParameters.js +6 -0
  163. package/dist-es/pagination/DescribeDeliveriesPaginator.js +2 -23
  164. package/dist-es/pagination/DescribeDeliveryDestinationsPaginator.js +2 -23
  165. package/dist-es/pagination/DescribeDeliverySourcesPaginator.js +2 -23
  166. package/dist-es/pagination/DescribeDestinationsPaginator.js +2 -23
  167. package/dist-es/pagination/DescribeLogGroupsPaginator.js +2 -23
  168. package/dist-es/pagination/DescribeLogStreamsPaginator.js +2 -23
  169. package/dist-es/pagination/DescribeMetricFiltersPaginator.js +2 -23
  170. package/dist-es/pagination/DescribeSubscriptionFiltersPaginator.js +2 -23
  171. package/dist-es/pagination/FilterLogEventsPaginator.js +2 -23
  172. package/dist-es/pagination/GetLogEventsPaginator.js +2 -23
  173. package/dist-es/pagination/ListAnomaliesPaginator.js +2 -23
  174. package/dist-es/pagination/ListLogAnomalyDetectorsPaginator.js +2 -23
  175. package/dist-types/commands/AssociateKmsKeyCommand.d.ts +6 -21
  176. package/dist-types/commands/CancelExportTaskCommand.d.ts +6 -21
  177. package/dist-types/commands/CreateDeliveryCommand.d.ts +6 -21
  178. package/dist-types/commands/CreateExportTaskCommand.d.ts +6 -21
  179. package/dist-types/commands/CreateLogAnomalyDetectorCommand.d.ts +6 -21
  180. package/dist-types/commands/CreateLogGroupCommand.d.ts +6 -21
  181. package/dist-types/commands/CreateLogStreamCommand.d.ts +6 -21
  182. package/dist-types/commands/DeleteAccountPolicyCommand.d.ts +6 -21
  183. package/dist-types/commands/DeleteDataProtectionPolicyCommand.d.ts +6 -21
  184. package/dist-types/commands/DeleteDeliveryCommand.d.ts +6 -21
  185. package/dist-types/commands/DeleteDeliveryDestinationCommand.d.ts +6 -21
  186. package/dist-types/commands/DeleteDeliveryDestinationPolicyCommand.d.ts +6 -21
  187. package/dist-types/commands/DeleteDeliverySourceCommand.d.ts +6 -21
  188. package/dist-types/commands/DeleteDestinationCommand.d.ts +6 -21
  189. package/dist-types/commands/DeleteLogAnomalyDetectorCommand.d.ts +6 -21
  190. package/dist-types/commands/DeleteLogGroupCommand.d.ts +6 -21
  191. package/dist-types/commands/DeleteLogStreamCommand.d.ts +6 -21
  192. package/dist-types/commands/DeleteMetricFilterCommand.d.ts +6 -21
  193. package/dist-types/commands/DeleteQueryDefinitionCommand.d.ts +6 -21
  194. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +6 -21
  195. package/dist-types/commands/DeleteRetentionPolicyCommand.d.ts +6 -21
  196. package/dist-types/commands/DeleteSubscriptionFilterCommand.d.ts +6 -21
  197. package/dist-types/commands/DescribeAccountPoliciesCommand.d.ts +6 -21
  198. package/dist-types/commands/DescribeDeliveriesCommand.d.ts +6 -21
  199. package/dist-types/commands/DescribeDeliveryDestinationsCommand.d.ts +6 -21
  200. package/dist-types/commands/DescribeDeliverySourcesCommand.d.ts +6 -21
  201. package/dist-types/commands/DescribeDestinationsCommand.d.ts +6 -21
  202. package/dist-types/commands/DescribeExportTasksCommand.d.ts +6 -21
  203. package/dist-types/commands/DescribeLogGroupsCommand.d.ts +6 -21
  204. package/dist-types/commands/DescribeLogStreamsCommand.d.ts +6 -21
  205. package/dist-types/commands/DescribeMetricFiltersCommand.d.ts +6 -21
  206. package/dist-types/commands/DescribeQueriesCommand.d.ts +6 -21
  207. package/dist-types/commands/DescribeQueryDefinitionsCommand.d.ts +6 -21
  208. package/dist-types/commands/DescribeResourcePoliciesCommand.d.ts +6 -21
  209. package/dist-types/commands/DescribeSubscriptionFiltersCommand.d.ts +6 -21
  210. package/dist-types/commands/DisassociateKmsKeyCommand.d.ts +6 -21
  211. package/dist-types/commands/FilterLogEventsCommand.d.ts +6 -21
  212. package/dist-types/commands/GetDataProtectionPolicyCommand.d.ts +6 -21
  213. package/dist-types/commands/GetDeliveryCommand.d.ts +6 -21
  214. package/dist-types/commands/GetDeliveryDestinationCommand.d.ts +6 -21
  215. package/dist-types/commands/GetDeliveryDestinationPolicyCommand.d.ts +6 -21
  216. package/dist-types/commands/GetDeliverySourceCommand.d.ts +6 -21
  217. package/dist-types/commands/GetLogAnomalyDetectorCommand.d.ts +6 -21
  218. package/dist-types/commands/GetLogEventsCommand.d.ts +6 -21
  219. package/dist-types/commands/GetLogGroupFieldsCommand.d.ts +6 -21
  220. package/dist-types/commands/GetLogRecordCommand.d.ts +6 -21
  221. package/dist-types/commands/GetQueryResultsCommand.d.ts +6 -21
  222. package/dist-types/commands/ListAnomaliesCommand.d.ts +6 -21
  223. package/dist-types/commands/ListLogAnomalyDetectorsCommand.d.ts +6 -21
  224. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
  225. package/dist-types/commands/ListTagsLogGroupCommand.d.ts +6 -21
  226. package/dist-types/commands/PutAccountPolicyCommand.d.ts +6 -21
  227. package/dist-types/commands/PutDataProtectionPolicyCommand.d.ts +6 -21
  228. package/dist-types/commands/PutDeliveryDestinationCommand.d.ts +6 -21
  229. package/dist-types/commands/PutDeliveryDestinationPolicyCommand.d.ts +6 -21
  230. package/dist-types/commands/PutDeliverySourceCommand.d.ts +6 -21
  231. package/dist-types/commands/PutDestinationCommand.d.ts +6 -21
  232. package/dist-types/commands/PutDestinationPolicyCommand.d.ts +6 -21
  233. package/dist-types/commands/PutLogEventsCommand.d.ts +6 -21
  234. package/dist-types/commands/PutMetricFilterCommand.d.ts +6 -21
  235. package/dist-types/commands/PutQueryDefinitionCommand.d.ts +6 -21
  236. package/dist-types/commands/PutResourcePolicyCommand.d.ts +6 -21
  237. package/dist-types/commands/PutRetentionPolicyCommand.d.ts +6 -21
  238. package/dist-types/commands/PutSubscriptionFilterCommand.d.ts +6 -21
  239. package/dist-types/commands/StartLiveTailCommand.d.ts +6 -21
  240. package/dist-types/commands/StartQueryCommand.d.ts +6 -21
  241. package/dist-types/commands/StopQueryCommand.d.ts +6 -21
  242. package/dist-types/commands/TagLogGroupCommand.d.ts +6 -21
  243. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  244. package/dist-types/commands/TestMetricFilterCommand.d.ts +6 -21
  245. package/dist-types/commands/UntagLogGroupCommand.d.ts +6 -21
  246. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  247. package/dist-types/commands/UpdateAnomalyCommand.d.ts +6 -21
  248. package/dist-types/commands/UpdateLogAnomalyDetectorCommand.d.ts +6 -21
  249. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  250. package/dist-types/pagination/DescribeDeliveriesPaginator.d.ts +1 -1
  251. package/dist-types/pagination/DescribeDeliveryDestinationsPaginator.d.ts +1 -1
  252. package/dist-types/pagination/DescribeDeliverySourcesPaginator.d.ts +1 -1
  253. package/dist-types/pagination/DescribeDestinationsPaginator.d.ts +1 -1
  254. package/dist-types/pagination/DescribeLogGroupsPaginator.d.ts +1 -1
  255. package/dist-types/pagination/DescribeLogStreamsPaginator.d.ts +1 -1
  256. package/dist-types/pagination/DescribeMetricFiltersPaginator.d.ts +1 -1
  257. package/dist-types/pagination/DescribeSubscriptionFiltersPaginator.d.ts +1 -1
  258. package/dist-types/pagination/FilterLogEventsPaginator.d.ts +1 -1
  259. package/dist-types/pagination/GetLogEventsPaginator.d.ts +1 -1
  260. package/dist-types/pagination/ListAnomaliesPaginator.d.ts +1 -1
  261. package/dist-types/pagination/ListLogAnomalyDetectorsPaginator.d.ts +1 -1
  262. package/dist-types/ts3.4/commands/AssociateKmsKeyCommand.d.ts +14 -23
  263. package/dist-types/ts3.4/commands/CancelExportTaskCommand.d.ts +14 -23
  264. package/dist-types/ts3.4/commands/CreateDeliveryCommand.d.ts +14 -23
  265. package/dist-types/ts3.4/commands/CreateExportTaskCommand.d.ts +14 -23
  266. package/dist-types/ts3.4/commands/CreateLogAnomalyDetectorCommand.d.ts +12 -24
  267. package/dist-types/ts3.4/commands/CreateLogGroupCommand.d.ts +14 -23
  268. package/dist-types/ts3.4/commands/CreateLogStreamCommand.d.ts +14 -23
  269. package/dist-types/ts3.4/commands/DeleteAccountPolicyCommand.d.ts +14 -23
  270. package/dist-types/ts3.4/commands/DeleteDataProtectionPolicyCommand.d.ts +12 -24
  271. package/dist-types/ts3.4/commands/DeleteDeliveryCommand.d.ts +14 -23
  272. package/dist-types/ts3.4/commands/DeleteDeliveryDestinationCommand.d.ts +12 -24
  273. package/dist-types/ts3.4/commands/DeleteDeliveryDestinationPolicyCommand.d.ts +12 -24
  274. package/dist-types/ts3.4/commands/DeleteDeliverySourceCommand.d.ts +12 -24
  275. package/dist-types/ts3.4/commands/DeleteDestinationCommand.d.ts +14 -23
  276. package/dist-types/ts3.4/commands/DeleteLogAnomalyDetectorCommand.d.ts +12 -24
  277. package/dist-types/ts3.4/commands/DeleteLogGroupCommand.d.ts +14 -23
  278. package/dist-types/ts3.4/commands/DeleteLogStreamCommand.d.ts +14 -23
  279. package/dist-types/ts3.4/commands/DeleteMetricFilterCommand.d.ts +14 -23
  280. package/dist-types/ts3.4/commands/DeleteQueryDefinitionCommand.d.ts +12 -24
  281. package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +12 -24
  282. package/dist-types/ts3.4/commands/DeleteRetentionPolicyCommand.d.ts +12 -24
  283. package/dist-types/ts3.4/commands/DeleteSubscriptionFilterCommand.d.ts +12 -24
  284. package/dist-types/ts3.4/commands/DescribeAccountPoliciesCommand.d.ts +12 -24
  285. package/dist-types/ts3.4/commands/DescribeDeliveriesCommand.d.ts +14 -23
  286. package/dist-types/ts3.4/commands/DescribeDeliveryDestinationsCommand.d.ts +12 -24
  287. package/dist-types/ts3.4/commands/DescribeDeliverySourcesCommand.d.ts +12 -24
  288. package/dist-types/ts3.4/commands/DescribeDestinationsCommand.d.ts +12 -24
  289. package/dist-types/ts3.4/commands/DescribeExportTasksCommand.d.ts +14 -23
  290. package/dist-types/ts3.4/commands/DescribeLogGroupsCommand.d.ts +14 -23
  291. package/dist-types/ts3.4/commands/DescribeLogStreamsCommand.d.ts +14 -23
  292. package/dist-types/ts3.4/commands/DescribeMetricFiltersCommand.d.ts +12 -24
  293. package/dist-types/ts3.4/commands/DescribeQueriesCommand.d.ts +14 -23
  294. package/dist-types/ts3.4/commands/DescribeQueryDefinitionsCommand.d.ts +12 -24
  295. package/dist-types/ts3.4/commands/DescribeResourcePoliciesCommand.d.ts +12 -24
  296. package/dist-types/ts3.4/commands/DescribeSubscriptionFiltersCommand.d.ts +12 -24
  297. package/dist-types/ts3.4/commands/DisassociateKmsKeyCommand.d.ts +14 -23
  298. package/dist-types/ts3.4/commands/FilterLogEventsCommand.d.ts +14 -23
  299. package/dist-types/ts3.4/commands/GetDataProtectionPolicyCommand.d.ts +12 -24
  300. package/dist-types/ts3.4/commands/GetDeliveryCommand.d.ts +14 -23
  301. package/dist-types/ts3.4/commands/GetDeliveryDestinationCommand.d.ts +12 -24
  302. package/dist-types/ts3.4/commands/GetDeliveryDestinationPolicyCommand.d.ts +12 -24
  303. package/dist-types/ts3.4/commands/GetDeliverySourceCommand.d.ts +14 -23
  304. package/dist-types/ts3.4/commands/GetLogAnomalyDetectorCommand.d.ts +12 -24
  305. package/dist-types/ts3.4/commands/GetLogEventsCommand.d.ts +14 -23
  306. package/dist-types/ts3.4/commands/GetLogGroupFieldsCommand.d.ts +14 -23
  307. package/dist-types/ts3.4/commands/GetLogRecordCommand.d.ts +14 -23
  308. package/dist-types/ts3.4/commands/GetQueryResultsCommand.d.ts +14 -23
  309. package/dist-types/ts3.4/commands/ListAnomaliesCommand.d.ts +14 -23
  310. package/dist-types/ts3.4/commands/ListLogAnomalyDetectorsCommand.d.ts +12 -24
  311. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
  312. package/dist-types/ts3.4/commands/ListTagsLogGroupCommand.d.ts +14 -23
  313. package/dist-types/ts3.4/commands/PutAccountPolicyCommand.d.ts +14 -23
  314. package/dist-types/ts3.4/commands/PutDataProtectionPolicyCommand.d.ts +12 -24
  315. package/dist-types/ts3.4/commands/PutDeliveryDestinationCommand.d.ts +12 -24
  316. package/dist-types/ts3.4/commands/PutDeliveryDestinationPolicyCommand.d.ts +12 -24
  317. package/dist-types/ts3.4/commands/PutDeliverySourceCommand.d.ts +14 -23
  318. package/dist-types/ts3.4/commands/PutDestinationCommand.d.ts +14 -23
  319. package/dist-types/ts3.4/commands/PutDestinationPolicyCommand.d.ts +12 -24
  320. package/dist-types/ts3.4/commands/PutLogEventsCommand.d.ts +14 -23
  321. package/dist-types/ts3.4/commands/PutMetricFilterCommand.d.ts +14 -23
  322. package/dist-types/ts3.4/commands/PutQueryDefinitionCommand.d.ts +14 -23
  323. package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +14 -23
  324. package/dist-types/ts3.4/commands/PutRetentionPolicyCommand.d.ts +14 -23
  325. package/dist-types/ts3.4/commands/PutSubscriptionFilterCommand.d.ts +12 -24
  326. package/dist-types/ts3.4/commands/StartLiveTailCommand.d.ts +14 -23
  327. package/dist-types/ts3.4/commands/StartQueryCommand.d.ts +14 -23
  328. package/dist-types/ts3.4/commands/StopQueryCommand.d.ts +14 -23
  329. package/dist-types/ts3.4/commands/TagLogGroupCommand.d.ts +14 -23
  330. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  331. package/dist-types/ts3.4/commands/TestMetricFilterCommand.d.ts +14 -23
  332. package/dist-types/ts3.4/commands/UntagLogGroupCommand.d.ts +14 -23
  333. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  334. package/dist-types/ts3.4/commands/UpdateAnomalyCommand.d.ts +14 -23
  335. package/dist-types/ts3.4/commands/UpdateLogAnomalyDetectorCommand.d.ts +12 -24
  336. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  337. package/dist-types/ts3.4/pagination/DescribeDeliveriesPaginator.d.ts +3 -3
  338. package/dist-types/ts3.4/pagination/DescribeDeliveryDestinationsPaginator.d.ts +3 -3
  339. package/dist-types/ts3.4/pagination/DescribeDeliverySourcesPaginator.d.ts +3 -3
  340. package/dist-types/ts3.4/pagination/DescribeDestinationsPaginator.d.ts +3 -3
  341. package/dist-types/ts3.4/pagination/DescribeLogGroupsPaginator.d.ts +3 -3
  342. package/dist-types/ts3.4/pagination/DescribeLogStreamsPaginator.d.ts +3 -3
  343. package/dist-types/ts3.4/pagination/DescribeMetricFiltersPaginator.d.ts +3 -3
  344. package/dist-types/ts3.4/pagination/DescribeSubscriptionFiltersPaginator.d.ts +3 -3
  345. package/dist-types/ts3.4/pagination/FilterLogEventsPaginator.d.ts +3 -3
  346. package/dist-types/ts3.4/pagination/GetLogEventsPaginator.d.ts +3 -3
  347. package/dist-types/ts3.4/pagination/ListAnomaliesPaginator.d.ts +3 -3
  348. package/dist-types/ts3.4/pagination/ListLogAnomalyDetectorsPaginator.d.ts +3 -3
  349. package/package.json +11 -10
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UpdateLogAnomalyDetectorCommand, se_UpdateLogAnomalyDetectorCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class UpdateLogAnomalyDetectorCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateLogAnomalyDetectorCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "CloudWatchLogsClient";
26
- const commandName = "UpdateLogAnomalyDetectorCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "Logs_20140328",
35
- operation: "UpdateLogAnomalyDetector",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UpdateLogAnomalyDetectorCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateLogAnomalyDetectorCommand(output, context);
46
- }
7
+ export class UpdateLogAnomalyDetectorCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("Logs_20140328", "UpdateLogAnomalyDetector", {})
19
+ .n("CloudWatchLogsClient", "UpdateLogAnomalyDetectorCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateLogAnomalyDetectorCommand)
22
+ .de(de_UpdateLogAnomalyDetectorCommand)
23
+ .build() {
47
24
  }
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
6
6
  defaultSigningName: "logs",
7
7
  };
8
8
  };
9
+ export const commonParams = {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CloudWatchLogsClient } from "../CloudWatchLogsClient";
2
3
  import { DescribeDeliveriesCommand, } from "../commands/DescribeDeliveriesCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribeDeliveriesCommand(input), ...args);
5
- };
6
- export async function* paginateDescribeDeliveries(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["limit"] = config.pageSize;
13
- if (config.client instanceof CloudWatchLogsClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CloudWatchLogs | CloudWatchLogsClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateDescribeDeliveries = createPaginator(CloudWatchLogsClient, DescribeDeliveriesCommand, "nextToken", "nextToken", "limit");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CloudWatchLogsClient } from "../CloudWatchLogsClient";
2
3
  import { DescribeDeliveryDestinationsCommand, } from "../commands/DescribeDeliveryDestinationsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribeDeliveryDestinationsCommand(input), ...args);
5
- };
6
- export async function* paginateDescribeDeliveryDestinations(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["limit"] = config.pageSize;
13
- if (config.client instanceof CloudWatchLogsClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CloudWatchLogs | CloudWatchLogsClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateDescribeDeliveryDestinations = createPaginator(CloudWatchLogsClient, DescribeDeliveryDestinationsCommand, "nextToken", "nextToken", "limit");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CloudWatchLogsClient } from "../CloudWatchLogsClient";
2
3
  import { DescribeDeliverySourcesCommand, } from "../commands/DescribeDeliverySourcesCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribeDeliverySourcesCommand(input), ...args);
5
- };
6
- export async function* paginateDescribeDeliverySources(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["limit"] = config.pageSize;
13
- if (config.client instanceof CloudWatchLogsClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CloudWatchLogs | CloudWatchLogsClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateDescribeDeliverySources = createPaginator(CloudWatchLogsClient, DescribeDeliverySourcesCommand, "nextToken", "nextToken", "limit");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CloudWatchLogsClient } from "../CloudWatchLogsClient";
2
3
  import { DescribeDestinationsCommand, } from "../commands/DescribeDestinationsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribeDestinationsCommand(input), ...args);
5
- };
6
- export async function* paginateDescribeDestinations(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["limit"] = config.pageSize;
13
- if (config.client instanceof CloudWatchLogsClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CloudWatchLogs | CloudWatchLogsClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateDescribeDestinations = createPaginator(CloudWatchLogsClient, DescribeDestinationsCommand, "nextToken", "nextToken", "limit");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CloudWatchLogsClient } from "../CloudWatchLogsClient";
2
3
  import { DescribeLogGroupsCommand, } from "../commands/DescribeLogGroupsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribeLogGroupsCommand(input), ...args);
5
- };
6
- export async function* paginateDescribeLogGroups(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["limit"] = config.pageSize;
13
- if (config.client instanceof CloudWatchLogsClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CloudWatchLogs | CloudWatchLogsClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateDescribeLogGroups = createPaginator(CloudWatchLogsClient, DescribeLogGroupsCommand, "nextToken", "nextToken", "limit");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CloudWatchLogsClient } from "../CloudWatchLogsClient";
2
3
  import { DescribeLogStreamsCommand, } from "../commands/DescribeLogStreamsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribeLogStreamsCommand(input), ...args);
5
- };
6
- export async function* paginateDescribeLogStreams(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["limit"] = config.pageSize;
13
- if (config.client instanceof CloudWatchLogsClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CloudWatchLogs | CloudWatchLogsClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateDescribeLogStreams = createPaginator(CloudWatchLogsClient, DescribeLogStreamsCommand, "nextToken", "nextToken", "limit");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CloudWatchLogsClient } from "../CloudWatchLogsClient";
2
3
  import { DescribeMetricFiltersCommand, } from "../commands/DescribeMetricFiltersCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribeMetricFiltersCommand(input), ...args);
5
- };
6
- export async function* paginateDescribeMetricFilters(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["limit"] = config.pageSize;
13
- if (config.client instanceof CloudWatchLogsClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CloudWatchLogs | CloudWatchLogsClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateDescribeMetricFilters = createPaginator(CloudWatchLogsClient, DescribeMetricFiltersCommand, "nextToken", "nextToken", "limit");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CloudWatchLogsClient } from "../CloudWatchLogsClient";
2
3
  import { DescribeSubscriptionFiltersCommand, } from "../commands/DescribeSubscriptionFiltersCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribeSubscriptionFiltersCommand(input), ...args);
5
- };
6
- export async function* paginateDescribeSubscriptionFilters(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["limit"] = config.pageSize;
13
- if (config.client instanceof CloudWatchLogsClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CloudWatchLogs | CloudWatchLogsClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateDescribeSubscriptionFilters = createPaginator(CloudWatchLogsClient, DescribeSubscriptionFiltersCommand, "nextToken", "nextToken", "limit");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CloudWatchLogsClient } from "../CloudWatchLogsClient";
2
3
  import { FilterLogEventsCommand, } from "../commands/FilterLogEventsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new FilterLogEventsCommand(input), ...args);
5
- };
6
- export async function* paginateFilterLogEvents(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["limit"] = config.pageSize;
13
- if (config.client instanceof CloudWatchLogsClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CloudWatchLogs | CloudWatchLogsClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateFilterLogEvents = createPaginator(CloudWatchLogsClient, FilterLogEventsCommand, "nextToken", "nextToken", "limit");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CloudWatchLogsClient } from "../CloudWatchLogsClient";
2
3
  import { GetLogEventsCommand, } from "../commands/GetLogEventsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new GetLogEventsCommand(input), ...args);
5
- };
6
- export async function* paginateGetLogEvents(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["limit"] = config.pageSize;
13
- if (config.client instanceof CloudWatchLogsClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CloudWatchLogs | CloudWatchLogsClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextForwardToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateGetLogEvents = createPaginator(CloudWatchLogsClient, GetLogEventsCommand, "nextToken", "nextForwardToken", "limit");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CloudWatchLogsClient } from "../CloudWatchLogsClient";
2
3
  import { ListAnomaliesCommand, } from "../commands/ListAnomaliesCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListAnomaliesCommand(input), ...args);
5
- };
6
- export async function* paginateListAnomalies(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["limit"] = config.pageSize;
13
- if (config.client instanceof CloudWatchLogsClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CloudWatchLogs | CloudWatchLogsClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListAnomalies = createPaginator(CloudWatchLogsClient, ListAnomaliesCommand, "nextToken", "nextToken", "limit");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CloudWatchLogsClient } from "../CloudWatchLogsClient";
2
3
  import { ListLogAnomalyDetectorsCommand, } from "../commands/ListLogAnomalyDetectorsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListLogAnomalyDetectorsCommand(input), ...args);
5
- };
6
- export async function* paginateListLogAnomalyDetectors(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["limit"] = config.pageSize;
13
- if (config.client instanceof CloudWatchLogsClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CloudWatchLogs | CloudWatchLogsClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListLogAnomalyDetectors = createPaginator(CloudWatchLogsClient, ListLogAnomalyDetectorsCommand, "nextToken", "nextToken", "limit");
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient";
5
4
  import { AssociateKmsKeyRequest } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface AssociateKmsKeyCommandInput extends AssociateKmsKeyRequest {
21
20
  */
22
21
  export interface AssociateKmsKeyCommandOutput extends __MetadataBearer {
23
22
  }
23
+ declare const AssociateKmsKeyCommand_base: {
24
+ new (input: AssociateKmsKeyCommandInput): import("@smithy/smithy-client").CommandImpl<AssociateKmsKeyCommandInput, AssociateKmsKeyCommandOutput, CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Associates the specified KMS key with either one log group in the account, or with all stored
@@ -106,23 +109,5 @@ export interface AssociateKmsKeyCommandOutput extends __MetadataBearer {
106
109
  * <p>Base exception class for all service exceptions from CloudWatchLogs service.</p>
107
110
  *
108
111
  */
109
- export declare class AssociateKmsKeyCommand extends $Command<AssociateKmsKeyCommandInput, AssociateKmsKeyCommandOutput, CloudWatchLogsClientResolvedConfig> {
110
- readonly input: AssociateKmsKeyCommandInput;
111
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
112
- /**
113
- * @public
114
- */
115
- constructor(input: AssociateKmsKeyCommandInput);
116
- /**
117
- * @internal
118
- */
119
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<AssociateKmsKeyCommandInput, AssociateKmsKeyCommandOutput>;
120
- /**
121
- * @internal
122
- */
123
- private serialize;
124
- /**
125
- * @internal
126
- */
127
- private deserialize;
112
+ export declare class AssociateKmsKeyCommand extends AssociateKmsKeyCommand_base {
128
113
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient";
5
4
  import { CancelExportTaskRequest } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CancelExportTaskCommandInput extends CancelExportTaskRequest {
21
20
  */
22
21
  export interface CancelExportTaskCommandOutput extends __MetadataBearer {
23
22
  }
23
+ declare const CancelExportTaskCommand_base: {
24
+ new (input: CancelExportTaskCommandInput): import("@smithy/smithy-client").CommandImpl<CancelExportTaskCommandInput, CancelExportTaskCommandOutput, CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Cancels the specified export task.</p>
@@ -62,23 +65,5 @@ export interface CancelExportTaskCommandOutput extends __MetadataBearer {
62
65
  * <p>Base exception class for all service exceptions from CloudWatchLogs service.</p>
63
66
  *
64
67
  */
65
- export declare class CancelExportTaskCommand extends $Command<CancelExportTaskCommandInput, CancelExportTaskCommandOutput, CloudWatchLogsClientResolvedConfig> {
66
- readonly input: CancelExportTaskCommandInput;
67
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
68
- /**
69
- * @public
70
- */
71
- constructor(input: CancelExportTaskCommandInput);
72
- /**
73
- * @internal
74
- */
75
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CancelExportTaskCommandInput, CancelExportTaskCommandOutput>;
76
- /**
77
- * @internal
78
- */
79
- private serialize;
80
- /**
81
- * @internal
82
- */
83
- private deserialize;
68
+ export declare class CancelExportTaskCommand extends CancelExportTaskCommand_base {
84
69
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient";
5
4
  import { CreateDeliveryRequest, CreateDeliveryResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreateDeliveryCommandInput extends CreateDeliveryRequest {
21
20
  */
22
21
  export interface CreateDeliveryCommandOutput extends CreateDeliveryResponse, __MetadataBearer {
23
22
  }
23
+ declare const CreateDeliveryCommand_base: {
24
+ new (input: CreateDeliveryCommandInput): import("@smithy/smithy-client").CommandImpl<CreateDeliveryCommandInput, CreateDeliveryCommandOutput, CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Creates a <i>delivery</i>. A delivery is a connection between a logical <i>delivery source</i> and a logical
@@ -120,23 +123,5 @@ export interface CreateDeliveryCommandOutput extends CreateDeliveryResponse, __M
120
123
  * <p>Base exception class for all service exceptions from CloudWatchLogs service.</p>
121
124
  *
122
125
  */
123
- export declare class CreateDeliveryCommand extends $Command<CreateDeliveryCommandInput, CreateDeliveryCommandOutput, CloudWatchLogsClientResolvedConfig> {
124
- readonly input: CreateDeliveryCommandInput;
125
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
126
- /**
127
- * @public
128
- */
129
- constructor(input: CreateDeliveryCommandInput);
130
- /**
131
- * @internal
132
- */
133
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateDeliveryCommandInput, CreateDeliveryCommandOutput>;
134
- /**
135
- * @internal
136
- */
137
- private serialize;
138
- /**
139
- * @internal
140
- */
141
- private deserialize;
126
+ export declare class CreateDeliveryCommand extends CreateDeliveryCommand_base {
142
127
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient";
5
4
  import { CreateExportTaskRequest, CreateExportTaskResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreateExportTaskCommandInput extends CreateExportTaskRequest {
21
20
  */
22
21
  export interface CreateExportTaskCommandOutput extends CreateExportTaskResponse, __MetadataBearer {
23
22
  }
23
+ declare const CreateExportTaskCommand_base: {
24
+ new (input: CreateExportTaskCommandInput): import("@smithy/smithy-client").CommandImpl<CreateExportTaskCommandInput, CreateExportTaskCommandOutput, CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Creates an export task so that you can efficiently export data from a log group to an
@@ -94,23 +97,5 @@ export interface CreateExportTaskCommandOutput extends CreateExportTaskResponse,
94
97
  * <p>Base exception class for all service exceptions from CloudWatchLogs service.</p>
95
98
  *
96
99
  */
97
- export declare class CreateExportTaskCommand extends $Command<CreateExportTaskCommandInput, CreateExportTaskCommandOutput, CloudWatchLogsClientResolvedConfig> {
98
- readonly input: CreateExportTaskCommandInput;
99
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
100
- /**
101
- * @public
102
- */
103
- constructor(input: CreateExportTaskCommandInput);
104
- /**
105
- * @internal
106
- */
107
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateExportTaskCommandInput, CreateExportTaskCommandOutput>;
108
- /**
109
- * @internal
110
- */
111
- private serialize;
112
- /**
113
- * @internal
114
- */
115
- private deserialize;
100
+ export declare class CreateExportTaskCommand extends CreateExportTaskCommand_base {
116
101
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient";
5
4
  import { CreateLogAnomalyDetectorRequest, CreateLogAnomalyDetectorResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreateLogAnomalyDetectorCommandInput extends CreateLogAnomalyDe
21
20
  */
22
21
  export interface CreateLogAnomalyDetectorCommandOutput extends CreateLogAnomalyDetectorResponse, __MetadataBearer {
23
22
  }
23
+ declare const CreateLogAnomalyDetectorCommand_base: {
24
+ new (input: CreateLogAnomalyDetectorCommandInput): import("@smithy/smithy-client").CommandImpl<CreateLogAnomalyDetectorCommandInput, CreateLogAnomalyDetectorCommandOutput, CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Creates an <i>anomaly detector</i> that regularly scans one or more
@@ -107,23 +110,5 @@ export interface CreateLogAnomalyDetectorCommandOutput extends CreateLogAnomalyD
107
110
  * <p>Base exception class for all service exceptions from CloudWatchLogs service.</p>
108
111
  *
109
112
  */
110
- export declare class CreateLogAnomalyDetectorCommand extends $Command<CreateLogAnomalyDetectorCommandInput, CreateLogAnomalyDetectorCommandOutput, CloudWatchLogsClientResolvedConfig> {
111
- readonly input: CreateLogAnomalyDetectorCommandInput;
112
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
113
- /**
114
- * @public
115
- */
116
- constructor(input: CreateLogAnomalyDetectorCommandInput);
117
- /**
118
- * @internal
119
- */
120
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateLogAnomalyDetectorCommandInput, CreateLogAnomalyDetectorCommandOutput>;
121
- /**
122
- * @internal
123
- */
124
- private serialize;
125
- /**
126
- * @internal
127
- */
128
- private deserialize;
113
+ export declare class CreateLogAnomalyDetectorCommand extends CreateLogAnomalyDetectorCommand_base {
129
114
  }