@aws-sdk/client-cloudwatch-events 3.30.0 → 3.34.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 (252) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist/cjs/CloudWatchEventsClient.js +13 -13
  3. package/dist/cjs/CloudWatchEventsClient.js.map +1 -1
  4. package/dist/cjs/commands/ActivateEventSourceCommand.js +3 -3
  5. package/dist/cjs/commands/ActivateEventSourceCommand.js.map +1 -1
  6. package/dist/cjs/commands/CancelReplayCommand.js +3 -3
  7. package/dist/cjs/commands/CancelReplayCommand.js.map +1 -1
  8. package/dist/cjs/commands/CreateApiDestinationCommand.js +3 -3
  9. package/dist/cjs/commands/CreateApiDestinationCommand.js.map +1 -1
  10. package/dist/cjs/commands/CreateArchiveCommand.js +3 -3
  11. package/dist/cjs/commands/CreateArchiveCommand.js.map +1 -1
  12. package/dist/cjs/commands/CreateConnectionCommand.js +3 -3
  13. package/dist/cjs/commands/CreateConnectionCommand.js.map +1 -1
  14. package/dist/cjs/commands/CreateEventBusCommand.js +3 -3
  15. package/dist/cjs/commands/CreateEventBusCommand.js.map +1 -1
  16. package/dist/cjs/commands/CreatePartnerEventSourceCommand.js +3 -3
  17. package/dist/cjs/commands/CreatePartnerEventSourceCommand.js.map +1 -1
  18. package/dist/cjs/commands/DeactivateEventSourceCommand.js +3 -3
  19. package/dist/cjs/commands/DeactivateEventSourceCommand.js.map +1 -1
  20. package/dist/cjs/commands/DeauthorizeConnectionCommand.js +3 -3
  21. package/dist/cjs/commands/DeauthorizeConnectionCommand.js.map +1 -1
  22. package/dist/cjs/commands/DeleteApiDestinationCommand.js +3 -3
  23. package/dist/cjs/commands/DeleteApiDestinationCommand.js.map +1 -1
  24. package/dist/cjs/commands/DeleteArchiveCommand.js +3 -3
  25. package/dist/cjs/commands/DeleteArchiveCommand.js.map +1 -1
  26. package/dist/cjs/commands/DeleteConnectionCommand.js +3 -3
  27. package/dist/cjs/commands/DeleteConnectionCommand.js.map +1 -1
  28. package/dist/cjs/commands/DeleteEventBusCommand.js +3 -3
  29. package/dist/cjs/commands/DeleteEventBusCommand.js.map +1 -1
  30. package/dist/cjs/commands/DeletePartnerEventSourceCommand.js +3 -3
  31. package/dist/cjs/commands/DeletePartnerEventSourceCommand.js.map +1 -1
  32. package/dist/cjs/commands/DeleteRuleCommand.js +3 -3
  33. package/dist/cjs/commands/DeleteRuleCommand.js.map +1 -1
  34. package/dist/cjs/commands/DescribeApiDestinationCommand.js +3 -3
  35. package/dist/cjs/commands/DescribeApiDestinationCommand.js.map +1 -1
  36. package/dist/cjs/commands/DescribeArchiveCommand.js +3 -3
  37. package/dist/cjs/commands/DescribeArchiveCommand.js.map +1 -1
  38. package/dist/cjs/commands/DescribeConnectionCommand.js +3 -3
  39. package/dist/cjs/commands/DescribeConnectionCommand.js.map +1 -1
  40. package/dist/cjs/commands/DescribeEventBusCommand.js +3 -3
  41. package/dist/cjs/commands/DescribeEventBusCommand.js.map +1 -1
  42. package/dist/cjs/commands/DescribeEventSourceCommand.js +3 -3
  43. package/dist/cjs/commands/DescribeEventSourceCommand.js.map +1 -1
  44. package/dist/cjs/commands/DescribePartnerEventSourceCommand.js +3 -3
  45. package/dist/cjs/commands/DescribePartnerEventSourceCommand.js.map +1 -1
  46. package/dist/cjs/commands/DescribeReplayCommand.js +3 -3
  47. package/dist/cjs/commands/DescribeReplayCommand.js.map +1 -1
  48. package/dist/cjs/commands/DescribeRuleCommand.js +3 -3
  49. package/dist/cjs/commands/DescribeRuleCommand.js.map +1 -1
  50. package/dist/cjs/commands/DisableRuleCommand.js +3 -3
  51. package/dist/cjs/commands/DisableRuleCommand.js.map +1 -1
  52. package/dist/cjs/commands/EnableRuleCommand.js +3 -3
  53. package/dist/cjs/commands/EnableRuleCommand.js.map +1 -1
  54. package/dist/cjs/commands/ListApiDestinationsCommand.js +3 -3
  55. package/dist/cjs/commands/ListApiDestinationsCommand.js.map +1 -1
  56. package/dist/cjs/commands/ListArchivesCommand.js +3 -3
  57. package/dist/cjs/commands/ListArchivesCommand.js.map +1 -1
  58. package/dist/cjs/commands/ListConnectionsCommand.js +3 -3
  59. package/dist/cjs/commands/ListConnectionsCommand.js.map +1 -1
  60. package/dist/cjs/commands/ListEventBusesCommand.js +3 -3
  61. package/dist/cjs/commands/ListEventBusesCommand.js.map +1 -1
  62. package/dist/cjs/commands/ListEventSourcesCommand.js +3 -3
  63. package/dist/cjs/commands/ListEventSourcesCommand.js.map +1 -1
  64. package/dist/cjs/commands/ListPartnerEventSourceAccountsCommand.js +3 -3
  65. package/dist/cjs/commands/ListPartnerEventSourceAccountsCommand.js.map +1 -1
  66. package/dist/cjs/commands/ListPartnerEventSourcesCommand.js +3 -3
  67. package/dist/cjs/commands/ListPartnerEventSourcesCommand.js.map +1 -1
  68. package/dist/cjs/commands/ListReplaysCommand.js +3 -3
  69. package/dist/cjs/commands/ListReplaysCommand.js.map +1 -1
  70. package/dist/cjs/commands/ListRuleNamesByTargetCommand.js +3 -3
  71. package/dist/cjs/commands/ListRuleNamesByTargetCommand.js.map +1 -1
  72. package/dist/cjs/commands/ListRulesCommand.js +3 -3
  73. package/dist/cjs/commands/ListRulesCommand.js.map +1 -1
  74. package/dist/cjs/commands/ListTagsForResourceCommand.js +3 -3
  75. package/dist/cjs/commands/ListTagsForResourceCommand.js.map +1 -1
  76. package/dist/cjs/commands/ListTargetsByRuleCommand.js +3 -3
  77. package/dist/cjs/commands/ListTargetsByRuleCommand.js.map +1 -1
  78. package/dist/cjs/commands/PutEventsCommand.js +3 -3
  79. package/dist/cjs/commands/PutEventsCommand.js.map +1 -1
  80. package/dist/cjs/commands/PutPartnerEventsCommand.js +3 -3
  81. package/dist/cjs/commands/PutPartnerEventsCommand.js.map +1 -1
  82. package/dist/cjs/commands/PutPermissionCommand.js +3 -3
  83. package/dist/cjs/commands/PutPermissionCommand.js.map +1 -1
  84. package/dist/cjs/commands/PutRuleCommand.js +3 -3
  85. package/dist/cjs/commands/PutRuleCommand.js.map +1 -1
  86. package/dist/cjs/commands/PutTargetsCommand.js +3 -3
  87. package/dist/cjs/commands/PutTargetsCommand.js.map +1 -1
  88. package/dist/cjs/commands/RemovePermissionCommand.js +3 -3
  89. package/dist/cjs/commands/RemovePermissionCommand.js.map +1 -1
  90. package/dist/cjs/commands/RemoveTargetsCommand.js +3 -3
  91. package/dist/cjs/commands/RemoveTargetsCommand.js.map +1 -1
  92. package/dist/cjs/commands/StartReplayCommand.js +3 -3
  93. package/dist/cjs/commands/StartReplayCommand.js.map +1 -1
  94. package/dist/cjs/commands/TagResourceCommand.js +3 -3
  95. package/dist/cjs/commands/TagResourceCommand.js.map +1 -1
  96. package/dist/cjs/commands/TestEventPatternCommand.js +3 -3
  97. package/dist/cjs/commands/TestEventPatternCommand.js.map +1 -1
  98. package/dist/cjs/commands/UntagResourceCommand.js +3 -3
  99. package/dist/cjs/commands/UntagResourceCommand.js.map +1 -1
  100. package/dist/cjs/commands/UpdateApiDestinationCommand.js +3 -3
  101. package/dist/cjs/commands/UpdateApiDestinationCommand.js.map +1 -1
  102. package/dist/cjs/commands/UpdateArchiveCommand.js +3 -3
  103. package/dist/cjs/commands/UpdateArchiveCommand.js.map +1 -1
  104. package/dist/cjs/commands/UpdateConnectionCommand.js +3 -3
  105. package/dist/cjs/commands/UpdateConnectionCommand.js.map +1 -1
  106. package/dist/cjs/endpoints.js +1 -1
  107. package/dist/cjs/endpoints.js.map +1 -1
  108. package/dist/cjs/index.js +54 -54
  109. package/dist/cjs/index.js.map +1 -1
  110. package/dist/cjs/models/index.js +1 -1
  111. package/dist/cjs/models/index.js.map +1 -1
  112. package/dist/cjs/package.json +39 -39
  113. package/dist/cjs/protocols/Aws_json1_1.js +271 -271
  114. package/dist/cjs/protocols/Aws_json1_1.js.map +1 -1
  115. package/dist/cjs/runtimeConfig.browser.js +4 -4
  116. package/dist/cjs/runtimeConfig.browser.js.map +1 -1
  117. package/dist/cjs/runtimeConfig.js +8 -8
  118. package/dist/cjs/runtimeConfig.js.map +1 -1
  119. package/dist/cjs/runtimeConfig.native.js +1 -1
  120. package/dist/cjs/runtimeConfig.native.js.map +1 -1
  121. package/dist/es/CloudWatchEvents.js +1 -24
  122. package/dist/es/CloudWatchEvents.js.map +1 -1
  123. package/dist/es/CloudWatchEventsClient.js +1 -29
  124. package/dist/es/CloudWatchEventsClient.js.map +1 -1
  125. package/dist/es/commands/ActivateEventSourceCommand.js +2 -28
  126. package/dist/es/commands/ActivateEventSourceCommand.js.map +1 -1
  127. package/dist/es/commands/CancelReplayCommand.js +2 -27
  128. package/dist/es/commands/CancelReplayCommand.js.map +1 -1
  129. package/dist/es/commands/CreateApiDestinationCommand.js +2 -28
  130. package/dist/es/commands/CreateApiDestinationCommand.js.map +1 -1
  131. package/dist/es/commands/CreateArchiveCommand.js +2 -31
  132. package/dist/es/commands/CreateArchiveCommand.js.map +1 -1
  133. package/dist/es/commands/CreateConnectionCommand.js +2 -28
  134. package/dist/es/commands/CreateConnectionCommand.js.map +1 -1
  135. package/dist/es/commands/CreateEventBusCommand.js +2 -29
  136. package/dist/es/commands/CreateEventBusCommand.js.map +1 -1
  137. package/dist/es/commands/CreatePartnerEventSourceCommand.js +2 -50
  138. package/dist/es/commands/CreatePartnerEventSourceCommand.js.map +1 -1
  139. package/dist/es/commands/DeactivateEventSourceCommand.js +2 -31
  140. package/dist/es/commands/DeactivateEventSourceCommand.js.map +1 -1
  141. package/dist/es/commands/DeauthorizeConnectionCommand.js +2 -28
  142. package/dist/es/commands/DeauthorizeConnectionCommand.js.map +1 -1
  143. package/dist/es/commands/DeleteApiDestinationCommand.js +2 -27
  144. package/dist/es/commands/DeleteApiDestinationCommand.js.map +1 -1
  145. package/dist/es/commands/DeleteArchiveCommand.js +2 -27
  146. package/dist/es/commands/DeleteArchiveCommand.js.map +1 -1
  147. package/dist/es/commands/DeleteConnectionCommand.js +2 -27
  148. package/dist/es/commands/DeleteConnectionCommand.js.map +1 -1
  149. package/dist/es/commands/DeleteEventBusCommand.js +2 -28
  150. package/dist/es/commands/DeleteEventBusCommand.js.map +1 -1
  151. package/dist/es/commands/DeletePartnerEventSourceCommand.js +2 -31
  152. package/dist/es/commands/DeletePartnerEventSourceCommand.js.map +1 -1
  153. package/dist/es/commands/DeleteRuleCommand.js +2 -40
  154. package/dist/es/commands/DeleteRuleCommand.js.map +1 -1
  155. package/dist/es/commands/DescribeApiDestinationCommand.js +2 -27
  156. package/dist/es/commands/DescribeApiDestinationCommand.js.map +1 -1
  157. package/dist/es/commands/DescribeArchiveCommand.js +2 -27
  158. package/dist/es/commands/DescribeArchiveCommand.js.map +1 -1
  159. package/dist/es/commands/DescribeConnectionCommand.js +2 -27
  160. package/dist/es/commands/DescribeConnectionCommand.js.map +1 -1
  161. package/dist/es/commands/DescribeEventBusCommand.js +2 -33
  162. package/dist/es/commands/DescribeEventBusCommand.js.map +1 -1
  163. package/dist/es/commands/DescribeEventSourceCommand.js +2 -28
  164. package/dist/es/commands/DescribeEventSourceCommand.js.map +1 -1
  165. package/dist/es/commands/DescribePartnerEventSourceCommand.js +2 -30
  166. package/dist/es/commands/DescribePartnerEventSourceCommand.js.map +1 -1
  167. package/dist/es/commands/DescribeReplayCommand.js +2 -35
  168. package/dist/es/commands/DescribeReplayCommand.js.map +1 -1
  169. package/dist/es/commands/DescribeRuleCommand.js +2 -29
  170. package/dist/es/commands/DescribeRuleCommand.js.map +1 -1
  171. package/dist/es/commands/DisableRuleCommand.js +2 -31
  172. package/dist/es/commands/DisableRuleCommand.js.map +1 -1
  173. package/dist/es/commands/EnableRuleCommand.js +2 -30
  174. package/dist/es/commands/EnableRuleCommand.js.map +1 -1
  175. package/dist/es/commands/ListApiDestinationsCommand.js +2 -27
  176. package/dist/es/commands/ListApiDestinationsCommand.js.map +1 -1
  177. package/dist/es/commands/ListArchivesCommand.js +2 -28
  178. package/dist/es/commands/ListArchivesCommand.js.map +1 -1
  179. package/dist/es/commands/ListConnectionsCommand.js +2 -27
  180. package/dist/es/commands/ListConnectionsCommand.js.map +1 -1
  181. package/dist/es/commands/ListEventBusesCommand.js +2 -28
  182. package/dist/es/commands/ListEventBusesCommand.js.map +1 -1
  183. package/dist/es/commands/ListEventSourcesCommand.js +2 -28
  184. package/dist/es/commands/ListEventSourcesCommand.js.map +1 -1
  185. package/dist/es/commands/ListPartnerEventSourceAccountsCommand.js +2 -29
  186. package/dist/es/commands/ListPartnerEventSourceAccountsCommand.js.map +1 -1
  187. package/dist/es/commands/ListPartnerEventSourcesCommand.js +2 -28
  188. package/dist/es/commands/ListPartnerEventSourcesCommand.js.map +1 -1
  189. package/dist/es/commands/ListReplaysCommand.js +2 -28
  190. package/dist/es/commands/ListReplaysCommand.js.map +1 -1
  191. package/dist/es/commands/ListRuleNamesByTargetCommand.js +2 -28
  192. package/dist/es/commands/ListRuleNamesByTargetCommand.js.map +1 -1
  193. package/dist/es/commands/ListRulesCommand.js +2 -31
  194. package/dist/es/commands/ListRulesCommand.js.map +1 -1
  195. package/dist/es/commands/ListTagsForResourceCommand.js +2 -28
  196. package/dist/es/commands/ListTagsForResourceCommand.js.map +1 -1
  197. package/dist/es/commands/ListTargetsByRuleCommand.js +2 -27
  198. package/dist/es/commands/ListTargetsByRuleCommand.js.map +1 -1
  199. package/dist/es/commands/PutEventsCommand.js +2 -27
  200. package/dist/es/commands/PutEventsCommand.js.map +1 -1
  201. package/dist/es/commands/PutPartnerEventsCommand.js +2 -28
  202. package/dist/es/commands/PutPartnerEventsCommand.js.map +1 -1
  203. package/dist/es/commands/PutPermissionCommand.js +2 -46
  204. package/dist/es/commands/PutPermissionCommand.js.map +1 -1
  205. package/dist/es/commands/PutRuleCommand.js +2 -73
  206. package/dist/es/commands/PutRuleCommand.js.map +1 -1
  207. package/dist/es/commands/PutTargetsCommand.js +2 -192
  208. package/dist/es/commands/PutTargetsCommand.js.map +1 -1
  209. package/dist/es/commands/RemovePermissionCommand.js +2 -30
  210. package/dist/es/commands/RemovePermissionCommand.js.map +1 -1
  211. package/dist/es/commands/RemoveTargetsCommand.js +2 -35
  212. package/dist/es/commands/RemoveTargetsCommand.js.map +1 -1
  213. package/dist/es/commands/StartReplayCommand.js +2 -35
  214. package/dist/es/commands/StartReplayCommand.js.map +1 -1
  215. package/dist/es/commands/TagResourceCommand.js +2 -37
  216. package/dist/es/commands/TagResourceCommand.js.map +1 -1
  217. package/dist/es/commands/TestEventPatternCommand.js +2 -31
  218. package/dist/es/commands/TestEventPatternCommand.js.map +1 -1
  219. package/dist/es/commands/UntagResourceCommand.js +2 -28
  220. package/dist/es/commands/UntagResourceCommand.js.map +1 -1
  221. package/dist/es/commands/UpdateApiDestinationCommand.js +2 -27
  222. package/dist/es/commands/UpdateApiDestinationCommand.js.map +1 -1
  223. package/dist/es/commands/UpdateArchiveCommand.js +2 -27
  224. package/dist/es/commands/UpdateArchiveCommand.js.map +1 -1
  225. package/dist/es/commands/UpdateConnectionCommand.js +2 -27
  226. package/dist/es/commands/UpdateConnectionCommand.js.map +1 -1
  227. package/dist/es/endpoints.js +1 -1
  228. package/dist/es/endpoints.js.map +1 -1
  229. package/dist/es/models/models_0.js +0 -486
  230. package/dist/es/models/models_0.js.map +1 -1
  231. package/dist/es/package.json +39 -39
  232. package/dist/es/protocols/Aws_json1_1.js +1069 -1074
  233. package/dist/es/protocols/Aws_json1_1.js.map +1 -1
  234. package/dist/es/runtimeConfig.browser.js +0 -3
  235. package/dist/es/runtimeConfig.browser.js.map +1 -1
  236. package/dist/es/runtimeConfig.js +0 -3
  237. package/dist/es/runtimeConfig.js.map +1 -1
  238. package/dist/es/runtimeConfig.native.js +0 -3
  239. package/dist/es/runtimeConfig.native.js.map +1 -1
  240. package/dist/es/runtimeConfig.shared.js +0 -3
  241. package/dist/es/runtimeConfig.shared.js.map +1 -1
  242. package/dist/types/runtimeConfig.browser.d.ts +1 -0
  243. package/dist/types/runtimeConfig.d.ts +3 -0
  244. package/dist/types/runtimeConfig.native.d.ts +1 -0
  245. package/dist/types/ts3.4/runtimeConfig.browser.d.ts +1 -0
  246. package/dist/types/ts3.4/runtimeConfig.d.ts +3 -0
  247. package/dist/types/ts3.4/runtimeConfig.native.d.ts +1 -0
  248. package/package.json +39 -39
  249. package/protocols/Aws_json1_1.ts +49 -46
  250. package/tsconfig.es.json +0 -2
  251. package/tsconfig.json +3 -5
  252. package/tsconfig.types.json +8 -0
