api-2.json 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643
  1. {
  2. "version":"2.0",
  3. "metadata":{
  4. "apiVersion":"2015-10-07",
  5. "endpointPrefix":"events",
  6. "jsonVersion":"1.1",
  7. "serviceFullName":"Amazon CloudWatch Events",
  8. "signatureVersion":"v4",
  9. "targetPrefix":"AWSEvents",
  10. "protocol":"json"
  11. },
  12. "operations":{
  13. "DeleteRule":{
  14. "name":"DeleteRule",
  15. "http":{
  16. "method":"POST",
  17. "requestUri":"/"
  18. },
  19. "input":{"shape":"DeleteRuleRequest"},
  20. "errors":[
  21. {
  22. "shape":"ConcurrentModificationException",
  23. "exception":true
  24. },
  25. {
  26. "shape":"InternalException",
  27. "exception":true,
  28. "fault":true
  29. }
  30. ]
  31. },
  32. "DescribeRule":{
  33. "name":"DescribeRule",
  34. "http":{
  35. "method":"POST",
  36. "requestUri":"/"
  37. },
  38. "input":{"shape":"DescribeRuleRequest"},
  39. "output":{"shape":"DescribeRuleResponse"},
  40. "errors":[
  41. {
  42. "shape":"ResourceNotFoundException",
  43. "exception":true
  44. },
  45. {
  46. "shape":"InternalException",
  47. "exception":true,
  48. "fault":true
  49. }
  50. ]
  51. },
  52. "DisableRule":{
  53. "name":"DisableRule",
  54. "http":{
  55. "method":"POST",
  56. "requestUri":"/"
  57. },
  58. "input":{"shape":"DisableRuleRequest"},
  59. "errors":[
  60. {
  61. "shape":"ResourceNotFoundException",
  62. "exception":true
  63. },
  64. {
  65. "shape":"ConcurrentModificationException",
  66. "exception":true
  67. },
  68. {
  69. "shape":"InternalException",
  70. "exception":true,
  71. "fault":true
  72. }
  73. ]
  74. },
  75. "EnableRule":{
  76. "name":"EnableRule",
  77. "http":{
  78. "method":"POST",
  79. "requestUri":"/"
  80. },
  81. "input":{"shape":"EnableRuleRequest"},
  82. "errors":[
  83. {
  84. "shape":"ResourceNotFoundException",
  85. "exception":true
  86. },
  87. {
  88. "shape":"ConcurrentModificationException",
  89. "exception":true
  90. },
  91. {
  92. "shape":"InternalException",
  93. "exception":true,
  94. "fault":true
  95. }
  96. ]
  97. },
  98. "ListRuleNamesByTarget":{
  99. "name":"ListRuleNamesByTarget",
  100. "http":{
  101. "method":"POST",
  102. "requestUri":"/"
  103. },
  104. "input":{"shape":"ListRuleNamesByTargetRequest"},
  105. "output":{"shape":"ListRuleNamesByTargetResponse"},
  106. "errors":[
  107. {
  108. "shape":"InternalException",
  109. "exception":true,
  110. "fault":true
  111. }
  112. ]
  113. },
  114. "ListRules":{
  115. "name":"ListRules",
  116. "http":{
  117. "method":"POST",
  118. "requestUri":"/"
  119. },
  120. "input":{"shape":"ListRulesRequest"},
  121. "output":{"shape":"ListRulesResponse"},
  122. "errors":[
  123. {
  124. "shape":"InternalException",
  125. "exception":true,
  126. "fault":true
  127. }
  128. ]
  129. },
  130. "ListTargetsByRule":{
  131. "name":"ListTargetsByRule",
  132. "http":{
  133. "method":"POST",
  134. "requestUri":"/"
  135. },
  136. "input":{"shape":"ListTargetsByRuleRequest"},
  137. "output":{"shape":"ListTargetsByRuleResponse"},
  138. "errors":[
  139. {
  140. "shape":"ResourceNotFoundException",
  141. "exception":true
  142. },
  143. {
  144. "shape":"InternalException",
  145. "exception":true,
  146. "fault":true
  147. }
  148. ]
  149. },
  150. "PutEvents":{
  151. "name":"PutEvents",
  152. "http":{
  153. "method":"POST",
  154. "requestUri":"/"
  155. },
  156. "input":{"shape":"PutEventsRequest"},
  157. "output":{"shape":"PutEventsResponse"},
  158. "errors":[
  159. {
  160. "shape":"InternalException",
  161. "exception":true,
  162. "fault":true
  163. }
  164. ]
  165. },
  166. "PutRule":{
  167. "name":"PutRule",
  168. "http":{
  169. "method":"POST",
  170. "requestUri":"/"
  171. },
  172. "input":{"shape":"PutRuleRequest"},
  173. "output":{"shape":"PutRuleResponse"},
  174. "errors":[
  175. {
  176. "shape":"InvalidEventPatternException",
  177. "exception":true
  178. },
  179. {
  180. "shape":"LimitExceededException",
  181. "exception":true
  182. },
  183. {
  184. "shape":"ConcurrentModificationException",
  185. "exception":true
  186. },
  187. {
  188. "shape":"InternalException",
  189. "exception":true,
  190. "fault":true
  191. }
  192. ]
  193. },
  194. "PutTargets":{
  195. "name":"PutTargets",
  196. "http":{
  197. "method":"POST",
  198. "requestUri":"/"
  199. },
  200. "input":{"shape":"PutTargetsRequest"},
  201. "output":{"shape":"PutTargetsResponse"},
  202. "errors":[
  203. {
  204. "shape":"ResourceNotFoundException",
  205. "exception":true
  206. },
  207. {
  208. "shape":"ConcurrentModificationException",
  209. "exception":true
  210. },
  211. {
  212. "shape":"LimitExceededException",
  213. "exception":true
  214. },
  215. {
  216. "shape":"InternalException",
  217. "exception":true,
  218. "fault":true
  219. }
  220. ]
  221. },
  222. "RemoveTargets":{
  223. "name":"RemoveTargets",
  224. "http":{
  225. "method":"POST",
  226. "requestUri":"/"
  227. },
  228. "input":{"shape":"RemoveTargetsRequest"},
  229. "output":{"shape":"RemoveTargetsResponse"},
  230. "errors":[
  231. {
  232. "shape":"ResourceNotFoundException",
  233. "exception":true
  234. },
  235. {
  236. "shape":"ConcurrentModificationException",
  237. "exception":true
  238. },
  239. {
  240. "shape":"InternalException",
  241. "exception":true,
  242. "fault":true
  243. }
  244. ]
  245. },
  246. "TestEventPattern":{
  247. "name":"TestEventPattern",
  248. "http":{
  249. "method":"POST",
  250. "requestUri":"/"
  251. },
  252. "input":{"shape":"TestEventPatternRequest"},
  253. "output":{"shape":"TestEventPatternResponse"},
  254. "errors":[
  255. {
  256. "shape":"InvalidEventPatternException",
  257. "exception":true
  258. },
  259. {
  260. "shape":"InternalException",
  261. "exception":true,
  262. "fault":true
  263. }
  264. ]
  265. }
  266. },
  267. "shapes":{
  268. "Boolean":{"type":"boolean"},
  269. "ConcurrentModificationException":{
  270. "type":"structure",
  271. "members":{
  272. },
  273. "exception":true
  274. },
  275. "DeleteRuleRequest":{
  276. "type":"structure",
  277. "required":["Name"],
  278. "members":{
  279. "Name":{"shape":"RuleName"}
  280. }
  281. },
  282. "DescribeRuleRequest":{
  283. "type":"structure",
  284. "required":["Name"],
  285. "members":{
  286. "Name":{"shape":"RuleName"}
  287. }
  288. },
  289. "DescribeRuleResponse":{
  290. "type":"structure",
  291. "members":{
  292. "Name":{"shape":"RuleName"},
  293. "Arn":{"shape":"RuleArn"},
  294. "EventPattern":{"shape":"EventPattern"},
  295. "ScheduleExpression":{"shape":"ScheduleExpression"},
  296. "State":{"shape":"RuleState"},
  297. "Description":{"shape":"RuleDescription"},
  298. "RoleArn":{"shape":"RoleArn"}
  299. }
  300. },
  301. "DisableRuleRequest":{
  302. "type":"structure",
  303. "required":["Name"],
  304. "members":{
  305. "Name":{"shape":"RuleName"}
  306. }
  307. },
  308. "EnableRuleRequest":{
  309. "type":"structure",
  310. "required":["Name"],
  311. "members":{
  312. "Name":{"shape":"RuleName"}
  313. }
  314. },
  315. "ErrorCode":{"type":"string"},
  316. "ErrorMessage":{"type":"string"},
  317. "EventId":{"type":"string"},
  318. "EventPattern":{
  319. "type":"string",
  320. "max":2048
  321. },
  322. "EventResource":{"type":"string"},
  323. "EventResourceList":{
  324. "type":"list",
  325. "member":{"shape":"EventResource"}
  326. },
  327. "EventTime":{"type":"timestamp"},
  328. "Integer":{"type":"integer"},
  329. "InternalException":{
  330. "type":"structure",
  331. "members":{
  332. },
  333. "exception":true,
  334. "fault":true
  335. },
  336. "InvalidEventPatternException":{
  337. "type":"structure",
  338. "members":{
  339. },
  340. "exception":true
  341. },
  342. "LimitExceededException":{
  343. "type":"structure",
  344. "members":{
  345. },
  346. "exception":true
  347. },
  348. "LimitMax100":{
  349. "type":"integer",
  350. "min":1,
  351. "max":100
  352. },
  353. "ListRuleNamesByTargetRequest":{
  354. "type":"structure",
  355. "required":["TargetArn"],
  356. "members":{
  357. "TargetArn":{"shape":"TargetArn"},
  358. "NextToken":{"shape":"NextToken"},
  359. "Limit":{"shape":"LimitMax100"}
  360. }
  361. },
  362. "ListRuleNamesByTargetResponse":{
  363. "type":"structure",
  364. "members":{
  365. "RuleNames":{"shape":"RuleNameList"},
  366. "NextToken":{"shape":"NextToken"}
  367. }
  368. },
  369. "ListRulesRequest":{
  370. "type":"structure",
  371. "members":{
  372. "NamePrefix":{"shape":"RuleName"},
  373. "NextToken":{"shape":"NextToken"},
  374. "Limit":{"shape":"LimitMax100"}
  375. }
  376. },
  377. "ListRulesResponse":{
  378. "type":"structure",
  379. "members":{
  380. "Rules":{"shape":"RuleResponseList"},
  381. "NextToken":{"shape":"NextToken"}
  382. }
  383. },
  384. "ListTargetsByRuleRequest":{
  385. "type":"structure",
  386. "required":["Rule"],
  387. "members":{
  388. "Rule":{"shape":"RuleName"},
  389. "NextToken":{"shape":"NextToken"},
  390. "Limit":{"shape":"LimitMax100"}
  391. }
  392. },
  393. "ListTargetsByRuleResponse":{
  394. "type":"structure",
  395. "members":{
  396. "Targets":{"shape":"TargetList"},
  397. "NextToken":{"shape":"NextToken"}
  398. }
  399. },
  400. "NextToken":{
  401. "type":"string",
  402. "min":1,
  403. "max":2048
  404. },
  405. "PutEventsRequest":{
  406. "type":"structure",
  407. "required":["Entries"],
  408. "members":{
  409. "Entries":{"shape":"PutEventsRequestEntryList"}
  410. }
  411. },
  412. "PutEventsRequestEntry":{
  413. "type":"structure",
  414. "members":{
  415. "Time":{"shape":"EventTime"},
  416. "Source":{"shape":"String"},
  417. "Resources":{"shape":"EventResourceList"},
  418. "DetailType":{"shape":"String"},
  419. "Detail":{"shape":"String"}
  420. }
  421. },
  422. "PutEventsRequestEntryList":{
  423. "type":"list",
  424. "member":{"shape":"PutEventsRequestEntry"},
  425. "min":1,
  426. "max":10
  427. },
  428. "PutEventsResponse":{
  429. "type":"structure",
  430. "members":{
  431. "FailedEntryCount":{"shape":"Integer"},
  432. "Entries":{"shape":"PutEventsResultEntryList"}
  433. }
  434. },
  435. "PutEventsResultEntry":{
  436. "type":"structure",
  437. "members":{
  438. "EventId":{"shape":"EventId"},
  439. "ErrorCode":{"shape":"ErrorCode"},
  440. "ErrorMessage":{"shape":"ErrorMessage"}
  441. }
  442. },
  443. "PutEventsResultEntryList":{
  444. "type":"list",
  445. "member":{"shape":"PutEventsResultEntry"}
  446. },
  447. "PutRuleRequest":{
  448. "type":"structure",
  449. "required":["Name"],
  450. "members":{
  451. "Name":{"shape":"RuleName"},
  452. "ScheduleExpression":{"shape":"ScheduleExpression"},
  453. "EventPattern":{"shape":"EventPattern"},
  454. "State":{"shape":"RuleState"},
  455. "Description":{"shape":"RuleDescription"},
  456. "RoleArn":{"shape":"RoleArn"}
  457. }
  458. },
  459. "PutRuleResponse":{
  460. "type":"structure",
  461. "members":{
  462. "RuleArn":{"shape":"RuleArn"}
  463. }
  464. },
  465. "PutTargetsRequest":{
  466. "type":"structure",
  467. "required":[
  468. "Rule",
  469. "Targets"
  470. ],
  471. "members":{
  472. "Rule":{"shape":"RuleName"},
  473. "Targets":{"shape":"TargetList"}
  474. }
  475. },
  476. "PutTargetsResponse":{
  477. "type":"structure",
  478. "members":{
  479. "FailedEntryCount":{"shape":"Integer"},
  480. "FailedEntries":{"shape":"PutTargetsResultEntryList"}
  481. }
  482. },
  483. "PutTargetsResultEntry":{
  484. "type":"structure",
  485. "members":{
  486. "TargetId":{"shape":"TargetId"},
  487. "ErrorCode":{"shape":"ErrorCode"},
  488. "ErrorMessage":{"shape":"ErrorMessage"}
  489. }
  490. },
  491. "PutTargetsResultEntryList":{
  492. "type":"list",
  493. "member":{"shape":"PutTargetsResultEntry"}
  494. },
  495. "RemoveTargetsRequest":{
  496. "type":"structure",
  497. "required":[
  498. "Rule",
  499. "Ids"
  500. ],
  501. "members":{
  502. "Rule":{"shape":"RuleName"},
  503. "Ids":{"shape":"TargetIdList"}
  504. }
  505. },
  506. "RemoveTargetsResponse":{
  507. "type":"structure",
  508. "members":{
  509. "FailedEntryCount":{"shape":"Integer"},
  510. "FailedEntries":{"shape":"RemoveTargetsResultEntryList"}
  511. }
  512. },
  513. "RemoveTargetsResultEntry":{
  514. "type":"structure",
  515. "members":{
  516. "TargetId":{"shape":"TargetId"},
  517. "ErrorCode":{"shape":"ErrorCode"},
  518. "ErrorMessage":{"shape":"ErrorMessage"}
  519. }
  520. },
  521. "RemoveTargetsResultEntryList":{
  522. "type":"list",
  523. "member":{"shape":"RemoveTargetsResultEntry"}
  524. },
  525. "ResourceNotFoundException":{
  526. "type":"structure",
  527. "members":{
  528. },
  529. "exception":true
  530. },
  531. "RoleArn":{
  532. "type":"string",
  533. "min":1,
  534. "max":1600
  535. },
  536. "Rule":{
  537. "type":"structure",
  538. "members":{
  539. "Name":{"shape":"RuleName"},
  540. "Arn":{"shape":"RuleArn"},
  541. "EventPattern":{"shape":"EventPattern"},
  542. "State":{"shape":"RuleState"},
  543. "Description":{"shape":"RuleDescription"},
  544. "ScheduleExpression":{"shape":"ScheduleExpression"},
  545. "RoleArn":{"shape":"RoleArn"}
  546. }
  547. },
  548. "RuleArn":{
  549. "type":"string",
  550. "min":1,
  551. "max":1600
  552. },
  553. "RuleDescription":{
  554. "type":"string",
  555. "max":512
  556. },
  557. "RuleName":{
  558. "type":"string",
  559. "min":1,
  560. "max":64,
  561. "pattern":"[\\.\\-_A-Za-z0-9]+"
  562. },
  563. "RuleNameList":{
  564. "type":"list",
  565. "member":{"shape":"RuleName"}
  566. },
  567. "RuleResponseList":{
  568. "type":"list",
  569. "member":{"shape":"Rule"}
  570. },
  571. "RuleState":{
  572. "type":"string",
  573. "enum":[
  574. "ENABLED",
  575. "DISABLED"
  576. ]
  577. },
  578. "ScheduleExpression":{
  579. "type":"string",
  580. "max":256
  581. },
  582. "String":{"type":"string"},
  583. "Target":{
  584. "type":"structure",
  585. "required":[
  586. "Id",
  587. "Arn"
  588. ],
  589. "members":{
  590. "Id":{"shape":"TargetId"},
  591. "Arn":{"shape":"TargetArn"},
  592. "Input":{"shape":"TargetInput"},
  593. "InputPath":{"shape":"TargetInputPath"}
  594. }
  595. },
  596. "TargetArn":{
  597. "type":"string",
  598. "min":1,
  599. "max":1600
  600. },
  601. "TargetId":{
  602. "type":"string",
  603. "min":1,
  604. "max":64,
  605. "pattern":"[\\.\\-_A-Za-z0-9]+"
  606. },
  607. "TargetIdList":{
  608. "type":"list",
  609. "member":{"shape":"TargetId"},
  610. "min":1,
  611. "max":100
  612. },
  613. "TargetInput":{
  614. "type":"string",
  615. "max":8192
  616. },
  617. "TargetInputPath":{
  618. "type":"string",
  619. "max":256
  620. },
  621. "TargetList":{
  622. "type":"list",
  623. "member":{"shape":"Target"}
  624. },
  625. "TestEventPatternRequest":{
  626. "type":"structure",
  627. "required":[
  628. "EventPattern",
  629. "Event"
  630. ],
  631. "members":{
  632. "EventPattern":{"shape":"EventPattern"},
  633. "Event":{"shape":"String"}
  634. }
  635. },
  636. "TestEventPatternResponse":{
  637. "type":"structure",
  638. "members":{
  639. "Result":{"shape":"Boolean"}
  640. }
  641. }
  642. }
  643. }