api-2.json 47 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874
  1. {
  2. "version":"2.0",
  3. "metadata":{
  4. "apiVersion":"2014-06-30",
  5. "endpointPrefix":"cognito-sync",
  6. "jsonVersion":"1.1",
  7. "serviceFullName":"Amazon Cognito Sync",
  8. "signatureVersion":"v4",
  9. "protocol":"rest-json"
  10. },
  11. "operations":{
  12. "BulkPublish":{
  13. "name":"BulkPublish",
  14. "http":{
  15. "method":"POST",
  16. "requestUri":"/identitypools/{IdentityPoolId}/bulkpublish",
  17. "responseCode":200
  18. },
  19. "input":{"shape":"BulkPublishRequest"},
  20. "output":{"shape":"BulkPublishResponse"},
  21. "errors":[
  22. {
  23. "shape":"NotAuthorizedException",
  24. "error":{
  25. "code":"NotAuthorizedError",
  26. "httpStatusCode":403,
  27. "senderFault":true
  28. },
  29. "exception":true
  30. },
  31. {
  32. "shape":"InvalidParameterException",
  33. "error":{
  34. "code":"InvalidParameter",
  35. "httpStatusCode":400,
  36. "senderFault":true
  37. },
  38. "exception":true
  39. },
  40. {
  41. "shape":"ResourceNotFoundException",
  42. "error":{
  43. "code":"ResourceNotFound",
  44. "httpStatusCode":404,
  45. "senderFault":true
  46. },
  47. "exception":true
  48. },
  49. {
  50. "shape":"InternalErrorException",
  51. "error":{
  52. "code":"InternalError",
  53. "httpStatusCode":500
  54. },
  55. "exception":true,
  56. "fault":true
  57. },
  58. {
  59. "shape":"DuplicateRequestException",
  60. "error":{
  61. "code":"DuplicateRequest",
  62. "httpStatusCode":400,
  63. "senderFault":true
  64. },
  65. "exception":true
  66. },
  67. {
  68. "shape":"AlreadyStreamedException",
  69. "error":{
  70. "code":"AlreadyStreamed",
  71. "httpStatusCode":400,
  72. "senderFault":true
  73. },
  74. "exception":true
  75. }
  76. ]
  77. },
  78. "DeleteDataset":{
  79. "name":"DeleteDataset",
  80. "http":{
  81. "method":"DELETE",
  82. "requestUri":"/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}",
  83. "responseCode":200
  84. },
  85. "input":{"shape":"DeleteDatasetRequest"},
  86. "output":{"shape":"DeleteDatasetResponse"},
  87. "errors":[
  88. {
  89. "shape":"NotAuthorizedException",
  90. "error":{
  91. "code":"NotAuthorizedError",
  92. "httpStatusCode":403,
  93. "senderFault":true
  94. },
  95. "exception":true
  96. },
  97. {
  98. "shape":"InvalidParameterException",
  99. "error":{
  100. "code":"InvalidParameter",
  101. "httpStatusCode":400,
  102. "senderFault":true
  103. },
  104. "exception":true
  105. },
  106. {
  107. "shape":"ResourceNotFoundException",
  108. "error":{
  109. "code":"ResourceNotFound",
  110. "httpStatusCode":404,
  111. "senderFault":true
  112. },
  113. "exception":true
  114. },
  115. {
  116. "shape":"InternalErrorException",
  117. "error":{
  118. "code":"InternalError",
  119. "httpStatusCode":500
  120. },
  121. "exception":true,
  122. "fault":true
  123. },
  124. {
  125. "shape":"TooManyRequestsException",
  126. "error":{
  127. "code":"TooManyRequests",
  128. "httpStatusCode":429,
  129. "senderFault":true
  130. },
  131. "exception":true
  132. },
  133. {
  134. "shape":"ResourceConflictException",
  135. "error":{
  136. "code":"ResourceConflict",
  137. "httpStatusCode":409,
  138. "senderFault":true
  139. },
  140. "exception":true
  141. }
  142. ]
  143. },
  144. "DescribeDataset":{
  145. "name":"DescribeDataset",
  146. "http":{
  147. "method":"GET",
  148. "requestUri":"/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}",
  149. "responseCode":200
  150. },
  151. "input":{"shape":"DescribeDatasetRequest"},
  152. "output":{"shape":"DescribeDatasetResponse"},
  153. "errors":[
  154. {
  155. "shape":"NotAuthorizedException",
  156. "error":{
  157. "code":"NotAuthorizedError",
  158. "httpStatusCode":403,
  159. "senderFault":true
  160. },
  161. "exception":true
  162. },
  163. {
  164. "shape":"InvalidParameterException",
  165. "error":{
  166. "code":"InvalidParameter",
  167. "httpStatusCode":400,
  168. "senderFault":true
  169. },
  170. "exception":true
  171. },
  172. {
  173. "shape":"ResourceNotFoundException",
  174. "error":{
  175. "code":"ResourceNotFound",
  176. "httpStatusCode":404,
  177. "senderFault":true
  178. },
  179. "exception":true
  180. },
  181. {
  182. "shape":"InternalErrorException",
  183. "error":{
  184. "code":"InternalError",
  185. "httpStatusCode":500
  186. },
  187. "exception":true,
  188. "fault":true
  189. },
  190. {
  191. "shape":"TooManyRequestsException",
  192. "error":{
  193. "code":"TooManyRequests",
  194. "httpStatusCode":429,
  195. "senderFault":true
  196. },
  197. "exception":true
  198. }
  199. ]
  200. },
  201. "DescribeIdentityPoolUsage":{
  202. "name":"DescribeIdentityPoolUsage",
  203. "http":{
  204. "method":"GET",
  205. "requestUri":"/identitypools/{IdentityPoolId}",
  206. "responseCode":200
  207. },
  208. "input":{"shape":"DescribeIdentityPoolUsageRequest"},
  209. "output":{"shape":"DescribeIdentityPoolUsageResponse"},
  210. "errors":[
  211. {
  212. "shape":"NotAuthorizedException",
  213. "error":{
  214. "code":"NotAuthorizedError",
  215. "httpStatusCode":403,
  216. "senderFault":true
  217. },
  218. "exception":true
  219. },
  220. {
  221. "shape":"InvalidParameterException",
  222. "error":{
  223. "code":"InvalidParameter",
  224. "httpStatusCode":400,
  225. "senderFault":true
  226. },
  227. "exception":true
  228. },
  229. {
  230. "shape":"ResourceNotFoundException",
  231. "error":{
  232. "code":"ResourceNotFound",
  233. "httpStatusCode":404,
  234. "senderFault":true
  235. },
  236. "exception":true
  237. },
  238. {
  239. "shape":"InternalErrorException",
  240. "error":{
  241. "code":"InternalError",
  242. "httpStatusCode":500
  243. },
  244. "exception":true,
  245. "fault":true
  246. },
  247. {
  248. "shape":"TooManyRequestsException",
  249. "error":{
  250. "code":"TooManyRequests",
  251. "httpStatusCode":429,
  252. "senderFault":true
  253. },
  254. "exception":true
  255. }
  256. ]
  257. },
  258. "DescribeIdentityUsage":{
  259. "name":"DescribeIdentityUsage",
  260. "http":{
  261. "method":"GET",
  262. "requestUri":"/identitypools/{IdentityPoolId}/identities/{IdentityId}",
  263. "responseCode":200
  264. },
  265. "input":{"shape":"DescribeIdentityUsageRequest"},
  266. "output":{"shape":"DescribeIdentityUsageResponse"},
  267. "errors":[
  268. {
  269. "shape":"NotAuthorizedException",
  270. "error":{
  271. "code":"NotAuthorizedError",
  272. "httpStatusCode":403,
  273. "senderFault":true
  274. },
  275. "exception":true
  276. },
  277. {
  278. "shape":"InvalidParameterException",
  279. "error":{
  280. "code":"InvalidParameter",
  281. "httpStatusCode":400,
  282. "senderFault":true
  283. },
  284. "exception":true
  285. },
  286. {
  287. "shape":"ResourceNotFoundException",
  288. "error":{
  289. "code":"ResourceNotFound",
  290. "httpStatusCode":404,
  291. "senderFault":true
  292. },
  293. "exception":true
  294. },
  295. {
  296. "shape":"InternalErrorException",
  297. "error":{
  298. "code":"InternalError",
  299. "httpStatusCode":500
  300. },
  301. "exception":true,
  302. "fault":true
  303. },
  304. {
  305. "shape":"TooManyRequestsException",
  306. "error":{
  307. "code":"TooManyRequests",
  308. "httpStatusCode":429,
  309. "senderFault":true
  310. },
  311. "exception":true
  312. }
  313. ]
  314. },
  315. "GetBulkPublishDetails":{
  316. "name":"GetBulkPublishDetails",
  317. "http":{
  318. "method":"POST",
  319. "requestUri":"/identitypools/{IdentityPoolId}/getBulkPublishDetails",
  320. "responseCode":200
  321. },
  322. "input":{"shape":"GetBulkPublishDetailsRequest"},
  323. "output":{"shape":"GetBulkPublishDetailsResponse"},
  324. "errors":[
  325. {
  326. "shape":"NotAuthorizedException",
  327. "error":{
  328. "code":"NotAuthorizedError",
  329. "httpStatusCode":403,
  330. "senderFault":true
  331. },
  332. "exception":true
  333. },
  334. {
  335. "shape":"InvalidParameterException",
  336. "error":{
  337. "code":"InvalidParameter",
  338. "httpStatusCode":400,
  339. "senderFault":true
  340. },
  341. "exception":true
  342. },
  343. {
  344. "shape":"ResourceNotFoundException",
  345. "error":{
  346. "code":"ResourceNotFound",
  347. "httpStatusCode":404,
  348. "senderFault":true
  349. },
  350. "exception":true
  351. },
  352. {
  353. "shape":"InternalErrorException",
  354. "error":{
  355. "code":"InternalError",
  356. "httpStatusCode":500
  357. },
  358. "exception":true,
  359. "fault":true
  360. }
  361. ]
  362. },
  363. "GetCognitoEvents":{
  364. "name":"GetCognitoEvents",
  365. "http":{
  366. "method":"GET",
  367. "requestUri":"/identitypools/{IdentityPoolId}/events",
  368. "responseCode":200
  369. },
  370. "input":{"shape":"GetCognitoEventsRequest"},
  371. "output":{"shape":"GetCognitoEventsResponse"},
  372. "errors":[
  373. {
  374. "shape":"InvalidParameterException",
  375. "error":{
  376. "code":"InvalidParameter",
  377. "httpStatusCode":400,
  378. "senderFault":true
  379. },
  380. "exception":true
  381. },
  382. {
  383. "shape":"ResourceNotFoundException",
  384. "error":{
  385. "code":"ResourceNotFound",
  386. "httpStatusCode":404,
  387. "senderFault":true
  388. },
  389. "exception":true
  390. },
  391. {
  392. "shape":"NotAuthorizedException",
  393. "error":{
  394. "code":"NotAuthorizedError",
  395. "httpStatusCode":403,
  396. "senderFault":true
  397. },
  398. "exception":true
  399. },
  400. {
  401. "shape":"InternalErrorException",
  402. "error":{
  403. "code":"InternalError",
  404. "httpStatusCode":500
  405. },
  406. "exception":true,
  407. "fault":true
  408. },
  409. {
  410. "shape":"TooManyRequestsException",
  411. "error":{
  412. "code":"TooManyRequests",
  413. "httpStatusCode":429,
  414. "senderFault":true
  415. },
  416. "exception":true
  417. }
  418. ]
  419. },
  420. "GetIdentityPoolConfiguration":{
  421. "name":"GetIdentityPoolConfiguration",
  422. "http":{
  423. "method":"GET",
  424. "requestUri":"/identitypools/{IdentityPoolId}/configuration",
  425. "responseCode":200
  426. },
  427. "input":{"shape":"GetIdentityPoolConfigurationRequest"},
  428. "output":{"shape":"GetIdentityPoolConfigurationResponse"},
  429. "errors":[
  430. {
  431. "shape":"NotAuthorizedException",
  432. "error":{
  433. "code":"NotAuthorizedError",
  434. "httpStatusCode":403,
  435. "senderFault":true
  436. },
  437. "exception":true
  438. },
  439. {
  440. "shape":"InvalidParameterException",
  441. "error":{
  442. "code":"InvalidParameter",
  443. "httpStatusCode":400,
  444. "senderFault":true
  445. },
  446. "exception":true
  447. },
  448. {
  449. "shape":"ResourceNotFoundException",
  450. "error":{
  451. "code":"ResourceNotFound",
  452. "httpStatusCode":404,
  453. "senderFault":true
  454. },
  455. "exception":true
  456. },
  457. {
  458. "shape":"InternalErrorException",
  459. "error":{
  460. "code":"InternalError",
  461. "httpStatusCode":500
  462. },
  463. "exception":true,
  464. "fault":true
  465. },
  466. {
  467. "shape":"TooManyRequestsException",
  468. "error":{
  469. "code":"TooManyRequests",
  470. "httpStatusCode":429,
  471. "senderFault":true
  472. },
  473. "exception":true
  474. }
  475. ]
  476. },
  477. "ListDatasets":{
  478. "name":"ListDatasets",
  479. "http":{
  480. "method":"GET",
  481. "requestUri":"/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets",
  482. "responseCode":200
  483. },
  484. "input":{"shape":"ListDatasetsRequest"},
  485. "output":{"shape":"ListDatasetsResponse"},
  486. "errors":[
  487. {
  488. "shape":"NotAuthorizedException",
  489. "error":{
  490. "code":"NotAuthorizedError",
  491. "httpStatusCode":403,
  492. "senderFault":true
  493. },
  494. "exception":true
  495. },
  496. {
  497. "shape":"InvalidParameterException",
  498. "error":{
  499. "code":"InvalidParameter",
  500. "httpStatusCode":400,
  501. "senderFault":true
  502. },
  503. "exception":true
  504. },
  505. {
  506. "shape":"InternalErrorException",
  507. "error":{
  508. "code":"InternalError",
  509. "httpStatusCode":500
  510. },
  511. "exception":true,
  512. "fault":true
  513. },
  514. {
  515. "shape":"TooManyRequestsException",
  516. "error":{
  517. "code":"TooManyRequests",
  518. "httpStatusCode":429,
  519. "senderFault":true
  520. },
  521. "exception":true
  522. }
  523. ]
  524. },
  525. "ListIdentityPoolUsage":{
  526. "name":"ListIdentityPoolUsage",
  527. "http":{
  528. "method":"GET",
  529. "requestUri":"/identitypools",
  530. "responseCode":200
  531. },
  532. "input":{"shape":"ListIdentityPoolUsageRequest"},
  533. "output":{"shape":"ListIdentityPoolUsageResponse"},
  534. "errors":[
  535. {
  536. "shape":"NotAuthorizedException",
  537. "error":{
  538. "code":"NotAuthorizedError",
  539. "httpStatusCode":403,
  540. "senderFault":true
  541. },
  542. "exception":true
  543. },
  544. {
  545. "shape":"InvalidParameterException",
  546. "error":{
  547. "code":"InvalidParameter",
  548. "httpStatusCode":400,
  549. "senderFault":true
  550. },
  551. "exception":true
  552. },
  553. {
  554. "shape":"InternalErrorException",
  555. "error":{
  556. "code":"InternalError",
  557. "httpStatusCode":500
  558. },
  559. "exception":true,
  560. "fault":true
  561. },
  562. {
  563. "shape":"TooManyRequestsException",
  564. "error":{
  565. "code":"TooManyRequests",
  566. "httpStatusCode":429,
  567. "senderFault":true
  568. },
  569. "exception":true
  570. }
  571. ]
  572. },
  573. "ListRecords":{
  574. "name":"ListRecords",
  575. "http":{
  576. "method":"GET",
  577. "requestUri":"/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/records",
  578. "responseCode":200
  579. },
  580. "input":{"shape":"ListRecordsRequest"},
  581. "output":{"shape":"ListRecordsResponse"},
  582. "errors":[
  583. {
  584. "shape":"InvalidParameterException",
  585. "error":{
  586. "code":"InvalidParameter",
  587. "httpStatusCode":400,
  588. "senderFault":true
  589. },
  590. "exception":true
  591. },
  592. {
  593. "shape":"NotAuthorizedException",
  594. "error":{
  595. "code":"NotAuthorizedError",
  596. "httpStatusCode":403,
  597. "senderFault":true
  598. },
  599. "exception":true
  600. },
  601. {
  602. "shape":"TooManyRequestsException",
  603. "error":{
  604. "code":"TooManyRequests",
  605. "httpStatusCode":429,
  606. "senderFault":true
  607. },
  608. "exception":true
  609. },
  610. {
  611. "shape":"InternalErrorException",
  612. "error":{
  613. "code":"InternalError",
  614. "httpStatusCode":500
  615. },
  616. "exception":true,
  617. "fault":true
  618. }
  619. ]
  620. },
  621. "RegisterDevice":{
  622. "name":"RegisterDevice",
  623. "http":{
  624. "method":"POST",
  625. "requestUri":"/identitypools/{IdentityPoolId}/identity/{IdentityId}/device",
  626. "responseCode":200
  627. },
  628. "input":{"shape":"RegisterDeviceRequest"},
  629. "output":{"shape":"RegisterDeviceResponse"},
  630. "errors":[
  631. {
  632. "shape":"NotAuthorizedException",
  633. "error":{
  634. "code":"NotAuthorizedError",
  635. "httpStatusCode":403,
  636. "senderFault":true
  637. },
  638. "exception":true
  639. },
  640. {
  641. "shape":"InvalidParameterException",
  642. "error":{
  643. "code":"InvalidParameter",
  644. "httpStatusCode":400,
  645. "senderFault":true
  646. },
  647. "exception":true
  648. },
  649. {
  650. "shape":"ResourceNotFoundException",
  651. "error":{
  652. "code":"ResourceNotFound",
  653. "httpStatusCode":404,
  654. "senderFault":true
  655. },
  656. "exception":true
  657. },
  658. {
  659. "shape":"InternalErrorException",
  660. "error":{
  661. "code":"InternalError",
  662. "httpStatusCode":500
  663. },
  664. "exception":true,
  665. "fault":true
  666. },
  667. {
  668. "shape":"InvalidConfigurationException",
  669. "error":{
  670. "code":"InvalidConfiguration",
  671. "httpStatusCode":400,
  672. "senderFault":true
  673. },
  674. "exception":true
  675. },
  676. {
  677. "shape":"TooManyRequestsException",
  678. "error":{
  679. "code":"TooManyRequests",
  680. "httpStatusCode":429,
  681. "senderFault":true
  682. },
  683. "exception":true
  684. }
  685. ]
  686. },
  687. "SetCognitoEvents":{
  688. "name":"SetCognitoEvents",
  689. "http":{
  690. "method":"POST",
  691. "requestUri":"/identitypools/{IdentityPoolId}/events",
  692. "responseCode":200
  693. },
  694. "input":{"shape":"SetCognitoEventsRequest"},
  695. "errors":[
  696. {
  697. "shape":"InvalidParameterException",
  698. "error":{
  699. "code":"InvalidParameter",
  700. "httpStatusCode":400,
  701. "senderFault":true
  702. },
  703. "exception":true
  704. },
  705. {
  706. "shape":"ResourceNotFoundException",
  707. "error":{
  708. "code":"ResourceNotFound",
  709. "httpStatusCode":404,
  710. "senderFault":true
  711. },
  712. "exception":true
  713. },
  714. {
  715. "shape":"NotAuthorizedException",
  716. "error":{
  717. "code":"NotAuthorizedError",
  718. "httpStatusCode":403,
  719. "senderFault":true
  720. },
  721. "exception":true
  722. },
  723. {
  724. "shape":"InternalErrorException",
  725. "error":{
  726. "code":"InternalError",
  727. "httpStatusCode":500
  728. },
  729. "exception":true,
  730. "fault":true
  731. },
  732. {
  733. "shape":"TooManyRequestsException",
  734. "error":{
  735. "code":"TooManyRequests",
  736. "httpStatusCode":429,
  737. "senderFault":true
  738. },
  739. "exception":true
  740. }
  741. ]
  742. },
  743. "SetIdentityPoolConfiguration":{
  744. "name":"SetIdentityPoolConfiguration",
  745. "http":{
  746. "method":"POST",
  747. "requestUri":"/identitypools/{IdentityPoolId}/configuration",
  748. "responseCode":200
  749. },
  750. "input":{"shape":"SetIdentityPoolConfigurationRequest"},
  751. "output":{"shape":"SetIdentityPoolConfigurationResponse"},
  752. "errors":[
  753. {
  754. "shape":"NotAuthorizedException",
  755. "error":{
  756. "code":"NotAuthorizedError",
  757. "httpStatusCode":403,
  758. "senderFault":true
  759. },
  760. "exception":true
  761. },
  762. {
  763. "shape":"InvalidParameterException",
  764. "error":{
  765. "code":"InvalidParameter",
  766. "httpStatusCode":400,
  767. "senderFault":true
  768. },
  769. "exception":true
  770. },
  771. {
  772. "shape":"ResourceNotFoundException",
  773. "error":{
  774. "code":"ResourceNotFound",
  775. "httpStatusCode":404,
  776. "senderFault":true
  777. },
  778. "exception":true
  779. },
  780. {
  781. "shape":"InternalErrorException",
  782. "error":{
  783. "code":"InternalError",
  784. "httpStatusCode":500
  785. },
  786. "exception":true,
  787. "fault":true
  788. },
  789. {
  790. "shape":"TooManyRequestsException",
  791. "error":{
  792. "code":"TooManyRequests",
  793. "httpStatusCode":429,
  794. "senderFault":true
  795. },
  796. "exception":true
  797. },
  798. {
  799. "shape":"ConcurrentModificationException",
  800. "error":{
  801. "code":"ConcurrentModification",
  802. "httpStatusCode":400,
  803. "senderFault":true
  804. },
  805. "exception":true
  806. }
  807. ]
  808. },
  809. "SubscribeToDataset":{
  810. "name":"SubscribeToDataset",
  811. "http":{
  812. "method":"POST",
  813. "requestUri":"/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/subscriptions/{DeviceId}",
  814. "responseCode":200
  815. },
  816. "input":{"shape":"SubscribeToDatasetRequest"},
  817. "output":{"shape":"SubscribeToDatasetResponse"},
  818. "errors":[
  819. {
  820. "shape":"NotAuthorizedException",
  821. "error":{
  822. "code":"NotAuthorizedError",
  823. "httpStatusCode":403,
  824. "senderFault":true
  825. },
  826. "exception":true
  827. },
  828. {
  829. "shape":"InvalidParameterException",
  830. "error":{
  831. "code":"InvalidParameter",
  832. "httpStatusCode":400,
  833. "senderFault":true
  834. },
  835. "exception":true
  836. },
  837. {
  838. "shape":"ResourceNotFoundException",
  839. "error":{
  840. "code":"ResourceNotFound",
  841. "httpStatusCode":404,
  842. "senderFault":true
  843. },
  844. "exception":true
  845. },
  846. {
  847. "shape":"InternalErrorException",
  848. "error":{
  849. "code":"InternalError",
  850. "httpStatusCode":500
  851. },
  852. "exception":true,
  853. "fault":true
  854. },
  855. {
  856. "shape":"InvalidConfigurationException",
  857. "error":{
  858. "code":"InvalidConfiguration",
  859. "httpStatusCode":400,
  860. "senderFault":true
  861. },
  862. "exception":true
  863. },
  864. {
  865. "shape":"TooManyRequestsException",
  866. "error":{
  867. "code":"TooManyRequests",
  868. "httpStatusCode":429,
  869. "senderFault":true
  870. },
  871. "exception":true
  872. }
  873. ]
  874. },
  875. "UnsubscribeFromDataset":{
  876. "name":"UnsubscribeFromDataset",
  877. "http":{
  878. "method":"DELETE",
  879. "requestUri":"/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/subscriptions/{DeviceId}",
  880. "responseCode":200
  881. },
  882. "input":{"shape":"UnsubscribeFromDatasetRequest"},
  883. "output":{"shape":"UnsubscribeFromDatasetResponse"},
  884. "errors":[
  885. {
  886. "shape":"NotAuthorizedException",
  887. "error":{
  888. "code":"NotAuthorizedError",
  889. "httpStatusCode":403,
  890. "senderFault":true
  891. },
  892. "exception":true
  893. },
  894. {
  895. "shape":"InvalidParameterException",
  896. "error":{
  897. "code":"InvalidParameter",
  898. "httpStatusCode":400,
  899. "senderFault":true
  900. },
  901. "exception":true
  902. },
  903. {
  904. "shape":"ResourceNotFoundException",
  905. "error":{
  906. "code":"ResourceNotFound",
  907. "httpStatusCode":404,
  908. "senderFault":true
  909. },
  910. "exception":true
  911. },
  912. {
  913. "shape":"InternalErrorException",
  914. "error":{
  915. "code":"InternalError",
  916. "httpStatusCode":500
  917. },
  918. "exception":true,
  919. "fault":true
  920. },
  921. {
  922. "shape":"InvalidConfigurationException",
  923. "error":{
  924. "code":"InvalidConfiguration",
  925. "httpStatusCode":400,
  926. "senderFault":true
  927. },
  928. "exception":true
  929. },
  930. {
  931. "shape":"TooManyRequestsException",
  932. "error":{
  933. "code":"TooManyRequests",
  934. "httpStatusCode":429,
  935. "senderFault":true
  936. },
  937. "exception":true
  938. }
  939. ]
  940. },
  941. "UpdateRecords":{
  942. "name":"UpdateRecords",
  943. "http":{
  944. "method":"POST",
  945. "requestUri":"/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}",
  946. "responseCode":200
  947. },
  948. "input":{"shape":"UpdateRecordsRequest"},
  949. "output":{"shape":"UpdateRecordsResponse"},
  950. "errors":[
  951. {
  952. "shape":"InvalidParameterException",
  953. "error":{
  954. "code":"InvalidParameter",
  955. "httpStatusCode":400,
  956. "senderFault":true
  957. },
  958. "exception":true
  959. },
  960. {
  961. "shape":"LimitExceededException",
  962. "error":{
  963. "code":"LimitExceeded",
  964. "httpStatusCode":400,
  965. "senderFault":true
  966. },
  967. "exception":true
  968. },
  969. {
  970. "shape":"NotAuthorizedException",
  971. "error":{
  972. "code":"NotAuthorizedError",
  973. "httpStatusCode":403,
  974. "senderFault":true
  975. },
  976. "exception":true
  977. },
  978. {
  979. "shape":"ResourceNotFoundException",
  980. "error":{
  981. "code":"ResourceNotFound",
  982. "httpStatusCode":404,
  983. "senderFault":true
  984. },
  985. "exception":true
  986. },
  987. {
  988. "shape":"ResourceConflictException",
  989. "error":{
  990. "code":"ResourceConflict",
  991. "httpStatusCode":409,
  992. "senderFault":true
  993. },
  994. "exception":true
  995. },
  996. {
  997. "shape":"InvalidLambdaFunctionOutputException",
  998. "error":{
  999. "code":"InvalidLambdaFunctionOutput",
  1000. "httpStatusCode":400,
  1001. "senderFault":true
  1002. },
  1003. "exception":true
  1004. },
  1005. {
  1006. "shape":"LambdaThrottledException",
  1007. "error":{
  1008. "code":"LambdaThrottled",
  1009. "httpStatusCode":429,
  1010. "senderFault":true
  1011. },
  1012. "exception":true
  1013. },
  1014. {
  1015. "shape":"TooManyRequestsException",
  1016. "error":{
  1017. "code":"TooManyRequests",
  1018. "httpStatusCode":429,
  1019. "senderFault":true
  1020. },
  1021. "exception":true
  1022. },
  1023. {
  1024. "shape":"InternalErrorException",
  1025. "error":{
  1026. "code":"InternalError",
  1027. "httpStatusCode":500
  1028. },
  1029. "exception":true,
  1030. "fault":true
  1031. }
  1032. ]
  1033. }
  1034. },
  1035. "shapes":{
  1036. "AlreadyStreamedException":{
  1037. "type":"structure",
  1038. "required":["message"],
  1039. "members":{
  1040. "message":{"shape":"ExceptionMessage"}
  1041. },
  1042. "error":{
  1043. "code":"AlreadyStreamed",
  1044. "httpStatusCode":400,
  1045. "senderFault":true
  1046. },
  1047. "exception":true
  1048. },
  1049. "ApplicationArn":{
  1050. "type":"string",
  1051. "pattern":"arn:aws:sns:[-0-9a-z]+:\\d+:app/[A-Z_]+/[a-zA-Z0-9_.-]+"
  1052. },
  1053. "ApplicationArnList":{
  1054. "type":"list",
  1055. "member":{"shape":"ApplicationArn"}
  1056. },
  1057. "AssumeRoleArn":{
  1058. "type":"string",
  1059. "min":20,
  1060. "max":2048,
  1061. "pattern":"arn:aws:iam::\\d+:role/.*"
  1062. },
  1063. "Boolean":{"type":"boolean"},
  1064. "BulkPublishRequest":{
  1065. "type":"structure",
  1066. "required":["IdentityPoolId"],
  1067. "members":{
  1068. "IdentityPoolId":{
  1069. "shape":"IdentityPoolId",
  1070. "location":"uri",
  1071. "locationName":"IdentityPoolId"
  1072. }
  1073. }
  1074. },
  1075. "BulkPublishResponse":{
  1076. "type":"structure",
  1077. "members":{
  1078. "IdentityPoolId":{"shape":"IdentityPoolId"}
  1079. }
  1080. },
  1081. "BulkPublishStatus":{
  1082. "type":"string",
  1083. "enum":[
  1084. "NOT_STARTED",
  1085. "IN_PROGRESS",
  1086. "FAILED",
  1087. "SUCCEEDED"
  1088. ]
  1089. },
  1090. "ClientContext":{"type":"string"},
  1091. "CognitoEventType":{"type":"string"},
  1092. "CognitoStreams":{
  1093. "type":"structure",
  1094. "members":{
  1095. "StreamName":{"shape":"StreamName"},
  1096. "RoleArn":{"shape":"AssumeRoleArn"},
  1097. "StreamingStatus":{"shape":"StreamingStatus"}
  1098. }
  1099. },
  1100. "ConcurrentModificationException":{
  1101. "type":"structure",
  1102. "required":["message"],
  1103. "members":{
  1104. "message":{"shape":"String"}
  1105. },
  1106. "error":{
  1107. "code":"ConcurrentModification",
  1108. "httpStatusCode":400,
  1109. "senderFault":true
  1110. },
  1111. "exception":true
  1112. },
  1113. "Dataset":{
  1114. "type":"structure",
  1115. "members":{
  1116. "IdentityId":{"shape":"IdentityId"},
  1117. "DatasetName":{"shape":"DatasetName"},
  1118. "CreationDate":{"shape":"Date"},
  1119. "LastModifiedDate":{"shape":"Date"},
  1120. "LastModifiedBy":{"shape":"String"},
  1121. "DataStorage":{"shape":"Long"},
  1122. "NumRecords":{"shape":"Long"}
  1123. }
  1124. },
  1125. "DatasetList":{
  1126. "type":"list",
  1127. "member":{"shape":"Dataset"}
  1128. },
  1129. "DatasetName":{
  1130. "type":"string",
  1131. "min":1,
  1132. "max":128,
  1133. "pattern":"[a-zA-Z0-9_.:-]+"
  1134. },
  1135. "Date":{"type":"timestamp"},
  1136. "DeleteDatasetRequest":{
  1137. "type":"structure",
  1138. "required":[
  1139. "IdentityPoolId",
  1140. "IdentityId",
  1141. "DatasetName"
  1142. ],
  1143. "members":{
  1144. "IdentityPoolId":{
  1145. "shape":"IdentityPoolId",
  1146. "location":"uri",
  1147. "locationName":"IdentityPoolId"
  1148. },
  1149. "IdentityId":{
  1150. "shape":"IdentityId",
  1151. "location":"uri",
  1152. "locationName":"IdentityId"
  1153. },
  1154. "DatasetName":{
  1155. "shape":"DatasetName",
  1156. "location":"uri",
  1157. "locationName":"DatasetName"
  1158. }
  1159. }
  1160. },
  1161. "DeleteDatasetResponse":{
  1162. "type":"structure",
  1163. "members":{
  1164. "Dataset":{"shape":"Dataset"}
  1165. }
  1166. },
  1167. "DescribeDatasetRequest":{
  1168. "type":"structure",
  1169. "required":[
  1170. "IdentityPoolId",
  1171. "IdentityId",
  1172. "DatasetName"
  1173. ],
  1174. "members":{
  1175. "IdentityPoolId":{
  1176. "shape":"IdentityPoolId",
  1177. "location":"uri",
  1178. "locationName":"IdentityPoolId"
  1179. },
  1180. "IdentityId":{
  1181. "shape":"IdentityId",
  1182. "location":"uri",
  1183. "locationName":"IdentityId"
  1184. },
  1185. "DatasetName":{
  1186. "shape":"DatasetName",
  1187. "location":"uri",
  1188. "locationName":"DatasetName"
  1189. }
  1190. }
  1191. },
  1192. "DescribeDatasetResponse":{
  1193. "type":"structure",
  1194. "members":{
  1195. "Dataset":{"shape":"Dataset"}
  1196. }
  1197. },
  1198. "DescribeIdentityPoolUsageRequest":{
  1199. "type":"structure",
  1200. "required":["IdentityPoolId"],
  1201. "members":{
  1202. "IdentityPoolId":{
  1203. "shape":"IdentityPoolId",
  1204. "location":"uri",
  1205. "locationName":"IdentityPoolId"
  1206. }
  1207. }
  1208. },
  1209. "DescribeIdentityPoolUsageResponse":{
  1210. "type":"structure",
  1211. "members":{
  1212. "IdentityPoolUsage":{"shape":"IdentityPoolUsage"}
  1213. }
  1214. },
  1215. "DescribeIdentityUsageRequest":{
  1216. "type":"structure",
  1217. "required":[
  1218. "IdentityPoolId",
  1219. "IdentityId"
  1220. ],
  1221. "members":{
  1222. "IdentityPoolId":{
  1223. "shape":"IdentityPoolId",
  1224. "location":"uri",
  1225. "locationName":"IdentityPoolId"
  1226. },
  1227. "IdentityId":{
  1228. "shape":"IdentityId",
  1229. "location":"uri",
  1230. "locationName":"IdentityId"
  1231. }
  1232. }
  1233. },
  1234. "DescribeIdentityUsageResponse":{
  1235. "type":"structure",
  1236. "members":{
  1237. "IdentityUsage":{"shape":"IdentityUsage"}
  1238. }
  1239. },
  1240. "DeviceId":{
  1241. "type":"string",
  1242. "min":1,
  1243. "max":256
  1244. },
  1245. "DuplicateRequestException":{
  1246. "type":"structure",
  1247. "required":["message"],
  1248. "members":{
  1249. "message":{"shape":"ExceptionMessage"}
  1250. },
  1251. "error":{
  1252. "code":"DuplicateRequest",
  1253. "httpStatusCode":400,
  1254. "senderFault":true
  1255. },
  1256. "exception":true
  1257. },
  1258. "Events":{
  1259. "type":"map",
  1260. "key":{"shape":"CognitoEventType"},
  1261. "value":{"shape":"LambdaFunctionArn"},
  1262. "max":1
  1263. },
  1264. "ExceptionMessage":{"type":"string"},
  1265. "GetBulkPublishDetailsRequest":{
  1266. "type":"structure",
  1267. "required":["IdentityPoolId"],
  1268. "members":{
  1269. "IdentityPoolId":{
  1270. "shape":"IdentityPoolId",
  1271. "location":"uri",
  1272. "locationName":"IdentityPoolId"
  1273. }
  1274. }
  1275. },
  1276. "GetBulkPublishDetailsResponse":{
  1277. "type":"structure",
  1278. "members":{
  1279. "IdentityPoolId":{"shape":"IdentityPoolId"},
  1280. "BulkPublishStartTime":{"shape":"Date"},
  1281. "BulkPublishCompleteTime":{"shape":"Date"},
  1282. "BulkPublishStatus":{"shape":"BulkPublishStatus"},
  1283. "FailureMessage":{"shape":"String"}
  1284. }
  1285. },
  1286. "GetCognitoEventsRequest":{
  1287. "type":"structure",
  1288. "required":["IdentityPoolId"],
  1289. "members":{
  1290. "IdentityPoolId":{
  1291. "shape":"IdentityPoolId",
  1292. "location":"uri",
  1293. "locationName":"IdentityPoolId"
  1294. }
  1295. }
  1296. },
  1297. "GetCognitoEventsResponse":{
  1298. "type":"structure",
  1299. "members":{
  1300. "Events":{"shape":"Events"}
  1301. }
  1302. },
  1303. "GetIdentityPoolConfigurationRequest":{
  1304. "type":"structure",
  1305. "required":["IdentityPoolId"],
  1306. "members":{
  1307. "IdentityPoolId":{
  1308. "shape":"IdentityPoolId",
  1309. "location":"uri",
  1310. "locationName":"IdentityPoolId"
  1311. }
  1312. }
  1313. },
  1314. "GetIdentityPoolConfigurationResponse":{
  1315. "type":"structure",
  1316. "members":{
  1317. "IdentityPoolId":{"shape":"IdentityPoolId"},
  1318. "PushSync":{"shape":"PushSync"},
  1319. "CognitoStreams":{"shape":"CognitoStreams"}
  1320. }
  1321. },
  1322. "IdentityId":{
  1323. "type":"string",
  1324. "min":1,
  1325. "max":55,
  1326. "pattern":"[\\w-]+:[0-9a-f-]+"
  1327. },
  1328. "IdentityPoolId":{
  1329. "type":"string",
  1330. "min":1,
  1331. "max":55,
  1332. "pattern":"[\\w-]+:[0-9a-f-]+"
  1333. },
  1334. "IdentityPoolUsage":{
  1335. "type":"structure",
  1336. "members":{
  1337. "IdentityPoolId":{"shape":"IdentityPoolId"},
  1338. "SyncSessionsCount":{"shape":"Long"},
  1339. "DataStorage":{"shape":"Long"},
  1340. "LastModifiedDate":{"shape":"Date"}
  1341. }
  1342. },
  1343. "IdentityPoolUsageList":{
  1344. "type":"list",
  1345. "member":{"shape":"IdentityPoolUsage"}
  1346. },
  1347. "IdentityUsage":{
  1348. "type":"structure",
  1349. "members":{
  1350. "IdentityId":{"shape":"IdentityId"},
  1351. "IdentityPoolId":{"shape":"IdentityPoolId"},
  1352. "LastModifiedDate":{"shape":"Date"},
  1353. "DatasetCount":{"shape":"Integer"},
  1354. "DataStorage":{"shape":"Long"}
  1355. }
  1356. },
  1357. "Integer":{"type":"integer"},
  1358. "IntegerString":{"type":"integer"},
  1359. "InternalErrorException":{
  1360. "type":"structure",
  1361. "required":["message"],
  1362. "members":{
  1363. "message":{"shape":"ExceptionMessage"}
  1364. },
  1365. "error":{
  1366. "code":"InternalError",
  1367. "httpStatusCode":500
  1368. },
  1369. "exception":true,
  1370. "fault":true
  1371. },
  1372. "InvalidConfigurationException":{
  1373. "type":"structure",
  1374. "required":["message"],
  1375. "members":{
  1376. "message":{"shape":"ExceptionMessage"}
  1377. },
  1378. "error":{
  1379. "code":"InvalidConfiguration",
  1380. "httpStatusCode":400,
  1381. "senderFault":true
  1382. },
  1383. "exception":true
  1384. },
  1385. "InvalidLambdaFunctionOutputException":{
  1386. "type":"structure",
  1387. "required":["message"],
  1388. "members":{
  1389. "message":{"shape":"ExceptionMessage"}
  1390. },
  1391. "error":{
  1392. "code":"InvalidLambdaFunctionOutput",
  1393. "httpStatusCode":400,
  1394. "senderFault":true
  1395. },
  1396. "exception":true
  1397. },
  1398. "InvalidParameterException":{
  1399. "type":"structure",
  1400. "required":["message"],
  1401. "members":{
  1402. "message":{"shape":"ExceptionMessage"}
  1403. },
  1404. "error":{
  1405. "code":"InvalidParameter",
  1406. "httpStatusCode":400,
  1407. "senderFault":true
  1408. },
  1409. "exception":true
  1410. },
  1411. "LambdaFunctionArn":{"type":"string"},
  1412. "LambdaThrottledException":{
  1413. "type":"structure",
  1414. "required":["message"],
  1415. "members":{
  1416. "message":{"shape":"ExceptionMessage"}
  1417. },
  1418. "error":{
  1419. "code":"LambdaThrottled",
  1420. "httpStatusCode":429,
  1421. "senderFault":true
  1422. },
  1423. "exception":true
  1424. },
  1425. "LimitExceededException":{
  1426. "type":"structure",
  1427. "required":["message"],
  1428. "members":{
  1429. "message":{"shape":"ExceptionMessage"}
  1430. },
  1431. "error":{
  1432. "code":"LimitExceeded",
  1433. "httpStatusCode":400,
  1434. "senderFault":true
  1435. },
  1436. "exception":true
  1437. },
  1438. "ListDatasetsRequest":{
  1439. "type":"structure",
  1440. "required":[
  1441. "IdentityId",
  1442. "IdentityPoolId"
  1443. ],
  1444. "members":{
  1445. "IdentityPoolId":{
  1446. "shape":"IdentityPoolId",
  1447. "location":"uri",
  1448. "locationName":"IdentityPoolId"
  1449. },
  1450. "IdentityId":{
  1451. "shape":"IdentityId",
  1452. "location":"uri",
  1453. "locationName":"IdentityId"
  1454. },
  1455. "NextToken":{
  1456. "shape":"String",
  1457. "location":"querystring",
  1458. "locationName":"nextToken"
  1459. },
  1460. "MaxResults":{
  1461. "shape":"IntegerString",
  1462. "location":"querystring",
  1463. "locationName":"maxResults"
  1464. }
  1465. }
  1466. },
  1467. "ListDatasetsResponse":{
  1468. "type":"structure",
  1469. "members":{
  1470. "Datasets":{"shape":"DatasetList"},
  1471. "Count":{"shape":"Integer"},
  1472. "NextToken":{"shape":"String"}
  1473. }
  1474. },
  1475. "ListIdentityPoolUsageRequest":{
  1476. "type":"structure",
  1477. "members":{
  1478. "NextToken":{
  1479. "shape":"String",
  1480. "location":"querystring",
  1481. "locationName":"nextToken"
  1482. },
  1483. "MaxResults":{
  1484. "shape":"IntegerString",
  1485. "location":"querystring",
  1486. "locationName":"maxResults"
  1487. }
  1488. }
  1489. },
  1490. "ListIdentityPoolUsageResponse":{
  1491. "type":"structure",
  1492. "members":{
  1493. "IdentityPoolUsages":{"shape":"IdentityPoolUsageList"},
  1494. "MaxResults":{"shape":"Integer"},
  1495. "Count":{"shape":"Integer"},
  1496. "NextToken":{"shape":"String"}
  1497. }
  1498. },
  1499. "ListRecordsRequest":{
  1500. "type":"structure",
  1501. "required":[
  1502. "IdentityPoolId",
  1503. "IdentityId",
  1504. "DatasetName"
  1505. ],
  1506. "members":{
  1507. "IdentityPoolId":{
  1508. "shape":"IdentityPoolId",
  1509. "location":"uri",
  1510. "locationName":"IdentityPoolId"
  1511. },
  1512. "IdentityId":{
  1513. "shape":"IdentityId",
  1514. "location":"uri",
  1515. "locationName":"IdentityId"
  1516. },
  1517. "DatasetName":{
  1518. "shape":"DatasetName",
  1519. "location":"uri",
  1520. "locationName":"DatasetName"
  1521. },
  1522. "LastSyncCount":{
  1523. "shape":"Long",
  1524. "location":"querystring",
  1525. "locationName":"lastSyncCount"
  1526. },
  1527. "NextToken":{
  1528. "shape":"String",
  1529. "location":"querystring",
  1530. "locationName":"nextToken"
  1531. },
  1532. "MaxResults":{
  1533. "shape":"IntegerString",
  1534. "location":"querystring",
  1535. "locationName":"maxResults"
  1536. },
  1537. "SyncSessionToken":{
  1538. "shape":"SyncSessionToken",
  1539. "location":"querystring",
  1540. "locationName":"syncSessionToken"
  1541. }
  1542. }
  1543. },
  1544. "ListRecordsResponse":{
  1545. "type":"structure",
  1546. "members":{
  1547. "Records":{"shape":"RecordList"},
  1548. "NextToken":{"shape":"String"},
  1549. "Count":{"shape":"Integer"},
  1550. "DatasetSyncCount":{"shape":"Long"},
  1551. "LastModifiedBy":{"shape":"String"},
  1552. "MergedDatasetNames":{"shape":"MergedDatasetNameList"},
  1553. "DatasetExists":{"shape":"Boolean"},
  1554. "DatasetDeletedAfterRequestedSyncCount":{"shape":"Boolean"},
  1555. "SyncSessionToken":{"shape":"String"}
  1556. }
  1557. },
  1558. "Long":{"type":"long"},
  1559. "MergedDatasetNameList":{
  1560. "type":"list",
  1561. "member":{"shape":"String"}
  1562. },
  1563. "NotAuthorizedException":{
  1564. "type":"structure",
  1565. "required":["message"],
  1566. "members":{
  1567. "message":{"shape":"ExceptionMessage"}
  1568. },
  1569. "error":{
  1570. "code":"NotAuthorizedError",
  1571. "httpStatusCode":403,
  1572. "senderFault":true
  1573. },
  1574. "exception":true
  1575. },
  1576. "Operation":{
  1577. "type":"string",
  1578. "enum":[
  1579. "replace",
  1580. "remove"
  1581. ]
  1582. },
  1583. "Platform":{
  1584. "type":"string",
  1585. "enum":[
  1586. "APNS",
  1587. "APNS_SANDBOX",
  1588. "GCM",
  1589. "ADM"
  1590. ]
  1591. },
  1592. "PushSync":{
  1593. "type":"structure",
  1594. "members":{
  1595. "ApplicationArns":{"shape":"ApplicationArnList"},
  1596. "RoleArn":{"shape":"AssumeRoleArn"}
  1597. }
  1598. },
  1599. "PushToken":{"type":"string"},
  1600. "Record":{
  1601. "type":"structure",
  1602. "members":{
  1603. "Key":{"shape":"RecordKey"},
  1604. "Value":{"shape":"RecordValue"},
  1605. "SyncCount":{"shape":"Long"},
  1606. "LastModifiedDate":{"shape":"Date"},
  1607. "LastModifiedBy":{"shape":"String"},
  1608. "DeviceLastModifiedDate":{"shape":"Date"}
  1609. }
  1610. },
  1611. "RecordKey":{
  1612. "type":"string",
  1613. "min":1,
  1614. "max":1024
  1615. },
  1616. "RecordList":{
  1617. "type":"list",
  1618. "member":{"shape":"Record"}
  1619. },
  1620. "RecordPatch":{
  1621. "type":"structure",
  1622. "required":[
  1623. "Op",
  1624. "Key",
  1625. "SyncCount"
  1626. ],
  1627. "members":{
  1628. "Op":{"shape":"Operation"},
  1629. "Key":{"shape":"RecordKey"},
  1630. "Value":{"shape":"RecordValue"},
  1631. "SyncCount":{"shape":"Long"},
  1632. "DeviceLastModifiedDate":{"shape":"Date"}
  1633. }
  1634. },
  1635. "RecordPatchList":{
  1636. "type":"list",
  1637. "member":{"shape":"RecordPatch"}
  1638. },
  1639. "RecordValue":{
  1640. "type":"string",
  1641. "max":1048575
  1642. },
  1643. "RegisterDeviceRequest":{
  1644. "type":"structure",
  1645. "required":[
  1646. "IdentityPoolId",
  1647. "IdentityId",
  1648. "Platform",
  1649. "Token"
  1650. ],
  1651. "members":{
  1652. "IdentityPoolId":{
  1653. "shape":"IdentityPoolId",
  1654. "location":"uri",
  1655. "locationName":"IdentityPoolId"
  1656. },
  1657. "IdentityId":{
  1658. "shape":"IdentityId",
  1659. "location":"uri",
  1660. "locationName":"IdentityId"
  1661. },
  1662. "Platform":{"shape":"Platform"},
  1663. "Token":{"shape":"PushToken"}
  1664. }
  1665. },
  1666. "RegisterDeviceResponse":{
  1667. "type":"structure",
  1668. "members":{
  1669. "DeviceId":{"shape":"DeviceId"}
  1670. }
  1671. },
  1672. "ResourceConflictException":{
  1673. "type":"structure",
  1674. "required":["message"],
  1675. "members":{
  1676. "message":{"shape":"ExceptionMessage"}
  1677. },
  1678. "error":{
  1679. "code":"ResourceConflict",
  1680. "httpStatusCode":409,
  1681. "senderFault":true
  1682. },
  1683. "exception":true
  1684. },
  1685. "ResourceNotFoundException":{
  1686. "type":"structure",
  1687. "required":["message"],
  1688. "members":{
  1689. "message":{"shape":"ExceptionMessage"}
  1690. },
  1691. "error":{
  1692. "code":"ResourceNotFound",
  1693. "httpStatusCode":404,
  1694. "senderFault":true
  1695. },
  1696. "exception":true
  1697. },
  1698. "SetCognitoEventsRequest":{
  1699. "type":"structure",
  1700. "required":[
  1701. "IdentityPoolId",
  1702. "Events"
  1703. ],
  1704. "members":{
  1705. "IdentityPoolId":{
  1706. "shape":"IdentityPoolId",
  1707. "location":"uri",
  1708. "locationName":"IdentityPoolId"
  1709. },
  1710. "Events":{"shape":"Events"}
  1711. }
  1712. },
  1713. "SetIdentityPoolConfigurationRequest":{
  1714. "type":"structure",
  1715. "required":["IdentityPoolId"],
  1716. "members":{
  1717. "IdentityPoolId":{
  1718. "shape":"IdentityPoolId",
  1719. "location":"uri",
  1720. "locationName":"IdentityPoolId"
  1721. },
  1722. "PushSync":{"shape":"PushSync"},
  1723. "CognitoStreams":{"shape":"CognitoStreams"}
  1724. }
  1725. },
  1726. "SetIdentityPoolConfigurationResponse":{
  1727. "type":"structure",
  1728. "members":{
  1729. "IdentityPoolId":{"shape":"IdentityPoolId"},
  1730. "PushSync":{"shape":"PushSync"},
  1731. "CognitoStreams":{"shape":"CognitoStreams"}
  1732. }
  1733. },
  1734. "StreamName":{
  1735. "type":"string",
  1736. "min":1,
  1737. "max":128
  1738. },
  1739. "StreamingStatus":{
  1740. "type":"string",
  1741. "enum":[
  1742. "ENABLED",
  1743. "DISABLED"
  1744. ]
  1745. },
  1746. "String":{"type":"string"},
  1747. "SubscribeToDatasetRequest":{
  1748. "type":"structure",
  1749. "required":[
  1750. "IdentityPoolId",
  1751. "IdentityId",
  1752. "DatasetName",
  1753. "DeviceId"
  1754. ],
  1755. "members":{
  1756. "IdentityPoolId":{
  1757. "shape":"IdentityPoolId",
  1758. "location":"uri",
  1759. "locationName":"IdentityPoolId"
  1760. },
  1761. "IdentityId":{
  1762. "shape":"IdentityId",
  1763. "location":"uri",
  1764. "locationName":"IdentityId"
  1765. },
  1766. "DatasetName":{
  1767. "shape":"DatasetName",
  1768. "location":"uri",
  1769. "locationName":"DatasetName"
  1770. },
  1771. "DeviceId":{
  1772. "shape":"DeviceId",
  1773. "location":"uri",
  1774. "locationName":"DeviceId"
  1775. }
  1776. }
  1777. },
  1778. "SubscribeToDatasetResponse":{
  1779. "type":"structure",
  1780. "members":{
  1781. }
  1782. },
  1783. "SyncSessionToken":{"type":"string"},
  1784. "TooManyRequestsException":{
  1785. "type":"structure",
  1786. "required":["message"],
  1787. "members":{
  1788. "message":{"shape":"ExceptionMessage"}
  1789. },
  1790. "error":{
  1791. "code":"TooManyRequests",
  1792. "httpStatusCode":429,
  1793. "senderFault":true
  1794. },
  1795. "exception":true
  1796. },
  1797. "UnsubscribeFromDatasetRequest":{
  1798. "type":"structure",
  1799. "required":[
  1800. "IdentityPoolId",
  1801. "IdentityId",
  1802. "DatasetName",
  1803. "DeviceId"
  1804. ],
  1805. "members":{
  1806. "IdentityPoolId":{
  1807. "shape":"IdentityPoolId",
  1808. "location":"uri",
  1809. "locationName":"IdentityPoolId"
  1810. },
  1811. "IdentityId":{
  1812. "shape":"IdentityId",
  1813. "location":"uri",
  1814. "locationName":"IdentityId"
  1815. },
  1816. "DatasetName":{
  1817. "shape":"DatasetName",
  1818. "location":"uri",
  1819. "locationName":"DatasetName"
  1820. },
  1821. "DeviceId":{
  1822. "shape":"DeviceId",
  1823. "location":"uri",
  1824. "locationName":"DeviceId"
  1825. }
  1826. }
  1827. },
  1828. "UnsubscribeFromDatasetResponse":{
  1829. "type":"structure",
  1830. "members":{
  1831. }
  1832. },
  1833. "UpdateRecordsRequest":{
  1834. "type":"structure",
  1835. "required":[
  1836. "IdentityPoolId",
  1837. "IdentityId",
  1838. "DatasetName",
  1839. "SyncSessionToken"
  1840. ],
  1841. "members":{
  1842. "IdentityPoolId":{
  1843. "shape":"IdentityPoolId",
  1844. "location":"uri",
  1845. "locationName":"IdentityPoolId"
  1846. },
  1847. "IdentityId":{
  1848. "shape":"IdentityId",
  1849. "location":"uri",
  1850. "locationName":"IdentityId"
  1851. },
  1852. "DatasetName":{
  1853. "shape":"DatasetName",
  1854. "location":"uri",
  1855. "locationName":"DatasetName"
  1856. },
  1857. "DeviceId":{"shape":"DeviceId"},
  1858. "RecordPatches":{"shape":"RecordPatchList"},
  1859. "SyncSessionToken":{"shape":"SyncSessionToken"},
  1860. "ClientContext":{
  1861. "shape":"ClientContext",
  1862. "location":"header",
  1863. "locationName":"x-amz-Client-Context"
  1864. }
  1865. }
  1866. },
  1867. "UpdateRecordsResponse":{
  1868. "type":"structure",
  1869. "members":{
  1870. "Records":{"shape":"RecordList"}
  1871. }
  1872. }
  1873. }
  1874. }