@@ -3,39 +3,13 @@ import { PutPartnerEventsRequest, PutPartnerEventsResponse } from "../models/mod
3
3
  import { deserializeAws_json1_1PutPartnerEventsCommand, serializeAws_json1_1PutPartnerEventsCommand, } from "../protocols/Aws_json1_1";
4
4
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
5
  import { Command as $Command } from "@aws-sdk/smithy-client";
6
- /**
7
- * <p>This is used by SaaS partners to write events to a customer's partner event bus. Amazon Web Services
8
- * customers do not use this operation.</p>
9
- * @example
10
- * Use a bare-bones client and the command you need to make an API call.
11
- * ```javascript
12
- * import { CloudWatchEventsClient, PutPartnerEventsCommand } from "@aws-sdk/client-cloudwatch-events"; // ES Modules import
13
- * // const { CloudWatchEventsClient, PutPartnerEventsCommand } = require("@aws-sdk/client-cloudwatch-events"); // CommonJS import
14
- * const client = new CloudWatchEventsClient(config);
15
- * const command = new PutPartnerEventsCommand(input);
16
- * const response = await client.send(command);
17
- * ```
18
- *
19
- * @see {@link PutPartnerEventsCommandInput} for command's `input` shape.
20
- * @see {@link PutPartnerEventsCommandOutput} for command's `response` shape.
21
- * @see {@link CloudWatchEventsClientResolvedConfig | config} for command's `input` shape.
22
- *
23
- */
24
- var PutPartnerEventsCommand = /** @class */ (function (_super) {
6
+ var PutPartnerEventsCommand = (function (_super) {
25
7
  __extends(PutPartnerEventsCommand, _super);
26
- // Start section: command_properties
27
- // End section: command_properties
28
8
  function PutPartnerEventsCommand(input) {
29
- var _this =
30
- // Start section: command_constructor
31
- _super.call(this) || this;
9
+ var _this = _super.call(this) || this;
32
10
  _this.input = input;
33
11
  return _this;
34
- // End section: command_constructor
35
12
  }
36
- /**
37
- * @internal
38
- */
39
13
  PutPartnerEventsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
40
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
41
15
  var stack = clientStack.concat(this.middlewareStack);
@@ -1 +1 @@
1
- {"version":3,"file":"PutPartnerEventsCommand.js","sourceRoot":"","sources":["../../../commands/PutPartnerEventsCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AACvF,OAAO,EACL,6CAA6C,EAC7C,2CAA2C,GAC5C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAc7D;;;;;;;;;;;;;;;;;GAiBG;AACH;IAA6C,2CAI5C;IACC,oCAAoC;IACpC,kCAAkC;IAElC,iCAAqB,KAAmC;QAAxD;QACE,qCAAqC;QACrC,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAA8B;;QAGtD,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,mDAAiB,GAAjB,UACE,WAAmE,EACnE,aAAmD,EACnD,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,wBAAwB,CAAC;QAC5C,IAAM,WAAW,GAAG,yBAAyB,CAAC;QAC9C,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,uBAAuB,CAAC,k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;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,wBAAwB,CAAC;QAC5C,IAAM,WAAW,GAAG,yBAAyB,CAAC;QAC9C,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,uBAAuB,CAAC,kBAAkB;YACnE,wBAAwB,EAAE,wBAAwB,CAAC,kBAAkB;SACtE,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,2CAAS,GAAjB,UAAkB,KAAmC,EAAE,OAAuB;QAC5E,OAAO,2CAA2C,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAEO,6CAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,6CAA6C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAIH,8BAAC;AAAD,CAAC,AAtDD,CAA6C,QAAQ,GAsDpD"}
@@ -3,57 +3,13 @@ import { PutPermissionRequest } from "../models/models_0";
3
3
  import { deserializeAws_json1_1PutPermissionCommand, serializeAws_json1_1PutPermissionCommand, } from "../protocols/Aws_json1_1";
4
4
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
5
  import { Command as $Command } from "@aws-sdk/smithy-client";
6
- /**
7
- * <p>Running <code>PutPermission</code> permits the specified Amazon Web Services account or Amazon Web Services organization
8
- * to put events to the specified <i>event bus</i>. Amazon EventBridge (CloudWatch
9
- * Events) rules in your account are triggered by these events arriving to an event bus in your
10
- * account. </p>
11
- * <p>For another account to send events to your account, that external account must have an
12
- * EventBridge rule with your account's event bus as a target.</p>
13
- *
14
- * <p>To enable multiple Amazon Web Services accounts to put events to your event bus, run
15
- * <code>PutPermission</code> once for each of these accounts. Or, if all the accounts are
16
- * members of the same Amazon Web Services organization, you can run <code>PutPermission</code> once specifying
17
- * <code>Principal</code> as "*" and specifying the Amazon Web Services organization ID in
18
- * <code>Condition</code>, to grant permissions to all accounts in that organization.</p>
19
- *
20
- * <p>If you grant permissions using an organization, then accounts in that organization must
21
- * specify a <code>RoleArn</code> with proper permissions when they use <code>PutTarget</code> to
22
- * 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
23
- * Receiving Events Between Amazon Web Services Accounts</a> in the <i>Amazon EventBridge User
24
- * Guide</i>.</p>
25
- *
26
- * <p>The permission policy on the event bus cannot exceed 10 KB in size.</p>
27
- * @example
28
- * Use a bare-bones client and the command you need to make an API call.
29
- * ```javascript
30
- * import { CloudWatchEventsClient, PutPermissionCommand } from "@aws-sdk/client-cloudwatch-events"; // ES Modules import
31
- * // const { CloudWatchEventsClient, PutPermissionCommand } = require("@aws-sdk/client-cloudwatch-events"); // CommonJS import
32
- * const client = new CloudWatchEventsClient(config);
33
- * const command = new PutPermissionCommand(input);
34
- * const response = await client.send(command);
35
- * ```
36
- *
37
- * @see {@link PutPermissionCommandInput} for command's `input` shape.
38
- * @see {@link PutPermissionCommandOutput} for command's `response` shape.
39
- * @see {@link CloudWatchEventsClientResolvedConfig | config} for command's `input` shape.
40
- *
41
- */
42
- var PutPermissionCommand = /** @class */ (function (_super) {
6
+ var PutPermissionCommand = (function (_super) {
43
7
  __extends(PutPermissionCommand, _super);
44
- // Start section: command_properties
45
- // End section: command_properties
46
8
  function PutPermissionCommand(input) {
47
- var _this =
48
- // Start section: command_constructor
49
- _super.call(this) || this;
9
+ var _this = _super.call(this) || this;
50
10
  _this.input = input;
51
11
  return _this;
52
- // End section: command_constructor
53
12
  }
54
- /**
55
- * @internal
56
- */
57
13
  PutPermissionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
58
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
59
15
  var stack = clientStack.concat(this.middlewareStack);
@@ -1 +1 @@
1
- {"version":3,"file":"PutPermissionCommand.js","sourceRoot":"","sources":["../../../commands/PutPermissionCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EACL,0CAA0C,EAC1C,wCAAwC,GACzC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAc7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH;IAA0C,wCAIzC;IACC,oCAAoC;IACpC,kCAAkC;IAElC,8BAAqB,KAAgC;QAArD;QACE,qCAAqC;QACrC,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAA2B;;QAGnD,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,gDAAiB,GAAjB,UACE,WAAmE,EACnE,aAAmD,EACnD,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,wBAAwB,CAAC;QAC5C,IAAM,WAAW,GAAG,sBAAsB,CAAC;QAC3C,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YA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AC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,wBAAwB,CAAC;QAC5C,IAAM,WAAW,GAAG,sBAAsB,CAAC;QAC3C,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,oBAAoB,CAAC,kBAAkB;YAChE,wBAAwB,EAAE,UAAC,MAAW,IAAK,OAAA,MAAM,EAAN,CAAM;SAClD,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,wCAAS,GAAjB,UAAkB,KAAgC,EAAE,OAAuB;QACzE,OAAO,wCAAwC,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAEO,0CAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,0CAA0C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAIH,2BAAC;AAAD,CAAC,AAtDD,CAA0C,QAAQ,GAsDjD"}
@@ -3,84 +3,13 @@ import { PutRuleRequest, PutRuleResponse } from "../models/models_0";
3
3
  import { deserializeAws_json1_1PutRuleCommand, serializeAws_json1_1PutRuleCommand } from "../protocols/Aws_json1_1";
4
4
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
5
  import { Command as $Command } from "@aws-sdk/smithy-client";
6
- /**
7
- * <p>Creates or updates the specified rule. Rules are enabled by default, or based on value of
8
- * the state. You can disable a rule using <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_DisableRule.html">DisableRule</a>.</p>
9
- *
10
- * <p>A single rule watches for events from a single event bus. Events generated by Amazon Web Services services
11
- * go to your account's default event bus. Events generated by SaaS partner services or
12
- * applications go to the matching partner event bus. If you have custom applications or
13
- * services, you can specify whether their events go to your default event bus or a custom event
14
- * 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>
15
- *
16
- * <p>If you are updating an existing rule, the rule is replaced with what you specify in this
17
- * <code>PutRule</code> command. If you omit arguments in <code>PutRule</code>, the old values
18
- * for those arguments are not kept. Instead, they are replaced with null values.</p>
19
- *
20
- * <p>When you create or update a rule, incoming events might not immediately start matching to
21
- * new or updated rules. Allow a short period of time for changes to take effect.</p>
22
- *
23
- * <p>A rule must contain at least an EventPattern or ScheduleExpression. Rules with
24
- * EventPatterns are triggered when a matching event is observed. Rules with ScheduleExpressions
25
- * self-trigger based on the given schedule. A rule can have both an EventPattern and a
26
- * ScheduleExpression, in which case the rule triggers on matching events as well as on a
27
- * schedule.</p>
28
- *
29
- * <p>When you initially create a rule, you can optionally assign one or more tags to the rule.
30
- * Tags can help you organize and categorize your resources. You can also use them to scope user
31
- * permissions, by granting a user permission to access or change only rules with certain tag
32
- * values. To use the <code>PutRule</code> operation and assign tags, you must have both the
33
- * <code>events:PutRule</code> and <code>events:TagResource</code> permissions.</p>
34
- * <p>If you are updating an existing rule, any tags you specify in the <code>PutRule</code>
35
- * 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>
36
- *
37
- * <p>Most services in Amazon Web Services treat : or / as the same character in Amazon Resource Names (ARNs).
38
- * However, EventBridge uses an exact match in event patterns and rules. Be sure to use the
39
- * correct ARN characters when creating event patterns so that they match the ARN syntax in the
40
- * event you want to match.</p>
41
- *
42
- * <p>In EventBridge, it is possible to create rules that lead to infinite loops, where a rule
43
- * is fired repeatedly. For example, a rule might detect that ACLs have changed on an S3 bucket,
44
- * and trigger software to change them to the desired state. If the rule is not written
45
- * carefully, the subsequent change to the ACLs fires the rule again, creating an infinite
46
- * loop.</p>
47
- * <p>To prevent this, write the rules so that the triggered actions do not re-fire the same
48
- * rule. For example, your rule could fire only if ACLs are found to be in a bad state, instead
49
- * of after any change. </p>
50
- * <p>An infinite loop can quickly cause higher than expected charges. We recommend that you use
51
- * budgeting, which alerts you when charges exceed your specified limit. For more information,
52
- * see <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/budgets-managing-costs.html">Managing Your Costs with
53
- * Budgets</a>.</p>
54
- * @example
55
- * Use a bare-bones client and the command you need to make an API call.
56
- * ```javascript
57
- * import { CloudWatchEventsClient, PutRuleCommand } from "@aws-sdk/client-cloudwatch-events"; // ES Modules import
58
- * // const { CloudWatchEventsClient, PutRuleCommand } = require("@aws-sdk/client-cloudwatch-events"); // CommonJS import
59
- * const client = new CloudWatchEventsClient(config);
60
- * const command = new PutRuleCommand(input);
61
- * const response = await client.send(command);
62
- * ```
63
- *
64
- * @see {@link PutRuleCommandInput} for command's `input` shape.
65
- * @see {@link PutRuleCommandOutput} for command's `response` shape.
66
- * @see {@link CloudWatchEventsClientResolvedConfig | config} for command's `input` shape.
67
- *
68
- */
69
- var PutRuleCommand = /** @class */ (function (_super) {
6
+ var PutRuleCommand = (function (_super) {
70
7
  __extends(PutRuleCommand, _super);
71
- // Start section: command_properties
72
- // End section: command_properties
73
8
  function PutRuleCommand(input) {
74
- var _this =
75
- // Start section: command_constructor
76
- _super.call(this) || this;
9
+ var _this = _super.call(this) || this;
77
10
  _this.input = input;
78
11
  return _this;
79
- // End section: command_constructor
80
12
  }
81
- /**
82
- * @internal
83
- */
84
13
  PutRuleCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
85
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
86
15
  var stack = clientStack.concat(this.middlewareStack);
@@ -1 +1 @@
1
- {"version":3,"file":"PutRuleCommand.js","sourceRoot":"","sources":["../../../commands/PutRuleCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,EAAE,oCAAoC,EAAE,kCAAkC,EAAE,MAAM,0BAA0B,CAAC;AACpH,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAc7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AACH;IAAoC,kCAInC;IACC,oCAAoC;IACpC,kCAAkC;IAElC,wBAAqB,KAA0B;QAA/C;QACE,qCAAqC;QACrC,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAAqB;;QAG7C,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,0CAAiB,GAAjB,UACE,WAAmE,EACnE,aAAmD,EACnD,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,wBAAwB,CAAC;QAC5C,IAAM,WAAW,GAAG,gBAAgB,CAAC;QACrC,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,cAAc,CAAC,kBAAkB;YAC1D,wBAAwB,EAAE,eAAe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,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,wBAAwB,CAAC;QAC5C,IAAM,WAAW,GAAG,gBAAgB,CAAC;QACrC,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,cAAc,CAAC,kBAAkB;YAC1D,wBAAwB,EAAE,eAAe,CAAC,kBAAkB;SAC7D,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,kCAAS,GAAjB,UAAkB,KAA0B,EAAE,OAAuB;QACnE,OAAO,kCAAkC,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;IAEO,oCAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,oCAAoC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAIH,qBAAC;AAAD,CAAC,AAtDD,CAAoC,QAAQ,GAsD3C"}
@@ -3,203 +3,13 @@ import { PutTargetsRequest, PutTargetsResponse } from "../models/models_0";
3
3
  import { deserializeAws_json1_1PutTargetsCommand, serializeAws_json1_1PutTargetsCommand, } from "../protocols/Aws_json1_1";
4
4
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
5
  import { Command as $Command } from "@aws-sdk/smithy-client";
6
- /**
7
- * <p>Adds the specified targets to the specified rule, or updates the targets if they are
8
- * already associated with the rule.</p>
9
- * <p>Targets are the resources that are invoked when a rule is triggered.</p>
10
- * <p>You can configure the following as targets for Events:</p>
11
- *
12
- * <ul>
13
- * <li>
14
- * <p>
15
- * <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-api-destinations.html">API
16
- * destination</a>
17
- * </p>
18
- * </li>
19
- * <li>
20
- * <p>Amazon API Gateway REST API endpoints</p>
21
- * </li>
22
- * <li>
23
- * <p>API Gateway</p>
24
- * </li>
25
- * <li>
26
- * <p>Batch job queue</p>
27
- * </li>
28
- * <li>
29
- * <p>CloudWatch Logs group</p>
30
- * </li>
31
- * <li>
32
- * <p>CodeBuild project</p>
33
- * </li>
34
- * <li>
35
- * <p>CodePipeline</p>
36
- * </li>
37
- * <li>
38
- * <p>Amazon EC2 <code>CreateSnapshot</code> API call</p>
39
- * </li>
40
- * <li>
41
- * <p>Amazon EC2 <code>RebootInstances</code> API call</p>
42
- * </li>
43
- * <li>
44
- * <p>Amazon EC2 <code>StopInstances</code> API call</p>
45
- * </li>
46
- * <li>
47
- * <p>Amazon EC2 <code>TerminateInstances</code> API call</p>
48
- * </li>
49
- * <li>
50
- * <p>Amazon ECS tasks</p>
51
- * </li>
52
- * <li>
53
- * <p>Event bus in a different Amazon Web Services account or Region.</p>
54
- * <p>You can use an event bus in the US East (N. Virginia) us-east-1, US West (Oregon)
55
- * us-west-2, or Europe (Ireland) eu-west-1 Regions as a target for a rule.</p>
56
- * </li>
57
- * <li>
58
- * <p>Firehose delivery stream (Kinesis Data Firehose)</p>
59
- * </li>
60
- * <li>
61
- * <p>Inspector assessment template (Amazon Inspector)</p>
62
- * </li>
63
- * <li>
64
- * <p>Kinesis stream (Kinesis Data Stream)</p>
65
- * </li>
66
- * <li>
67
- * <p>Lambda function</p>
68
- * </li>
69
- * <li>
70
- * <p>Redshift clusters (Data API statement execution)</p>
71
- * </li>
72
- * <li>
73
- * <p>Amazon SNS topic</p>
74
- * </li>
75
- * <li>
76
- * <p>Amazon SQS queues (includes FIFO queues</p>
77
- * </li>
78
- * <li>
79
- * <p>SSM Automation</p>
80
- * </li>
81
- * <li>
82
- * <p>SSM OpsItem</p>
83
- * </li>
84
- * <li>
85
- * <p>SSM Run Command</p>
86
- * </li>
87
- * <li>
88
- * <p>Step Functions state machines</p>
89
- * </li>
90
- * </ul>
91
- *
92
- * <p>Creating rules with built-in targets is supported only in the Management Console. The
93
- * built-in targets are <code>EC2 CreateSnapshot API call</code>, <code>EC2 RebootInstances API
94
- * call</code>, <code>EC2 StopInstances API call</code>, and <code>EC2 TerminateInstances API
95
- * call</code>. </p>
96
- *
97
- * <p>For some target types, <code>PutTargets</code> provides target-specific parameters. If the
98
- * target is a Kinesis data stream, you can optionally specify which shard the event goes to by
99
- * using the <code>KinesisParameters</code> argument. To invoke a command on multiple EC2
100
- * instances with one rule, you can use the <code>RunCommandParameters</code> field.</p>
101
- *
102
- * <p>To be able to make API calls against the resources that you own, Amazon EventBridge
103
- * needs the appropriate permissions. For Lambda and Amazon SNS
104
- * resources, EventBridge relies on resource-based policies. For EC2 instances, Kinesis Data Streams,
105
- * Step Functions state machines and API Gateway REST APIs, EventBridge relies on
106
- * IAM roles that you specify in the <code>RoleARN</code> argument in <code>PutTargets</code>.
107
- * For more information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/auth-and-access-control-eventbridge.html">Authentication
108
- * and Access Control</a> in the <i>Amazon EventBridge User Guide</i>.</p>
109
- *
110
- * <p>If another Amazon Web Services account is in the same region and has granted you permission (using
111
- * <code>PutPermission</code>), you can send events to that account. Set that account's event
112
- * bus as a target of the rules in your account. To send the matched events to the other account,
113
- * specify that account's event bus as the <code>Arn</code> value when you run
114
- * <code>PutTargets</code>. If your account sends events to another account, your account is
115
- * charged for each sent event. Each event sent to another account is charged as a custom event.
116
- * The account receiving the event is not charged. For more information, see <a href="http://aws.amazon.com/eventbridge/pricing/">Amazon EventBridge
117
- * Pricing</a>.</p>
118
- *
119
- * <note>
120
- * <p>
121
- * <code>Input</code>, <code>InputPath</code>, and <code>InputTransformer</code> are not
122
- * available with <code>PutTarget</code> if the target is an event bus of a different Amazon Web Services
123
- * account.</p>
124
- * </note>
125
- *
126
- * <p>If you are setting the event bus of another account as the target, and that account
127
- * granted permission to your account through an organization instead of directly by the account
128
- * ID, then you must specify a <code>RoleArn</code> with proper permissions in the
129
- * <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
130
- * Receiving Events Between Amazon Web Services Accounts</a> in the <i>Amazon EventBridge User
131
- * Guide</i>.</p>
132
- *
133
- * <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>
134
- *
135
- * <p>
136
- * <b>Input</b>, <b>InputPath</b>, and
137
- * <b>InputTransformer</b> are mutually exclusive and optional
138
- * parameters of a target. When a rule is triggered due to a matched event:</p>
139
- *
140
- * <ul>
141
- * <li>
142
- * <p>If none of the following arguments are specified for a target, then the entire event
143
- * is passed to the target in JSON format (unless the target is Amazon EC2 Run Command or
144
- * Amazon ECS task, in which case nothing from the event is passed to the target).</p>
145
- * </li>
146
- * <li>
147
- * <p>If <b>Input</b> is specified in the form of valid JSON, then
148
- * the matched event is overridden with this constant.</p>
149
- * </li>
150
- * <li>
151
- * <p>If <b>InputPath</b> is specified in the form of JSONPath
152
- * (for example, <code>$.detail</code>), then only the part of the event specified in the
153
- * path is passed to the target (for example, only the detail part of the event is
154
- * passed).</p>
155
- * </li>
156
- * <li>
157
- * <p>If <b>InputTransformer</b> is specified, then one or more
158
- * specified JSONPaths are extracted from the event and used as values in a template that you
159
- * specify as the input to the target.</p>
160
- * </li>
161
- * </ul>
162
- *
163
- * <p>When you specify <code>InputPath</code> or <code>InputTransformer</code>, you must use
164
- * JSON dot notation, not bracket notation.</p>
165
- *
166
- * <p>When you add targets to a rule and the associated rule triggers soon after, new or updated
167
- * targets might not be immediately invoked. Allow a short period of time for changes to take
168
- * effect.</p>
169
- *
170
- * <p>This action can partially fail if too many requests are made at the same time. If that
171
- * happens, <code>FailedEntryCount</code> is non-zero in the response and each entry in
172
- * <code>FailedEntries</code> provides the ID of the failed target and the error code.</p>
173
- * @example
174
- * Use a bare-bones client and the command you need to make an API call.
175
- * ```javascript
176
- * import { CloudWatchEventsClient, PutTargetsCommand } from "@aws-sdk/client-cloudwatch-events"; // ES Modules import
177
- * // const { CloudWatchEventsClient, PutTargetsCommand } = require("@aws-sdk/client-cloudwatch-events"); // CommonJS import
178
- * const client = new CloudWatchEventsClient(config);
179
- * const command = new PutTargetsCommand(input);
180
- * const response = await client.send(command);
181
- * ```
182
- *
183
- * @see {@link PutTargetsCommandInput} for command's `input` shape.
184
- * @see {@link PutTargetsCommandOutput} for command's `response` shape.
185
- * @see {@link CloudWatchEventsClientResolvedConfig | config} for command's `input` shape.
186
- *
187
- */
188
- var PutTargetsCommand = /** @class */ (function (_super) {
6
+ var PutTargetsCommand = (function (_super) {
189
7
  __extends(PutTargetsCommand, _super);
190
- // Start section: command_properties
191
- // End section: command_properties
192
8
  function PutTargetsCommand(input) {
193
- var _this =
194
- // Start section: command_constructor
195
- _super.call(this) || this;
9
+ var _this = _super.call(this) || this;
196
10
  _this.input = input;
197
11
  return _this;
198
- // End section: command_constructor
199
12
  }
200
- /**
201
- * @internal
202
- */
203
13
  PutTargetsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
204
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
205
15
  var stack = clientStack.concat(this.middlewareStack);
@@ -1 +1 @@
1
- {"version":3,"file":"PutTargetsCommand.js","sourceRoot":"","sources":["../../../commands/PutTargetsCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,EACL,uCAAuC,EACvC,qCAAqC,GACtC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAc7D;;;;;;;;;;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AAE,kBAAkB,CAAC,kBAAkB;SAChE,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,qCAAS,GAAjB,UAAkB,KAA6B,EAAE,OAAuB;QACtE,OAAO,qCAAqC,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAEO,uCAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,uCAAuC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAIH,wBAAC;AAAD,CAAC,AAtDD,CAAuC,QAAQ,GAsD9C"}
@@ -3,41 +3,13 @@ import { RemovePermissionRequest } from "../models/models_0";
3
3
  import { deserializeAws_json1_1RemovePermissionCommand, serializeAws_json1_1RemovePermissionCommand, } from "../protocols/Aws_json1_1";
4
4
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
5
  import { Command as $Command } from "@aws-sdk/smithy-client";
6
- /**
7
- * <p>Revokes the permission of another Amazon Web Services account to be able to put events to the specified
8
- * event bus. Specify the account to revoke by the <code>StatementId</code> value that you
9
- * associated with the account when you granted it permission with <code>PutPermission</code>.
10
- * 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>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { CloudWatchEventsClient, RemovePermissionCommand } from "@aws-sdk/client-cloudwatch-events"; // ES Modules import
15
- * // const { CloudWatchEventsClient, RemovePermissionCommand } = require("@aws-sdk/client-cloudwatch-events"); // CommonJS import
16
- * const client = new CloudWatchEventsClient(config);
17
- * const command = new RemovePermissionCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link RemovePermissionCommandInput} for command's `input` shape.
22
- * @see {@link RemovePermissionCommandOutput} for command's `response` shape.
23
- * @see {@link CloudWatchEventsClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
- var RemovePermissionCommand = /** @class */ (function (_super) {
6
+ var RemovePermissionCommand = (function (_super) {
27
7
  __extends(RemovePermissionCommand, _super);
28
- // Start section: command_properties
29
- // End section: command_properties
30
8
  function RemovePermissionCommand(input) {
31
- var _this =
32
- // Start section: command_constructor
33
- _super.call(this) || this;
9
+ var _this = _super.call(this) || this;
34
10
  _this.input = input;
35
11
  return _this;
36
- // End section: command_constructor
37
12
  }
38
- /**
39
- * @internal
40
- */
41
13
  RemovePermissionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
42
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
43
15
  var stack = clientStack.concat(this.middlewareStack);
@@ -1 +1 @@
1
- {"version":3,"file":"RemovePermissionCommand.js","sourceRoot":"","sources":["../../../commands/RemovePermissionCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EACL,6CAA6C,EAC7C,2CAA2C,GAC5C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAc7D;;;;;;;;;;;;;;;;;;;GAmBG;AACH;IAA6C,2CAI5C;IACC,oCAAoC;IACpC,kCAAkC;IAElC,iCAAqB,KAAmC;QAAxD;QACE,qCAAqC;QACrC,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAA8B;;QAGtD,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,mDAAiB,GAAjB,UACE,WAAmE,EACnE,aAAmD,EACnD,OAA8B;QAE9B,IAA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uB;QACjE,OAAO,6CAA6C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAIH,8BAAC;AAAD,CAAC,AAtDD,CAA6C,QAAQ,GAsDpD"}
@@ -3,46 +3,13 @@ import { RemoveTargetsRequest, RemoveTargetsResponse } from "../models/models_0"
3
3
  import { deserializeAws_json1_1RemoveTargetsCommand, serializeAws_json1_1RemoveTargetsCommand, } from "../protocols/Aws_json1_1";
4
4
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
5
  import { Command as $Command } from "@aws-sdk/smithy-client";
6
- /**
7
- * <p>Removes the specified targets from the specified rule. When the rule is triggered, those
8
- * targets are no longer be invoked.</p>
9
- *
10
- * <p>When you remove a target, when the associated rule triggers, removed targets might
11
- * continue to be invoked. Allow a short period of time for changes to take effect.</p>
12
- *
13
- * <p>This action can partially fail if too many requests are made at the same time. If that
14
- * happens, <code>FailedEntryCount</code> is non-zero in the response and each entry in
15
- * <code>FailedEntries</code> provides the ID of the failed target and the error code.</p>
16
- * @example
17
- * Use a bare-bones client and the command you need to make an API call.
18
- * ```javascript
19
- * import { CloudWatchEventsClient, RemoveTargetsCommand } from "@aws-sdk/client-cloudwatch-events"; // ES Modules import
20
- * // const { CloudWatchEventsClient, RemoveTargetsCommand } = require("@aws-sdk/client-cloudwatch-events"); // CommonJS import
21
- * const client = new CloudWatchEventsClient(config);
22
- * const command = new RemoveTargetsCommand(input);
23
- * const response = await client.send(command);
24
- * ```
25
- *
26
- * @see {@link RemoveTargetsCommandInput} for command's `input` shape.
27
- * @see {@link RemoveTargetsCommandOutput} for command's `response` shape.
28
- * @see {@link CloudWatchEventsClientResolvedConfig | config} for command's `input` shape.
29
- *
30
- */
31
- var RemoveTargetsCommand = /** @class */ (function (_super) {
6
+ var RemoveTargetsCommand = (function (_super) {
32
7
  __extends(RemoveTargetsCommand, _super);
33
- // Start section: command_properties
34
- // End section: command_properties
35
8
  function RemoveTargetsCommand(input) {
36
- var _this =
37
- // Start section: command_constructor
38
- _super.call(this) || this;
9
+ var _this = _super.call(this) || this;
39
10
  _this.input = input;
40
11
  return _this;
41
- // End section: command_constructor
42
12
  }
43
- /**
44
- * @internal
45
- */
46
13
  RemoveTargetsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
47
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
48
15
  var stack = clientStack.concat(this.middlewareStack);
@@ -1 +1 @@
1
- {"version":3,"file":"RemoveTargetsCommand.js","sourceRoot":"","sources":["../../../commands/RemoveTargetsCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AACjF,OAAO,EACL,0CAA0C,EAC1C,wCAAwC,GACzC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAc7D;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH;IAA0C,wCAIzC;IACC,oCAAoC;IACpC,kCAAkC;IAElC,8BAAqB,KAAgC;QAArD;QACE,qCAAqC;QACrC,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAA2B;;QAGnD,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,gDAAiB,GAAjB,UACE,WAAmE,EACnE,aAAmD,EACnD,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,wBAAwB,CAAC;QAC5C,IAAM,WAAW,GAAG,sBAAsB,CAAC;QAC3C,IAAM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C,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,wBAAwB,CAAC;QAC5C,IAAM,WAAW,GAAG,sBAAsB,CAAC;QAC3C,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,oBAAoB,CAAC,kBAAkB;YAChE,wBAAwB,EAAE,qBAAqB,CAAC,kBAAkB;SACnE,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,wCAAS,GAAjB,UAAkB,KAAgC,EAAE,OAAuB;QACzE,OAAO,wCAAwC,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAEO,0CAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,0CAA0C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAIH,2BAAC;AAAD,CAAC,AAtDD,CAA0C,QAAQ,GAsDjD"}
@@ -3,46 +3,13 @@ import { StartReplayRequest, StartReplayResponse } from "../models/models_0";
3
3
  import { deserializeAws_json1_1StartReplayCommand, serializeAws_json1_1StartReplayCommand, } from "../protocols/Aws_json1_1";
4
4
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
5
  import { Command as $Command } from "@aws-sdk/smithy-client";
6
- /**
7
- * <p>Starts the specified replay. Events are not necessarily replayed in the exact same order
8
- * that they were added to the archive. A replay processes events to replay based on the time in
9
- * the event, and replays them using 1 minute intervals. If you specify an
10
- * <code>EventStartTime</code> and an <code>EventEndTime</code> that covers a 20 minute time
11
- * range, the events are replayed from the first minute of that 20 minute range first. Then the
12
- * events from the second minute are replayed. You can use <code>DescribeReplay</code> to
13
- * determine the progress of a replay. The value returned for <code>EventLastReplayedTime</code>
14
- * indicates the time within the specified time range associated with the last event
15
- * replayed.</p>
16
- * @example
17
- * Use a bare-bones client and the command you need to make an API call.
18
- * ```javascript
19
- * import { CloudWatchEventsClient, StartReplayCommand } from "@aws-sdk/client-cloudwatch-events"; // ES Modules import
20
- * // const { CloudWatchEventsClient, StartReplayCommand } = require("@aws-sdk/client-cloudwatch-events"); // CommonJS import
21
- * const client = new CloudWatchEventsClient(config);
22
- * const command = new StartReplayCommand(input);
23
- * const response = await client.send(command);
24
- * ```
25
- *
26
- * @see {@link StartReplayCommandInput} for command's `input` shape.
27
- * @see {@link StartReplayCommandOutput} for command's `response` shape.
28
- * @see {@link CloudWatchEventsClientResolvedConfig | config} for command's `input` shape.
29
- *
30
- */
31
- var StartReplayCommand = /** @class */ (function (_super) {
6
+ var StartReplayCommand = (function (_super) {
32
7
  __extends(StartReplayCommand, _super);
33
- // Start section: command_properties
34
- // End section: command_properties
35
8
  function StartReplayCommand(input) {
36
- var _this =
37
- // Start section: command_constructor
38
- _super.call(this) || this;
9
+ var _this = _super.call(this) || this;
39
10
  _this.input = input;
40
11
  return _this;
41
- // End section: command_constructor
42
12
  }
43
- /**
44
- * @internal
45
- */
46
13
  StartReplayCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
47
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
48
15
  var stack = clientStack.concat(this.middlewareStack);
@@ -1 +1 @@
1
- {"version":3,"file":"StartReplayCommand.js","sourceRoot":"","sources":["../../../commands/StartReplayCommand.ts"],"names":[],"mappings":";AACA,OAAO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