/api/vendor/aws/aws-sdk-php/src/Aws/CognitoSync/Resources/cognitosync-2014-06-30.php

https://gitlab.com/x33n/respond · PHP · 1095 lines · 1080 code · 1 blank · 14 comment · 0 complexity · cb4aba54ac218f582df5f1ca939655f5 MD5 · raw file

  1. <?php
  2. /**
  3. * Copyright 2010-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License").
  6. * You may not use this file except in compliance with the License.
  7. * A copy of the License is located at
  8. *
  9. * http://aws.amazon.com/apache2.0
  10. *
  11. * or in the "license" file accompanying this file. This file is distributed
  12. * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  13. * express or implied. See the License for the specific language governing
  14. * permissions and limitations under the License.
  15. */
  16. return array (
  17. 'apiVersion' => '2014-06-30',
  18. 'endpointPrefix' => 'cognito-sync',
  19. 'serviceFullName' => 'Amazon Cognito Sync',
  20. 'serviceType' => 'rest-json',
  21. 'jsonVersion' => '1.1',
  22. 'signatureVersion' => 'v4',
  23. 'namespace' => 'CognitoSync',
  24. 'regions' => array(
  25. 'us-east-1' => array(
  26. 'http' => false,
  27. 'https' => true,
  28. 'hostname' => 'cognito-sync.us-east-1.amazonaws.com',
  29. ),
  30. ),
  31. 'operations' => array(
  32. 'DeleteDataset' => array(
  33. 'httpMethod' => 'DELETE',
  34. 'uri' => '/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}',
  35. 'class' => 'Guzzle\\Service\\Command\\OperationCommand',
  36. 'responseClass' => 'DeleteDatasetResponse',
  37. 'responseType' => 'model',
  38. 'parameters' => array(
  39. 'IdentityPoolId' => array(
  40. 'required' => true,
  41. 'type' => 'string',
  42. 'location' => 'uri',
  43. 'minLength' => 1,
  44. 'maxLength' => 50,
  45. ),
  46. 'IdentityId' => array(
  47. 'required' => true,
  48. 'type' => 'string',
  49. 'location' => 'uri',
  50. 'minLength' => 1,
  51. 'maxLength' => 50,
  52. ),
  53. 'DatasetName' => array(
  54. 'required' => true,
  55. 'type' => 'string',
  56. 'location' => 'uri',
  57. 'minLength' => 1,
  58. 'maxLength' => 128,
  59. ),
  60. ),
  61. 'errorResponses' => array(
  62. array(
  63. 'reason' => 'Thrown when a user is not authorized to access the requested resource.',
  64. 'class' => 'NotAuthorizedException',
  65. ),
  66. array(
  67. 'reason' => 'Thrown when a request parameter does not comply with the associated constraints.',
  68. 'class' => 'InvalidParameterException',
  69. ),
  70. array(
  71. 'reason' => 'Thrown if the resource doesn\'t exist.',
  72. 'class' => 'ResourceNotFoundException',
  73. ),
  74. array(
  75. 'reason' => 'Indicates an internal service error.',
  76. 'class' => 'InternalErrorException',
  77. ),
  78. ),
  79. ),
  80. 'DescribeDataset' => array(
  81. 'httpMethod' => 'GET',
  82. 'uri' => '/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}',
  83. 'class' => 'Guzzle\\Service\\Command\\OperationCommand',
  84. 'responseClass' => 'DescribeDatasetResponse',
  85. 'responseType' => 'model',
  86. 'parameters' => array(
  87. 'IdentityPoolId' => array(
  88. 'required' => true,
  89. 'type' => 'string',
  90. 'location' => 'uri',
  91. 'minLength' => 1,
  92. 'maxLength' => 50,
  93. ),
  94. 'IdentityId' => array(
  95. 'required' => true,
  96. 'type' => 'string',
  97. 'location' => 'uri',
  98. 'minLength' => 1,
  99. 'maxLength' => 50,
  100. ),
  101. 'DatasetName' => array(
  102. 'required' => true,
  103. 'type' => 'string',
  104. 'location' => 'uri',
  105. 'minLength' => 1,
  106. 'maxLength' => 128,
  107. ),
  108. ),
  109. 'errorResponses' => array(
  110. array(
  111. 'reason' => 'Thrown when a user is not authorized to access the requested resource.',
  112. 'class' => 'NotAuthorizedException',
  113. ),
  114. array(
  115. 'reason' => 'Thrown when a request parameter does not comply with the associated constraints.',
  116. 'class' => 'InvalidParameterException',
  117. ),
  118. array(
  119. 'reason' => 'Thrown if the resource doesn\'t exist.',
  120. 'class' => 'ResourceNotFoundException',
  121. ),
  122. array(
  123. 'reason' => 'Indicates an internal service error.',
  124. 'class' => 'InternalErrorException',
  125. ),
  126. ),
  127. ),
  128. 'DescribeIdentityPoolUsage' => array(
  129. 'httpMethod' => 'GET',
  130. 'uri' => '/identitypools/{IdentityPoolId}',
  131. 'class' => 'Guzzle\\Service\\Command\\OperationCommand',
  132. 'responseClass' => 'DescribeIdentityPoolUsageResponse',
  133. 'responseType' => 'model',
  134. 'parameters' => array(
  135. 'IdentityPoolId' => array(
  136. 'required' => true,
  137. 'type' => 'string',
  138. 'location' => 'uri',
  139. 'minLength' => 1,
  140. 'maxLength' => 50,
  141. ),
  142. ),
  143. 'errorResponses' => array(
  144. array(
  145. 'reason' => 'Thrown when a user is not authorized to access the requested resource.',
  146. 'class' => 'NotAuthorizedException',
  147. ),
  148. array(
  149. 'reason' => 'Thrown when a request parameter does not comply with the associated constraints.',
  150. 'class' => 'InvalidParameterException',
  151. ),
  152. array(
  153. 'reason' => 'Thrown if the resource doesn\'t exist.',
  154. 'class' => 'ResourceNotFoundException',
  155. ),
  156. array(
  157. 'reason' => 'Indicates an internal service error.',
  158. 'class' => 'InternalErrorException',
  159. ),
  160. ),
  161. ),
  162. 'DescribeIdentityUsage' => array(
  163. 'httpMethod' => 'GET',
  164. 'uri' => '/identitypools/{IdentityPoolId}/identities/{IdentityId}',
  165. 'class' => 'Guzzle\\Service\\Command\\OperationCommand',
  166. 'responseClass' => 'DescribeIdentityUsageResponse',
  167. 'responseType' => 'model',
  168. 'parameters' => array(
  169. 'IdentityPoolId' => array(
  170. 'required' => true,
  171. 'type' => 'string',
  172. 'location' => 'uri',
  173. 'minLength' => 1,
  174. 'maxLength' => 50,
  175. ),
  176. 'IdentityId' => array(
  177. 'required' => true,
  178. 'type' => 'string',
  179. 'location' => 'uri',
  180. 'minLength' => 1,
  181. 'maxLength' => 50,
  182. ),
  183. ),
  184. 'errorResponses' => array(
  185. array(
  186. 'reason' => 'Thrown when a user is not authorized to access the requested resource.',
  187. 'class' => 'NotAuthorizedException',
  188. ),
  189. array(
  190. 'reason' => 'Thrown when a request parameter does not comply with the associated constraints.',
  191. 'class' => 'InvalidParameterException',
  192. ),
  193. array(
  194. 'reason' => 'Thrown if the resource doesn\'t exist.',
  195. 'class' => 'ResourceNotFoundException',
  196. ),
  197. array(
  198. 'reason' => 'Indicates an internal service error.',
  199. 'class' => 'InternalErrorException',
  200. ),
  201. ),
  202. ),
  203. 'GetIdentityPoolConfiguration' => array(
  204. 'httpMethod' => 'GET',
  205. 'uri' => '/identitypools/{IdentityPoolId}/configuration',
  206. 'class' => 'Guzzle\\Service\\Command\\OperationCommand',
  207. 'responseClass' => 'GetIdentityPoolConfigurationResponse',
  208. 'responseType' => 'model',
  209. 'parameters' => array(
  210. 'IdentityPoolId' => array(
  211. 'required' => true,
  212. 'type' => 'string',
  213. 'location' => 'uri',
  214. 'minLength' => 1,
  215. 'maxLength' => 50,
  216. ),
  217. ),
  218. 'errorResponses' => array(
  219. array(
  220. 'reason' => 'Thrown when a user is not authorized to access the requested resource.',
  221. 'class' => 'NotAuthorizedException',
  222. ),
  223. array(
  224. 'reason' => 'Thrown when a request parameter does not comply with the associated constraints.',
  225. 'class' => 'InvalidParameterException',
  226. ),
  227. array(
  228. 'reason' => 'Thrown if the resource doesn\'t exist.',
  229. 'class' => 'ResourceNotFoundException',
  230. ),
  231. array(
  232. 'reason' => 'Indicates an internal service error.',
  233. 'class' => 'InternalErrorException',
  234. ),
  235. ),
  236. ),
  237. 'ListDatasets' => array(
  238. 'httpMethod' => 'GET',
  239. 'uri' => '/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets',
  240. 'class' => 'Guzzle\\Service\\Command\\OperationCommand',
  241. 'responseClass' => 'ListDatasetsResponse',
  242. 'responseType' => 'model',
  243. 'parameters' => array(
  244. 'IdentityPoolId' => array(
  245. 'required' => true,
  246. 'type' => 'string',
  247. 'location' => 'uri',
  248. 'minLength' => 1,
  249. 'maxLength' => 50,
  250. ),
  251. 'IdentityId' => array(
  252. 'required' => true,
  253. 'type' => 'string',
  254. 'location' => 'uri',
  255. 'minLength' => 1,
  256. 'maxLength' => 50,
  257. ),
  258. 'NextToken' => array(
  259. 'type' => 'string',
  260. 'location' => 'query',
  261. 'sentAs' => 'nextToken',
  262. ),
  263. 'MaxResults' => array(
  264. 'type' => 'numeric',
  265. 'location' => 'query',
  266. 'sentAs' => 'maxResults',
  267. ),
  268. ),
  269. 'errorResponses' => array(
  270. array(
  271. 'reason' => 'Thrown when a user is not authorized to access the requested resource.',
  272. 'class' => 'NotAuthorizedException',
  273. ),
  274. array(
  275. 'reason' => 'Thrown when a request parameter does not comply with the associated constraints.',
  276. 'class' => 'InvalidParameterException',
  277. ),
  278. array(
  279. 'reason' => 'Indicates an internal service error.',
  280. 'class' => 'InternalErrorException',
  281. ),
  282. ),
  283. ),
  284. 'ListIdentityPoolUsage' => array(
  285. 'httpMethod' => 'GET',
  286. 'uri' => '/identitypools',
  287. 'class' => 'Guzzle\\Service\\Command\\OperationCommand',
  288. 'responseClass' => 'ListIdentityPoolUsageResponse',
  289. 'responseType' => 'model',
  290. 'parameters' => array(
  291. 'NextToken' => array(
  292. 'type' => 'string',
  293. 'location' => 'query',
  294. 'sentAs' => 'nextToken',
  295. ),
  296. 'MaxResults' => array(
  297. 'type' => 'numeric',
  298. 'location' => 'query',
  299. 'sentAs' => 'maxResults',
  300. ),
  301. ),
  302. 'errorResponses' => array(
  303. array(
  304. 'reason' => 'Thrown when a user is not authorized to access the requested resource.',
  305. 'class' => 'NotAuthorizedException',
  306. ),
  307. array(
  308. 'reason' => 'Thrown when a request parameter does not comply with the associated constraints.',
  309. 'class' => 'InvalidParameterException',
  310. ),
  311. array(
  312. 'reason' => 'Indicates an internal service error.',
  313. 'class' => 'InternalErrorException',
  314. ),
  315. ),
  316. ),
  317. 'ListRecords' => array(
  318. 'httpMethod' => 'GET',
  319. 'uri' => '/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/records',
  320. 'class' => 'Guzzle\\Service\\Command\\OperationCommand',
  321. 'responseClass' => 'ListRecordsResponse',
  322. 'responseType' => 'model',
  323. 'parameters' => array(
  324. 'IdentityPoolId' => array(
  325. 'required' => true,
  326. 'type' => 'string',
  327. 'location' => 'uri',
  328. 'minLength' => 1,
  329. 'maxLength' => 50,
  330. ),
  331. 'IdentityId' => array(
  332. 'required' => true,
  333. 'type' => 'string',
  334. 'location' => 'uri',
  335. 'minLength' => 1,
  336. 'maxLength' => 50,
  337. ),
  338. 'DatasetName' => array(
  339. 'required' => true,
  340. 'type' => 'string',
  341. 'location' => 'uri',
  342. 'minLength' => 1,
  343. 'maxLength' => 128,
  344. ),
  345. 'LastSyncCount' => array(
  346. 'type' => 'numeric',
  347. 'location' => 'query',
  348. 'sentAs' => 'lastSyncCount',
  349. ),
  350. 'NextToken' => array(
  351. 'type' => 'string',
  352. 'location' => 'query',
  353. 'sentAs' => 'nextToken',
  354. ),
  355. 'MaxResults' => array(
  356. 'type' => 'numeric',
  357. 'location' => 'query',
  358. 'sentAs' => 'maxResults',
  359. ),
  360. 'SyncSessionToken' => array(
  361. 'type' => 'string',
  362. 'location' => 'query',
  363. 'sentAs' => 'syncSessionToken',
  364. ),
  365. ),
  366. 'errorResponses' => array(
  367. array(
  368. 'reason' => 'Thrown when a request parameter does not comply with the associated constraints.',
  369. 'class' => 'InvalidParameterException',
  370. ),
  371. array(
  372. 'reason' => 'Thrown when a user is not authorized to access the requested resource.',
  373. 'class' => 'NotAuthorizedException',
  374. ),
  375. array(
  376. 'reason' => 'Thrown if the request is throttled.',
  377. 'class' => 'TooManyRequestsException',
  378. ),
  379. array(
  380. 'reason' => 'Indicates an internal service error.',
  381. 'class' => 'InternalErrorException',
  382. ),
  383. ),
  384. ),
  385. 'RegisterDevice' => array(
  386. 'httpMethod' => 'POST',
  387. 'uri' => '/identitypools/{IdentityPoolId}/identity/{IdentityId}/device',
  388. 'class' => 'Guzzle\\Service\\Command\\OperationCommand',
  389. 'responseClass' => 'RegisterDeviceResponse',
  390. 'responseType' => 'model',
  391. 'parameters' => array(
  392. 'IdentityPoolId' => array(
  393. 'required' => true,
  394. 'type' => 'string',
  395. 'location' => 'uri',
  396. 'minLength' => 1,
  397. 'maxLength' => 50,
  398. ),
  399. 'IdentityId' => array(
  400. 'required' => true,
  401. 'type' => 'string',
  402. 'location' => 'uri',
  403. 'minLength' => 1,
  404. 'maxLength' => 50,
  405. ),
  406. 'Platform' => array(
  407. 'required' => true,
  408. 'type' => 'string',
  409. 'location' => 'json',
  410. ),
  411. 'Token' => array(
  412. 'required' => true,
  413. 'type' => 'string',
  414. 'location' => 'json',
  415. ),
  416. ),
  417. 'errorResponses' => array(
  418. array(
  419. 'reason' => 'Thrown when a user is not authorized to access the requested resource.',
  420. 'class' => 'NotAuthorizedException',
  421. ),
  422. array(
  423. 'reason' => 'Thrown when a request parameter does not comply with the associated constraints.',
  424. 'class' => 'InvalidParameterException',
  425. ),
  426. array(
  427. 'reason' => 'Thrown if the resource doesn\'t exist.',
  428. 'class' => 'ResourceNotFoundException',
  429. ),
  430. array(
  431. 'reason' => 'Indicates an internal service error.',
  432. 'class' => 'InternalErrorException',
  433. ),
  434. array(
  435. 'class' => 'InvalidConfigurationException',
  436. ),
  437. ),
  438. ),
  439. 'SetIdentityPoolConfiguration' => array(
  440. 'httpMethod' => 'POST',
  441. 'uri' => '/identitypools/{IdentityPoolId}/configuration',
  442. 'class' => 'Guzzle\\Service\\Command\\OperationCommand',
  443. 'responseClass' => 'SetIdentityPoolConfigurationResponse',
  444. 'responseType' => 'model',
  445. 'parameters' => array(
  446. 'IdentityPoolId' => array(
  447. 'required' => true,
  448. 'type' => 'string',
  449. 'location' => 'uri',
  450. 'minLength' => 1,
  451. 'maxLength' => 50,
  452. ),
  453. 'PushSync' => array(
  454. 'type' => 'object',
  455. 'location' => 'json',
  456. 'properties' => array(
  457. 'ApplicationArns' => array(
  458. 'type' => 'array',
  459. 'items' => array(
  460. 'name' => 'ApplicationArn',
  461. 'type' => 'string',
  462. ),
  463. ),
  464. 'RoleArn' => array(
  465. 'type' => 'string',
  466. 'minLength' => 20,
  467. 'maxLength' => 2048,
  468. ),
  469. ),
  470. ),
  471. ),
  472. 'errorResponses' => array(
  473. array(
  474. 'reason' => 'Thrown when a user is not authorized to access the requested resource.',
  475. 'class' => 'NotAuthorizedException',
  476. ),
  477. array(
  478. 'reason' => 'Thrown when a request parameter does not comply with the associated constraints.',
  479. 'class' => 'InvalidParameterException',
  480. ),
  481. array(
  482. 'reason' => 'Thrown if the resource doesn\'t exist.',
  483. 'class' => 'ResourceNotFoundException',
  484. ),
  485. array(
  486. 'reason' => 'Indicates an internal service error.',
  487. 'class' => 'InternalErrorException',
  488. ),
  489. ),
  490. ),
  491. 'SubscribeToDataset' => array(
  492. 'httpMethod' => 'POST',
  493. 'uri' => '/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/subscriptions/{DeviceId}',
  494. 'class' => 'Guzzle\\Service\\Command\\OperationCommand',
  495. 'responseClass' => 'EmptyOutput',
  496. 'responseType' => 'model',
  497. 'parameters' => array(
  498. 'IdentityPoolId' => array(
  499. 'required' => true,
  500. 'type' => 'string',
  501. 'location' => 'uri',
  502. 'minLength' => 1,
  503. 'maxLength' => 50,
  504. ),
  505. 'IdentityId' => array(
  506. 'required' => true,
  507. 'type' => 'string',
  508. 'location' => 'uri',
  509. 'minLength' => 1,
  510. 'maxLength' => 50,
  511. ),
  512. 'DatasetName' => array(
  513. 'required' => true,
  514. 'type' => 'string',
  515. 'location' => 'uri',
  516. 'minLength' => 1,
  517. 'maxLength' => 128,
  518. ),
  519. 'DeviceId' => array(
  520. 'required' => true,
  521. 'type' => 'string',
  522. 'location' => 'uri',
  523. 'minLength' => 1,
  524. 'maxLength' => 256,
  525. ),
  526. ),
  527. 'errorResponses' => array(
  528. array(
  529. 'reason' => 'Thrown when a user is not authorized to access the requested resource.',
  530. 'class' => 'NotAuthorizedException',
  531. ),
  532. array(
  533. 'reason' => 'Thrown when a request parameter does not comply with the associated constraints.',
  534. 'class' => 'InvalidParameterException',
  535. ),
  536. array(
  537. 'reason' => 'Thrown if the resource doesn\'t exist.',
  538. 'class' => 'ResourceNotFoundException',
  539. ),
  540. array(
  541. 'reason' => 'Indicates an internal service error.',
  542. 'class' => 'InternalErrorException',
  543. ),
  544. array(
  545. 'class' => 'InvalidConfigurationException',
  546. ),
  547. ),
  548. ),
  549. 'UnsubscribeFromDataset' => array(
  550. 'httpMethod' => 'DELETE',
  551. 'uri' => '/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/subscriptions/{DeviceId}',
  552. 'class' => 'Guzzle\\Service\\Command\\OperationCommand',
  553. 'responseClass' => 'EmptyOutput',
  554. 'responseType' => 'model',
  555. 'parameters' => array(
  556. 'IdentityPoolId' => array(
  557. 'required' => true,
  558. 'type' => 'string',
  559. 'location' => 'uri',
  560. 'minLength' => 1,
  561. 'maxLength' => 50,
  562. ),
  563. 'IdentityId' => array(
  564. 'required' => true,
  565. 'type' => 'string',
  566. 'location' => 'uri',
  567. 'minLength' => 1,
  568. 'maxLength' => 50,
  569. ),
  570. 'DatasetName' => array(
  571. 'required' => true,
  572. 'type' => 'string',
  573. 'location' => 'uri',
  574. 'minLength' => 1,
  575. 'maxLength' => 128,
  576. ),
  577. 'DeviceId' => array(
  578. 'required' => true,
  579. 'type' => 'string',
  580. 'location' => 'uri',
  581. 'minLength' => 1,
  582. 'maxLength' => 256,
  583. ),
  584. ),
  585. 'errorResponses' => array(
  586. array(
  587. 'reason' => 'Thrown when a user is not authorized to access the requested resource.',
  588. 'class' => 'NotAuthorizedException',
  589. ),
  590. array(
  591. 'reason' => 'Thrown when a request parameter does not comply with the associated constraints.',
  592. 'class' => 'InvalidParameterException',
  593. ),
  594. array(
  595. 'reason' => 'Thrown if the resource doesn\'t exist.',
  596. 'class' => 'ResourceNotFoundException',
  597. ),
  598. array(
  599. 'reason' => 'Indicates an internal service error.',
  600. 'class' => 'InternalErrorException',
  601. ),
  602. array(
  603. 'class' => 'InvalidConfigurationException',
  604. ),
  605. ),
  606. ),
  607. 'UpdateRecords' => array(
  608. 'httpMethod' => 'POST',
  609. 'uri' => '/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}',
  610. 'class' => 'Guzzle\\Service\\Command\\OperationCommand',
  611. 'responseClass' => 'UpdateRecordsResponse',
  612. 'responseType' => 'model',
  613. 'parameters' => array(
  614. 'IdentityPoolId' => array(
  615. 'required' => true,
  616. 'type' => 'string',
  617. 'location' => 'uri',
  618. 'minLength' => 1,
  619. 'maxLength' => 50,
  620. ),
  621. 'IdentityId' => array(
  622. 'required' => true,
  623. 'type' => 'string',
  624. 'location' => 'uri',
  625. 'minLength' => 1,
  626. 'maxLength' => 50,
  627. ),
  628. 'DatasetName' => array(
  629. 'required' => true,
  630. 'type' => 'string',
  631. 'location' => 'uri',
  632. 'minLength' => 1,
  633. 'maxLength' => 128,
  634. ),
  635. 'DeviceId' => array(
  636. 'type' => 'string',
  637. 'location' => 'json',
  638. 'minLength' => 1,
  639. 'maxLength' => 256,
  640. ),
  641. 'RecordPatches' => array(
  642. 'type' => 'array',
  643. 'location' => 'json',
  644. 'items' => array(
  645. 'name' => 'RecordPatch',
  646. 'type' => 'object',
  647. 'properties' => array(
  648. 'Op' => array(
  649. 'required' => true,
  650. 'type' => 'string',
  651. ),
  652. 'Key' => array(
  653. 'required' => true,
  654. 'type' => 'string',
  655. 'minLength' => 1,
  656. 'maxLength' => 1024,
  657. ),
  658. 'Value' => array(
  659. 'type' => 'string',
  660. 'maxLength' => 1048575,
  661. ),
  662. 'SyncCount' => array(
  663. 'required' => true,
  664. 'type' => 'numeric',
  665. ),
  666. 'DeviceLastModifiedDate' => array(
  667. 'type' => array(
  668. 'object',
  669. 'string',
  670. 'integer',
  671. ),
  672. 'format' => 'date-time',
  673. ),
  674. ),
  675. ),
  676. ),
  677. 'SyncSessionToken' => array(
  678. 'required' => true,
  679. 'type' => 'string',
  680. 'location' => 'json',
  681. ),
  682. 'ClientContext' => array(
  683. 'type' => 'string',
  684. 'location' => 'header',
  685. 'sentAs' => 'x-amz-Client-Context',
  686. ),
  687. ),
  688. 'errorResponses' => array(
  689. array(
  690. 'reason' => 'Thrown when a request parameter does not comply with the associated constraints.',
  691. 'class' => 'InvalidParameterException',
  692. ),
  693. array(
  694. 'reason' => 'Thrown when the limit on the number of objects or operations has been exceeded.',
  695. 'class' => 'LimitExceededException',
  696. ),
  697. array(
  698. 'reason' => 'Thrown when a user is not authorized to access the requested resource.',
  699. 'class' => 'NotAuthorizedException',
  700. ),
  701. array(
  702. 'reason' => 'Thrown if the resource doesn\'t exist.',
  703. 'class' => 'ResourceNotFoundException',
  704. ),
  705. array(
  706. 'reason' => 'Thrown if an update can\'t be applied because the resource was changed by another call and this would result in a conflict.',
  707. 'class' => 'ResourceConflictException',
  708. ),
  709. array(
  710. 'reason' => 'Thrown if the request is throttled.',
  711. 'class' => 'TooManyRequestsException',
  712. ),
  713. array(
  714. 'reason' => 'Indicates an internal service error.',
  715. 'class' => 'InternalErrorException',
  716. ),
  717. ),
  718. ),
  719. ),
  720. 'models' => array(
  721. 'DeleteDatasetResponse' => array(
  722. 'type' => 'object',
  723. 'additionalProperties' => true,
  724. 'properties' => array(
  725. 'Dataset' => array(
  726. 'type' => 'object',
  727. 'location' => 'json',
  728. 'properties' => array(
  729. 'IdentityId' => array(
  730. 'type' => 'string',
  731. ),
  732. 'DatasetName' => array(
  733. 'type' => 'string',
  734. ),
  735. 'CreationDate' => array(
  736. 'type' => 'string',
  737. ),
  738. 'LastModifiedDate' => array(
  739. 'type' => 'string',
  740. ),
  741. 'LastModifiedBy' => array(
  742. 'type' => 'string',
  743. ),
  744. 'DataStorage' => array(
  745. 'type' => 'numeric',
  746. ),
  747. 'NumRecords' => array(
  748. 'type' => 'numeric',
  749. ),
  750. ),
  751. ),
  752. ),
  753. ),
  754. 'DescribeDatasetResponse' => array(
  755. 'type' => 'object',
  756. 'additionalProperties' => true,
  757. 'properties' => array(
  758. 'Dataset' => array(
  759. 'type' => 'object',
  760. 'location' => 'json',
  761. 'properties' => array(
  762. 'IdentityId' => array(
  763. 'type' => 'string',
  764. ),
  765. 'DatasetName' => array(
  766. 'type' => 'string',
  767. ),
  768. 'CreationDate' => array(
  769. 'type' => 'string',
  770. ),
  771. 'LastModifiedDate' => array(
  772. 'type' => 'string',
  773. ),
  774. 'LastModifiedBy' => array(
  775. 'type' => 'string',
  776. ),
  777. 'DataStorage' => array(
  778. 'type' => 'numeric',
  779. ),
  780. 'NumRecords' => array(
  781. 'type' => 'numeric',
  782. ),
  783. ),
  784. ),
  785. ),
  786. ),
  787. 'DescribeIdentityPoolUsageResponse' => array(
  788. 'type' => 'object',
  789. 'additionalProperties' => true,
  790. 'properties' => array(
  791. 'IdentityPoolUsage' => array(
  792. 'type' => 'object',
  793. 'location' => 'json',
  794. 'properties' => array(
  795. 'IdentityPoolId' => array(
  796. 'type' => 'string',
  797. ),
  798. 'SyncSessionsCount' => array(
  799. 'type' => 'numeric',
  800. ),
  801. 'DataStorage' => array(
  802. 'type' => 'numeric',
  803. ),
  804. 'LastModifiedDate' => array(
  805. 'type' => 'string',
  806. ),
  807. ),
  808. ),
  809. ),
  810. ),
  811. 'DescribeIdentityUsageResponse' => array(
  812. 'type' => 'object',
  813. 'additionalProperties' => true,
  814. 'properties' => array(
  815. 'IdentityUsage' => array(
  816. 'type' => 'object',
  817. 'location' => 'json',
  818. 'properties' => array(
  819. 'IdentityId' => array(
  820. 'type' => 'string',
  821. ),
  822. 'IdentityPoolId' => array(
  823. 'type' => 'string',
  824. ),
  825. 'LastModifiedDate' => array(
  826. 'type' => 'string',
  827. ),
  828. 'DatasetCount' => array(
  829. 'type' => 'numeric',
  830. ),
  831. 'DataStorage' => array(
  832. 'type' => 'numeric',
  833. ),
  834. ),
  835. ),
  836. ),
  837. ),
  838. 'GetIdentityPoolConfigurationResponse' => array(
  839. 'type' => 'object',
  840. 'additionalProperties' => true,
  841. 'properties' => array(
  842. 'IdentityPoolId' => array(
  843. 'type' => 'string',
  844. 'location' => 'json',
  845. ),
  846. 'PushSync' => array(
  847. 'type' => 'object',
  848. 'location' => 'json',
  849. 'properties' => array(
  850. 'ApplicationArns' => array(
  851. 'type' => 'array',
  852. 'items' => array(
  853. 'name' => 'ApplicationArn',
  854. 'type' => 'string',
  855. ),
  856. ),
  857. 'RoleArn' => array(
  858. 'type' => 'string',
  859. ),
  860. ),
  861. ),
  862. ),
  863. ),
  864. 'ListDatasetsResponse' => array(
  865. 'type' => 'object',
  866. 'additionalProperties' => true,
  867. 'properties' => array(
  868. 'Datasets' => array(
  869. 'type' => 'array',
  870. 'location' => 'json',
  871. 'items' => array(
  872. 'name' => 'Dataset',
  873. 'type' => 'object',
  874. 'properties' => array(
  875. 'IdentityId' => array(
  876. 'type' => 'string',
  877. ),
  878. 'DatasetName' => array(
  879. 'type' => 'string',
  880. ),
  881. 'CreationDate' => array(
  882. 'type' => 'string',
  883. ),
  884. 'LastModifiedDate' => array(
  885. 'type' => 'string',
  886. ),
  887. 'LastModifiedBy' => array(
  888. 'type' => 'string',
  889. ),
  890. 'DataStorage' => array(
  891. 'type' => 'numeric',
  892. ),
  893. 'NumRecords' => array(
  894. 'type' => 'numeric',
  895. ),
  896. ),
  897. ),
  898. ),
  899. 'Count' => array(
  900. 'type' => 'numeric',
  901. 'location' => 'json',
  902. ),
  903. 'NextToken' => array(
  904. 'type' => 'string',
  905. 'location' => 'json',
  906. ),
  907. ),
  908. ),
  909. 'ListIdentityPoolUsageResponse' => array(
  910. 'type' => 'object',
  911. 'additionalProperties' => true,
  912. 'properties' => array(
  913. 'IdentityPoolUsages' => array(
  914. 'type' => 'array',
  915. 'location' => 'json',
  916. 'items' => array(
  917. 'name' => 'IdentityPoolUsage',
  918. 'type' => 'object',
  919. 'properties' => array(
  920. 'IdentityPoolId' => array(
  921. 'type' => 'string',
  922. ),
  923. 'SyncSessionsCount' => array(
  924. 'type' => 'numeric',
  925. ),
  926. 'DataStorage' => array(
  927. 'type' => 'numeric',
  928. ),
  929. 'LastModifiedDate' => array(
  930. 'type' => 'string',
  931. ),
  932. ),
  933. ),
  934. ),
  935. 'MaxResults' => array(
  936. 'type' => 'numeric',
  937. 'location' => 'json',
  938. ),
  939. 'Count' => array(
  940. 'type' => 'numeric',
  941. 'location' => 'json',
  942. ),
  943. 'NextToken' => array(
  944. 'type' => 'string',
  945. 'location' => 'json',
  946. ),
  947. ),
  948. ),
  949. 'ListRecordsResponse' => array(
  950. 'type' => 'object',
  951. 'additionalProperties' => true,
  952. 'properties' => array(
  953. 'Records' => array(
  954. 'type' => 'array',
  955. 'location' => 'json',
  956. 'items' => array(
  957. 'name' => 'Record',
  958. 'type' => 'object',
  959. 'properties' => array(
  960. 'Key' => array(
  961. 'type' => 'string',
  962. ),
  963. 'Value' => array(
  964. 'type' => 'string',
  965. ),
  966. 'SyncCount' => array(
  967. 'type' => 'numeric',
  968. ),
  969. 'LastModifiedDate' => array(
  970. 'type' => 'string',
  971. ),
  972. 'LastModifiedBy' => array(
  973. 'type' => 'string',
  974. ),
  975. 'DeviceLastModifiedDate' => array(
  976. 'type' => 'string',
  977. ),
  978. ),
  979. ),
  980. ),
  981. 'NextToken' => array(
  982. 'type' => 'string',
  983. 'location' => 'json',
  984. ),
  985. 'Count' => array(
  986. 'type' => 'numeric',
  987. 'location' => 'json',
  988. ),
  989. 'DatasetSyncCount' => array(
  990. 'type' => 'numeric',
  991. 'location' => 'json',
  992. ),
  993. 'LastModifiedBy' => array(
  994. 'type' => 'string',
  995. 'location' => 'json',
  996. ),
  997. 'MergedDatasetNames' => array(
  998. 'type' => 'array',
  999. 'location' => 'json',
  1000. 'items' => array(
  1001. 'name' => 'String',
  1002. 'type' => 'string',
  1003. ),
  1004. ),
  1005. 'DatasetExists' => array(
  1006. 'type' => 'boolean',
  1007. 'location' => 'json',
  1008. ),
  1009. 'DatasetDeletedAfterRequestedSyncCount' => array(
  1010. 'type' => 'boolean',
  1011. 'location' => 'json',
  1012. ),
  1013. 'SyncSessionToken' => array(
  1014. 'type' => 'string',
  1015. 'location' => 'json',
  1016. ),
  1017. ),
  1018. ),
  1019. 'RegisterDeviceResponse' => array(
  1020. 'type' => 'object',
  1021. 'additionalProperties' => true,
  1022. 'properties' => array(
  1023. 'DeviceId' => array(
  1024. 'type' => 'string',
  1025. 'location' => 'json',
  1026. ),
  1027. ),
  1028. ),
  1029. 'SetIdentityPoolConfigurationResponse' => array(
  1030. 'type' => 'object',
  1031. 'additionalProperties' => true,
  1032. 'properties' => array(
  1033. 'IdentityPoolId' => array(
  1034. 'type' => 'string',
  1035. 'location' => 'json',
  1036. ),
  1037. 'PushSync' => array(
  1038. 'type' => 'object',
  1039. 'location' => 'json',
  1040. 'properties' => array(
  1041. 'ApplicationArns' => array(
  1042. 'type' => 'array',
  1043. 'items' => array(
  1044. 'name' => 'ApplicationArn',
  1045. 'type' => 'string',
  1046. ),
  1047. ),
  1048. 'RoleArn' => array(
  1049. 'type' => 'string',
  1050. ),
  1051. ),
  1052. ),
  1053. ),
  1054. ),
  1055. 'EmptyOutput' => array(
  1056. 'type' => 'object',
  1057. 'additionalProperties' => true,
  1058. ),
  1059. 'UpdateRecordsResponse' => array(
  1060. 'type' => 'object',
  1061. 'additionalProperties' => true,
  1062. 'properties' => array(
  1063. 'Records' => array(
  1064. 'type' => 'array',
  1065. 'location' => 'json',
  1066. 'items' => array(
  1067. 'name' => 'Record',
  1068. 'type' => 'object',
  1069. 'properties' => array(
  1070. 'Key' => array(
  1071. 'type' => 'string',
  1072. ),
  1073. 'Value' => array(
  1074. 'type' => 'string',
  1075. ),
  1076. 'SyncCount' => array(
  1077. 'type' => 'numeric',
  1078. ),
  1079. 'LastModifiedDate' => array(
  1080. 'type' => 'string',
  1081. ),
  1082. 'LastModifiedBy' => array(
  1083. 'type' => 'string',
  1084. ),
  1085. 'DeviceLastModifiedDate' => array(
  1086. 'type' => 'string',
  1087. ),
  1088. ),
  1089. ),
  1090. ),
  1091. ),
  1092. ),
  1093. ),
  1094. );