@aws-sdk/client-cloudwatch-events 3.34.0 → 3.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (497) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/{dist/cjs → dist-cjs}/CloudWatchEvents.js +0 -24
  3. package/dist-cjs/CloudWatchEventsClient.js +35 -0
  4. package/{dist/cjs → dist-cjs}/commands/ActivateEventSourceCommand.js +2 -28
  5. package/{dist/cjs → dist-cjs}/commands/CancelReplayCommand.js +2 -27
  6. package/{dist/cjs → dist-cjs}/commands/CreateApiDestinationCommand.js +2 -28
  7. package/{dist/cjs → dist-cjs}/commands/CreateArchiveCommand.js +2 -31
  8. package/{dist/cjs → dist-cjs}/commands/CreateConnectionCommand.js +2 -28
  9. package/{dist/cjs → dist-cjs}/commands/CreateEventBusCommand.js +2 -29
  10. package/dist-cjs/commands/CreatePartnerEventSourceCommand.js +36 -0
  11. package/{dist/cjs → dist-cjs}/commands/DeactivateEventSourceCommand.js +2 -31
  12. package/{dist/cjs → dist-cjs}/commands/DeauthorizeConnectionCommand.js +2 -28
  13. package/{dist/cjs → dist-cjs}/commands/DeleteApiDestinationCommand.js +2 -27
  14. package/{dist/cjs → dist-cjs}/commands/DeleteArchiveCommand.js +2 -27
  15. package/{dist/cjs → dist-cjs}/commands/DeleteConnectionCommand.js +2 -27
  16. package/{dist/cjs → dist-cjs}/commands/DeleteEventBusCommand.js +2 -28
  17. package/{dist/cjs → dist-cjs}/commands/DeletePartnerEventSourceCommand.js +2 -31
  18. package/dist-cjs/commands/DeleteRuleCommand.js +36 -0
  19. package/{dist/cjs → dist-cjs}/commands/DescribeApiDestinationCommand.js +2 -27
  20. package/{dist/cjs → dist-cjs}/commands/DescribeArchiveCommand.js +2 -27
  21. package/{dist/cjs → dist-cjs}/commands/DescribeConnectionCommand.js +2 -27
  22. package/dist-cjs/commands/DescribeEventBusCommand.js +36 -0
  23. package/{dist/cjs → dist-cjs}/commands/DescribeEventSourceCommand.js +2 -28
  24. package/{dist/cjs → dist-cjs}/commands/DescribePartnerEventSourceCommand.js +2 -30
  25. package/dist-cjs/commands/DescribeReplayCommand.js +36 -0
  26. package/{dist/cjs → dist-cjs}/commands/DescribeRuleCommand.js +2 -29
  27. package/{dist/cjs → dist-cjs}/commands/DisableRuleCommand.js +2 -31
  28. package/{dist/cjs → dist-cjs}/commands/EnableRuleCommand.js +2 -30
  29. package/{dist/cjs → dist-cjs}/commands/ListApiDestinationsCommand.js +2 -27
  30. package/{dist/cjs → dist-cjs}/commands/ListArchivesCommand.js +2 -28
  31. package/{dist/cjs → dist-cjs}/commands/ListConnectionsCommand.js +2 -27
  32. package/{dist/cjs → dist-cjs}/commands/ListEventBusesCommand.js +2 -28
  33. package/{dist/cjs → dist-cjs}/commands/ListEventSourcesCommand.js +2 -28
  34. package/{dist/cjs → dist-cjs}/commands/ListPartnerEventSourceAccountsCommand.js +2 -29
  35. package/{dist/cjs → dist-cjs}/commands/ListPartnerEventSourcesCommand.js +2 -28
  36. package/{dist/cjs → dist-cjs}/commands/ListReplaysCommand.js +2 -28
  37. package/{dist/cjs → dist-cjs}/commands/ListRuleNamesByTargetCommand.js +2 -28
  38. package/{dist/cjs → dist-cjs}/commands/ListRulesCommand.js +2 -31
  39. package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +2 -28
  40. package/{dist/cjs → dist-cjs}/commands/ListTargetsByRuleCommand.js +2 -27
  41. package/{dist/cjs → dist-cjs}/commands/PutEventsCommand.js +2 -27
  42. package/{dist/cjs → dist-cjs}/commands/PutPartnerEventsCommand.js +2 -28
  43. package/dist-cjs/commands/PutPermissionCommand.js +36 -0
  44. package/dist-cjs/commands/PutRuleCommand.js +36 -0
  45. package/dist-cjs/commands/PutTargetsCommand.js +36 -0
  46. package/{dist/cjs → dist-cjs}/commands/RemovePermissionCommand.js +2 -30
  47. package/{dist/cjs → dist-cjs}/commands/RemoveTargetsCommand.js +2 -35
  48. package/dist-cjs/commands/StartReplayCommand.js +36 -0
  49. package/dist-cjs/commands/TagResourceCommand.js +36 -0
  50. package/{dist/cjs → dist-cjs}/commands/TestEventPatternCommand.js +2 -31
  51. package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +2 -28
  52. package/{dist/cjs → dist-cjs}/commands/UpdateApiDestinationCommand.js +2 -27
  53. package/{dist/cjs → dist-cjs}/commands/UpdateArchiveCommand.js +2 -27
  54. package/{dist/cjs → dist-cjs}/commands/UpdateConnectionCommand.js +2 -27
  55. package/{dist/cjs → dist-cjs}/endpoints.js +1 -2
  56. package/{dist/cjs → dist-cjs}/index.js +0 -1
  57. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  58. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -487
  59. package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -6
  60. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
  61. package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
  62. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
  63. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
  64. package/{dist/es → dist-es}/CloudWatchEvents.js +0 -1
  65. package/{dist/es → dist-es}/CloudWatchEventsClient.js +1 -2
  66. package/{dist/es → dist-es}/commands/ActivateEventSourceCommand.js +2 -3
  67. package/{dist/es → dist-es}/commands/CancelReplayCommand.js +2 -3
  68. package/{dist/es → dist-es}/commands/CreateApiDestinationCommand.js +2 -3
  69. package/{dist/es → dist-es}/commands/CreateArchiveCommand.js +2 -3
  70. package/{dist/es → dist-es}/commands/CreateConnectionCommand.js +2 -3
  71. package/{dist/es → dist-es}/commands/CreateEventBusCommand.js +2 -3
  72. package/{dist/es → dist-es}/commands/CreatePartnerEventSourceCommand.js +2 -3
  73. package/{dist/es → dist-es}/commands/DeactivateEventSourceCommand.js +2 -3
  74. package/{dist/es → dist-es}/commands/DeauthorizeConnectionCommand.js +2 -3
  75. package/{dist/es → dist-es}/commands/DeleteApiDestinationCommand.js +2 -3
  76. package/{dist/es → dist-es}/commands/DeleteArchiveCommand.js +2 -3
  77. package/{dist/es → dist-es}/commands/DeleteConnectionCommand.js +2 -3
  78. package/{dist/es → dist-es}/commands/DeleteEventBusCommand.js +2 -3
  79. package/{dist/es → dist-es}/commands/DeletePartnerEventSourceCommand.js +2 -3
  80. package/{dist/es → dist-es}/commands/DeleteRuleCommand.js +2 -3
  81. package/{dist/es → dist-es}/commands/DescribeApiDestinationCommand.js +2 -3
  82. package/{dist/es → dist-es}/commands/DescribeArchiveCommand.js +2 -3
  83. package/{dist/es → dist-es}/commands/DescribeConnectionCommand.js +2 -3
  84. package/{dist/es → dist-es}/commands/DescribeEventBusCommand.js +2 -3
  85. package/{dist/es → dist-es}/commands/DescribeEventSourceCommand.js +2 -3
  86. package/{dist/es → dist-es}/commands/DescribePartnerEventSourceCommand.js +2 -3
  87. package/{dist/es → dist-es}/commands/DescribeReplayCommand.js +2 -3
  88. package/{dist/es → dist-es}/commands/DescribeRuleCommand.js +2 -3
  89. package/{dist/es → dist-es}/commands/DisableRuleCommand.js +2 -3
  90. package/{dist/es → dist-es}/commands/EnableRuleCommand.js +2 -3
  91. package/{dist/es → dist-es}/commands/ListApiDestinationsCommand.js +2 -3
  92. package/{dist/es → dist-es}/commands/ListArchivesCommand.js +2 -3
  93. package/{dist/es → dist-es}/commands/ListConnectionsCommand.js +2 -3
  94. package/{dist/es → dist-es}/commands/ListEventBusesCommand.js +2 -3
  95. package/{dist/es → dist-es}/commands/ListEventSourcesCommand.js +2 -3
  96. package/{dist/es → dist-es}/commands/ListPartnerEventSourceAccountsCommand.js +2 -3
  97. package/{dist/es → dist-es}/commands/ListPartnerEventSourcesCommand.js +2 -3
  98. package/{dist/es → dist-es}/commands/ListReplaysCommand.js +2 -3
  99. package/{dist/es → dist-es}/commands/ListRuleNamesByTargetCommand.js +2 -3
  100. package/{dist/es → dist-es}/commands/ListRulesCommand.js +2 -3
  101. package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +2 -3
  102. package/{dist/es → dist-es}/commands/ListTargetsByRuleCommand.js +2 -3
  103. package/{dist/es → dist-es}/commands/PutEventsCommand.js +2 -3
  104. package/{dist/es → dist-es}/commands/PutPartnerEventsCommand.js +2 -3
  105. package/{dist/es → dist-es}/commands/PutPermissionCommand.js +2 -3
  106. package/{dist/es → dist-es}/commands/PutRuleCommand.js +2 -3
  107. package/{dist/es → dist-es}/commands/PutTargetsCommand.js +2 -3
  108. package/{dist/es → dist-es}/commands/RemovePermissionCommand.js +2 -3
  109. package/{dist/es → dist-es}/commands/RemoveTargetsCommand.js +2 -3
  110. package/{dist/es → dist-es}/commands/StartReplayCommand.js +2 -3
  111. package/{dist/es → dist-es}/commands/TagResourceCommand.js +2 -3
  112. package/{dist/es → dist-es}/commands/TestEventPatternCommand.js +2 -3
  113. package/{dist/es → dist-es}/commands/UntagResourceCommand.js +2 -3
  114. package/{dist/es → dist-es}/commands/UpdateApiDestinationCommand.js +2 -3
  115. package/{dist/es → dist-es}/commands/UpdateArchiveCommand.js +2 -3
  116. package/{dist/es → dist-es}/commands/UpdateConnectionCommand.js +2 -3
  117. package/{dist/es → dist-es}/endpoints.js +1 -2
  118. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  119. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  120. package/{dist/es → dist-es}/models/models_0.js +0 -1
  121. package/{dist/es → dist-es}/protocols/Aws_json1_1.js +0 -1
  122. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
  123. package/{dist/es → dist-es}/runtimeConfig.js +1 -2
  124. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
  125. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
  126. package/{dist/types → dist-types}/CloudWatchEvents.d.ts +1 -1
  127. package/{dist/types → dist-types}/CloudWatchEventsClient.d.ts +8 -8
  128. package/{dist/types → dist-types}/commands/ActivateEventSourceCommand.d.ts +2 -2
  129. package/{dist/types → dist-types}/commands/CancelReplayCommand.d.ts +2 -2
  130. package/{dist/types → dist-types}/commands/CreateApiDestinationCommand.d.ts +2 -2
  131. package/{dist/types → dist-types}/commands/CreateArchiveCommand.d.ts +2 -2
  132. package/{dist/types → dist-types}/commands/CreateConnectionCommand.d.ts +2 -2
  133. package/{dist/types → dist-types}/commands/CreateEventBusCommand.d.ts +2 -2
  134. package/{dist/types → dist-types}/commands/CreatePartnerEventSourceCommand.d.ts +2 -2
  135. package/{dist/types → dist-types}/commands/DeactivateEventSourceCommand.d.ts +2 -2
  136. package/{dist/types → dist-types}/commands/DeauthorizeConnectionCommand.d.ts +2 -2
  137. package/{dist/types → dist-types}/commands/DeleteApiDestinationCommand.d.ts +2 -2
  138. package/{dist/types → dist-types}/commands/DeleteArchiveCommand.d.ts +2 -2
  139. package/{dist/types → dist-types}/commands/DeleteConnectionCommand.d.ts +2 -2
  140. package/{dist/types → dist-types}/commands/DeleteEventBusCommand.d.ts +2 -2
  141. package/{dist/types → dist-types}/commands/DeletePartnerEventSourceCommand.d.ts +2 -2
  142. package/{dist/types → dist-types}/commands/DeleteRuleCommand.d.ts +2 -2
  143. package/{dist/types → dist-types}/commands/DescribeApiDestinationCommand.d.ts +2 -2
  144. package/{dist/types → dist-types}/commands/DescribeArchiveCommand.d.ts +2 -2
  145. package/{dist/types → dist-types}/commands/DescribeConnectionCommand.d.ts +2 -2
  146. package/{dist/types → dist-types}/commands/DescribeEventBusCommand.d.ts +2 -2
  147. package/{dist/types → dist-types}/commands/DescribeEventSourceCommand.d.ts +2 -2
  148. package/{dist/types → dist-types}/commands/DescribePartnerEventSourceCommand.d.ts +2 -2
  149. package/{dist/types → dist-types}/commands/DescribeReplayCommand.d.ts +2 -2
  150. package/{dist/types → dist-types}/commands/DescribeRuleCommand.d.ts +2 -2
  151. package/{dist/types → dist-types}/commands/DisableRuleCommand.d.ts +2 -2
  152. package/{dist/types → dist-types}/commands/EnableRuleCommand.d.ts +2 -2
  153. package/{dist/types → dist-types}/commands/ListApiDestinationsCommand.d.ts +2 -2
  154. package/{dist/types → dist-types}/commands/ListArchivesCommand.d.ts +2 -2
  155. package/{dist/types → dist-types}/commands/ListConnectionsCommand.d.ts +2 -2
  156. package/{dist/types → dist-types}/commands/ListEventBusesCommand.d.ts +2 -2
  157. package/{dist/types → dist-types}/commands/ListEventSourcesCommand.d.ts +2 -2
  158. package/{dist/types → dist-types}/commands/ListPartnerEventSourceAccountsCommand.d.ts +2 -2
  159. package/{dist/types → dist-types}/commands/ListPartnerEventSourcesCommand.d.ts +2 -2
  160. package/{dist/types → dist-types}/commands/ListReplaysCommand.d.ts +2 -2
  161. package/{dist/types → dist-types}/commands/ListRuleNamesByTargetCommand.d.ts +2 -2
  162. package/{dist/types → dist-types}/commands/ListRulesCommand.d.ts +2 -2
  163. package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +2 -2
  164. package/{dist/types → dist-types}/commands/ListTargetsByRuleCommand.d.ts +2 -2
  165. package/{dist/types → dist-types}/commands/PutEventsCommand.d.ts +2 -2
  166. package/{dist/types → dist-types}/commands/PutPartnerEventsCommand.d.ts +2 -2
  167. package/{dist/types → dist-types}/commands/PutPermissionCommand.d.ts +2 -2
  168. package/{dist/types → dist-types}/commands/PutRuleCommand.d.ts +2 -2
  169. package/{dist/types → dist-types}/commands/PutTargetsCommand.d.ts +2 -2
  170. package/{dist/types → dist-types}/commands/RemovePermissionCommand.d.ts +2 -2
  171. package/{dist/types → dist-types}/commands/RemoveTargetsCommand.d.ts +2 -2
  172. package/{dist/types → dist-types}/commands/StartReplayCommand.d.ts +2 -2
  173. package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +2 -2
  174. package/{dist/types → dist-types}/commands/TestEventPatternCommand.d.ts +2 -2
  175. package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +2 -2
  176. package/{dist/types → dist-types}/commands/UpdateApiDestinationCommand.d.ts +2 -2
  177. package/{dist/types → dist-types}/commands/UpdateArchiveCommand.d.ts +2 -2
  178. package/{dist/types → dist-types}/commands/UpdateConnectionCommand.d.ts +2 -2
  179. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  180. package/{index.ts → dist-types/index.d.ts} +0 -0
  181. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  182. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  183. package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +2 -2
  184. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
  185. package/{dist/types → dist-types}/runtimeConfig.d.ts +2 -4
  186. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
  187. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  188. package/dist-types/ts3.4/CloudWatchEvents.d.ts +260 -0
  189. package/{dist/types → dist-types}/ts3.4/CloudWatchEventsClient.d.ts +32 -117
  190. package/dist-types/ts3.4/commands/ActivateEventSourceCommand.d.ts +17 -0
  191. package/dist-types/ts3.4/commands/CancelReplayCommand.d.ts +17 -0
  192. package/dist-types/ts3.4/commands/CreateApiDestinationCommand.d.ts +17 -0
  193. package/dist-types/ts3.4/commands/CreateArchiveCommand.d.ts +17 -0
  194. package/dist-types/ts3.4/commands/CreateConnectionCommand.d.ts +17 -0
  195. package/dist-types/ts3.4/commands/CreateEventBusCommand.d.ts +17 -0
  196. package/dist-types/ts3.4/commands/CreatePartnerEventSourceCommand.d.ts +17 -0
  197. package/dist-types/ts3.4/commands/DeactivateEventSourceCommand.d.ts +17 -0
  198. package/dist-types/ts3.4/commands/DeauthorizeConnectionCommand.d.ts +17 -0
  199. package/{dist/types → dist-types}/ts3.4/commands/DeleteApiDestinationCommand.d.ts +4 -22
  200. package/dist-types/ts3.4/commands/DeleteArchiveCommand.d.ts +17 -0
  201. package/{dist/types → dist-types}/ts3.4/commands/DeleteConnectionCommand.d.ts +4 -22
  202. package/dist-types/ts3.4/commands/DeleteEventBusCommand.d.ts +17 -0
  203. package/dist-types/ts3.4/commands/DeletePartnerEventSourceCommand.d.ts +17 -0
  204. package/dist-types/ts3.4/commands/DeleteRuleCommand.d.ts +17 -0
  205. package/{dist/types → dist-types}/ts3.4/commands/DescribeApiDestinationCommand.d.ts +4 -22
  206. package/{dist/types → dist-types}/ts3.4/commands/DescribeArchiveCommand.d.ts +4 -22
  207. package/{dist/types → dist-types}/ts3.4/commands/DescribeConnectionCommand.d.ts +4 -22
  208. package/dist-types/ts3.4/commands/DescribeEventBusCommand.d.ts +17 -0
  209. package/dist-types/ts3.4/commands/DescribeEventSourceCommand.d.ts +17 -0
  210. package/dist-types/ts3.4/commands/DescribePartnerEventSourceCommand.d.ts +17 -0
  211. package/dist-types/ts3.4/commands/DescribeReplayCommand.d.ts +17 -0
  212. package/dist-types/ts3.4/commands/DescribeRuleCommand.d.ts +17 -0
  213. package/dist-types/ts3.4/commands/DisableRuleCommand.d.ts +17 -0
  214. package/dist-types/ts3.4/commands/EnableRuleCommand.d.ts +17 -0
  215. package/dist-types/ts3.4/commands/ListApiDestinationsCommand.d.ts +17 -0
  216. package/dist-types/ts3.4/commands/ListArchivesCommand.d.ts +17 -0
  217. package/dist-types/ts3.4/commands/ListConnectionsCommand.d.ts +17 -0
  218. package/dist-types/ts3.4/commands/ListEventBusesCommand.d.ts +17 -0
  219. package/dist-types/ts3.4/commands/ListEventSourcesCommand.d.ts +17 -0
  220. package/dist-types/ts3.4/commands/ListPartnerEventSourceAccountsCommand.d.ts +17 -0
  221. package/dist-types/ts3.4/commands/ListPartnerEventSourcesCommand.d.ts +17 -0
  222. package/dist-types/ts3.4/commands/ListReplaysCommand.d.ts +17 -0
  223. package/dist-types/ts3.4/commands/ListRuleNamesByTargetCommand.d.ts +17 -0
  224. package/dist-types/ts3.4/commands/ListRulesCommand.d.ts +17 -0
  225. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
  226. package/{dist/types → dist-types}/ts3.4/commands/ListTargetsByRuleCommand.d.ts +4 -22
  227. package/dist-types/ts3.4/commands/PutEventsCommand.d.ts +17 -0
  228. package/dist-types/ts3.4/commands/PutPartnerEventsCommand.d.ts +17 -0
  229. package/dist-types/ts3.4/commands/PutPermissionCommand.d.ts +17 -0
  230. package/dist-types/ts3.4/commands/PutRuleCommand.d.ts +17 -0
  231. package/dist-types/ts3.4/commands/PutTargetsCommand.d.ts +17 -0
  232. package/dist-types/ts3.4/commands/RemovePermissionCommand.d.ts +17 -0
  233. package/dist-types/ts3.4/commands/RemoveTargetsCommand.d.ts +17 -0
  234. package/dist-types/ts3.4/commands/StartReplayCommand.d.ts +17 -0
  235. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
  236. package/dist-types/ts3.4/commands/TestEventPatternCommand.d.ts +17 -0
  237. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
  238. package/{dist/types → dist-types}/ts3.4/commands/UpdateApiDestinationCommand.d.ts +4 -22
  239. package/dist-types/ts3.4/commands/UpdateArchiveCommand.d.ts +17 -0
  240. package/{dist/types → dist-types}/ts3.4/commands/UpdateConnectionCommand.d.ts +4 -22
  241. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  242. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  243. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  244. package/dist-types/ts3.4/models/models_0.d.ts +2143 -0
  245. package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +2 -2
  246. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
  247. package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +3 -7
  248. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
  249. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
  250. package/package.json +45 -42
  251. package/CloudWatchEvents.ts +0 -2165
  252. package/CloudWatchEventsClient.ts +0 -456
  253. package/commands/ActivateEventSourceCommand.ts +0 -95
  254. package/commands/CancelReplayCommand.ts +0 -94
  255. package/commands/CreateApiDestinationCommand.ts +0 -95
  256. package/commands/CreateArchiveCommand.ts +0 -98
  257. package/commands/CreateConnectionCommand.ts +0 -95
  258. package/commands/CreateEventBusCommand.ts +0 -96
  259. package/commands/CreatePartnerEventSourceCommand.ts +0 -117
  260. package/commands/DeactivateEventSourceCommand.ts +0 -98
  261. package/commands/DeauthorizeConnectionCommand.ts +0 -95
  262. package/commands/DeleteApiDestinationCommand.ts +0 -94
  263. package/commands/DeleteArchiveCommand.ts +0 -94
  264. package/commands/DeleteConnectionCommand.ts +0 -94
  265. package/commands/DeleteEventBusCommand.ts +0 -95
  266. package/commands/DeletePartnerEventSourceCommand.ts +0 -98
  267. package/commands/DeleteRuleCommand.ts +0 -107
  268. package/commands/DescribeApiDestinationCommand.ts +0 -94
  269. package/commands/DescribeArchiveCommand.ts +0 -94
  270. package/commands/DescribeConnectionCommand.ts +0 -94
  271. package/commands/DescribeEventBusCommand.ts +0 -100
  272. package/commands/DescribeEventSourceCommand.ts +0 -95
  273. package/commands/DescribePartnerEventSourceCommand.ts +0 -100
  274. package/commands/DescribeReplayCommand.ts +0 -102
  275. package/commands/DescribeRuleCommand.ts +0 -96
  276. package/commands/DisableRuleCommand.ts +0 -98
  277. package/commands/EnableRuleCommand.ts +0 -97
  278. package/commands/ListApiDestinationsCommand.ts +0 -94
  279. package/commands/ListArchivesCommand.ts +0 -95
  280. package/commands/ListConnectionsCommand.ts +0 -94
  281. package/commands/ListEventBusesCommand.ts +0 -95
  282. package/commands/ListEventSourcesCommand.ts +0 -95
  283. package/commands/ListPartnerEventSourceAccountsCommand.ts +0 -104
  284. package/commands/ListPartnerEventSourcesCommand.ts +0 -95
  285. package/commands/ListReplaysCommand.ts +0 -95
  286. package/commands/ListRuleNamesByTargetCommand.ts +0 -95
  287. package/commands/ListRulesCommand.ts +0 -95
  288. package/commands/ListTagsForResourceCommand.ts +0 -95
  289. package/commands/ListTargetsByRuleCommand.ts +0 -94
  290. package/commands/PutEventsCommand.ts +0 -91
  291. package/commands/PutPartnerEventsCommand.ts +0 -95
  292. package/commands/PutPermissionCommand.ts +0 -113
  293. package/commands/PutRuleCommand.ts +0 -137
  294. package/commands/PutTargetsCommand.ts +0 -259
  295. package/commands/RemovePermissionCommand.ts +0 -97
  296. package/commands/RemoveTargetsCommand.ts +0 -102
  297. package/commands/StartReplayCommand.ts +0 -102
  298. package/commands/TagResourceCommand.ts +0 -104
  299. package/commands/TestEventPatternCommand.ts +0 -98
  300. package/commands/UntagResourceCommand.ts +0 -95
  301. package/commands/UpdateApiDestinationCommand.ts +0 -94
  302. package/commands/UpdateArchiveCommand.ts +0 -94
  303. package/commands/UpdateConnectionCommand.ts +0 -94
  304. package/dist/cjs/CloudWatchEvents.js.map +0 -1
  305. package/dist/cjs/CloudWatchEventsClient.js +0 -64
  306. package/dist/cjs/CloudWatchEventsClient.js.map +0 -1
  307. package/dist/cjs/commands/ActivateEventSourceCommand.js.map +0 -1
  308. package/dist/cjs/commands/CancelReplayCommand.js.map +0 -1
  309. package/dist/cjs/commands/CreateApiDestinationCommand.js.map +0 -1
  310. package/dist/cjs/commands/CreateArchiveCommand.js.map +0 -1
  311. package/dist/cjs/commands/CreateConnectionCommand.js.map +0 -1
  312. package/dist/cjs/commands/CreateEventBusCommand.js.map +0 -1
  313. package/dist/cjs/commands/CreatePartnerEventSourceCommand.js +0 -84
  314. package/dist/cjs/commands/CreatePartnerEventSourceCommand.js.map +0 -1
  315. package/dist/cjs/commands/DeactivateEventSourceCommand.js.map +0 -1
  316. package/dist/cjs/commands/DeauthorizeConnectionCommand.js.map +0 -1
  317. package/dist/cjs/commands/DeleteApiDestinationCommand.js.map +0 -1
  318. package/dist/cjs/commands/DeleteArchiveCommand.js.map +0 -1
  319. package/dist/cjs/commands/DeleteConnectionCommand.js.map +0 -1
  320. package/dist/cjs/commands/DeleteEventBusCommand.js.map +0 -1
  321. package/dist/cjs/commands/DeletePartnerEventSourceCommand.js.map +0 -1
  322. package/dist/cjs/commands/DeleteRuleCommand.js +0 -74
  323. package/dist/cjs/commands/DeleteRuleCommand.js.map +0 -1
  324. package/dist/cjs/commands/DescribeApiDestinationCommand.js.map +0 -1
  325. package/dist/cjs/commands/DescribeArchiveCommand.js.map +0 -1
  326. package/dist/cjs/commands/DescribeConnectionCommand.js.map +0 -1
  327. package/dist/cjs/commands/DescribeEventBusCommand.js +0 -67
  328. package/dist/cjs/commands/DescribeEventBusCommand.js.map +0 -1
  329. package/dist/cjs/commands/DescribeEventSourceCommand.js.map +0 -1
  330. package/dist/cjs/commands/DescribePartnerEventSourceCommand.js.map +0 -1
  331. package/dist/cjs/commands/DescribeReplayCommand.js +0 -69
  332. package/dist/cjs/commands/DescribeReplayCommand.js.map +0 -1
  333. package/dist/cjs/commands/DescribeRuleCommand.js.map +0 -1
  334. package/dist/cjs/commands/DisableRuleCommand.js.map +0 -1
  335. package/dist/cjs/commands/EnableRuleCommand.js.map +0 -1
  336. package/dist/cjs/commands/ListApiDestinationsCommand.js.map +0 -1
  337. package/dist/cjs/commands/ListArchivesCommand.js.map +0 -1
  338. package/dist/cjs/commands/ListConnectionsCommand.js.map +0 -1
  339. package/dist/cjs/commands/ListEventBusesCommand.js.map +0 -1
  340. package/dist/cjs/commands/ListEventSourcesCommand.js.map +0 -1
  341. package/dist/cjs/commands/ListPartnerEventSourceAccountsCommand.js.map +0 -1
  342. package/dist/cjs/commands/ListPartnerEventSourcesCommand.js.map +0 -1
  343. package/dist/cjs/commands/ListReplaysCommand.js.map +0 -1
  344. package/dist/cjs/commands/ListRuleNamesByTargetCommand.js.map +0 -1
  345. package/dist/cjs/commands/ListRulesCommand.js.map +0 -1
  346. package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
  347. package/dist/cjs/commands/ListTargetsByRuleCommand.js.map +0 -1
  348. package/dist/cjs/commands/PutEventsCommand.js.map +0 -1
  349. package/dist/cjs/commands/PutPartnerEventsCommand.js.map +0 -1
  350. package/dist/cjs/commands/PutPermissionCommand.js +0 -80
  351. package/dist/cjs/commands/PutPermissionCommand.js.map +0 -1
  352. package/dist/cjs/commands/PutRuleCommand.js +0 -107
  353. package/dist/cjs/commands/PutRuleCommand.js.map +0 -1
  354. package/dist/cjs/commands/PutTargetsCommand.js +0 -226
  355. package/dist/cjs/commands/PutTargetsCommand.js.map +0 -1
  356. package/dist/cjs/commands/RemovePermissionCommand.js.map +0 -1
  357. package/dist/cjs/commands/RemoveTargetsCommand.js.map +0 -1
  358. package/dist/cjs/commands/StartReplayCommand.js +0 -69
  359. package/dist/cjs/commands/StartReplayCommand.js.map +0 -1
  360. package/dist/cjs/commands/TagResourceCommand.js +0 -71
  361. package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
  362. package/dist/cjs/commands/TestEventPatternCommand.js.map +0 -1
  363. package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
  364. package/dist/cjs/commands/UpdateApiDestinationCommand.js.map +0 -1
  365. package/dist/cjs/commands/UpdateArchiveCommand.js.map +0 -1
  366. package/dist/cjs/commands/UpdateConnectionCommand.js.map +0 -1
  367. package/dist/cjs/endpoints.js.map +0 -1
  368. package/dist/cjs/index.js.map +0 -1
  369. package/dist/cjs/models/index.js.map +0 -1
  370. package/dist/cjs/models/models_0.js.map +0 -1
  371. package/dist/cjs/package.json +0 -91
  372. package/dist/cjs/protocols/Aws_json1_1.js.map +0 -1
  373. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  374. package/dist/cjs/runtimeConfig.js.map +0 -1
  375. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  376. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  377. package/dist/es/CloudWatchEvents.js.map +0 -1
  378. package/dist/es/CloudWatchEventsClient.js.map +0 -1
  379. package/dist/es/commands/ActivateEventSourceCommand.js.map +0 -1
  380. package/dist/es/commands/CancelReplayCommand.js.map +0 -1
  381. package/dist/es/commands/CreateApiDestinationCommand.js.map +0 -1
  382. package/dist/es/commands/CreateArchiveCommand.js.map +0 -1
  383. package/dist/es/commands/CreateConnectionCommand.js.map +0 -1
  384. package/dist/es/commands/CreateEventBusCommand.js.map +0 -1
  385. package/dist/es/commands/CreatePartnerEventSourceCommand.js.map +0 -1
  386. package/dist/es/commands/DeactivateEventSourceCommand.js.map +0 -1
  387. package/dist/es/commands/DeauthorizeConnectionCommand.js.map +0 -1
  388. package/dist/es/commands/DeleteApiDestinationCommand.js.map +0 -1
  389. package/dist/es/commands/DeleteArchiveCommand.js.map +0 -1
  390. package/dist/es/commands/DeleteConnectionCommand.js.map +0 -1
  391. package/dist/es/commands/DeleteEventBusCommand.js.map +0 -1
  392. package/dist/es/commands/DeletePartnerEventSourceCommand.js.map +0 -1
  393. package/dist/es/commands/DeleteRuleCommand.js.map +0 -1
  394. package/dist/es/commands/DescribeApiDestinationCommand.js.map +0 -1
  395. package/dist/es/commands/DescribeArchiveCommand.js.map +0 -1
  396. package/dist/es/commands/DescribeConnectionCommand.js.map +0 -1
  397. package/dist/es/commands/DescribeEventBusCommand.js.map +0 -1
  398. package/dist/es/commands/DescribeEventSourceCommand.js.map +0 -1
  399. package/dist/es/commands/DescribePartnerEventSourceCommand.js.map +0 -1
  400. package/dist/es/commands/DescribeReplayCommand.js.map +0 -1
  401. package/dist/es/commands/DescribeRuleCommand.js.map +0 -1
  402. package/dist/es/commands/DisableRuleCommand.js.map +0 -1
  403. package/dist/es/commands/EnableRuleCommand.js.map +0 -1
  404. package/dist/es/commands/ListApiDestinationsCommand.js.map +0 -1
  405. package/dist/es/commands/ListArchivesCommand.js.map +0 -1
  406. package/dist/es/commands/ListConnectionsCommand.js.map +0 -1
  407. package/dist/es/commands/ListEventBusesCommand.js.map +0 -1
  408. package/dist/es/commands/ListEventSourcesCommand.js.map +0 -1
  409. package/dist/es/commands/ListPartnerEventSourceAccountsCommand.js.map +0 -1
  410. package/dist/es/commands/ListPartnerEventSourcesCommand.js.map +0 -1
  411. package/dist/es/commands/ListReplaysCommand.js.map +0 -1
  412. package/dist/es/commands/ListRuleNamesByTargetCommand.js.map +0 -1
  413. package/dist/es/commands/ListRulesCommand.js.map +0 -1
  414. package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
  415. package/dist/es/commands/ListTargetsByRuleCommand.js.map +0 -1
  416. package/dist/es/commands/PutEventsCommand.js.map +0 -1
  417. package/dist/es/commands/PutPartnerEventsCommand.js.map +0 -1
  418. package/dist/es/commands/PutPermissionCommand.js.map +0 -1
  419. package/dist/es/commands/PutRuleCommand.js.map +0 -1
  420. package/dist/es/commands/PutTargetsCommand.js.map +0 -1
  421. package/dist/es/commands/RemovePermissionCommand.js.map +0 -1
  422. package/dist/es/commands/RemoveTargetsCommand.js.map +0 -1
  423. package/dist/es/commands/StartReplayCommand.js.map +0 -1
  424. package/dist/es/commands/TagResourceCommand.js.map +0 -1
  425. package/dist/es/commands/TestEventPatternCommand.js.map +0 -1
  426. package/dist/es/commands/UntagResourceCommand.js.map +0 -1
  427. package/dist/es/commands/UpdateApiDestinationCommand.js.map +0 -1
  428. package/dist/es/commands/UpdateArchiveCommand.js.map +0 -1
  429. package/dist/es/commands/UpdateConnectionCommand.js.map +0 -1
  430. package/dist/es/endpoints.js.map +0 -1
  431. package/dist/es/index.js +0 -55
  432. package/dist/es/index.js.map +0 -1
  433. package/dist/es/models/index.js +0 -2
  434. package/dist/es/models/index.js.map +0 -1
  435. package/dist/es/models/models_0.js.map +0 -1
  436. package/dist/es/package.json +0 -91
  437. package/dist/es/protocols/Aws_json1_1.js.map +0 -1
  438. package/dist/es/runtimeConfig.browser.js.map +0 -1
  439. package/dist/es/runtimeConfig.js.map +0 -1
  440. package/dist/es/runtimeConfig.native.js.map +0 -1
  441. package/dist/es/runtimeConfig.shared.js.map +0 -1
  442. package/dist/types/ts3.4/CloudWatchEvents.d.ts +0 -744
  443. package/dist/types/ts3.4/commands/ActivateEventSourceCommand.d.ts +0 -36
  444. package/dist/types/ts3.4/commands/CancelReplayCommand.d.ts +0 -35
  445. package/dist/types/ts3.4/commands/CreateApiDestinationCommand.d.ts +0 -36
  446. package/dist/types/ts3.4/commands/CreateArchiveCommand.d.ts +0 -39
  447. package/dist/types/ts3.4/commands/CreateConnectionCommand.d.ts +0 -36
  448. package/dist/types/ts3.4/commands/CreateEventBusCommand.d.ts +0 -37
  449. package/dist/types/ts3.4/commands/CreatePartnerEventSourceCommand.d.ts +0 -58
  450. package/dist/types/ts3.4/commands/DeactivateEventSourceCommand.d.ts +0 -39
  451. package/dist/types/ts3.4/commands/DeauthorizeConnectionCommand.d.ts +0 -36
  452. package/dist/types/ts3.4/commands/DeleteArchiveCommand.d.ts +0 -35
  453. package/dist/types/ts3.4/commands/DeleteEventBusCommand.d.ts +0 -36
  454. package/dist/types/ts3.4/commands/DeletePartnerEventSourceCommand.d.ts +0 -39
  455. package/dist/types/ts3.4/commands/DeleteRuleCommand.d.ts +0 -48
  456. package/dist/types/ts3.4/commands/DescribeEventBusCommand.d.ts +0 -41
  457. package/dist/types/ts3.4/commands/DescribeEventSourceCommand.d.ts +0 -36
  458. package/dist/types/ts3.4/commands/DescribePartnerEventSourceCommand.d.ts +0 -38
  459. package/dist/types/ts3.4/commands/DescribeReplayCommand.d.ts +0 -43
  460. package/dist/types/ts3.4/commands/DescribeRuleCommand.d.ts +0 -37
  461. package/dist/types/ts3.4/commands/DisableRuleCommand.d.ts +0 -39
  462. package/dist/types/ts3.4/commands/EnableRuleCommand.d.ts +0 -38
  463. package/dist/types/ts3.4/commands/ListApiDestinationsCommand.d.ts +0 -35
  464. package/dist/types/ts3.4/commands/ListArchivesCommand.d.ts +0 -36
  465. package/dist/types/ts3.4/commands/ListConnectionsCommand.d.ts +0 -35
  466. package/dist/types/ts3.4/commands/ListEventBusesCommand.d.ts +0 -36
  467. package/dist/types/ts3.4/commands/ListEventSourcesCommand.d.ts +0 -36
  468. package/dist/types/ts3.4/commands/ListPartnerEventSourceAccountsCommand.d.ts +0 -37
  469. package/dist/types/ts3.4/commands/ListPartnerEventSourcesCommand.d.ts +0 -36
  470. package/dist/types/ts3.4/commands/ListReplaysCommand.d.ts +0 -36
  471. package/dist/types/ts3.4/commands/ListRuleNamesByTargetCommand.d.ts +0 -36
  472. package/dist/types/ts3.4/commands/ListRulesCommand.d.ts +0 -39
  473. package/dist/types/ts3.4/commands/ListTagsForResourceCommand.d.ts +0 -36
  474. package/dist/types/ts3.4/commands/PutEventsCommand.d.ts +0 -35
  475. package/dist/types/ts3.4/commands/PutPartnerEventsCommand.d.ts +0 -36
  476. package/dist/types/ts3.4/commands/PutPermissionCommand.d.ts +0 -54
  477. package/dist/types/ts3.4/commands/PutRuleCommand.d.ts +0 -81
  478. package/dist/types/ts3.4/commands/PutTargetsCommand.d.ts +0 -200
  479. package/dist/types/ts3.4/commands/RemovePermissionCommand.d.ts +0 -38
  480. package/dist/types/ts3.4/commands/RemoveTargetsCommand.d.ts +0 -43
  481. package/dist/types/ts3.4/commands/StartReplayCommand.d.ts +0 -43
  482. package/dist/types/ts3.4/commands/TagResourceCommand.d.ts +0 -45
  483. package/dist/types/ts3.4/commands/TestEventPatternCommand.d.ts +0 -39
  484. package/dist/types/ts3.4/commands/UntagResourceCommand.d.ts +0 -36
  485. package/dist/types/ts3.4/commands/UpdateArchiveCommand.d.ts +0 -35
  486. package/dist/types/ts3.4/models/models_0.d.ts +0 -4039
  487. package/endpoints.ts +0 -86
  488. package/jest.config.js +0 -4
  489. package/models/models_0.ts +0 -5036
  490. package/protocols/Aws_json1_1.ts +0 -7735
  491. package/runtimeConfig.browser.ts +0 -40
  492. package/runtimeConfig.native.ts +0 -16
  493. package/runtimeConfig.shared.ts +0 -16
  494. package/runtimeConfig.ts +0 -45
  495. package/tsconfig.es.json +0 -10
  496. package/tsconfig.json +0 -31
  497. package/tsconfig.types.json +0 -8
@@ -1,2165 +0,0 @@
1
- import { CloudWatchEventsClient } from "./CloudWatchEventsClient";
2
- import {
3
- ActivateEventSourceCommand,
4
- ActivateEventSourceCommandInput,
5
- ActivateEventSourceCommandOutput,
6
- } from "./commands/ActivateEventSourceCommand";
7
- import {
8
- CancelReplayCommand,
9
- CancelReplayCommandInput,
10
- CancelReplayCommandOutput,
11
- } from "./commands/CancelReplayCommand";
12
- import {
13
- CreateApiDestinationCommand,
14
- CreateApiDestinationCommandInput,
15
- CreateApiDestinationCommandOutput,
16
- } from "./commands/CreateApiDestinationCommand";
17
- import {
18
- CreateArchiveCommand,
19
- CreateArchiveCommandInput,
20
- CreateArchiveCommandOutput,
21
- } from "./commands/CreateArchiveCommand";
22
- import {
23
- CreateConnectionCommand,
24
- CreateConnectionCommandInput,
25
- CreateConnectionCommandOutput,
26
- } from "./commands/CreateConnectionCommand";
27
- import {
28
- CreateEventBusCommand,
29
- CreateEventBusCommandInput,
30
- CreateEventBusCommandOutput,
31
- } from "./commands/CreateEventBusCommand";
32
- import {
33
- CreatePartnerEventSourceCommand,
34
- CreatePartnerEventSourceCommandInput,
35
- CreatePartnerEventSourceCommandOutput,
36
- } from "./commands/CreatePartnerEventSourceCommand";
37
- import {
38
- DeactivateEventSourceCommand,
39
- DeactivateEventSourceCommandInput,
40
- DeactivateEventSourceCommandOutput,
41
- } from "./commands/DeactivateEventSourceCommand";
42
- import {
43
- DeauthorizeConnectionCommand,
44
- DeauthorizeConnectionCommandInput,
45
- DeauthorizeConnectionCommandOutput,
46
- } from "./commands/DeauthorizeConnectionCommand";
47
- import {
48
- DeleteApiDestinationCommand,
49
- DeleteApiDestinationCommandInput,
50
- DeleteApiDestinationCommandOutput,
51
- } from "./commands/DeleteApiDestinationCommand";
52
- import {
53
- DeleteArchiveCommand,
54
- DeleteArchiveCommandInput,
55
- DeleteArchiveCommandOutput,
56
- } from "./commands/DeleteArchiveCommand";
57
- import {
58
- DeleteConnectionCommand,
59
- DeleteConnectionCommandInput,
60
- DeleteConnectionCommandOutput,
61
- } from "./commands/DeleteConnectionCommand";
62
- import {
63
- DeleteEventBusCommand,
64
- DeleteEventBusCommandInput,
65
- DeleteEventBusCommandOutput,
66
- } from "./commands/DeleteEventBusCommand";
67
- import {
68
- DeletePartnerEventSourceCommand,
69
- DeletePartnerEventSourceCommandInput,
70
- DeletePartnerEventSourceCommandOutput,
71
- } from "./commands/DeletePartnerEventSourceCommand";
72
- import { DeleteRuleCommand, DeleteRuleCommandInput, DeleteRuleCommandOutput } from "./commands/DeleteRuleCommand";
73
- import {
74
- DescribeApiDestinationCommand,
75
- DescribeApiDestinationCommandInput,
76
- DescribeApiDestinationCommandOutput,
77
- } from "./commands/DescribeApiDestinationCommand";
78
- import {
79
- DescribeArchiveCommand,
80
- DescribeArchiveCommandInput,
81
- DescribeArchiveCommandOutput,
82
- } from "./commands/DescribeArchiveCommand";
83
- import {
84
- DescribeConnectionCommand,
85
- DescribeConnectionCommandInput,
86
- DescribeConnectionCommandOutput,
87
- } from "./commands/DescribeConnectionCommand";
88
- import {
89
- DescribeEventBusCommand,
90
- DescribeEventBusCommandInput,
91
- DescribeEventBusCommandOutput,
92
- } from "./commands/DescribeEventBusCommand";
93
- import {
94
- DescribeEventSourceCommand,
95
- DescribeEventSourceCommandInput,
96
- DescribeEventSourceCommandOutput,
97
- } from "./commands/DescribeEventSourceCommand";
98
- import {
99
- DescribePartnerEventSourceCommand,
100
- DescribePartnerEventSourceCommandInput,
101
- DescribePartnerEventSourceCommandOutput,
102
- } from "./commands/DescribePartnerEventSourceCommand";
103
- import {
104
- DescribeReplayCommand,
105
- DescribeReplayCommandInput,
106
- DescribeReplayCommandOutput,
107
- } from "./commands/DescribeReplayCommand";
108
- import {
109
- DescribeRuleCommand,
110
- DescribeRuleCommandInput,
111
- DescribeRuleCommandOutput,
112
- } from "./commands/DescribeRuleCommand";
113
- import { DisableRuleCommand, DisableRuleCommandInput, DisableRuleCommandOutput } from "./commands/DisableRuleCommand";
114
- import { EnableRuleCommand, EnableRuleCommandInput, EnableRuleCommandOutput } from "./commands/EnableRuleCommand";
115
- import {
116
- ListApiDestinationsCommand,
117
- ListApiDestinationsCommandInput,
118
- ListApiDestinationsCommandOutput,
119
- } from "./commands/ListApiDestinationsCommand";
120
- import {
121
- ListArchivesCommand,
122
- ListArchivesCommandInput,
123
- ListArchivesCommandOutput,
124
- } from "./commands/ListArchivesCommand";
125
- import {
126
- ListConnectionsCommand,
127
- ListConnectionsCommandInput,
128
- ListConnectionsCommandOutput,
129
- } from "./commands/ListConnectionsCommand";
130
- import {
131
- ListEventBusesCommand,
132
- ListEventBusesCommandInput,
133
- ListEventBusesCommandOutput,
134
- } from "./commands/ListEventBusesCommand";
135
- import {
136
- ListEventSourcesCommand,
137
- ListEventSourcesCommandInput,
138
- ListEventSourcesCommandOutput,
139
- } from "./commands/ListEventSourcesCommand";
140
- import {
141
- ListPartnerEventSourceAccountsCommand,
142
- ListPartnerEventSourceAccountsCommandInput,
143
- ListPartnerEventSourceAccountsCommandOutput,
144
- } from "./commands/ListPartnerEventSourceAccountsCommand";
145
- import {
146
- ListPartnerEventSourcesCommand,
147
- ListPartnerEventSourcesCommandInput,
148
- ListPartnerEventSourcesCommandOutput,
149
- } from "./commands/ListPartnerEventSourcesCommand";
150
- import { ListReplaysCommand, ListReplaysCommandInput, ListReplaysCommandOutput } from "./commands/ListReplaysCommand";
151
- import {
152
- ListRuleNamesByTargetCommand,
153
- ListRuleNamesByTargetCommandInput,
154
- ListRuleNamesByTargetCommandOutput,
155
- } from "./commands/ListRuleNamesByTargetCommand";
156
- import { ListRulesCommand, ListRulesCommandInput, ListRulesCommandOutput } from "./commands/ListRulesCommand";
157
- import {
158
- ListTagsForResourceCommand,
159
- ListTagsForResourceCommandInput,
160
- ListTagsForResourceCommandOutput,
161
- } from "./commands/ListTagsForResourceCommand";
162
- import {
163
- ListTargetsByRuleCommand,
164
- ListTargetsByRuleCommandInput,
165
- ListTargetsByRuleCommandOutput,
166
- } from "./commands/ListTargetsByRuleCommand";
167
- import { PutEventsCommand, PutEventsCommandInput, PutEventsCommandOutput } from "./commands/PutEventsCommand";
168
- import {
169
- PutPartnerEventsCommand,
170
- PutPartnerEventsCommandInput,
171
- PutPartnerEventsCommandOutput,
172
- } from "./commands/PutPartnerEventsCommand";
173
- import {
174
- PutPermissionCommand,
175
- PutPermissionCommandInput,
176
- PutPermissionCommandOutput,
177
- } from "./commands/PutPermissionCommand";
178
- import { PutRuleCommand, PutRuleCommandInput, PutRuleCommandOutput } from "./commands/PutRuleCommand";
179
- import { PutTargetsCommand, PutTargetsCommandInput, PutTargetsCommandOutput } from "./commands/PutTargetsCommand";
180
- import {
181
- RemovePermissionCommand,
182
- RemovePermissionCommandInput,
183
- RemovePermissionCommandOutput,
184
- } from "./commands/RemovePermissionCommand";
185
- import {
186
- RemoveTargetsCommand,
187
- RemoveTargetsCommandInput,
188
- RemoveTargetsCommandOutput,
189
- } from "./commands/RemoveTargetsCommand";
190
- import { StartReplayCommand, StartReplayCommandInput, StartReplayCommandOutput } from "./commands/StartReplayCommand";
191
- import { TagResourceCommand, TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
192
- import {
193
- TestEventPatternCommand,
194
- TestEventPatternCommandInput,
195
- TestEventPatternCommandOutput,
196
- } from "./commands/TestEventPatternCommand";
197
- import {
198
- UntagResourceCommand,
199
- UntagResourceCommandInput,
200
- UntagResourceCommandOutput,
201
- } from "./commands/UntagResourceCommand";
202
- import {
203
- UpdateApiDestinationCommand,
204
- UpdateApiDestinationCommandInput,
205
- UpdateApiDestinationCommandOutput,
206
- } from "./commands/UpdateApiDestinationCommand";
207
- import {
208
- UpdateArchiveCommand,
209
- UpdateArchiveCommandInput,
210
- UpdateArchiveCommandOutput,
211
- } from "./commands/UpdateArchiveCommand";
212
- import {
213
- UpdateConnectionCommand,
214
- UpdateConnectionCommandInput,
215
- UpdateConnectionCommandOutput,
216
- } from "./commands/UpdateConnectionCommand";
217
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
218
-
219
- /**
220
- * <p>Amazon EventBridge helps you to respond to state changes in your Amazon Web Services resources. When your
221
- * resources change state, they automatically send events to an event stream. You can create
222
- * rules that match selected events in the stream and route them to targets to take action. You
223
- * can also use rules to take action on a predetermined schedule. For example, you can configure
224
- * rules to:</p>
225
- * <ul>
226
- * <li>
227
- * <p>Automatically invoke an Lambda function to update DNS entries when an event
228
- * notifies you that Amazon EC2 instance enters the running state.</p>
229
- * </li>
230
- * <li>
231
- * <p>Direct specific API records from CloudTrail to an Amazon Kinesis data stream for
232
- * detailed analysis of potential security or availability risks.</p>
233
- * </li>
234
- * <li>
235
- * <p>Periodically invoke a built-in target to create a snapshot of an Amazon EBS
236
- * volume.</p>
237
- * </li>
238
- * </ul>
239
- * <p>For more information about the features of Amazon EventBridge, see the <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide">Amazon EventBridge User
240
- * Guide</a>.</p>
241
- */
242
- export class CloudWatchEvents extends CloudWatchEventsClient {
243
- /**
244
- * <p>Activates a partner event source that has been deactivated. Once activated, your matching
245
- * event bus will start receiving events from the event source.</p>
246
- */
247
- public activateEventSource(
248
- args: ActivateEventSourceCommandInput,
249
- options?: __HttpHandlerOptions
250
- ): Promise<ActivateEventSourceCommandOutput>;
251
- public activateEventSource(
252
- args: ActivateEventSourceCommandInput,
253
- cb: (err: any, data?: ActivateEventSourceCommandOutput) => void
254
- ): void;
255
- public activateEventSource(
256
- args: ActivateEventSourceCommandInput,
257
- options: __HttpHandlerOptions,
258
- cb: (err: any, data?: ActivateEventSourceCommandOutput) => void
259
- ): void;
260
- public activateEventSource(
261
- args: ActivateEventSourceCommandInput,
262
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ActivateEventSourceCommandOutput) => void),
263
- cb?: (err: any, data?: ActivateEventSourceCommandOutput) => void
264
- ): Promise<ActivateEventSourceCommandOutput> | void {
265
- const command = new ActivateEventSourceCommand(args);
266
- if (typeof optionsOrCb === "function") {
267
- this.send(command, optionsOrCb);
268
- } else if (typeof cb === "function") {
269
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
270
- this.send(command, optionsOrCb || {}, cb);
271
- } else {
272
- return this.send(command, optionsOrCb);
273
- }
274
- }
275
-
276
- /**
277
- * <p>Cancels the specified replay.</p>
278
- */
279
- public cancelReplay(
280
- args: CancelReplayCommandInput,
281
- options?: __HttpHandlerOptions
282
- ): Promise<CancelReplayCommandOutput>;
283
- public cancelReplay(args: CancelReplayCommandInput, cb: (err: any, data?: CancelReplayCommandOutput) => void): void;
284
- public cancelReplay(
285
- args: CancelReplayCommandInput,
286
- options: __HttpHandlerOptions,
287
- cb: (err: any, data?: CancelReplayCommandOutput) => void
288
- ): void;
289
- public cancelReplay(
290
- args: CancelReplayCommandInput,
291
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CancelReplayCommandOutput) => void),
292
- cb?: (err: any, data?: CancelReplayCommandOutput) => void
293
- ): Promise<CancelReplayCommandOutput> | void {
294
- const command = new CancelReplayCommand(args);
295
- if (typeof optionsOrCb === "function") {
296
- this.send(command, optionsOrCb);
297
- } else if (typeof cb === "function") {
298
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
299
- this.send(command, optionsOrCb || {}, cb);
300
- } else {
301
- return this.send(command, optionsOrCb);
302
- }
303
- }
304
-
305
- /**
306
- * <p>Creates an API destination, which is an HTTP invocation endpoint configured as a target
307
- * for events.</p>
308
- */
309
- public createApiDestination(
310
- args: CreateApiDestinationCommandInput,
311
- options?: __HttpHandlerOptions
312
- ): Promise<CreateApiDestinationCommandOutput>;
313
- public createApiDestination(
314
- args: CreateApiDestinationCommandInput,
315
- cb: (err: any, data?: CreateApiDestinationCommandOutput) => void
316
- ): void;
317
- public createApiDestination(
318
- args: CreateApiDestinationCommandInput,
319
- options: __HttpHandlerOptions,
320
- cb: (err: any, data?: CreateApiDestinationCommandOutput) => void
321
- ): void;
322
- public createApiDestination(
323
- args: CreateApiDestinationCommandInput,
324
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateApiDestinationCommandOutput) => void),
325
- cb?: (err: any, data?: CreateApiDestinationCommandOutput) => void
326
- ): Promise<CreateApiDestinationCommandOutput> | void {
327
- const command = new CreateApiDestinationCommand(args);
328
- if (typeof optionsOrCb === "function") {
329
- this.send(command, optionsOrCb);
330
- } else if (typeof cb === "function") {
331
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
332
- this.send(command, optionsOrCb || {}, cb);
333
- } else {
334
- return this.send(command, optionsOrCb);
335
- }
336
- }
337
-
338
- /**
339
- * <p>Creates an archive of events with the specified settings. When you create an archive,
340
- * incoming events might not immediately start being sent to the archive. Allow a short period of
341
- * time for changes to take effect. If you do not specify a pattern to filter events sent to the
342
- * archive, all events are sent to the archive except replayed events. Replayed events are not
343
- * sent to an archive.</p>
344
- */
345
- public createArchive(
346
- args: CreateArchiveCommandInput,
347
- options?: __HttpHandlerOptions
348
- ): Promise<CreateArchiveCommandOutput>;
349
- public createArchive(
350
- args: CreateArchiveCommandInput,
351
- cb: (err: any, data?: CreateArchiveCommandOutput) => void
352
- ): void;
353
- public createArchive(
354
- args: CreateArchiveCommandInput,
355
- options: __HttpHandlerOptions,
356
- cb: (err: any, data?: CreateArchiveCommandOutput) => void
357
- ): void;
358
- public createArchive(
359
- args: CreateArchiveCommandInput,
360
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateArchiveCommandOutput) => void),
361
- cb?: (err: any, data?: CreateArchiveCommandOutput) => void
362
- ): Promise<CreateArchiveCommandOutput> | void {
363
- const command = new CreateArchiveCommand(args);
364
- if (typeof optionsOrCb === "function") {
365
- this.send(command, optionsOrCb);
366
- } else if (typeof cb === "function") {
367
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
368
- this.send(command, optionsOrCb || {}, cb);
369
- } else {
370
- return this.send(command, optionsOrCb);
371
- }
372
- }
373
-
374
- /**
375
- * <p>Creates a connection. A connection defines the authorization type and credentials to use
376
- * for authorization with an API destination HTTP endpoint.</p>
377
- */
378
- public createConnection(
379
- args: CreateConnectionCommandInput,
380
- options?: __HttpHandlerOptions
381
- ): Promise<CreateConnectionCommandOutput>;
382
- public createConnection(
383
- args: CreateConnectionCommandInput,
384
- cb: (err: any, data?: CreateConnectionCommandOutput) => void
385
- ): void;
386
- public createConnection(
387
- args: CreateConnectionCommandInput,
388
- options: __HttpHandlerOptions,
389
- cb: (err: any, data?: CreateConnectionCommandOutput) => void
390
- ): void;
391
- public createConnection(
392
- args: CreateConnectionCommandInput,
393
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateConnectionCommandOutput) => void),
394
- cb?: (err: any, data?: CreateConnectionCommandOutput) => void
395
- ): Promise<CreateConnectionCommandOutput> | void {
396
- const command = new CreateConnectionCommand(args);
397
- if (typeof optionsOrCb === "function") {
398
- this.send(command, optionsOrCb);
399
- } else if (typeof cb === "function") {
400
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
401
- this.send(command, optionsOrCb || {}, cb);
402
- } else {
403
- return this.send(command, optionsOrCb);
404
- }
405
- }
406
-
407
- /**
408
- * <p>Creates a new event bus within your account. This can be a custom event bus which you can
409
- * use to receive events from your custom applications and services, or it can be a partner event
410
- * bus which can be matched to a partner event source.</p>
411
- */
412
- public createEventBus(
413
- args: CreateEventBusCommandInput,
414
- options?: __HttpHandlerOptions
415
- ): Promise<CreateEventBusCommandOutput>;
416
- public createEventBus(
417
- args: CreateEventBusCommandInput,
418
- cb: (err: any, data?: CreateEventBusCommandOutput) => void
419
- ): void;
420
- public createEventBus(
421
- args: CreateEventBusCommandInput,
422
- options: __HttpHandlerOptions,
423
- cb: (err: any, data?: CreateEventBusCommandOutput) => void
424
- ): void;
425
- public createEventBus(
426
- args: CreateEventBusCommandInput,
427
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateEventBusCommandOutput) => void),
428
- cb?: (err: any, data?: CreateEventBusCommandOutput) => void
429
- ): Promise<CreateEventBusCommandOutput> | void {
430
- const command = new CreateEventBusCommand(args);
431
- if (typeof optionsOrCb === "function") {
432
- this.send(command, optionsOrCb);
433
- } else if (typeof cb === "function") {
434
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
435
- this.send(command, optionsOrCb || {}, cb);
436
- } else {
437
- return this.send(command, optionsOrCb);
438
- }
439
- }
440
-
441
- /**
442
- * <p>Called by an SaaS partner to create a partner event source. This operation is not used by
443
- * Amazon Web Services customers.</p>
444
- * <p>Each partner event source can be used by one Amazon Web Services account to create a matching partner
445
- * event bus in that Amazon Web Services account. A SaaS partner must create one partner event source for each
446
- * Amazon Web Services account that wants to receive those event types. </p>
447
- * <p>A partner event source creates events based on resources within the SaaS partner's service
448
- * or application.</p>
449
- * <p>An Amazon Web Services account that creates a partner event bus that matches the partner event source can
450
- * use that event bus to receive events from the partner, and then process them using Amazon Web Services Events
451
- * rules and targets.</p>
452
- * <p>Partner event source names follow this format:</p>
453
- * <p>
454
- * <code>
455
- * <i>partner_name</i>/<i>event_namespace</i>/<i>event_name</i>
456
- * </code>
457
- * </p>
458
- * <p>
459
- * <i>partner_name</i> is determined during partner registration and identifies
460
- * the partner to Amazon Web Services customers. <i>event_namespace</i> is determined by the
461
- * partner and is a way for the partner to categorize their events.
462
- * <i>event_name</i> is determined by the partner, and should uniquely identify
463
- * an event-generating resource within the partner system. The combination of
464
- * <i>event_namespace</i> and <i>event_name</i> should help Amazon Web Services
465
- * customers decide whether to create an event bus to receive these events.</p>
466
- */
467
- public createPartnerEventSource(
468
- args: CreatePartnerEventSourceCommandInput,
469
- options?: __HttpHandlerOptions
470
- ): Promise<CreatePartnerEventSourceCommandOutput>;
471
- public createPartnerEventSource(
472
- args: CreatePartnerEventSourceCommandInput,
473
- cb: (err: any, data?: CreatePartnerEventSourceCommandOutput) => void
474
- ): void;
475
- public createPartnerEventSource(
476
- args: CreatePartnerEventSourceCommandInput,
477
- options: __HttpHandlerOptions,
478
- cb: (err: any, data?: CreatePartnerEventSourceCommandOutput) => void
479
- ): void;
480
- public createPartnerEventSource(
481
- args: CreatePartnerEventSourceCommandInput,
482
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreatePartnerEventSourceCommandOutput) => void),
483
- cb?: (err: any, data?: CreatePartnerEventSourceCommandOutput) => void
484
- ): Promise<CreatePartnerEventSourceCommandOutput> | void {
485
- const command = new CreatePartnerEventSourceCommand(args);
486
- if (typeof optionsOrCb === "function") {
487
- this.send(command, optionsOrCb);
488
- } else if (typeof cb === "function") {
489
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
490
- this.send(command, optionsOrCb || {}, cb);
491
- } else {
492
- return this.send(command, optionsOrCb);
493
- }
494
- }
495
-
496
- /**
497
- * <p>You can use this operation to temporarily stop receiving events from the specified partner
498
- * event source. The matching event bus is not deleted. </p>
499
- * <p>When you deactivate a partner event source, the source goes into PENDING state. If it
500
- * remains in PENDING state for more than two weeks, it is deleted.</p>
501
- * <p>To activate a deactivated partner event source, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ActivateEventSource.html">ActivateEventSource</a>.</p>
502
- */
503
- public deactivateEventSource(
504
- args: DeactivateEventSourceCommandInput,
505
- options?: __HttpHandlerOptions
506
- ): Promise<DeactivateEventSourceCommandOutput>;
507
- public deactivateEventSource(
508
- args: DeactivateEventSourceCommandInput,
509
- cb: (err: any, data?: DeactivateEventSourceCommandOutput) => void
510
- ): void;
511
- public deactivateEventSource(
512
- args: DeactivateEventSourceCommandInput,
513
- options: __HttpHandlerOptions,
514
- cb: (err: any, data?: DeactivateEventSourceCommandOutput) => void
515
- ): void;
516
- public deactivateEventSource(
517
- args: DeactivateEventSourceCommandInput,
518
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeactivateEventSourceCommandOutput) => void),
519
- cb?: (err: any, data?: DeactivateEventSourceCommandOutput) => void
520
- ): Promise<DeactivateEventSourceCommandOutput> | void {
521
- const command = new DeactivateEventSourceCommand(args);
522
- if (typeof optionsOrCb === "function") {
523
- this.send(command, optionsOrCb);
524
- } else if (typeof cb === "function") {
525
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
526
- this.send(command, optionsOrCb || {}, cb);
527
- } else {
528
- return this.send(command, optionsOrCb);
529
- }
530
- }
531
-
532
- /**
533
- * <p>Removes all authorization parameters from the connection. This lets you remove the secret
534
- * from the connection so you can reuse it without having to create a new connection.</p>
535
- */
536
- public deauthorizeConnection(
537
- args: DeauthorizeConnectionCommandInput,
538
- options?: __HttpHandlerOptions
539
- ): Promise<DeauthorizeConnectionCommandOutput>;
540
- public deauthorizeConnection(
541
- args: DeauthorizeConnectionCommandInput,
542
- cb: (err: any, data?: DeauthorizeConnectionCommandOutput) => void
543
- ): void;
544
- public deauthorizeConnection(
545
- args: DeauthorizeConnectionCommandInput,
546
- options: __HttpHandlerOptions,
547
- cb: (err: any, data?: DeauthorizeConnectionCommandOutput) => void
548
- ): void;
549
- public deauthorizeConnection(
550
- args: DeauthorizeConnectionCommandInput,
551
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeauthorizeConnectionCommandOutput) => void),
552
- cb?: (err: any, data?: DeauthorizeConnectionCommandOutput) => void
553
- ): Promise<DeauthorizeConnectionCommandOutput> | void {
554
- const command = new DeauthorizeConnectionCommand(args);
555
- if (typeof optionsOrCb === "function") {
556
- this.send(command, optionsOrCb);
557
- } else if (typeof cb === "function") {
558
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
559
- this.send(command, optionsOrCb || {}, cb);
560
- } else {
561
- return this.send(command, optionsOrCb);
562
- }
563
- }
564
-
565
- /**
566
- * <p>Deletes the specified API destination.</p>
567
- */
568
- public deleteApiDestination(
569
- args: DeleteApiDestinationCommandInput,
570
- options?: __HttpHandlerOptions
571
- ): Promise<DeleteApiDestinationCommandOutput>;
572
- public deleteApiDestination(
573
- args: DeleteApiDestinationCommandInput,
574
- cb: (err: any, data?: DeleteApiDestinationCommandOutput) => void
575
- ): void;
576
- public deleteApiDestination(
577
- args: DeleteApiDestinationCommandInput,
578
- options: __HttpHandlerOptions,
579
- cb: (err: any, data?: DeleteApiDestinationCommandOutput) => void
580
- ): void;
581
- public deleteApiDestination(
582
- args: DeleteApiDestinationCommandInput,
583
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteApiDestinationCommandOutput) => void),
584
- cb?: (err: any, data?: DeleteApiDestinationCommandOutput) => void
585
- ): Promise<DeleteApiDestinationCommandOutput> | void {
586
- const command = new DeleteApiDestinationCommand(args);
587
- if (typeof optionsOrCb === "function") {
588
- this.send(command, optionsOrCb);
589
- } else if (typeof cb === "function") {
590
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
591
- this.send(command, optionsOrCb || {}, cb);
592
- } else {
593
- return this.send(command, optionsOrCb);
594
- }
595
- }
596
-
597
- /**
598
- * <p>Deletes the specified archive.</p>
599
- */
600
- public deleteArchive(
601
- args: DeleteArchiveCommandInput,
602
- options?: __HttpHandlerOptions
603
- ): Promise<DeleteArchiveCommandOutput>;
604
- public deleteArchive(
605
- args: DeleteArchiveCommandInput,
606
- cb: (err: any, data?: DeleteArchiveCommandOutput) => void
607
- ): void;
608
- public deleteArchive(
609
- args: DeleteArchiveCommandInput,
610
- options: __HttpHandlerOptions,
611
- cb: (err: any, data?: DeleteArchiveCommandOutput) => void
612
- ): void;
613
- public deleteArchive(
614
- args: DeleteArchiveCommandInput,
615
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteArchiveCommandOutput) => void),
616
- cb?: (err: any, data?: DeleteArchiveCommandOutput) => void
617
- ): Promise<DeleteArchiveCommandOutput> | void {
618
- const command = new DeleteArchiveCommand(args);
619
- if (typeof optionsOrCb === "function") {
620
- this.send(command, optionsOrCb);
621
- } else if (typeof cb === "function") {
622
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
623
- this.send(command, optionsOrCb || {}, cb);
624
- } else {
625
- return this.send(command, optionsOrCb);
626
- }
627
- }
628
-
629
- /**
630
- * <p>Deletes a connection.</p>
631
- */
632
- public deleteConnection(
633
- args: DeleteConnectionCommandInput,
634
- options?: __HttpHandlerOptions
635
- ): Promise<DeleteConnectionCommandOutput>;
636
- public deleteConnection(
637
- args: DeleteConnectionCommandInput,
638
- cb: (err: any, data?: DeleteConnectionCommandOutput) => void
639
- ): void;
640
- public deleteConnection(
641
- args: DeleteConnectionCommandInput,
642
- options: __HttpHandlerOptions,
643
- cb: (err: any, data?: DeleteConnectionCommandOutput) => void
644
- ): void;
645
- public deleteConnection(
646
- args: DeleteConnectionCommandInput,
647
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteConnectionCommandOutput) => void),
648
- cb?: (err: any, data?: DeleteConnectionCommandOutput) => void
649
- ): Promise<DeleteConnectionCommandOutput> | void {
650
- const command = new DeleteConnectionCommand(args);
651
- if (typeof optionsOrCb === "function") {
652
- this.send(command, optionsOrCb);
653
- } else if (typeof cb === "function") {
654
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
655
- this.send(command, optionsOrCb || {}, cb);
656
- } else {
657
- return this.send(command, optionsOrCb);
658
- }
659
- }
660
-
661
- /**
662
- * <p>Deletes the specified custom event bus or partner event bus. All rules associated with
663
- * this event bus need to be deleted. You can't delete your account's default event bus.</p>
664
- */
665
- public deleteEventBus(
666
- args: DeleteEventBusCommandInput,
667
- options?: __HttpHandlerOptions
668
- ): Promise<DeleteEventBusCommandOutput>;
669
- public deleteEventBus(
670
- args: DeleteEventBusCommandInput,
671
- cb: (err: any, data?: DeleteEventBusCommandOutput) => void
672
- ): void;
673
- public deleteEventBus(
674
- args: DeleteEventBusCommandInput,
675
- options: __HttpHandlerOptions,
676
- cb: (err: any, data?: DeleteEventBusCommandOutput) => void
677
- ): void;
678
- public deleteEventBus(
679
- args: DeleteEventBusCommandInput,
680
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteEventBusCommandOutput) => void),
681
- cb?: (err: any, data?: DeleteEventBusCommandOutput) => void
682
- ): Promise<DeleteEventBusCommandOutput> | void {
683
- const command = new DeleteEventBusCommand(args);
684
- if (typeof optionsOrCb === "function") {
685
- this.send(command, optionsOrCb);
686
- } else if (typeof cb === "function") {
687
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
688
- this.send(command, optionsOrCb || {}, cb);
689
- } else {
690
- return this.send(command, optionsOrCb);
691
- }
692
- }
693
-
694
- /**
695
- * <p>This operation is used by SaaS partners to delete a partner event source. This operation
696
- * is not used by Amazon Web Services customers.</p>
697
- * <p>When you delete an event source, the status of the corresponding partner event bus in the
698
- * Amazon Web Services customer account becomes DELETED.</p>
699
- * <p></p>
700
- */
701
- public deletePartnerEventSource(
702
- args: DeletePartnerEventSourceCommandInput,
703
- options?: __HttpHandlerOptions
704
- ): Promise<DeletePartnerEventSourceCommandOutput>;
705
- public deletePartnerEventSource(
706
- args: DeletePartnerEventSourceCommandInput,
707
- cb: (err: any, data?: DeletePartnerEventSourceCommandOutput) => void
708
- ): void;
709
- public deletePartnerEventSource(
710
- args: DeletePartnerEventSourceCommandInput,
711
- options: __HttpHandlerOptions,
712
- cb: (err: any, data?: DeletePartnerEventSourceCommandOutput) => void
713
- ): void;
714
- public deletePartnerEventSource(
715
- args: DeletePartnerEventSourceCommandInput,
716
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeletePartnerEventSourceCommandOutput) => void),
717
- cb?: (err: any, data?: DeletePartnerEventSourceCommandOutput) => void
718
- ): Promise<DeletePartnerEventSourceCommandOutput> | void {
719
- const command = new DeletePartnerEventSourceCommand(args);
720
- if (typeof optionsOrCb === "function") {
721
- this.send(command, optionsOrCb);
722
- } else if (typeof cb === "function") {
723
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
724
- this.send(command, optionsOrCb || {}, cb);
725
- } else {
726
- return this.send(command, optionsOrCb);
727
- }
728
- }
729
-
730
- /**
731
- * <p>Deletes the specified rule.</p>
732
- * <p>Before you can delete the rule, you must remove all targets, using <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_RemoveTargets.html">RemoveTargets</a>.</p>
733
- *
734
- * <p>When you delete a rule, incoming events might continue to match to the deleted rule. Allow
735
- * a short period of time for changes to take effect.</p>
736
- *
737
- * <p>If you call delete rule multiple times for the same rule, all calls will succeed. When you
738
- * call delete rule for a non-existent custom eventbus, <code>ResourceNotFoundException</code> is
739
- * returned.</p>
740
- *
741
- * <p>Managed rules are rules created and managed by another Amazon Web Services service on your behalf. These
742
- * rules are created by those other Amazon Web Services services to support functionality in those services. You
743
- * can delete these rules using the <code>Force</code> option, but you should do so only if you
744
- * are sure the other service is not still using that rule.</p>
745
- */
746
- public deleteRule(args: DeleteRuleCommandInput, options?: __HttpHandlerOptions): Promise<DeleteRuleCommandOutput>;
747
- public deleteRule(args: DeleteRuleCommandInput, cb: (err: any, data?: DeleteRuleCommandOutput) => void): void;
748
- public deleteRule(
749
- args: DeleteRuleCommandInput,
750
- options: __HttpHandlerOptions,
751
- cb: (err: any, data?: DeleteRuleCommandOutput) => void
752
- ): void;
753
- public deleteRule(
754
- args: DeleteRuleCommandInput,
755
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteRuleCommandOutput) => void),
756
- cb?: (err: any, data?: DeleteRuleCommandOutput) => void
757
- ): Promise<DeleteRuleCommandOutput> | void {
758
- const command = new DeleteRuleCommand(args);
759
- if (typeof optionsOrCb === "function") {
760
- this.send(command, optionsOrCb);
761
- } else if (typeof cb === "function") {
762
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
763
- this.send(command, optionsOrCb || {}, cb);
764
- } else {
765
- return this.send(command, optionsOrCb);
766
- }
767
- }
768
-
769
- /**
770
- * <p>Retrieves details about an API destination.</p>
771
- */
772
- public describeApiDestination(
773
- args: DescribeApiDestinationCommandInput,
774
- options?: __HttpHandlerOptions
775
- ): Promise<DescribeApiDestinationCommandOutput>;
776
- public describeApiDestination(
777
- args: DescribeApiDestinationCommandInput,
778
- cb: (err: any, data?: DescribeApiDestinationCommandOutput) => void
779
- ): void;
780
- public describeApiDestination(
781
- args: DescribeApiDestinationCommandInput,
782
- options: __HttpHandlerOptions,
783
- cb: (err: any, data?: DescribeApiDestinationCommandOutput) => void
784
- ): void;
785
- public describeApiDestination(
786
- args: DescribeApiDestinationCommandInput,
787
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeApiDestinationCommandOutput) => void),
788
- cb?: (err: any, data?: DescribeApiDestinationCommandOutput) => void
789
- ): Promise<DescribeApiDestinationCommandOutput> | void {
790
- const command = new DescribeApiDestinationCommand(args);
791
- if (typeof optionsOrCb === "function") {
792
- this.send(command, optionsOrCb);
793
- } else if (typeof cb === "function") {
794
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
795
- this.send(command, optionsOrCb || {}, cb);
796
- } else {
797
- return this.send(command, optionsOrCb);
798
- }
799
- }
800
-
801
- /**
802
- * <p>Retrieves details about an archive.</p>
803
- */
804
- public describeArchive(
805
- args: DescribeArchiveCommandInput,
806
- options?: __HttpHandlerOptions
807
- ): Promise<DescribeArchiveCommandOutput>;
808
- public describeArchive(
809
- args: DescribeArchiveCommandInput,
810
- cb: (err: any, data?: DescribeArchiveCommandOutput) => void
811
- ): void;
812
- public describeArchive(
813
- args: DescribeArchiveCommandInput,
814
- options: __HttpHandlerOptions,
815
- cb: (err: any, data?: DescribeArchiveCommandOutput) => void
816
- ): void;
817
- public describeArchive(
818
- args: DescribeArchiveCommandInput,
819
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeArchiveCommandOutput) => void),
820
- cb?: (err: any, data?: DescribeArchiveCommandOutput) => void
821
- ): Promise<DescribeArchiveCommandOutput> | void {
822
- const command = new DescribeArchiveCommand(args);
823
- if (typeof optionsOrCb === "function") {
824
- this.send(command, optionsOrCb);
825
- } else if (typeof cb === "function") {
826
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
827
- this.send(command, optionsOrCb || {}, cb);
828
- } else {
829
- return this.send(command, optionsOrCb);
830
- }
831
- }
832
-
833
- /**
834
- * <p>Retrieves details about a connection.</p>
835
- */
836
- public describeConnection(
837
- args: DescribeConnectionCommandInput,
838
- options?: __HttpHandlerOptions
839
- ): Promise<DescribeConnectionCommandOutput>;
840
- public describeConnection(
841
- args: DescribeConnectionCommandInput,
842
- cb: (err: any, data?: DescribeConnectionCommandOutput) => void
843
- ): void;
844
- public describeConnection(
845
- args: DescribeConnectionCommandInput,
846
- options: __HttpHandlerOptions,
847
- cb: (err: any, data?: DescribeConnectionCommandOutput) => void
848
- ): void;
849
- public describeConnection(
850
- args: DescribeConnectionCommandInput,
851
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeConnectionCommandOutput) => void),
852
- cb?: (err: any, data?: DescribeConnectionCommandOutput) => void
853
- ): Promise<DescribeConnectionCommandOutput> | void {
854
- const command = new DescribeConnectionCommand(args);
855
- if (typeof optionsOrCb === "function") {
856
- this.send(command, optionsOrCb);
857
- } else if (typeof cb === "function") {
858
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
859
- this.send(command, optionsOrCb || {}, cb);
860
- } else {
861
- return this.send(command, optionsOrCb);
862
- }
863
- }
864
-
865
- /**
866
- * <p>Displays details about an event bus in your account. This can include the external Amazon Web Services
867
- * accounts that are permitted to write events to your default event bus, and the associated
868
- * policy. For custom event buses and partner event buses, it displays the name, ARN, policy,
869
- * state, and creation time.</p>
870
- * <p> To enable your account to receive events from other accounts on its default event bus,
871
- * use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutPermission.html">PutPermission</a>.</p>
872
- * <p>For more information about partner event buses, see <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_CreateEventBus.html">CreateEventBus</a>.</p>
873
- */
874
- public describeEventBus(
875
- args: DescribeEventBusCommandInput,
876
- options?: __HttpHandlerOptions
877
- ): Promise<DescribeEventBusCommandOutput>;
878
- public describeEventBus(
879
- args: DescribeEventBusCommandInput,
880
- cb: (err: any, data?: DescribeEventBusCommandOutput) => void
881
- ): void;
882
- public describeEventBus(
883
- args: DescribeEventBusCommandInput,
884
- options: __HttpHandlerOptions,
885
- cb: (err: any, data?: DescribeEventBusCommandOutput) => void
886
- ): void;
887
- public describeEventBus(
888
- args: DescribeEventBusCommandInput,
889
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeEventBusCommandOutput) => void),
890
- cb?: (err: any, data?: DescribeEventBusCommandOutput) => void
891
- ): Promise<DescribeEventBusCommandOutput> | void {
892
- const command = new DescribeEventBusCommand(args);
893
- if (typeof optionsOrCb === "function") {
894
- this.send(command, optionsOrCb);
895
- } else if (typeof cb === "function") {
896
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
897
- this.send(command, optionsOrCb || {}, cb);
898
- } else {
899
- return this.send(command, optionsOrCb);
900
- }
901
- }
902
-
903
- /**
904
- * <p>This operation lists details about a partner event source that is shared with your
905
- * account.</p>
906
- */
907
- public describeEventSource(
908
- args: DescribeEventSourceCommandInput,
909
- options?: __HttpHandlerOptions
910
- ): Promise<DescribeEventSourceCommandOutput>;
911
- public describeEventSource(
912
- args: DescribeEventSourceCommandInput,
913
- cb: (err: any, data?: DescribeEventSourceCommandOutput) => void
914
- ): void;
915
- public describeEventSource(
916
- args: DescribeEventSourceCommandInput,
917
- options: __HttpHandlerOptions,
918
- cb: (err: any, data?: DescribeEventSourceCommandOutput) => void
919
- ): void;
920
- public describeEventSource(
921
- args: DescribeEventSourceCommandInput,
922
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeEventSourceCommandOutput) => void),
923
- cb?: (err: any, data?: DescribeEventSourceCommandOutput) => void
924
- ): Promise<DescribeEventSourceCommandOutput> | void {
925
- const command = new DescribeEventSourceCommand(args);
926
- if (typeof optionsOrCb === "function") {
927
- this.send(command, optionsOrCb);
928
- } else if (typeof cb === "function") {
929
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
930
- this.send(command, optionsOrCb || {}, cb);
931
- } else {
932
- return this.send(command, optionsOrCb);
933
- }
934
- }
935
-
936
- /**
937
- * <p>An SaaS partner can use this operation to list details about a partner event source that
938
- * they have created. Amazon Web Services customers do not use this operation. Instead, Amazon Web Services customers can use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_DescribeEventSource.html">DescribeEventSource</a>
939
- * to see details about a partner event source that is
940
- * shared with them.</p>
941
- */
942
- public describePartnerEventSource(
943
- args: DescribePartnerEventSourceCommandInput,
944
- options?: __HttpHandlerOptions
945
- ): Promise<DescribePartnerEventSourceCommandOutput>;
946
- public describePartnerEventSource(
947
- args: DescribePartnerEventSourceCommandInput,
948
- cb: (err: any, data?: DescribePartnerEventSourceCommandOutput) => void
949
- ): void;
950
- public describePartnerEventSource(
951
- args: DescribePartnerEventSourceCommandInput,
952
- options: __HttpHandlerOptions,
953
- cb: (err: any, data?: DescribePartnerEventSourceCommandOutput) => void
954
- ): void;
955
- public describePartnerEventSource(
956
- args: DescribePartnerEventSourceCommandInput,
957
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribePartnerEventSourceCommandOutput) => void),
958
- cb?: (err: any, data?: DescribePartnerEventSourceCommandOutput) => void
959
- ): Promise<DescribePartnerEventSourceCommandOutput> | void {
960
- const command = new DescribePartnerEventSourceCommand(args);
961
- if (typeof optionsOrCb === "function") {
962
- this.send(command, optionsOrCb);
963
- } else if (typeof cb === "function") {
964
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
965
- this.send(command, optionsOrCb || {}, cb);
966
- } else {
967
- return this.send(command, optionsOrCb);
968
- }
969
- }
970
-
971
- /**
972
- * <p>Retrieves details about a replay. Use <code>DescribeReplay</code> to determine the
973
- * progress of a running replay. A replay processes events to replay based on the time in the
974
- * event, and replays them using 1 minute intervals. If you use <code>StartReplay</code> and
975
- * specify an <code>EventStartTime</code> and an <code>EventEndTime</code> that covers a 20
976
- * minute time range, the events are replayed from the first minute of that 20 minute range
977
- * first. Then the events from the second minute are replayed. You can use
978
- * <code>DescribeReplay</code> to determine the progress of a replay. The value returned for
979
- * <code>EventLastReplayedTime</code> indicates the time within the specified time range
980
- * associated with the last event replayed.</p>
981
- */
982
- public describeReplay(
983
- args: DescribeReplayCommandInput,
984
- options?: __HttpHandlerOptions
985
- ): Promise<DescribeReplayCommandOutput>;
986
- public describeReplay(
987
- args: DescribeReplayCommandInput,
988
- cb: (err: any, data?: DescribeReplayCommandOutput) => void
989
- ): void;
990
- public describeReplay(
991
- args: DescribeReplayCommandInput,
992
- options: __HttpHandlerOptions,
993
- cb: (err: any, data?: DescribeReplayCommandOutput) => void
994
- ): void;
995
- public describeReplay(
996
- args: DescribeReplayCommandInput,
997
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeReplayCommandOutput) => void),
998
- cb?: (err: any, data?: DescribeReplayCommandOutput) => void
999
- ): Promise<DescribeReplayCommandOutput> | void {
1000
- const command = new DescribeReplayCommand(args);
1001
- if (typeof optionsOrCb === "function") {
1002
- this.send(command, optionsOrCb);
1003
- } else if (typeof cb === "function") {
1004
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1005
- this.send(command, optionsOrCb || {}, cb);
1006
- } else {
1007
- return this.send(command, optionsOrCb);
1008
- }
1009
- }
1010
-
1011
- /**
1012
- * <p>Describes the specified rule.</p>
1013
- * <p>DescribeRule does not list the targets of a rule. To see the targets associated with a
1014
- * rule, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ListTargetsByRule.html">ListTargetsByRule</a>.</p>
1015
- */
1016
- public describeRule(
1017
- args: DescribeRuleCommandInput,
1018
- options?: __HttpHandlerOptions
1019
- ): Promise<DescribeRuleCommandOutput>;
1020
- public describeRule(args: DescribeRuleCommandInput, cb: (err: any, data?: DescribeRuleCommandOutput) => void): void;
1021
- public describeRule(
1022
- args: DescribeRuleCommandInput,
1023
- options: __HttpHandlerOptions,
1024
- cb: (err: any, data?: DescribeRuleCommandOutput) => void
1025
- ): void;
1026
- public describeRule(
1027
- args: DescribeRuleCommandInput,
1028
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeRuleCommandOutput) => void),
1029
- cb?: (err: any, data?: DescribeRuleCommandOutput) => void
1030
- ): Promise<DescribeRuleCommandOutput> | void {
1031
- const command = new DescribeRuleCommand(args);
1032
- if (typeof optionsOrCb === "function") {
1033
- this.send(command, optionsOrCb);
1034
- } else if (typeof cb === "function") {
1035
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1036
- this.send(command, optionsOrCb || {}, cb);
1037
- } else {
1038
- return this.send(command, optionsOrCb);
1039
- }
1040
- }
1041
-
1042
- /**
1043
- * <p>Disables the specified rule. A disabled rule won't match any events, and won't
1044
- * self-trigger if it has a schedule expression.</p>
1045
- *
1046
- * <p>When you disable a rule, incoming events might continue to match to the disabled rule.
1047
- * Allow a short period of time for changes to take effect.</p>
1048
- */
1049
- public disableRule(args: DisableRuleCommandInput, options?: __HttpHandlerOptions): Promise<DisableRuleCommandOutput>;
1050
- public disableRule(args: DisableRuleCommandInput, cb: (err: any, data?: DisableRuleCommandOutput) => void): void;
1051
- public disableRule(
1052
- args: DisableRuleCommandInput,
1053
- options: __HttpHandlerOptions,
1054
- cb: (err: any, data?: DisableRuleCommandOutput) => void
1055
- ): void;
1056
- public disableRule(
1057
- args: DisableRuleCommandInput,
1058
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DisableRuleCommandOutput) => void),
1059
- cb?: (err: any, data?: DisableRuleCommandOutput) => void
1060
- ): Promise<DisableRuleCommandOutput> | void {
1061
- const command = new DisableRuleCommand(args);
1062
- if (typeof optionsOrCb === "function") {
1063
- this.send(command, optionsOrCb);
1064
- } else if (typeof cb === "function") {
1065
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1066
- this.send(command, optionsOrCb || {}, cb);
1067
- } else {
1068
- return this.send(command, optionsOrCb);
1069
- }
1070
- }
1071
-
1072
- /**
1073
- * <p>Enables the specified rule. If the rule does not exist, the operation fails.</p>
1074
- *
1075
- * <p>When you enable a rule, incoming events might not immediately start matching to a newly
1076
- * enabled rule. Allow a short period of time for changes to take effect.</p>
1077
- */
1078
- public enableRule(args: EnableRuleCommandInput, options?: __HttpHandlerOptions): Promise<EnableRuleCommandOutput>;
1079
- public enableRule(args: EnableRuleCommandInput, cb: (err: any, data?: EnableRuleCommandOutput) => void): void;
1080
- public enableRule(
1081
- args: EnableRuleCommandInput,
1082
- options: __HttpHandlerOptions,
1083
- cb: (err: any, data?: EnableRuleCommandOutput) => void
1084
- ): void;
1085
- public enableRule(
1086
- args: EnableRuleCommandInput,
1087
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: EnableRuleCommandOutput) => void),
1088
- cb?: (err: any, data?: EnableRuleCommandOutput) => void
1089
- ): Promise<EnableRuleCommandOutput> | void {
1090
- const command = new EnableRuleCommand(args);
1091
- if (typeof optionsOrCb === "function") {
1092
- this.send(command, optionsOrCb);
1093
- } else if (typeof cb === "function") {
1094
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1095
- this.send(command, optionsOrCb || {}, cb);
1096
- } else {
1097
- return this.send(command, optionsOrCb);
1098
- }
1099
- }
1100
-
1101
- /**
1102
- * <p>Retrieves a list of API destination in the account in the current Region.</p>
1103
- */
1104
- public listApiDestinations(
1105
- args: ListApiDestinationsCommandInput,
1106
- options?: __HttpHandlerOptions
1107
- ): Promise<ListApiDestinationsCommandOutput>;
1108
- public listApiDestinations(
1109
- args: ListApiDestinationsCommandInput,
1110
- cb: (err: any, data?: ListApiDestinationsCommandOutput) => void
1111
- ): void;
1112
- public listApiDestinations(
1113
- args: ListApiDestinationsCommandInput,
1114
- options: __HttpHandlerOptions,
1115
- cb: (err: any, data?: ListApiDestinationsCommandOutput) => void
1116
- ): void;
1117
- public listApiDestinations(
1118
- args: ListApiDestinationsCommandInput,
1119
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListApiDestinationsCommandOutput) => void),
1120
- cb?: (err: any, data?: ListApiDestinationsCommandOutput) => void
1121
- ): Promise<ListApiDestinationsCommandOutput> | void {
1122
- const command = new ListApiDestinationsCommand(args);
1123
- if (typeof optionsOrCb === "function") {
1124
- this.send(command, optionsOrCb);
1125
- } else if (typeof cb === "function") {
1126
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1127
- this.send(command, optionsOrCb || {}, cb);
1128
- } else {
1129
- return this.send(command, optionsOrCb);
1130
- }
1131
- }
1132
-
1133
- /**
1134
- * <p>Lists your archives. You can either list all the archives or you can provide a prefix to
1135
- * match to the archive names. Filter parameters are exclusive.</p>
1136
- */
1137
- public listArchives(
1138
- args: ListArchivesCommandInput,
1139
- options?: __HttpHandlerOptions
1140
- ): Promise<ListArchivesCommandOutput>;
1141
- public listArchives(args: ListArchivesCommandInput, cb: (err: any, data?: ListArchivesCommandOutput) => void): void;
1142
- public listArchives(
1143
- args: ListArchivesCommandInput,
1144
- options: __HttpHandlerOptions,
1145
- cb: (err: any, data?: ListArchivesCommandOutput) => void
1146
- ): void;
1147
- public listArchives(
1148
- args: ListArchivesCommandInput,
1149
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListArchivesCommandOutput) => void),
1150
- cb?: (err: any, data?: ListArchivesCommandOutput) => void
1151
- ): Promise<ListArchivesCommandOutput> | void {
1152
- const command = new ListArchivesCommand(args);
1153
- if (typeof optionsOrCb === "function") {
1154
- this.send(command, optionsOrCb);
1155
- } else if (typeof cb === "function") {
1156
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1157
- this.send(command, optionsOrCb || {}, cb);
1158
- } else {
1159
- return this.send(command, optionsOrCb);
1160
- }
1161
- }
1162
-
1163
- /**
1164
- * <p>Retrieves a list of connections from the account.</p>
1165
- */
1166
- public listConnections(
1167
- args: ListConnectionsCommandInput,
1168
- options?: __HttpHandlerOptions
1169
- ): Promise<ListConnectionsCommandOutput>;
1170
- public listConnections(
1171
- args: ListConnectionsCommandInput,
1172
- cb: (err: any, data?: ListConnectionsCommandOutput) => void
1173
- ): void;
1174
- public listConnections(
1175
- args: ListConnectionsCommandInput,
1176
- options: __HttpHandlerOptions,
1177
- cb: (err: any, data?: ListConnectionsCommandOutput) => void
1178
- ): void;
1179
- public listConnections(
1180
- args: ListConnectionsCommandInput,
1181
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListConnectionsCommandOutput) => void),
1182
- cb?: (err: any, data?: ListConnectionsCommandOutput) => void
1183
- ): Promise<ListConnectionsCommandOutput> | void {
1184
- const command = new ListConnectionsCommand(args);
1185
- if (typeof optionsOrCb === "function") {
1186
- this.send(command, optionsOrCb);
1187
- } else if (typeof cb === "function") {
1188
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1189
- this.send(command, optionsOrCb || {}, cb);
1190
- } else {
1191
- return this.send(command, optionsOrCb);
1192
- }
1193
- }
1194
-
1195
- /**
1196
- * <p>Lists all the event buses in your account, including the default event bus, custom event
1197
- * buses, and partner event buses.</p>
1198
- */
1199
- public listEventBuses(
1200
- args: ListEventBusesCommandInput,
1201
- options?: __HttpHandlerOptions
1202
- ): Promise<ListEventBusesCommandOutput>;
1203
- public listEventBuses(
1204
- args: ListEventBusesCommandInput,
1205
- cb: (err: any, data?: ListEventBusesCommandOutput) => void
1206
- ): void;
1207
- public listEventBuses(
1208
- args: ListEventBusesCommandInput,
1209
- options: __HttpHandlerOptions,
1210
- cb: (err: any, data?: ListEventBusesCommandOutput) => void
1211
- ): void;
1212
- public listEventBuses(
1213
- args: ListEventBusesCommandInput,
1214
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListEventBusesCommandOutput) => void),
1215
- cb?: (err: any, data?: ListEventBusesCommandOutput) => void
1216
- ): Promise<ListEventBusesCommandOutput> | void {
1217
- const command = new ListEventBusesCommand(args);
1218
- if (typeof optionsOrCb === "function") {
1219
- this.send(command, optionsOrCb);
1220
- } else if (typeof cb === "function") {
1221
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1222
- this.send(command, optionsOrCb || {}, cb);
1223
- } else {
1224
- return this.send(command, optionsOrCb);
1225
- }
1226
- }
1227
-
1228
- /**
1229
- * <p>You can use this to see all the partner event sources that have been shared with your Amazon Web Services
1230
- * account. For more information about partner event sources, see <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_CreateEventBus.html">CreateEventBus</a>.</p>
1231
- */
1232
- public listEventSources(
1233
- args: ListEventSourcesCommandInput,
1234
- options?: __HttpHandlerOptions
1235
- ): Promise<ListEventSourcesCommandOutput>;
1236
- public listEventSources(
1237
- args: ListEventSourcesCommandInput,
1238
- cb: (err: any, data?: ListEventSourcesCommandOutput) => void
1239
- ): void;
1240
- public listEventSources(
1241
- args: ListEventSourcesCommandInput,
1242
- options: __HttpHandlerOptions,
1243
- cb: (err: any, data?: ListEventSourcesCommandOutput) => void
1244
- ): void;
1245
- public listEventSources(
1246
- args: ListEventSourcesCommandInput,
1247
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListEventSourcesCommandOutput) => void),
1248
- cb?: (err: any, data?: ListEventSourcesCommandOutput) => void
1249
- ): Promise<ListEventSourcesCommandOutput> | void {
1250
- const command = new ListEventSourcesCommand(args);
1251
- if (typeof optionsOrCb === "function") {
1252
- this.send(command, optionsOrCb);
1253
- } else if (typeof cb === "function") {
1254
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1255
- this.send(command, optionsOrCb || {}, cb);
1256
- } else {
1257
- return this.send(command, optionsOrCb);
1258
- }
1259
- }
1260
-
1261
- /**
1262
- * <p>An SaaS partner can use this operation to display the Amazon Web Services account ID that a particular
1263
- * partner event source name is associated with. This operation is not used by Amazon Web Services
1264
- * customers.</p>
1265
- */
1266
- public listPartnerEventSourceAccounts(
1267
- args: ListPartnerEventSourceAccountsCommandInput,
1268
- options?: __HttpHandlerOptions
1269
- ): Promise<ListPartnerEventSourceAccountsCommandOutput>;
1270
- public listPartnerEventSourceAccounts(
1271
- args: ListPartnerEventSourceAccountsCommandInput,
1272
- cb: (err: any, data?: ListPartnerEventSourceAccountsCommandOutput) => void
1273
- ): void;
1274
- public listPartnerEventSourceAccounts(
1275
- args: ListPartnerEventSourceAccountsCommandInput,
1276
- options: __HttpHandlerOptions,
1277
- cb: (err: any, data?: ListPartnerEventSourceAccountsCommandOutput) => void
1278
- ): void;
1279
- public listPartnerEventSourceAccounts(
1280
- args: ListPartnerEventSourceAccountsCommandInput,
1281
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListPartnerEventSourceAccountsCommandOutput) => void),
1282
- cb?: (err: any, data?: ListPartnerEventSourceAccountsCommandOutput) => void
1283
- ): Promise<ListPartnerEventSourceAccountsCommandOutput> | void {
1284
- const command = new ListPartnerEventSourceAccountsCommand(args);
1285
- if (typeof optionsOrCb === "function") {
1286
- this.send(command, optionsOrCb);
1287
- } else if (typeof cb === "function") {
1288
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1289
- this.send(command, optionsOrCb || {}, cb);
1290
- } else {
1291
- return this.send(command, optionsOrCb);
1292
- }
1293
- }
1294
-
1295
- /**
1296
- * <p>An SaaS partner can use this operation to list all the partner event source names that
1297
- * they have created. This operation is not used by Amazon Web Services customers.</p>
1298
- */
1299
- public listPartnerEventSources(
1300
- args: ListPartnerEventSourcesCommandInput,
1301
- options?: __HttpHandlerOptions
1302
- ): Promise<ListPartnerEventSourcesCommandOutput>;
1303
- public listPartnerEventSources(
1304
- args: ListPartnerEventSourcesCommandInput,
1305
- cb: (err: any, data?: ListPartnerEventSourcesCommandOutput) => void
1306
- ): void;
1307
- public listPartnerEventSources(
1308
- args: ListPartnerEventSourcesCommandInput,
1309
- options: __HttpHandlerOptions,
1310
- cb: (err: any, data?: ListPartnerEventSourcesCommandOutput) => void
1311
- ): void;
1312
- public listPartnerEventSources(
1313
- args: ListPartnerEventSourcesCommandInput,
1314
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListPartnerEventSourcesCommandOutput) => void),
1315
- cb?: (err: any, data?: ListPartnerEventSourcesCommandOutput) => void
1316
- ): Promise<ListPartnerEventSourcesCommandOutput> | void {
1317
- const command = new ListPartnerEventSourcesCommand(args);
1318
- if (typeof optionsOrCb === "function") {
1319
- this.send(command, optionsOrCb);
1320
- } else if (typeof cb === "function") {
1321
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1322
- this.send(command, optionsOrCb || {}, cb);
1323
- } else {
1324
- return this.send(command, optionsOrCb);
1325
- }
1326
- }
1327
-
1328
- /**
1329
- * <p>Lists your replays. You can either list all the replays or you can provide a prefix to
1330
- * match to the replay names. Filter parameters are exclusive.</p>
1331
- */
1332
- public listReplays(args: ListReplaysCommandInput, options?: __HttpHandlerOptions): Promise<ListReplaysCommandOutput>;
1333
- public listReplays(args: ListReplaysCommandInput, cb: (err: any, data?: ListReplaysCommandOutput) => void): void;
1334
- public listReplays(
1335
- args: ListReplaysCommandInput,
1336
- options: __HttpHandlerOptions,
1337
- cb: (err: any, data?: ListReplaysCommandOutput) => void
1338
- ): void;
1339
- public listReplays(
1340
- args: ListReplaysCommandInput,
1341
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListReplaysCommandOutput) => void),
1342
- cb?: (err: any, data?: ListReplaysCommandOutput) => void
1343
- ): Promise<ListReplaysCommandOutput> | void {
1344
- const command = new ListReplaysCommand(args);
1345
- if (typeof optionsOrCb === "function") {
1346
- this.send(command, optionsOrCb);
1347
- } else if (typeof cb === "function") {
1348
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1349
- this.send(command, optionsOrCb || {}, cb);
1350
- } else {
1351
- return this.send(command, optionsOrCb);
1352
- }
1353
- }
1354
-
1355
- /**
1356
- * <p>Lists the rules for the specified target. You can see which of the rules in Amazon
1357
- * EventBridge can invoke a specific target in your account.</p>
1358
- */
1359
- public listRuleNamesByTarget(
1360
- args: ListRuleNamesByTargetCommandInput,
1361
- options?: __HttpHandlerOptions
1362
- ): Promise<ListRuleNamesByTargetCommandOutput>;
1363
- public listRuleNamesByTarget(
1364
- args: ListRuleNamesByTargetCommandInput,
1365
- cb: (err: any, data?: ListRuleNamesByTargetCommandOutput) => void
1366
- ): void;
1367
- public listRuleNamesByTarget(
1368
- args: ListRuleNamesByTargetCommandInput,
1369
- options: __HttpHandlerOptions,
1370
- cb: (err: any, data?: ListRuleNamesByTargetCommandOutput) => void
1371
- ): void;
1372
- public listRuleNamesByTarget(
1373
- args: ListRuleNamesByTargetCommandInput,
1374
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListRuleNamesByTargetCommandOutput) => void),
1375
- cb?: (err: any, data?: ListRuleNamesByTargetCommandOutput) => void
1376
- ): Promise<ListRuleNamesByTargetCommandOutput> | void {
1377
- const command = new ListRuleNamesByTargetCommand(args);
1378
- if (typeof optionsOrCb === "function") {
1379
- this.send(command, optionsOrCb);
1380
- } else if (typeof cb === "function") {
1381
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1382
- this.send(command, optionsOrCb || {}, cb);
1383
- } else {
1384
- return this.send(command, optionsOrCb);
1385
- }
1386
- }
1387
-
1388
- /**
1389
- * <p>Lists your Amazon EventBridge rules. You can either list all the rules or you can provide
1390
- * a prefix to match to the rule names.</p>
1391
- *
1392
- * <p>ListRules does not list the targets of a rule. To see the targets associated with a rule,
1393
- * use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ListTargetsByRule.html">ListTargetsByRule</a>.</p>
1394
- */
1395
- public listRules(args: ListRulesCommandInput, options?: __HttpHandlerOptions): Promise<ListRulesCommandOutput>;
1396
- public listRules(args: ListRulesCommandInput, cb: (err: any, data?: ListRulesCommandOutput) => void): void;
1397
- public listRules(
1398
- args: ListRulesCommandInput,
1399
- options: __HttpHandlerOptions,
1400
- cb: (err: any, data?: ListRulesCommandOutput) => void
1401
- ): void;
1402
- public listRules(
1403
- args: ListRulesCommandInput,
1404
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListRulesCommandOutput) => void),
1405
- cb?: (err: any, data?: ListRulesCommandOutput) => void
1406
- ): Promise<ListRulesCommandOutput> | void {
1407
- const command = new ListRulesCommand(args);
1408
- if (typeof optionsOrCb === "function") {
1409
- this.send(command, optionsOrCb);
1410
- } else if (typeof cb === "function") {
1411
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1412
- this.send(command, optionsOrCb || {}, cb);
1413
- } else {
1414
- return this.send(command, optionsOrCb);
1415
- }
1416
- }
1417
-
1418
- /**
1419
- * <p>Displays the tags associated with an EventBridge resource. In EventBridge, rules and event
1420
- * buses can be tagged.</p>
1421
- */
1422
- public listTagsForResource(
1423
- args: ListTagsForResourceCommandInput,
1424
- options?: __HttpHandlerOptions
1425
- ): Promise<ListTagsForResourceCommandOutput>;
1426
- public listTagsForResource(
1427
- args: ListTagsForResourceCommandInput,
1428
- cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
1429
- ): void;
1430
- public listTagsForResource(
1431
- args: ListTagsForResourceCommandInput,
1432
- options: __HttpHandlerOptions,
1433
- cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
1434
- ): void;
1435
- public listTagsForResource(
1436
- args: ListTagsForResourceCommandInput,
1437
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListTagsForResourceCommandOutput) => void),
1438
- cb?: (err: any, data?: ListTagsForResourceCommandOutput) => void
1439
- ): Promise<ListTagsForResourceCommandOutput> | void {
1440
- const command = new ListTagsForResourceCommand(args);
1441
- if (typeof optionsOrCb === "function") {
1442
- this.send(command, optionsOrCb);
1443
- } else if (typeof cb === "function") {
1444
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1445
- this.send(command, optionsOrCb || {}, cb);
1446
- } else {
1447
- return this.send(command, optionsOrCb);
1448
- }
1449
- }
1450
-
1451
- /**
1452
- * <p>Lists the targets assigned to the specified rule.</p>
1453
- */
1454
- public listTargetsByRule(
1455
- args: ListTargetsByRuleCommandInput,
1456
- options?: __HttpHandlerOptions
1457
- ): Promise<ListTargetsByRuleCommandOutput>;
1458
- public listTargetsByRule(
1459
- args: ListTargetsByRuleCommandInput,
1460
- cb: (err: any, data?: ListTargetsByRuleCommandOutput) => void
1461
- ): void;
1462
- public listTargetsByRule(
1463
- args: ListTargetsByRuleCommandInput,
1464
- options: __HttpHandlerOptions,
1465
- cb: (err: any, data?: ListTargetsByRuleCommandOutput) => void
1466
- ): void;
1467
- public listTargetsByRule(
1468
- args: ListTargetsByRuleCommandInput,
1469
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListTargetsByRuleCommandOutput) => void),
1470
- cb?: (err: any, data?: ListTargetsByRuleCommandOutput) => void
1471
- ): Promise<ListTargetsByRuleCommandOutput> | void {
1472
- const command = new ListTargetsByRuleCommand(args);
1473
- if (typeof optionsOrCb === "function") {
1474
- this.send(command, optionsOrCb);
1475
- } else if (typeof cb === "function") {
1476
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1477
- this.send(command, optionsOrCb || {}, cb);
1478
- } else {
1479
- return this.send(command, optionsOrCb);
1480
- }
1481
- }
1482
-
1483
- /**
1484
- * <p>Sends custom events to Amazon EventBridge so that they can be matched to rules.</p>
1485
- */
1486
- public putEvents(args: PutEventsCommandInput, options?: __HttpHandlerOptions): Promise<PutEventsCommandOutput>;
1487
- public putEvents(args: PutEventsCommandInput, cb: (err: any, data?: PutEventsCommandOutput) => void): void;
1488
- public putEvents(
1489
- args: PutEventsCommandInput,
1490
- options: __HttpHandlerOptions,
1491
- cb: (err: any, data?: PutEventsCommandOutput) => void
1492
- ): void;
1493
- public putEvents(
1494
- args: PutEventsCommandInput,
1495
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutEventsCommandOutput) => void),
1496
- cb?: (err: any, data?: PutEventsCommandOutput) => void
1497
- ): Promise<PutEventsCommandOutput> | void {
1498
- const command = new PutEventsCommand(args);
1499
- if (typeof optionsOrCb === "function") {
1500
- this.send(command, optionsOrCb);
1501
- } else if (typeof cb === "function") {
1502
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1503
- this.send(command, optionsOrCb || {}, cb);
1504
- } else {
1505
- return this.send(command, optionsOrCb);
1506
- }
1507
- }
1508
-
1509
- /**
1510
- * <p>This is used by SaaS partners to write events to a customer's partner event bus. Amazon Web Services
1511
- * customers do not use this operation.</p>
1512
- */
1513
- public putPartnerEvents(
1514
- args: PutPartnerEventsCommandInput,
1515
- options?: __HttpHandlerOptions
1516
- ): Promise<PutPartnerEventsCommandOutput>;
1517
- public putPartnerEvents(
1518
- args: PutPartnerEventsCommandInput,
1519
- cb: (err: any, data?: PutPartnerEventsCommandOutput) => void
1520
- ): void;
1521
- public putPartnerEvents(
1522
- args: PutPartnerEventsCommandInput,
1523
- options: __HttpHandlerOptions,
1524
- cb: (err: any, data?: PutPartnerEventsCommandOutput) => void
1525
- ): void;
1526
- public putPartnerEvents(
1527
- args: PutPartnerEventsCommandInput,
1528
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutPartnerEventsCommandOutput) => void),
1529
- cb?: (err: any, data?: PutPartnerEventsCommandOutput) => void
1530
- ): Promise<PutPartnerEventsCommandOutput> | void {
1531
- const command = new PutPartnerEventsCommand(args);
1532
- if (typeof optionsOrCb === "function") {
1533
- this.send(command, optionsOrCb);
1534
- } else if (typeof cb === "function") {
1535
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1536
- this.send(command, optionsOrCb || {}, cb);
1537
- } else {
1538
- return this.send(command, optionsOrCb);
1539
- }
1540
- }
1541
-
1542
- /**
1543
- * <p>Running <code>PutPermission</code> permits the specified Amazon Web Services account or Amazon Web Services organization
1544
- * to put events to the specified <i>event bus</i>. Amazon EventBridge (CloudWatch
1545
- * Events) rules in your account are triggered by these events arriving to an event bus in your
1546
- * account. </p>
1547
- * <p>For another account to send events to your account, that external account must have an
1548
- * EventBridge rule with your account's event bus as a target.</p>
1549
- *
1550
- * <p>To enable multiple Amazon Web Services accounts to put events to your event bus, run
1551
- * <code>PutPermission</code> once for each of these accounts. Or, if all the accounts are
1552
- * members of the same Amazon Web Services organization, you can run <code>PutPermission</code> once specifying
1553
- * <code>Principal</code> as "*" and specifying the Amazon Web Services organization ID in
1554
- * <code>Condition</code>, to grant permissions to all accounts in that organization.</p>
1555
- *
1556
- * <p>If you grant permissions using an organization, then accounts in that organization must
1557
- * specify a <code>RoleArn</code> with proper permissions when they use <code>PutTarget</code> to
1558
- * add your account's event bus as a target. For more information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-cross-account-event-delivery.html">Sending and
1559
- * Receiving Events Between Amazon Web Services Accounts</a> in the <i>Amazon EventBridge User
1560
- * Guide</i>.</p>
1561
- *
1562
- * <p>The permission policy on the event bus cannot exceed 10 KB in size.</p>
1563
- */
1564
- public putPermission(
1565
- args: PutPermissionCommandInput,
1566
- options?: __HttpHandlerOptions
1567
- ): Promise<PutPermissionCommandOutput>;
1568
- public putPermission(
1569
- args: PutPermissionCommandInput,
1570
- cb: (err: any, data?: PutPermissionCommandOutput) => void
1571
- ): void;
1572
- public putPermission(
1573
- args: PutPermissionCommandInput,
1574
- options: __HttpHandlerOptions,
1575
- cb: (err: any, data?: PutPermissionCommandOutput) => void
1576
- ): void;
1577
- public putPermission(
1578
- args: PutPermissionCommandInput,
1579
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutPermissionCommandOutput) => void),
1580
- cb?: (err: any, data?: PutPermissionCommandOutput) => void
1581
- ): Promise<PutPermissionCommandOutput> | void {
1582
- const command = new PutPermissionCommand(args);
1583
- if (typeof optionsOrCb === "function") {
1584
- this.send(command, optionsOrCb);
1585
- } else if (typeof cb === "function") {
1586
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1587
- this.send(command, optionsOrCb || {}, cb);
1588
- } else {
1589
- return this.send(command, optionsOrCb);
1590
- }
1591
- }
1592
-
1593
- /**
1594
- * <p>Creates or updates the specified rule. Rules are enabled by default, or based on value of
1595
- * the state. You can disable a rule using <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_DisableRule.html">DisableRule</a>.</p>
1596
- *
1597
- * <p>A single rule watches for events from a single event bus. Events generated by Amazon Web Services services
1598
- * go to your account's default event bus. Events generated by SaaS partner services or
1599
- * applications go to the matching partner event bus. If you have custom applications or
1600
- * services, you can specify whether their events go to your default event bus or a custom event
1601
- * bus that you have created. For more information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_CreateEventBus.html">CreateEventBus</a>.</p>
1602
- *
1603
- * <p>If you are updating an existing rule, the rule is replaced with what you specify in this
1604
- * <code>PutRule</code> command. If you omit arguments in <code>PutRule</code>, the old values
1605
- * for those arguments are not kept. Instead, they are replaced with null values.</p>
1606
- *
1607
- * <p>When you create or update a rule, incoming events might not immediately start matching to
1608
- * new or updated rules. Allow a short period of time for changes to take effect.</p>
1609
- *
1610
- * <p>A rule must contain at least an EventPattern or ScheduleExpression. Rules with
1611
- * EventPatterns are triggered when a matching event is observed. Rules with ScheduleExpressions
1612
- * self-trigger based on the given schedule. A rule can have both an EventPattern and a
1613
- * ScheduleExpression, in which case the rule triggers on matching events as well as on a
1614
- * schedule.</p>
1615
- *
1616
- * <p>When you initially create a rule, you can optionally assign one or more tags to the rule.
1617
- * Tags can help you organize and categorize your resources. You can also use them to scope user
1618
- * permissions, by granting a user permission to access or change only rules with certain tag
1619
- * values. To use the <code>PutRule</code> operation and assign tags, you must have both the
1620
- * <code>events:PutRule</code> and <code>events:TagResource</code> permissions.</p>
1621
- * <p>If you are updating an existing rule, any tags you specify in the <code>PutRule</code>
1622
- * operation are ignored. To update the tags of an existing rule, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_TagResource.html">TagResource</a> and <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_UntagResource.html">UntagResource</a>.</p>
1623
- *
1624
- * <p>Most services in Amazon Web Services treat : or / as the same character in Amazon Resource Names (ARNs).
1625
- * However, EventBridge uses an exact match in event patterns and rules. Be sure to use the
1626
- * correct ARN characters when creating event patterns so that they match the ARN syntax in the
1627
- * event you want to match.</p>
1628
- *
1629
- * <p>In EventBridge, it is possible to create rules that lead to infinite loops, where a rule
1630
- * is fired repeatedly. For example, a rule might detect that ACLs have changed on an S3 bucket,
1631
- * and trigger software to change them to the desired state. If the rule is not written
1632
- * carefully, the subsequent change to the ACLs fires the rule again, creating an infinite
1633
- * loop.</p>
1634
- * <p>To prevent this, write the rules so that the triggered actions do not re-fire the same
1635
- * rule. For example, your rule could fire only if ACLs are found to be in a bad state, instead
1636
- * of after any change. </p>
1637
- * <p>An infinite loop can quickly cause higher than expected charges. We recommend that you use
1638
- * budgeting, which alerts you when charges exceed your specified limit. For more information,
1639
- * see <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/budgets-managing-costs.html">Managing Your Costs with
1640
- * Budgets</a>.</p>
1641
- */
1642
- public putRule(args: PutRuleCommandInput, options?: __HttpHandlerOptions): Promise<PutRuleCommandOutput>;
1643
- public putRule(args: PutRuleCommandInput, cb: (err: any, data?: PutRuleCommandOutput) => void): void;
1644
- public putRule(
1645
- args: PutRuleCommandInput,
1646
- options: __HttpHandlerOptions,
1647
- cb: (err: any, data?: PutRuleCommandOutput) => void
1648
- ): void;
1649
- public putRule(
1650
- args: PutRuleCommandInput,
1651
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutRuleCommandOutput) => void),
1652
- cb?: (err: any, data?: PutRuleCommandOutput) => void
1653
- ): Promise<PutRuleCommandOutput> | void {
1654
- const command = new PutRuleCommand(args);
1655
- if (typeof optionsOrCb === "function") {
1656
- this.send(command, optionsOrCb);
1657
- } else if (typeof cb === "function") {
1658
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1659
- this.send(command, optionsOrCb || {}, cb);
1660
- } else {
1661
- return this.send(command, optionsOrCb);
1662
- }
1663
- }
1664
-
1665
- /**
1666
- * <p>Adds the specified targets to the specified rule, or updates the targets if they are
1667
- * already associated with the rule.</p>
1668
- * <p>Targets are the resources that are invoked when a rule is triggered.</p>
1669
- * <p>You can configure the following as targets for Events:</p>
1670
- *
1671
- * <ul>
1672
- * <li>
1673
- * <p>
1674
- * <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-api-destinations.html">API
1675
- * destination</a>
1676
- * </p>
1677
- * </li>
1678
- * <li>
1679
- * <p>Amazon API Gateway REST API endpoints</p>
1680
- * </li>
1681
- * <li>
1682
- * <p>API Gateway</p>
1683
- * </li>
1684
- * <li>
1685
- * <p>Batch job queue</p>
1686
- * </li>
1687
- * <li>
1688
- * <p>CloudWatch Logs group</p>
1689
- * </li>
1690
- * <li>
1691
- * <p>CodeBuild project</p>
1692
- * </li>
1693
- * <li>
1694
- * <p>CodePipeline</p>
1695
- * </li>
1696
- * <li>
1697
- * <p>Amazon EC2 <code>CreateSnapshot</code> API call</p>
1698
- * </li>
1699
- * <li>
1700
- * <p>Amazon EC2 <code>RebootInstances</code> API call</p>
1701
- * </li>
1702
- * <li>
1703
- * <p>Amazon EC2 <code>StopInstances</code> API call</p>
1704
- * </li>
1705
- * <li>
1706
- * <p>Amazon EC2 <code>TerminateInstances</code> API call</p>
1707
- * </li>
1708
- * <li>
1709
- * <p>Amazon ECS tasks</p>
1710
- * </li>
1711
- * <li>
1712
- * <p>Event bus in a different Amazon Web Services account or Region.</p>
1713
- * <p>You can use an event bus in the US East (N. Virginia) us-east-1, US West (Oregon)
1714
- * us-west-2, or Europe (Ireland) eu-west-1 Regions as a target for a rule.</p>
1715
- * </li>
1716
- * <li>
1717
- * <p>Firehose delivery stream (Kinesis Data Firehose)</p>
1718
- * </li>
1719
- * <li>
1720
- * <p>Inspector assessment template (Amazon Inspector)</p>
1721
- * </li>
1722
- * <li>
1723
- * <p>Kinesis stream (Kinesis Data Stream)</p>
1724
- * </li>
1725
- * <li>
1726
- * <p>Lambda function</p>
1727
- * </li>
1728
- * <li>
1729
- * <p>Redshift clusters (Data API statement execution)</p>
1730
- * </li>
1731
- * <li>
1732
- * <p>Amazon SNS topic</p>
1733
- * </li>
1734
- * <li>
1735
- * <p>Amazon SQS queues (includes FIFO queues</p>
1736
- * </li>
1737
- * <li>
1738
- * <p>SSM Automation</p>
1739
- * </li>
1740
- * <li>
1741
- * <p>SSM OpsItem</p>
1742
- * </li>
1743
- * <li>
1744
- * <p>SSM Run Command</p>
1745
- * </li>
1746
- * <li>
1747
- * <p>Step Functions state machines</p>
1748
- * </li>
1749
- * </ul>
1750
- *
1751
- * <p>Creating rules with built-in targets is supported only in the Management Console. The
1752
- * built-in targets are <code>EC2 CreateSnapshot API call</code>, <code>EC2 RebootInstances API
1753
- * call</code>, <code>EC2 StopInstances API call</code>, and <code>EC2 TerminateInstances API
1754
- * call</code>. </p>
1755
- *
1756
- * <p>For some target types, <code>PutTargets</code> provides target-specific parameters. If the
1757
- * target is a Kinesis data stream, you can optionally specify which shard the event goes to by
1758
- * using the <code>KinesisParameters</code> argument. To invoke a command on multiple EC2
1759
- * instances with one rule, you can use the <code>RunCommandParameters</code> field.</p>
1760
- *
1761
- * <p>To be able to make API calls against the resources that you own, Amazon EventBridge
1762
- * needs the appropriate permissions. For Lambda and Amazon SNS
1763
- * resources, EventBridge relies on resource-based policies. For EC2 instances, Kinesis Data Streams,
1764
- * Step Functions state machines and API Gateway REST APIs, EventBridge relies on
1765
- * IAM roles that you specify in the <code>RoleARN</code> argument in <code>PutTargets</code>.
1766
- * For more information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/auth-and-access-control-eventbridge.html">Authentication
1767
- * and Access Control</a> in the <i>Amazon EventBridge User Guide</i>.</p>
1768
- *
1769
- * <p>If another Amazon Web Services account is in the same region and has granted you permission (using
1770
- * <code>PutPermission</code>), you can send events to that account. Set that account's event
1771
- * bus as a target of the rules in your account. To send the matched events to the other account,
1772
- * specify that account's event bus as the <code>Arn</code> value when you run
1773
- * <code>PutTargets</code>. If your account sends events to another account, your account is
1774
- * charged for each sent event. Each event sent to another account is charged as a custom event.
1775
- * The account receiving the event is not charged. For more information, see <a href="http://aws.amazon.com/eventbridge/pricing/">Amazon EventBridge
1776
- * Pricing</a>.</p>
1777
- *
1778
- * <note>
1779
- * <p>
1780
- * <code>Input</code>, <code>InputPath</code>, and <code>InputTransformer</code> are not
1781
- * available with <code>PutTarget</code> if the target is an event bus of a different Amazon Web Services
1782
- * account.</p>
1783
- * </note>
1784
- *
1785
- * <p>If you are setting the event bus of another account as the target, and that account
1786
- * granted permission to your account through an organization instead of directly by the account
1787
- * ID, then you must specify a <code>RoleArn</code> with proper permissions in the
1788
- * <code>Target</code> structure. For more information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-cross-account-event-delivery.html">Sending and
1789
- * Receiving Events Between Amazon Web Services Accounts</a> in the <i>Amazon EventBridge User
1790
- * Guide</i>.</p>
1791
- *
1792
- * <p>For more information about enabling cross-account events, see <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutPermission.html">PutPermission</a>.</p>
1793
- *
1794
- * <p>
1795
- * <b>Input</b>, <b>InputPath</b>, and
1796
- * <b>InputTransformer</b> are mutually exclusive and optional
1797
- * parameters of a target. When a rule is triggered due to a matched event:</p>
1798
- *
1799
- * <ul>
1800
- * <li>
1801
- * <p>If none of the following arguments are specified for a target, then the entire event
1802
- * is passed to the target in JSON format (unless the target is Amazon EC2 Run Command or
1803
- * Amazon ECS task, in which case nothing from the event is passed to the target).</p>
1804
- * </li>
1805
- * <li>
1806
- * <p>If <b>Input</b> is specified in the form of valid JSON, then
1807
- * the matched event is overridden with this constant.</p>
1808
- * </li>
1809
- * <li>
1810
- * <p>If <b>InputPath</b> is specified in the form of JSONPath
1811
- * (for example, <code>$.detail</code>), then only the part of the event specified in the
1812
- * path is passed to the target (for example, only the detail part of the event is
1813
- * passed).</p>
1814
- * </li>
1815
- * <li>
1816
- * <p>If <b>InputTransformer</b> is specified, then one or more
1817
- * specified JSONPaths are extracted from the event and used as values in a template that you
1818
- * specify as the input to the target.</p>
1819
- * </li>
1820
- * </ul>
1821
- *
1822
- * <p>When you specify <code>InputPath</code> or <code>InputTransformer</code>, you must use
1823
- * JSON dot notation, not bracket notation.</p>
1824
- *
1825
- * <p>When you add targets to a rule and the associated rule triggers soon after, new or updated
1826
- * targets might not be immediately invoked. Allow a short period of time for changes to take
1827
- * effect.</p>
1828
- *
1829
- * <p>This action can partially fail if too many requests are made at the same time. If that
1830
- * happens, <code>FailedEntryCount</code> is non-zero in the response and each entry in
1831
- * <code>FailedEntries</code> provides the ID of the failed target and the error code.</p>
1832
- */
1833
- public putTargets(args: PutTargetsCommandInput, options?: __HttpHandlerOptions): Promise<PutTargetsCommandOutput>;
1834
- public putTargets(args: PutTargetsCommandInput, cb: (err: any, data?: PutTargetsCommandOutput) => void): void;
1835
- public putTargets(
1836
- args: PutTargetsCommandInput,
1837
- options: __HttpHandlerOptions,
1838
- cb: (err: any, data?: PutTargetsCommandOutput) => void
1839
- ): void;
1840
- public putTargets(
1841
- args: PutTargetsCommandInput,
1842
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutTargetsCommandOutput) => void),
1843
- cb?: (err: any, data?: PutTargetsCommandOutput) => void
1844
- ): Promise<PutTargetsCommandOutput> | void {
1845
- const command = new PutTargetsCommand(args);
1846
- if (typeof optionsOrCb === "function") {
1847
- this.send(command, optionsOrCb);
1848
- } else if (typeof cb === "function") {
1849
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1850
- this.send(command, optionsOrCb || {}, cb);
1851
- } else {
1852
- return this.send(command, optionsOrCb);
1853
- }
1854
- }
1855
-
1856
- /**
1857
- * <p>Revokes the permission of another Amazon Web Services account to be able to put events to the specified
1858
- * event bus. Specify the account to revoke by the <code>StatementId</code> value that you
1859
- * associated with the account when you granted it permission with <code>PutPermission</code>.
1860
- * You can find the <code>StatementId</code> by using <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_DescribeEventBus.html">DescribeEventBus</a>.</p>
1861
- */
1862
- public removePermission(
1863
- args: RemovePermissionCommandInput,
1864
- options?: __HttpHandlerOptions
1865
- ): Promise<RemovePermissionCommandOutput>;
1866
- public removePermission(
1867
- args: RemovePermissionCommandInput,
1868
- cb: (err: any, data?: RemovePermissionCommandOutput) => void
1869
- ): void;
1870
- public removePermission(
1871
- args: RemovePermissionCommandInput,
1872
- options: __HttpHandlerOptions,
1873
- cb: (err: any, data?: RemovePermissionCommandOutput) => void
1874
- ): void;
1875
- public removePermission(
1876
- args: RemovePermissionCommandInput,
1877
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: RemovePermissionCommandOutput) => void),
1878
- cb?: (err: any, data?: RemovePermissionCommandOutput) => void
1879
- ): Promise<RemovePermissionCommandOutput> | void {
1880
- const command = new RemovePermissionCommand(args);
1881
- if (typeof optionsOrCb === "function") {
1882
- this.send(command, optionsOrCb);
1883
- } else if (typeof cb === "function") {
1884
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1885
- this.send(command, optionsOrCb || {}, cb);
1886
- } else {
1887
- return this.send(command, optionsOrCb);
1888
- }
1889
- }
1890
-
1891
- /**
1892
- * <p>Removes the specified targets from the specified rule. When the rule is triggered, those
1893
- * targets are no longer be invoked.</p>
1894
- *
1895
- * <p>When you remove a target, when the associated rule triggers, removed targets might
1896
- * continue to be invoked. Allow a short period of time for changes to take effect.</p>
1897
- *
1898
- * <p>This action can partially fail if too many requests are made at the same time. If that
1899
- * happens, <code>FailedEntryCount</code> is non-zero in the response and each entry in
1900
- * <code>FailedEntries</code> provides the ID of the failed target and the error code.</p>
1901
- */
1902
- public removeTargets(
1903
- args: RemoveTargetsCommandInput,
1904
- options?: __HttpHandlerOptions
1905
- ): Promise<RemoveTargetsCommandOutput>;
1906
- public removeTargets(
1907
- args: RemoveTargetsCommandInput,
1908
- cb: (err: any, data?: RemoveTargetsCommandOutput) => void
1909
- ): void;
1910
- public removeTargets(
1911
- args: RemoveTargetsCommandInput,
1912
- options: __HttpHandlerOptions,
1913
- cb: (err: any, data?: RemoveTargetsCommandOutput) => void
1914
- ): void;
1915
- public removeTargets(
1916
- args: RemoveTargetsCommandInput,
1917
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: RemoveTargetsCommandOutput) => void),
1918
- cb?: (err: any, data?: RemoveTargetsCommandOutput) => void
1919
- ): Promise<RemoveTargetsCommandOutput> | void {
1920
- const command = new RemoveTargetsCommand(args);
1921
- if (typeof optionsOrCb === "function") {
1922
- this.send(command, optionsOrCb);
1923
- } else if (typeof cb === "function") {
1924
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1925
- this.send(command, optionsOrCb || {}, cb);
1926
- } else {
1927
- return this.send(command, optionsOrCb);
1928
- }
1929
- }
1930
-
1931
- /**
1932
- * <p>Starts the specified replay. Events are not necessarily replayed in the exact same order
1933
- * that they were added to the archive. A replay processes events to replay based on the time in
1934
- * the event, and replays them using 1 minute intervals. If you specify an
1935
- * <code>EventStartTime</code> and an <code>EventEndTime</code> that covers a 20 minute time
1936
- * range, the events are replayed from the first minute of that 20 minute range first. Then the
1937
- * events from the second minute are replayed. You can use <code>DescribeReplay</code> to
1938
- * determine the progress of a replay. The value returned for <code>EventLastReplayedTime</code>
1939
- * indicates the time within the specified time range associated with the last event
1940
- * replayed.</p>
1941
- */
1942
- public startReplay(args: StartReplayCommandInput, options?: __HttpHandlerOptions): Promise<StartReplayCommandOutput>;
1943
- public startReplay(args: StartReplayCommandInput, cb: (err: any, data?: StartReplayCommandOutput) => void): void;
1944
- public startReplay(
1945
- args: StartReplayCommandInput,
1946
- options: __HttpHandlerOptions,
1947
- cb: (err: any, data?: StartReplayCommandOutput) => void
1948
- ): void;
1949
- public startReplay(
1950
- args: StartReplayCommandInput,
1951
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: StartReplayCommandOutput) => void),
1952
- cb?: (err: any, data?: StartReplayCommandOutput) => void
1953
- ): Promise<StartReplayCommandOutput> | void {
1954
- const command = new StartReplayCommand(args);
1955
- if (typeof optionsOrCb === "function") {
1956
- this.send(command, optionsOrCb);
1957
- } else if (typeof cb === "function") {
1958
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1959
- this.send(command, optionsOrCb || {}, cb);
1960
- } else {
1961
- return this.send(command, optionsOrCb);
1962
- }
1963
- }
1964
-
1965
- /**
1966
- * <p>Assigns one or more tags (key-value pairs) to the specified EventBridge resource. Tags can
1967
- * help you organize and categorize your resources. You can also use them to scope user
1968
- * permissions by granting a user permission to access or change only resources with certain tag
1969
- * values. In EventBridge, rules and event buses can be tagged.</p>
1970
- * <p>Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of
1971
- * characters.</p>
1972
- * <p>You can use the <code>TagResource</code> action with a resource that already has tags. If
1973
- * you specify a new tag key, this tag is appended to the list of tags associated with the
1974
- * resource. If you specify a tag key that is already associated with the resource, the new tag
1975
- * value that you specify replaces the previous value for that tag.</p>
1976
- * <p>You can associate as many as 50 tags with a resource.</p>
1977
- */
1978
- public tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
1979
- public tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
1980
- public tagResource(
1981
- args: TagResourceCommandInput,
1982
- options: __HttpHandlerOptions,
1983
- cb: (err: any, data?: TagResourceCommandOutput) => void
1984
- ): void;
1985
- public tagResource(
1986
- args: TagResourceCommandInput,
1987
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: TagResourceCommandOutput) => void),
1988
- cb?: (err: any, data?: TagResourceCommandOutput) => void
1989
- ): Promise<TagResourceCommandOutput> | void {
1990
- const command = new TagResourceCommand(args);
1991
- if (typeof optionsOrCb === "function") {
1992
- this.send(command, optionsOrCb);
1993
- } else if (typeof cb === "function") {
1994
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1995
- this.send(command, optionsOrCb || {}, cb);
1996
- } else {
1997
- return this.send(command, optionsOrCb);
1998
- }
1999
- }
2000
-
2001
- /**
2002
- * <p>Tests whether the specified event pattern matches the provided event.</p>
2003
- * <p>Most services in Amazon Web Services treat : or / as the same character in Amazon Resource Names (ARNs).
2004
- * However, EventBridge uses an exact match in event patterns and rules. Be sure to use the
2005
- * correct ARN characters when creating event patterns so that they match the ARN syntax in the
2006
- * event you want to match.</p>
2007
- */
2008
- public testEventPattern(
2009
- args: TestEventPatternCommandInput,
2010
- options?: __HttpHandlerOptions
2011
- ): Promise<TestEventPatternCommandOutput>;
2012
- public testEventPattern(
2013
- args: TestEventPatternCommandInput,
2014
- cb: (err: any, data?: TestEventPatternCommandOutput) => void
2015
- ): void;
2016
- public testEventPattern(
2017
- args: TestEventPatternCommandInput,
2018
- options: __HttpHandlerOptions,
2019
- cb: (err: any, data?: TestEventPatternCommandOutput) => void
2020
- ): void;
2021
- public testEventPattern(
2022
- args: TestEventPatternCommandInput,
2023
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: TestEventPatternCommandOutput) => void),
2024
- cb?: (err: any, data?: TestEventPatternCommandOutput) => void
2025
- ): Promise<TestEventPatternCommandOutput> | void {
2026
- const command = new TestEventPatternCommand(args);
2027
- if (typeof optionsOrCb === "function") {
2028
- this.send(command, optionsOrCb);
2029
- } else if (typeof cb === "function") {
2030
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2031
- this.send(command, optionsOrCb || {}, cb);
2032
- } else {
2033
- return this.send(command, optionsOrCb);
2034
- }
2035
- }
2036
-
2037
- /**
2038
- * <p>Removes one or more tags from the specified EventBridge resource. In Amazon EventBridge
2039
- * (CloudWatch Events), rules and event buses can be tagged.</p>
2040
- */
2041
- public untagResource(
2042
- args: UntagResourceCommandInput,
2043
- options?: __HttpHandlerOptions
2044
- ): Promise<UntagResourceCommandOutput>;
2045
- public untagResource(
2046
- args: UntagResourceCommandInput,
2047
- cb: (err: any, data?: UntagResourceCommandOutput) => void
2048
- ): void;
2049
- public untagResource(
2050
- args: UntagResourceCommandInput,
2051
- options: __HttpHandlerOptions,
2052
- cb: (err: any, data?: UntagResourceCommandOutput) => void
2053
- ): void;
2054
- public untagResource(
2055
- args: UntagResourceCommandInput,
2056
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UntagResourceCommandOutput) => void),
2057
- cb?: (err: any, data?: UntagResourceCommandOutput) => void
2058
- ): Promise<UntagResourceCommandOutput> | void {
2059
- const command = new UntagResourceCommand(args);
2060
- if (typeof optionsOrCb === "function") {
2061
- this.send(command, optionsOrCb);
2062
- } else if (typeof cb === "function") {
2063
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2064
- this.send(command, optionsOrCb || {}, cb);
2065
- } else {
2066
- return this.send(command, optionsOrCb);
2067
- }
2068
- }
2069
-
2070
- /**
2071
- * <p>Updates an API destination.</p>
2072
- */
2073
- public updateApiDestination(
2074
- args: UpdateApiDestinationCommandInput,
2075
- options?: __HttpHandlerOptions
2076
- ): Promise<UpdateApiDestinationCommandOutput>;
2077
- public updateApiDestination(
2078
- args: UpdateApiDestinationCommandInput,
2079
- cb: (err: any, data?: UpdateApiDestinationCommandOutput) => void
2080
- ): void;
2081
- public updateApiDestination(
2082
- args: UpdateApiDestinationCommandInput,
2083
- options: __HttpHandlerOptions,
2084
- cb: (err: any, data?: UpdateApiDestinationCommandOutput) => void
2085
- ): void;
2086
- public updateApiDestination(
2087
- args: UpdateApiDestinationCommandInput,
2088
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateApiDestinationCommandOutput) => void),
2089
- cb?: (err: any, data?: UpdateApiDestinationCommandOutput) => void
2090
- ): Promise<UpdateApiDestinationCommandOutput> | void {
2091
- const command = new UpdateApiDestinationCommand(args);
2092
- if (typeof optionsOrCb === "function") {
2093
- this.send(command, optionsOrCb);
2094
- } else if (typeof cb === "function") {
2095
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2096
- this.send(command, optionsOrCb || {}, cb);
2097
- } else {
2098
- return this.send(command, optionsOrCb);
2099
- }
2100
- }
2101
-
2102
- /**
2103
- * <p>Updates the specified archive.</p>
2104
- */
2105
- public updateArchive(
2106
- args: UpdateArchiveCommandInput,
2107
- options?: __HttpHandlerOptions
2108
- ): Promise<UpdateArchiveCommandOutput>;
2109
- public updateArchive(
2110
- args: UpdateArchiveCommandInput,
2111
- cb: (err: any, data?: UpdateArchiveCommandOutput) => void
2112
- ): void;
2113
- public updateArchive(
2114
- args: UpdateArchiveCommandInput,
2115
- options: __HttpHandlerOptions,
2116
- cb: (err: any, data?: UpdateArchiveCommandOutput) => void
2117
- ): void;
2118
- public updateArchive(
2119
- args: UpdateArchiveCommandInput,
2120
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateArchiveCommandOutput) => void),
2121
- cb?: (err: any, data?: UpdateArchiveCommandOutput) => void
2122
- ): Promise<UpdateArchiveCommandOutput> | void {
2123
- const command = new UpdateArchiveCommand(args);
2124
- if (typeof optionsOrCb === "function") {
2125
- this.send(command, optionsOrCb);
2126
- } else if (typeof cb === "function") {
2127
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2128
- this.send(command, optionsOrCb || {}, cb);
2129
- } else {
2130
- return this.send(command, optionsOrCb);
2131
- }
2132
- }
2133
-
2134
- /**
2135
- * <p>Updates settings for a connection.</p>
2136
- */
2137
- public updateConnection(
2138
- args: UpdateConnectionCommandInput,
2139
- options?: __HttpHandlerOptions
2140
- ): Promise<UpdateConnectionCommandOutput>;
2141
- public updateConnection(
2142
- args: UpdateConnectionCommandInput,
2143
- cb: (err: any, data?: UpdateConnectionCommandOutput) => void
2144
- ): void;
2145
- public updateConnection(
2146
- args: UpdateConnectionCommandInput,
2147
- options: __HttpHandlerOptions,
2148
- cb: (err: any, data?: UpdateConnectionCommandOutput) => void
2149
- ): void;
2150
- public updateConnection(
2151
- args: UpdateConnectionCommandInput,
2152
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateConnectionCommandOutput) => void),
2153
- cb?: (err: any, data?: UpdateConnectionCommandOutput) => void
2154
- ): Promise<UpdateConnectionCommandOutput> | void {
2155
- const command = new UpdateConnectionCommand(args);
2156
- if (typeof optionsOrCb === "function") {
2157
- this.send(command, optionsOrCb);
2158
- } else if (typeof cb === "function") {
2159
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2160
- this.send(command, optionsOrCb || {}, cb);
2161
- } else {
2162
- return this.send(command, optionsOrCb);
2163
- }
2164
- }
2165
- }