@aws-sdk/client-cognito-sync 3.34.0 → 3.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (235) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/{dist/cjs → dist-cjs}/CognitoSync.js +0 -16
  3. package/dist-cjs/CognitoSyncClient.js +35 -0
  4. package/{dist/cjs → dist-cjs}/commands/BulkPublishCommand.js +2 -27
  5. package/{dist/cjs → dist-cjs}/commands/DeleteDatasetCommand.js +2 -31
  6. package/{dist/cjs → dist-cjs}/commands/DescribeDatasetCommand.js +2 -30
  7. package/dist-cjs/commands/DescribeIdentityPoolUsageCommand.js +36 -0
  8. package/dist-cjs/commands/DescribeIdentityUsageCommand.js +36 -0
  9. package/{dist/cjs → dist-cjs}/commands/GetBulkPublishDetailsCommand.js +2 -27
  10. package/{dist/cjs → dist-cjs}/commands/GetCognitoEventsCommand.js +2 -27
  11. package/dist-cjs/commands/GetIdentityPoolConfigurationCommand.js +36 -0
  12. package/dist-cjs/commands/ListDatasetsCommand.js +36 -0
  13. package/dist-cjs/commands/ListIdentityPoolUsageCommand.js +36 -0
  14. package/dist-cjs/commands/ListRecordsCommand.js +36 -0
  15. package/dist-cjs/commands/RegisterDeviceCommand.js +36 -0
  16. package/{dist/cjs → dist-cjs}/commands/SetCognitoEventsCommand.js +2 -27
  17. package/dist-cjs/commands/SetIdentityPoolConfigurationCommand.js +36 -0
  18. package/dist-cjs/commands/SubscribeToDatasetCommand.js +36 -0
  19. package/dist-cjs/commands/UnsubscribeFromDatasetCommand.js +36 -0
  20. package/dist-cjs/commands/UpdateRecordsCommand.js +36 -0
  21. package/{dist/cjs → dist-cjs}/endpoints.js +1 -2
  22. package/{dist/cjs → dist-cjs}/index.js +0 -1
  23. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  24. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -160
  25. package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +1 -7
  26. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
  27. package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
  28. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
  29. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
  30. package/{dist/es → dist-es}/CognitoSync.js +0 -1
  31. package/{dist/es → dist-es}/CognitoSyncClient.js +1 -2
  32. package/{dist/es → dist-es}/commands/BulkPublishCommand.js +2 -3
  33. package/{dist/es → dist-es}/commands/DeleteDatasetCommand.js +2 -3
  34. package/{dist/es → dist-es}/commands/DescribeDatasetCommand.js +2 -3
  35. package/{dist/es → dist-es}/commands/DescribeIdentityPoolUsageCommand.js +2 -3
  36. package/{dist/es → dist-es}/commands/DescribeIdentityUsageCommand.js +2 -3
  37. package/{dist/es → dist-es}/commands/GetBulkPublishDetailsCommand.js +2 -3
  38. package/{dist/es → dist-es}/commands/GetCognitoEventsCommand.js +2 -3
  39. package/{dist/es → dist-es}/commands/GetIdentityPoolConfigurationCommand.js +2 -3
  40. package/{dist/es → dist-es}/commands/ListDatasetsCommand.js +2 -3
  41. package/{dist/es → dist-es}/commands/ListIdentityPoolUsageCommand.js +2 -3
  42. package/{dist/es → dist-es}/commands/ListRecordsCommand.js +2 -3
  43. package/{dist/es → dist-es}/commands/RegisterDeviceCommand.js +2 -3
  44. package/{dist/es → dist-es}/commands/SetCognitoEventsCommand.js +2 -3
  45. package/{dist/es → dist-es}/commands/SetIdentityPoolConfigurationCommand.js +2 -3
  46. package/{dist/es → dist-es}/commands/SubscribeToDatasetCommand.js +2 -3
  47. package/{dist/es → dist-es}/commands/UnsubscribeFromDatasetCommand.js +2 -3
  48. package/{dist/es → dist-es}/commands/UpdateRecordsCommand.js +2 -3
  49. package/{dist/es → dist-es}/endpoints.js +1 -2
  50. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  51. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  52. package/{dist/es → dist-es}/models/models_0.js +0 -1
  53. package/{dist/es → dist-es}/protocols/Aws_restJson1.js +0 -1
  54. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
  55. package/{dist/es → dist-es}/runtimeConfig.js +1 -2
  56. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
  57. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
  58. package/{dist/types → dist-types}/CognitoSync.d.ts +1 -1
  59. package/{dist/types → dist-types}/CognitoSyncClient.d.ts +8 -8
  60. package/{dist/types → dist-types}/commands/BulkPublishCommand.d.ts +2 -2
  61. package/{dist/types → dist-types}/commands/DeleteDatasetCommand.d.ts +2 -2
  62. package/{dist/types → dist-types}/commands/DescribeDatasetCommand.d.ts +2 -2
  63. package/{dist/types → dist-types}/commands/DescribeIdentityPoolUsageCommand.d.ts +2 -2
  64. package/{dist/types → dist-types}/commands/DescribeIdentityUsageCommand.d.ts +2 -2
  65. package/{dist/types → dist-types}/commands/GetBulkPublishDetailsCommand.d.ts +2 -2
  66. package/{dist/types → dist-types}/commands/GetCognitoEventsCommand.d.ts +2 -2
  67. package/{dist/types → dist-types}/commands/GetIdentityPoolConfigurationCommand.d.ts +2 -2
  68. package/{dist/types → dist-types}/commands/ListDatasetsCommand.d.ts +2 -2
  69. package/{dist/types → dist-types}/commands/ListIdentityPoolUsageCommand.d.ts +2 -2
  70. package/{dist/types → dist-types}/commands/ListRecordsCommand.d.ts +2 -2
  71. package/{dist/types → dist-types}/commands/RegisterDeviceCommand.d.ts +2 -2
  72. package/{dist/types → dist-types}/commands/SetCognitoEventsCommand.d.ts +2 -2
  73. package/{dist/types → dist-types}/commands/SetIdentityPoolConfigurationCommand.d.ts +2 -2
  74. package/{dist/types → dist-types}/commands/SubscribeToDatasetCommand.d.ts +2 -2
  75. package/{dist/types → dist-types}/commands/UnsubscribeFromDatasetCommand.d.ts +2 -2
  76. package/{dist/types → dist-types}/commands/UpdateRecordsCommand.d.ts +2 -2
  77. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  78. package/{index.ts → dist-types/index.d.ts} +0 -0
  79. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  80. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  81. package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
  82. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
  83. package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
  84. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
  85. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  86. package/dist-types/ts3.4/CognitoSync.d.ts +90 -0
  87. package/{dist/types → dist-types}/ts3.4/CognitoSyncClient.d.ts +32 -109
  88. package/dist-types/ts3.4/commands/BulkPublishCommand.d.ts +17 -0
  89. package/dist-types/ts3.4/commands/DeleteDatasetCommand.d.ts +17 -0
  90. package/dist-types/ts3.4/commands/DescribeDatasetCommand.d.ts +17 -0
  91. package/dist-types/ts3.4/commands/DescribeIdentityPoolUsageCommand.d.ts +17 -0
  92. package/dist-types/ts3.4/commands/DescribeIdentityUsageCommand.d.ts +17 -0
  93. package/dist-types/ts3.4/commands/GetBulkPublishDetailsCommand.d.ts +17 -0
  94. package/dist-types/ts3.4/commands/GetCognitoEventsCommand.d.ts +17 -0
  95. package/dist-types/ts3.4/commands/GetIdentityPoolConfigurationCommand.d.ts +17 -0
  96. package/dist-types/ts3.4/commands/ListDatasetsCommand.d.ts +17 -0
  97. package/dist-types/ts3.4/commands/ListIdentityPoolUsageCommand.d.ts +17 -0
  98. package/dist-types/ts3.4/commands/ListRecordsCommand.d.ts +17 -0
  99. package/dist-types/ts3.4/commands/RegisterDeviceCommand.d.ts +17 -0
  100. package/dist-types/ts3.4/commands/SetCognitoEventsCommand.d.ts +17 -0
  101. package/dist-types/ts3.4/commands/SetIdentityPoolConfigurationCommand.d.ts +17 -0
  102. package/dist-types/ts3.4/commands/SubscribeToDatasetCommand.d.ts +17 -0
  103. package/dist-types/ts3.4/commands/UnsubscribeFromDatasetCommand.d.ts +17 -0
  104. package/dist-types/ts3.4/commands/UpdateRecordsCommand.d.ts +17 -0
  105. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  106. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  107. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  108. package/dist-types/ts3.4/models/models_0.d.ts +670 -0
  109. package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
  110. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
  111. package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
  112. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
  113. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
  114. package/package.json +45 -42
  115. package/CognitoSync.ts +0 -1129
  116. package/CognitoSyncClient.ts +0 -319
  117. package/commands/BulkPublishCommand.ts +0 -94
  118. package/commands/DeleteDatasetCommand.ts +0 -98
  119. package/commands/DescribeDatasetCommand.ts +0 -97
  120. package/commands/DescribeIdentityPoolUsageCommand.ts +0 -145
  121. package/commands/DescribeIdentityUsageCommand.ts +0 -143
  122. package/commands/GetBulkPublishDetailsCommand.ts +0 -94
  123. package/commands/GetCognitoEventsCommand.ts +0 -94
  124. package/commands/GetIdentityPoolConfigurationCommand.ts +0 -145
  125. package/commands/ListDatasetsCommand.ts +0 -152
  126. package/commands/ListIdentityPoolUsageCommand.ts +0 -152
  127. package/commands/ListRecordsCommand.ts +0 -149
  128. package/commands/RegisterDeviceCommand.ts +0 -138
  129. package/commands/SetCognitoEventsCommand.ts +0 -94
  130. package/commands/SetIdentityPoolConfigurationCommand.ts +0 -149
  131. package/commands/SubscribeToDatasetCommand.ts +0 -137
  132. package/commands/UnsubscribeFromDatasetCommand.ts +0 -138
  133. package/commands/UpdateRecordsCommand.ts +0 -96
  134. package/dist/cjs/CognitoSync.js.map +0 -1
  135. package/dist/cjs/CognitoSyncClient.js +0 -56
  136. package/dist/cjs/CognitoSyncClient.js.map +0 -1
  137. package/dist/cjs/commands/BulkPublishCommand.js.map +0 -1
  138. package/dist/cjs/commands/DeleteDatasetCommand.js.map +0 -1
  139. package/dist/cjs/commands/DescribeDatasetCommand.js.map +0 -1
  140. package/dist/cjs/commands/DescribeIdentityPoolUsageCommand.js +0 -109
  141. package/dist/cjs/commands/DescribeIdentityPoolUsageCommand.js.map +0 -1
  142. package/dist/cjs/commands/DescribeIdentityUsageCommand.js +0 -110
  143. package/dist/cjs/commands/DescribeIdentityUsageCommand.js.map +0 -1
  144. package/dist/cjs/commands/GetBulkPublishDetailsCommand.js.map +0 -1
  145. package/dist/cjs/commands/GetCognitoEventsCommand.js.map +0 -1
  146. package/dist/cjs/commands/GetIdentityPoolConfigurationCommand.js +0 -107
  147. package/dist/cjs/commands/GetIdentityPoolConfigurationCommand.js.map +0 -1
  148. package/dist/cjs/commands/ListDatasetsCommand.js +0 -119
  149. package/dist/cjs/commands/ListDatasetsCommand.js.map +0 -1
  150. package/dist/cjs/commands/ListIdentityPoolUsageCommand.js +0 -119
  151. package/dist/cjs/commands/ListIdentityPoolUsageCommand.js.map +0 -1
  152. package/dist/cjs/commands/ListRecordsCommand.js +0 -116
  153. package/dist/cjs/commands/ListRecordsCommand.js.map +0 -1
  154. package/dist/cjs/commands/RegisterDeviceCommand.js +0 -105
  155. package/dist/cjs/commands/RegisterDeviceCommand.js.map +0 -1
  156. package/dist/cjs/commands/SetCognitoEventsCommand.js.map +0 -1
  157. package/dist/cjs/commands/SetIdentityPoolConfigurationCommand.js +0 -111
  158. package/dist/cjs/commands/SetIdentityPoolConfigurationCommand.js.map +0 -1
  159. package/dist/cjs/commands/SubscribeToDatasetCommand.js +0 -104
  160. package/dist/cjs/commands/SubscribeToDatasetCommand.js.map +0 -1
  161. package/dist/cjs/commands/UnsubscribeFromDatasetCommand.js +0 -105
  162. package/dist/cjs/commands/UnsubscribeFromDatasetCommand.js.map +0 -1
  163. package/dist/cjs/commands/UpdateRecordsCommand.js +0 -63
  164. package/dist/cjs/commands/UpdateRecordsCommand.js.map +0 -1
  165. package/dist/cjs/endpoints.js.map +0 -1
  166. package/dist/cjs/index.js.map +0 -1
  167. package/dist/cjs/models/index.js.map +0 -1
  168. package/dist/cjs/models/models_0.js.map +0 -1
  169. package/dist/cjs/package.json +0 -91
  170. package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
  171. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  172. package/dist/cjs/runtimeConfig.js.map +0 -1
  173. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  174. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  175. package/dist/es/CognitoSync.js.map +0 -1
  176. package/dist/es/CognitoSyncClient.js.map +0 -1
  177. package/dist/es/commands/BulkPublishCommand.js.map +0 -1
  178. package/dist/es/commands/DeleteDatasetCommand.js.map +0 -1
  179. package/dist/es/commands/DescribeDatasetCommand.js.map +0 -1
  180. package/dist/es/commands/DescribeIdentityPoolUsageCommand.js.map +0 -1
  181. package/dist/es/commands/DescribeIdentityUsageCommand.js.map +0 -1
  182. package/dist/es/commands/GetBulkPublishDetailsCommand.js.map +0 -1
  183. package/dist/es/commands/GetCognitoEventsCommand.js.map +0 -1
  184. package/dist/es/commands/GetIdentityPoolConfigurationCommand.js.map +0 -1
  185. package/dist/es/commands/ListDatasetsCommand.js.map +0 -1
  186. package/dist/es/commands/ListIdentityPoolUsageCommand.js.map +0 -1
  187. package/dist/es/commands/ListRecordsCommand.js.map +0 -1
  188. package/dist/es/commands/RegisterDeviceCommand.js.map +0 -1
  189. package/dist/es/commands/SetCognitoEventsCommand.js.map +0 -1
  190. package/dist/es/commands/SetIdentityPoolConfigurationCommand.js.map +0 -1
  191. package/dist/es/commands/SubscribeToDatasetCommand.js.map +0 -1
  192. package/dist/es/commands/UnsubscribeFromDatasetCommand.js.map +0 -1
  193. package/dist/es/commands/UpdateRecordsCommand.js.map +0 -1
  194. package/dist/es/endpoints.js.map +0 -1
  195. package/dist/es/index.js +0 -21
  196. package/dist/es/index.js.map +0 -1
  197. package/dist/es/models/index.js +0 -2
  198. package/dist/es/models/index.js.map +0 -1
  199. package/dist/es/models/models_0.js.map +0 -1
  200. package/dist/es/package.json +0 -91
  201. package/dist/es/protocols/Aws_restJson1.js.map +0 -1
  202. package/dist/es/runtimeConfig.browser.js.map +0 -1
  203. package/dist/es/runtimeConfig.js.map +0 -1
  204. package/dist/es/runtimeConfig.native.js.map +0 -1
  205. package/dist/es/runtimeConfig.shared.js.map +0 -1
  206. package/dist/types/ts3.4/CognitoSync.d.ts +0 -642
  207. package/dist/types/ts3.4/commands/BulkPublishCommand.d.ts +0 -35
  208. package/dist/types/ts3.4/commands/DeleteDatasetCommand.d.ts +0 -39
  209. package/dist/types/ts3.4/commands/DescribeDatasetCommand.d.ts +0 -38
  210. package/dist/types/ts3.4/commands/DescribeIdentityPoolUsageCommand.d.ts +0 -83
  211. package/dist/types/ts3.4/commands/DescribeIdentityUsageCommand.d.ts +0 -84
  212. package/dist/types/ts3.4/commands/GetBulkPublishDetailsCommand.d.ts +0 -35
  213. package/dist/types/ts3.4/commands/GetCognitoEventsCommand.d.ts +0 -35
  214. package/dist/types/ts3.4/commands/GetIdentityPoolConfigurationCommand.d.ts +0 -81
  215. package/dist/types/ts3.4/commands/ListDatasetsCommand.d.ts +0 -93
  216. package/dist/types/ts3.4/commands/ListIdentityPoolUsageCommand.d.ts +0 -93
  217. package/dist/types/ts3.4/commands/ListRecordsCommand.d.ts +0 -90
  218. package/dist/types/ts3.4/commands/RegisterDeviceCommand.d.ts +0 -79
  219. package/dist/types/ts3.4/commands/SetCognitoEventsCommand.d.ts +0 -35
  220. package/dist/types/ts3.4/commands/SetIdentityPoolConfigurationCommand.d.ts +0 -85
  221. package/dist/types/ts3.4/commands/SubscribeToDatasetCommand.d.ts +0 -78
  222. package/dist/types/ts3.4/commands/UnsubscribeFromDatasetCommand.d.ts +0 -79
  223. package/dist/types/ts3.4/commands/UpdateRecordsCommand.d.ts +0 -37
  224. package/dist/types/ts3.4/models/models_0.d.ts +0 -1289
  225. package/endpoints.ts +0 -57
  226. package/jest.config.js +0 -4
  227. package/models/models_0.ts +0 -1578
  228. package/protocols/Aws_restJson1.ts +0 -2879
  229. package/runtimeConfig.browser.ts +0 -40
  230. package/runtimeConfig.native.ts +0 -16
  231. package/runtimeConfig.shared.ts +0 -16
  232. package/runtimeConfig.ts +0 -45
  233. package/tsconfig.es.json +0 -10
  234. package/tsconfig.json +0 -31
  235. package/tsconfig.types.json +0 -8
@@ -1,642 +0,0 @@
1
- import { CognitoSyncClient } from "./CognitoSyncClient";
2
- import { BulkPublishCommandInput, BulkPublishCommandOutput } from "./commands/BulkPublishCommand";
3
- import { DeleteDatasetCommandInput, DeleteDatasetCommandOutput } from "./commands/DeleteDatasetCommand";
4
- import { DescribeDatasetCommandInput, DescribeDatasetCommandOutput } from "./commands/DescribeDatasetCommand";
5
- import { DescribeIdentityPoolUsageCommandInput, DescribeIdentityPoolUsageCommandOutput } from "./commands/DescribeIdentityPoolUsageCommand";
6
- import { DescribeIdentityUsageCommandInput, DescribeIdentityUsageCommandOutput } from "./commands/DescribeIdentityUsageCommand";
7
- import { GetBulkPublishDetailsCommandInput, GetBulkPublishDetailsCommandOutput } from "./commands/GetBulkPublishDetailsCommand";
8
- import { GetCognitoEventsCommandInput, GetCognitoEventsCommandOutput } from "./commands/GetCognitoEventsCommand";
9
- import { GetIdentityPoolConfigurationCommandInput, GetIdentityPoolConfigurationCommandOutput } from "./commands/GetIdentityPoolConfigurationCommand";
10
- import { ListDatasetsCommandInput, ListDatasetsCommandOutput } from "./commands/ListDatasetsCommand";
11
- import { ListIdentityPoolUsageCommandInput, ListIdentityPoolUsageCommandOutput } from "./commands/ListIdentityPoolUsageCommand";
12
- import { ListRecordsCommandInput, ListRecordsCommandOutput } from "./commands/ListRecordsCommand";
13
- import { RegisterDeviceCommandInput, RegisterDeviceCommandOutput } from "./commands/RegisterDeviceCommand";
14
- import { SetCognitoEventsCommandInput, SetCognitoEventsCommandOutput } from "./commands/SetCognitoEventsCommand";
15
- import { SetIdentityPoolConfigurationCommandInput, SetIdentityPoolConfigurationCommandOutput } from "./commands/SetIdentityPoolConfigurationCommand";
16
- import { SubscribeToDatasetCommandInput, SubscribeToDatasetCommandOutput } from "./commands/SubscribeToDatasetCommand";
17
- import { UnsubscribeFromDatasetCommandInput, UnsubscribeFromDatasetCommandOutput } from "./commands/UnsubscribeFromDatasetCommand";
18
- import { UpdateRecordsCommandInput, UpdateRecordsCommandOutput } from "./commands/UpdateRecordsCommand";
19
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
20
- /**
21
- * <fullname>Amazon Cognito Sync</fullname>
22
- * <p>Amazon Cognito Sync provides an AWS service and client library that enable cross-device syncing of
23
- * application-related user data. High-level client libraries are available for both iOS and
24
- * Android. You can use these libraries to persist data locally so that it's available even if
25
- * the device is offline. Developer credentials don't need to be stored on the mobile device
26
- * to access the service. You can use Amazon Cognito to obtain a normalized user ID and
27
- * credentials. User data is persisted in a dataset that can store up to 1 MB of key-value
28
- * pairs, and you can have up to 20 datasets per user identity.</p>
29
- * <p>With Amazon Cognito Sync, the data stored for each identity is accessible only to
30
- * credentials assigned to that identity. In order to use the Cognito Sync service, you need
31
- * to make API calls using credentials retrieved with <a href="http://docs.aws.amazon.com/cognitoidentity/latest/APIReference/Welcome.html">Amazon Cognito Identity service</a>.</p>
32
- * <p>If you want to use Cognito Sync in an Android or iOS application, you will probably want to
33
- * make API calls via the AWS Mobile SDK. To learn more, see the <a href="http://docs.aws.amazon.com/mobile/sdkforandroid/developerguide/cognito-sync.html">Developer Guide for Android</a> and the <a href="http://docs.aws.amazon.com/mobile/sdkforios/developerguide/cognito-sync.html">Developer Guide for iOS</a>.</p>
34
- */
35
- export declare class CognitoSync extends CognitoSyncClient {
36
- /**
37
- * <p>Initiates a bulk publish of all existing datasets for an Identity Pool to the configured stream. Customers are limited to one successful bulk publish per 24 hours. Bulk publish is an asynchronous request, customers can see the status of the request via the GetBulkPublishDetails operation.</p><p>This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.</p>
38
- */
39
- bulkPublish(args: BulkPublishCommandInput, options?: __HttpHandlerOptions): Promise<BulkPublishCommandOutput>;
40
- bulkPublish(args: BulkPublishCommandInput, cb: (err: any, data?: BulkPublishCommandOutput) => void): void;
41
- bulkPublish(args: BulkPublishCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BulkPublishCommandOutput) => void): void;
42
- /**
43
- * <p>Deletes the specific dataset. The dataset will be deleted permanently, and the action can't
44
- * be undone. Datasets that this dataset was merged with will no longer report the merge. Any
45
- * subsequent operation on this dataset will result in a
46
- * ResourceNotFoundException.</p>
47
- * <p>This API can be called with temporary user credentials provided by Cognito Identity or with developer credentials.</p>
48
- */
49
- deleteDataset(args: DeleteDatasetCommandInput, options?: __HttpHandlerOptions): Promise<DeleteDatasetCommandOutput>;
50
- deleteDataset(args: DeleteDatasetCommandInput, cb: (err: any, data?: DeleteDatasetCommandOutput) => void): void;
51
- deleteDataset(args: DeleteDatasetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteDatasetCommandOutput) => void): void;
52
- /**
53
- * <p>Gets meta data about a dataset by identity and dataset name. With Amazon Cognito Sync, each
54
- * identity has access only to its own data. Thus, the credentials used to make this API call
55
- * need to have access to the identity data.</p>
56
- * <p>This API can be called with temporary user credentials provided by Cognito Identity or with developer credentials. You should use Cognito Identity credentials to make this API call.</p>
57
- */
58
- describeDataset(args: DescribeDatasetCommandInput, options?: __HttpHandlerOptions): Promise<DescribeDatasetCommandOutput>;
59
- describeDataset(args: DescribeDatasetCommandInput, cb: (err: any, data?: DescribeDatasetCommandOutput) => void): void;
60
- describeDataset(args: DescribeDatasetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeDatasetCommandOutput) => void): void;
61
- /**
62
- * <p>Gets usage details (for example, data storage) about a particular identity pool.</p>
63
- * <p>This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.</p>
64
- *
65
- * <examples>
66
- * <example>
67
- * <name>DescribeIdentityPoolUsage</name>
68
- * <description>The following examples have been edited for readability.</description>
69
- * <request>
70
- * POST / HTTP/1.1
71
- * CONTENT-TYPE: application/json
72
- * X-AMZN-REQUESTID: 8dc0e749-c8cd-48bd-8520-da6be00d528b
73
- * X-AMZ-TARGET: com.amazonaws.cognito.sync.model.AWSCognitoSyncService.DescribeIdentityPoolUsage
74
- * HOST: cognito-sync.us-east-1.amazonaws.com:443
75
- * X-AMZ-DATE: 20141111T205737Z
76
- * AUTHORIZATION: AWS4-HMAC-SHA256 Credential=<credential>, SignedHeaders=content-type;host;x-amz-date;x-amz-target;x-amzn-requestid, Signature=<signature>
77
- *
78
- * {
79
- * "Operation": "com.amazonaws.cognito.sync.model#DescribeIdentityPoolUsage",
80
- * "Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService",
81
- * "Input":
82
- * {
83
- * "IdentityPoolId": "IDENTITY_POOL_ID"
84
- * }
85
- * }
86
- * </request>
87
- * <response>
88
- * 1.1 200 OK
89
- * x-amzn-requestid: 8dc0e749-c8cd-48bd-8520-da6be00d528b
90
- * content-type: application/json
91
- * content-length: 271
92
- * date: Tue, 11 Nov 2014 20:57:37 GMT
93
- *
94
- * {
95
- * "Output":
96
- * {
97
- * "__type": "com.amazonaws.cognito.sync.model#DescribeIdentityPoolUsageResponse",
98
- * "IdentityPoolUsage":
99
- * {
100
- * "DataStorage": 0,
101
- * "IdentityPoolId": "IDENTITY_POOL_ID",
102
- * "LastModifiedDate": 1.413231134115E9,
103
- * "SyncSessionsCount": null
104
- * }
105
- * },
106
- * "Version": "1.0"
107
- * }
108
- * </response>
109
- * </example>
110
- * </examples>
111
- */
112
- describeIdentityPoolUsage(args: DescribeIdentityPoolUsageCommandInput, options?: __HttpHandlerOptions): Promise<DescribeIdentityPoolUsageCommandOutput>;
113
- describeIdentityPoolUsage(args: DescribeIdentityPoolUsageCommandInput, cb: (err: any, data?: DescribeIdentityPoolUsageCommandOutput) => void): void;
114
- describeIdentityPoolUsage(args: DescribeIdentityPoolUsageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeIdentityPoolUsageCommandOutput) => void): void;
115
- /**
116
- * <p>Gets usage information for an identity, including number of datasets and data usage.</p>
117
- * <p>This API can be called with temporary user credentials provided by Cognito Identity or with developer credentials.</p>
118
- * <examples>
119
- * <example>
120
- * <name>DescribeIdentityUsage</name>
121
- * <description>The following examples have been edited for readability.</description>
122
- * <request>
123
- * POST / HTTP/1.1
124
- * CONTENT-TYPE: application/json
125
- * X-AMZN-REQUESTID: 33f9b4e4-a177-4aad-a3bb-6edb7980b283
126
- * X-AMZ-TARGET: com.amazonaws.cognito.sync.model.AWSCognitoSyncService.DescribeIdentityUsage
127
- * HOST: cognito-sync.us-east-1.amazonaws.com:443
128
- * X-AMZ-DATE: 20141111T215129Z
129
- * AUTHORIZATION: AWS4-HMAC-SHA256 Credential=<credential>, SignedHeaders=content-type;host;x-amz-date;x-amz-target;x-amzn-requestid, Signature=<signature>
130
- *
131
- * {
132
- * "Operation": "com.amazonaws.cognito.sync.model#DescribeIdentityUsage",
133
- * "Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService",
134
- * "Input":
135
- * {
136
- * "IdentityPoolId": "IDENTITY_POOL_ID",
137
- * "IdentityId": "IDENTITY_ID"
138
- * }
139
- * }
140
- * </request>
141
- * <response>
142
- * 1.1 200 OK
143
- * x-amzn-requestid: 33f9b4e4-a177-4aad-a3bb-6edb7980b283
144
- * content-type: application/json
145
- * content-length: 318
146
- * date: Tue, 11 Nov 2014 21:51:29 GMT
147
- *
148
- * {
149
- * "Output":
150
- * {
151
- * "__type": "com.amazonaws.cognito.sync.model#DescribeIdentityUsageResponse",
152
- * "IdentityUsage":
153
- * {
154
- * "DataStorage": 16,
155
- * "DatasetCount": 1,
156
- * "IdentityId": "IDENTITY_ID",
157
- * "IdentityPoolId": "IDENTITY_POOL_ID",
158
- * "LastModifiedDate": 1.412974081336E9
159
- * }
160
- * },
161
- * "Version": "1.0"
162
- * }
163
- * </response>
164
- * </example>
165
- * </examples>
166
- */
167
- describeIdentityUsage(args: DescribeIdentityUsageCommandInput, options?: __HttpHandlerOptions): Promise<DescribeIdentityUsageCommandOutput>;
168
- describeIdentityUsage(args: DescribeIdentityUsageCommandInput, cb: (err: any, data?: DescribeIdentityUsageCommandOutput) => void): void;
169
- describeIdentityUsage(args: DescribeIdentityUsageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeIdentityUsageCommandOutput) => void): void;
170
- /**
171
- * <p>Get the status of the last BulkPublish operation for an identity pool.</p><p>This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.</p>
172
- */
173
- getBulkPublishDetails(args: GetBulkPublishDetailsCommandInput, options?: __HttpHandlerOptions): Promise<GetBulkPublishDetailsCommandOutput>;
174
- getBulkPublishDetails(args: GetBulkPublishDetailsCommandInput, cb: (err: any, data?: GetBulkPublishDetailsCommandOutput) => void): void;
175
- getBulkPublishDetails(args: GetBulkPublishDetailsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetBulkPublishDetailsCommandOutput) => void): void;
176
- /**
177
- * <p>Gets the events and the corresponding Lambda functions associated with an identity pool.</p><p>This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.</p>
178
- */
179
- getCognitoEvents(args: GetCognitoEventsCommandInput, options?: __HttpHandlerOptions): Promise<GetCognitoEventsCommandOutput>;
180
- getCognitoEvents(args: GetCognitoEventsCommandInput, cb: (err: any, data?: GetCognitoEventsCommandOutput) => void): void;
181
- getCognitoEvents(args: GetCognitoEventsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCognitoEventsCommandOutput) => void): void;
182
- /**
183
- * <p>Gets the configuration settings of an identity pool.</p><p>This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.</p>
184
- * <examples>
185
- * <example>
186
- * <name>GetIdentityPoolConfiguration</name>
187
- * <description>The following examples have been edited for readability.</description>
188
- * <request>
189
- * POST / HTTP/1.1
190
- * CONTENT-TYPE: application/json
191
- * X-AMZN-REQUESTID: b1cfdd4b-f620-4fe4-be0f-02024a1d33da
192
- * X-AMZ-TARGET: com.amazonaws.cognito.sync.model.AWSCognitoSyncService.GetIdentityPoolConfiguration
193
- * HOST: cognito-sync.us-east-1.amazonaws.com
194
- * X-AMZ-DATE: 20141004T195722Z
195
- * AUTHORIZATION: AWS4-HMAC-SHA256 Credential=<credential>, SignedHeaders=content-type;content-length;host;x-amz-date;x-amz-target, Signature=<signature>
196
- *
197
- * {
198
- * "Operation": "com.amazonaws.cognito.sync.model#GetIdentityPoolConfiguration",
199
- * "Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService",
200
- * "Input":
201
- * {
202
- * "IdentityPoolId": "ID_POOL_ID"
203
- * }
204
- * }
205
- *
206
- * </request>
207
- * <response>
208
- * 1.1 200 OK
209
- * x-amzn-requestid: b1cfdd4b-f620-4fe4-be0f-02024a1d33da
210
- * date: Sat, 04 Oct 2014 19:57:22 GMT
211
- * content-type: application/json
212
- * content-length: 332
213
- *
214
- * {
215
- * "Output":
216
- * {
217
- * "__type": "com.amazonaws.cognito.sync.model#GetIdentityPoolConfigurationResponse",
218
- * "IdentityPoolId": "ID_POOL_ID",
219
- * "PushSync":
220
- * {
221
- * "ApplicationArns": ["PLATFORMARN1", "PLATFORMARN2"],
222
- * "RoleArn": "ROLEARN"
223
- * }
224
- * },
225
- * "Version": "1.0"
226
- * }
227
- * </response>
228
- * </example>
229
- * </examples>
230
- */
231
- getIdentityPoolConfiguration(args: GetIdentityPoolConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<GetIdentityPoolConfigurationCommandOutput>;
232
- getIdentityPoolConfiguration(args: GetIdentityPoolConfigurationCommandInput, cb: (err: any, data?: GetIdentityPoolConfigurationCommandOutput) => void): void;
233
- getIdentityPoolConfiguration(args: GetIdentityPoolConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetIdentityPoolConfigurationCommandOutput) => void): void;
234
- /**
235
- * <p>Lists datasets for an identity. With Amazon Cognito Sync, each identity has access only to
236
- * its own data. Thus, the credentials used to make this API call need to have access to the
237
- * identity data.</p>
238
- * <p>ListDatasets can be called with temporary user credentials provided by Cognito
239
- * Identity or with developer credentials. You should use the Cognito Identity credentials to
240
- * make this API call.</p>
241
- * <examples>
242
- * <example>
243
- * <name>ListDatasets</name>
244
- * <description>The following examples have been edited for readability.</description>
245
- * <request>
246
- * POST / HTTP/1.1
247
- * CONTENT-TYPE: application/json
248
- * X-AMZN-REQUESTID: 15225768-209f-4078-aaed-7494ace9f2db
249
- * X-AMZ-TARGET: com.amazonaws.cognito.sync.model.AWSCognitoSyncService.ListDatasets
250
- * HOST: cognito-sync.us-east-1.amazonaws.com:443
251
- * X-AMZ-DATE: 20141111T215640Z
252
- * AUTHORIZATION: AWS4-HMAC-SHA256 Credential=<credential>, SignedHeaders=content-type;host;x-amz-date;x-amz-target;x-amzn-requestid, Signature=<signature>
253
- *
254
- * {
255
- * "Operation": "com.amazonaws.cognito.sync.model#ListDatasets",
256
- * "Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService",
257
- * "Input":
258
- * {
259
- * "IdentityPoolId": "IDENTITY_POOL_ID",
260
- * "IdentityId": "IDENTITY_ID",
261
- * "MaxResults": "3"
262
- * }
263
- * }
264
- * </request>
265
- * <response>
266
- * 1.1 200 OK
267
- * x-amzn-requestid: 15225768-209f-4078-aaed-7494ace9f2db, 15225768-209f-4078-aaed-7494ace9f2db
268
- * content-type: application/json
269
- * content-length: 355
270
- * date: Tue, 11 Nov 2014 21:56:40 GMT
271
- *
272
- * {
273
- * "Output":
274
- * {
275
- * "__type": "com.amazonaws.cognito.sync.model#ListDatasetsResponse",
276
- * "Count": 1,
277
- * "Datasets": [
278
- * {
279
- * "CreationDate": 1.412974057151E9,
280
- * "DataStorage": 16,
281
- * "DatasetName": "my_list",
282
- * "IdentityId": "IDENTITY_ID",
283
- * "LastModifiedBy": "123456789012",
284
- * "LastModifiedDate": 1.412974057244E9,
285
- * "NumRecords": 1
286
- * }],
287
- * "NextToken": null
288
- * },
289
- * "Version": "1.0"
290
- * }
291
- * </response>
292
- * </example>
293
- * </examples>
294
- */
295
- listDatasets(args: ListDatasetsCommandInput, options?: __HttpHandlerOptions): Promise<ListDatasetsCommandOutput>;
296
- listDatasets(args: ListDatasetsCommandInput, cb: (err: any, data?: ListDatasetsCommandOutput) => void): void;
297
- listDatasets(args: ListDatasetsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListDatasetsCommandOutput) => void): void;
298
- /**
299
- * <p>Gets a list of identity pools registered with Cognito.</p>
300
- * <p>ListIdentityPoolUsage can only be called with developer credentials. You
301
- * cannot make this API call with the temporary user credentials provided by Cognito
302
- * Identity.</p>
303
- * <examples>
304
- * <example>
305
- * <name>ListIdentityPoolUsage</name>
306
- * <description>The following examples have been edited for readability.</description>
307
- * <request>
308
- * POST / HTTP/1.1
309
- * CONTENT-TYPE: application/json
310
- * X-AMZN-REQUESTID: 9be7c425-ef05-48c0-aef3-9f0ff2fe17d3
311
- * X-AMZ-TARGET: com.amazonaws.cognito.sync.model.AWSCognitoSyncService.ListIdentityPoolUsage
312
- * HOST: cognito-sync.us-east-1.amazonaws.com:443
313
- * X-AMZ-DATE: 20141111T211414Z
314
- * AUTHORIZATION: AWS4-HMAC-SHA256 Credential=<credential>, SignedHeaders=content-type;host;x-amz-date;x-amz-target;x-amzn-requestid, Signature=<signature>
315
- *
316
- * {
317
- * "Operation": "com.amazonaws.cognito.sync.model#ListIdentityPoolUsage",
318
- * "Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService",
319
- * "Input":
320
- * {
321
- * "MaxResults": "2"
322
- * }
323
- * }
324
- * </request>
325
- * <response>
326
- * 1.1 200 OK
327
- * x-amzn-requestid: 9be7c425-ef05-48c0-aef3-9f0ff2fe17d3
328
- * content-type: application/json
329
- * content-length: 519
330
- * date: Tue, 11 Nov 2014 21:14:14 GMT
331
- *
332
- * {
333
- * "Output":
334
- * {
335
- * "__type": "com.amazonaws.cognito.sync.model#ListIdentityPoolUsageResponse",
336
- * "Count": 2,
337
- * "IdentityPoolUsages": [
338
- * {
339
- * "DataStorage": 0,
340
- * "IdentityPoolId": "IDENTITY_POOL_ID",
341
- * "LastModifiedDate": 1.413836234607E9,
342
- * "SyncSessionsCount": null
343
- * },
344
- * {
345
- * "DataStorage": 0,
346
- * "IdentityPoolId": "IDENTITY_POOL_ID",
347
- * "LastModifiedDate": 1.410892165601E9,
348
- * "SyncSessionsCount": null
349
- * }],
350
- * "MaxResults": 2,
351
- * "NextToken": "dXMtZWFzdC0xOjBjMWJhMDUyLWUwOTgtNDFmYS1hNzZlLWVhYTJjMTI1Zjg2MQ=="
352
- * },
353
- * "Version": "1.0"
354
- * }
355
- * </response>
356
- * </example>
357
- * </examples>
358
- */
359
- listIdentityPoolUsage(args: ListIdentityPoolUsageCommandInput, options?: __HttpHandlerOptions): Promise<ListIdentityPoolUsageCommandOutput>;
360
- listIdentityPoolUsage(args: ListIdentityPoolUsageCommandInput, cb: (err: any, data?: ListIdentityPoolUsageCommandOutput) => void): void;
361
- listIdentityPoolUsage(args: ListIdentityPoolUsageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListIdentityPoolUsageCommandOutput) => void): void;
362
- /**
363
- * <p>Gets paginated records, optionally changed after a particular sync count for a dataset and
364
- * identity. With Amazon Cognito Sync, each identity has access only to its own data. Thus,
365
- * the credentials used to make this API call need to have access to the identity data.</p>
366
- * <p>ListRecords can be called with temporary user credentials provided by Cognito
367
- * Identity or with developer credentials. You should use Cognito Identity credentials to make
368
- * this API call.</p>
369
- * <examples>
370
- * <example>
371
- * <name>ListRecords</name>
372
- * <description>The following examples have been edited for readability.</description>
373
- * <request>
374
- * POST / HTTP/1.1
375
- * CONTENT-TYPE: application/json
376
- * X-AMZN-REQUESTID: b3d2e31e-d6b7-4612-8e84-c9ba288dab5d
377
- * X-AMZ-TARGET: com.amazonaws.cognito.sync.model.AWSCognitoSyncService.ListRecords
378
- * HOST: cognito-sync.us-east-1.amazonaws.com:443
379
- * X-AMZ-DATE: 20141111T183230Z
380
- * AUTHORIZATION: AWS4-HMAC-SHA256 Credential=<credential>, SignedHeaders=content-type;host;x-amz-date;x-amz-target;x-amzn-requestid, Signature=<signature>
381
- *
382
- * {
383
- * "Operation": "com.amazonaws.cognito.sync.model#ListRecords",
384
- * "Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService",
385
- * "Input":
386
- * {
387
- * "IdentityPoolId": "IDENTITY_POOL_ID",
388
- * "IdentityId": "IDENTITY_ID",
389
- * "DatasetName": "newDataSet"
390
- * }
391
- * }
392
- * </request>
393
- * <response>
394
- * 1.1 200 OK
395
- * x-amzn-requestid: b3d2e31e-d6b7-4612-8e84-c9ba288dab5d
396
- * content-type: application/json
397
- * content-length: 623
398
- * date: Tue, 11 Nov 2014 18:32:30 GMT
399
- *
400
- * {
401
- * "Output":
402
- * {
403
- * "__type": "com.amazonaws.cognito.sync.model#ListRecordsResponse",
404
- * "Count": 0,
405
- * "DatasetDeletedAfterRequestedSyncCount": false,
406
- * "DatasetExists": false,
407
- * "DatasetSyncCount": 0,
408
- * "LastModifiedBy": null,
409
- * "MergedDatasetNames": null,
410
- * "NextToken": null,
411
- * "Records": [],
412
- * "SyncSessionToken": "SYNC_SESSION_TOKEN"
413
- * },
414
- * "Version": "1.0"
415
- * }
416
- * </response>
417
- * </example>
418
- * </examples>
419
- */
420
- listRecords(args: ListRecordsCommandInput, options?: __HttpHandlerOptions): Promise<ListRecordsCommandOutput>;
421
- listRecords(args: ListRecordsCommandInput, cb: (err: any, data?: ListRecordsCommandOutput) => void): void;
422
- listRecords(args: ListRecordsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRecordsCommandOutput) => void): void;
423
- /**
424
- * <p>Registers a device to receive push sync notifications.</p><p>This API can only be called with temporary credentials provided by Cognito Identity. You cannot call this API with developer credentials.</p>
425
- * <examples>
426
- * <example>
427
- * <name>RegisterDevice</name>
428
- * <description>The following examples have been edited for readability.</description>
429
- * <request>
430
- * POST / HTTP/1.1
431
- * CONTENT-TYPE: application/json
432
- * X-AMZN-REQUESTID: 368f9200-3eca-449e-93b3-7b9c08d8e185
433
- * X-AMZ-TARGET: com.amazonaws.cognito.sync.model.AWSCognitoSyncService.RegisterDevice
434
- * HOST: cognito-sync.us-east-1.amazonaws.com
435
- * X-AMZ-DATE: 20141004T194643Z
436
- * X-AMZ-SECURITY-TOKEN: <securitytoken>
437
- * AUTHORIZATION: AWS4-HMAC-SHA256 Credential=<credential>, SignedHeaders=content-type;content-length;host;x-amz-date;x-amz-target, Signature=<signature>
438
- *
439
- * {
440
- * "Operation": "com.amazonaws.cognito.sync.model#RegisterDevice",
441
- * "Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService",
442
- * "Input":
443
- * {
444
- * "IdentityPoolId": "ID_POOL_ID",
445
- * "IdentityId": "IDENTITY_ID",
446
- * "Platform": "GCM",
447
- * "Token": "PUSH_TOKEN"
448
- * }
449
- * }
450
- * </request>
451
- * <response>
452
- * 1.1 200 OK
453
- * x-amzn-requestid: 368f9200-3eca-449e-93b3-7b9c08d8e185
454
- * date: Sat, 04 Oct 2014 19:46:44 GMT
455
- * content-type: application/json
456
- * content-length: 145
457
- *
458
- * {
459
- * "Output":
460
- * {
461
- * "__type": "com.amazonaws.cognito.sync.model#RegisterDeviceResponse",
462
- * "DeviceId": "5cd28fbe-dd83-47ab-9f83-19093a5fb014"
463
- * },
464
- * "Version": "1.0"
465
- * }
466
- * </response>
467
- * </example>
468
- * </examples>
469
- */
470
- registerDevice(args: RegisterDeviceCommandInput, options?: __HttpHandlerOptions): Promise<RegisterDeviceCommandOutput>;
471
- registerDevice(args: RegisterDeviceCommandInput, cb: (err: any, data?: RegisterDeviceCommandOutput) => void): void;
472
- registerDevice(args: RegisterDeviceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RegisterDeviceCommandOutput) => void): void;
473
- /**
474
- * <p>Sets the AWS Lambda function for a given event type for an identity pool. This request only updates the key/value pair specified. Other key/values pairs are not updated. To remove a key value pair, pass a empty value for the particular key.</p><p>This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.</p>
475
- */
476
- setCognitoEvents(args: SetCognitoEventsCommandInput, options?: __HttpHandlerOptions): Promise<SetCognitoEventsCommandOutput>;
477
- setCognitoEvents(args: SetCognitoEventsCommandInput, cb: (err: any, data?: SetCognitoEventsCommandOutput) => void): void;
478
- setCognitoEvents(args: SetCognitoEventsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SetCognitoEventsCommandOutput) => void): void;
479
- /**
480
- * <p>Sets the necessary configuration for push sync.</p><p>This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.</p>
481
- * <examples>
482
- * <example>
483
- * <name>SetIdentityPoolConfiguration</name>
484
- * <description>The following examples have been edited for readability.</description>
485
- * <request>
486
- * POST / HTTP/1.1
487
- * CONTENT-TYPE: application/json
488
- * X-AMZN-REQUESTID: a46db021-f5dd-45d6-af5b-7069fa4a211b
489
- * X-AMZ-TARGET: com.amazonaws.cognito.sync.model.AWSCognitoSyncService.SetIdentityPoolConfiguration
490
- * HOST: cognito-sync.us-east-1.amazonaws.com
491
- * X-AMZ-DATE: 20141004T200006Z
492
- * AUTHORIZATION: AWS4-HMAC-SHA256 Credential=<credential>, SignedHeaders=content-type;content-length;host;x-amz-date;x-amz-target, Signature=<signature>
493
- *
494
- * {
495
- * "Operation": "com.amazonaws.cognito.sync.model#SetIdentityPoolConfiguration",
496
- * "Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService",
497
- * "Input":
498
- * {
499
- * "IdentityPoolId": "ID_POOL_ID",
500
- * "PushSync":
501
- * {
502
- * "ApplicationArns": ["PLATFORMARN1", "PLATFORMARN2"],
503
- * "RoleArn": "ROLEARN"
504
- * }
505
- * }
506
- * }
507
- * </request>
508
- * <response>
509
- * 1.1 200 OK
510
- * x-amzn-requestid: a46db021-f5dd-45d6-af5b-7069fa4a211b
511
- * date: Sat, 04 Oct 2014 20:00:06 GMT
512
- * content-type: application/json
513
- * content-length: 332
514
- *
515
- * {
516
- * "Output":
517
- * {
518
- * "__type": "com.amazonaws.cognito.sync.model#SetIdentityPoolConfigurationResponse",
519
- * "IdentityPoolId": "ID_POOL_ID",
520
- * "PushSync":
521
- * {
522
- * "ApplicationArns": ["PLATFORMARN1", "PLATFORMARN2"],
523
- * "RoleArn": "ROLEARN"
524
- * }
525
- * },
526
- * "Version": "1.0"
527
- * }
528
- * </response>
529
- * </example>
530
- * </examples>
531
- */
532
- setIdentityPoolConfiguration(args: SetIdentityPoolConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<SetIdentityPoolConfigurationCommandOutput>;
533
- setIdentityPoolConfiguration(args: SetIdentityPoolConfigurationCommandInput, cb: (err: any, data?: SetIdentityPoolConfigurationCommandOutput) => void): void;
534
- setIdentityPoolConfiguration(args: SetIdentityPoolConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SetIdentityPoolConfigurationCommandOutput) => void): void;
535
- /**
536
- * <p>Subscribes to receive notifications when a dataset is modified by another device.</p><p>This API can only be called with temporary credentials provided by Cognito Identity. You cannot call this API with developer credentials.</p>
537
- * <examples>
538
- * <example>
539
- * <name>SubscribeToDataset</name>
540
- * <description>The following examples have been edited for readability.</description>
541
- * <request>
542
- * POST / HTTP/1.1
543
- * CONTENT-TYPE: application/json
544
- * X-AMZN-REQUESTID: 8b9932b7-201d-4418-a960-0a470e11de9f
545
- * X-AMZ-TARGET: com.amazonaws.cognito.sync.model.AWSCognitoSyncService.SubscribeToDataset
546
- * HOST: cognito-sync.us-east-1.amazonaws.com
547
- * X-AMZ-DATE: 20141004T195350Z
548
- * X-AMZ-SECURITY-TOKEN: <securitytoken>
549
- * AUTHORIZATION: AWS4-HMAC-SHA256 Credential=<credential>, SignedHeaders=content-type;content-length;host;x-amz-date;x-amz-target, Signature=<signature>
550
- *
551
- * {
552
- * "Operation": "com.amazonaws.cognito.sync.model#SubscribeToDataset",
553
- * "Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService",
554
- * "Input":
555
- * {
556
- * "IdentityPoolId": "ID_POOL_ID",
557
- * "IdentityId": "IDENTITY_ID",
558
- * "DatasetName": "Rufus",
559
- * "DeviceId": "5cd28fbe-dd83-47ab-9f83-19093a5fb014"
560
- * }
561
- * }
562
- * </request>
563
- * <response>
564
- * 1.1 200 OK
565
- * x-amzn-requestid: 8b9932b7-201d-4418-a960-0a470e11de9f
566
- * date: Sat, 04 Oct 2014 19:53:50 GMT
567
- * content-type: application/json
568
- * content-length: 99
569
- *
570
- * {
571
- * "Output":
572
- * {
573
- * "__type": "com.amazonaws.cognito.sync.model#SubscribeToDatasetResponse"
574
- * },
575
- * "Version": "1.0"
576
- * }
577
- * </response>
578
- * </example>
579
- * </examples>
580
- */
581
- subscribeToDataset(args: SubscribeToDatasetCommandInput, options?: __HttpHandlerOptions): Promise<SubscribeToDatasetCommandOutput>;
582
- subscribeToDataset(args: SubscribeToDatasetCommandInput, cb: (err: any, data?: SubscribeToDatasetCommandOutput) => void): void;
583
- subscribeToDataset(args: SubscribeToDatasetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SubscribeToDatasetCommandOutput) => void): void;
584
- /**
585
- * <p>Unsubscribes from receiving notifications when a dataset is modified by another device.</p><p>This API can only be called with temporary credentials provided by Cognito Identity. You cannot call this API with developer credentials.</p>
586
- * <examples>
587
- * <example>
588
- * <name>UnsubscribeFromDataset</name>
589
- * <description>The following examples have been edited for readability.</description>
590
- * <request>
591
- * POST / HTTP/1.1
592
- * CONTENT-TYPE: application/json
593
- * X-AMZ-REQUESTSUPERTRACE: true
594
- * X-AMZN-REQUESTID: 676896d6-14ca-45b1-8029-6d36b10a077e
595
- * X-AMZ-TARGET: com.amazonaws.cognito.sync.model.AWSCognitoSyncService.UnsubscribeFromDataset
596
- * HOST: cognito-sync.us-east-1.amazonaws.com
597
- * X-AMZ-DATE: 20141004T195446Z
598
- * X-AMZ-SECURITY-TOKEN: <securitytoken>
599
- * AUTHORIZATION: AWS4-HMAC-SHA256 Credential=<credential>, SignedHeaders=content-type;content-length;host;x-amz-date;x-amz-target, Signature=<signature>
600
- *
601
- * {
602
- * "Operation": "com.amazonaws.cognito.sync.model#UnsubscribeFromDataset",
603
- * "Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService",
604
- * "Input":
605
- * {
606
- * "IdentityPoolId": "ID_POOL_ID",
607
- * "IdentityId": "IDENTITY_ID",
608
- * "DatasetName": "Rufus",
609
- * "DeviceId": "5cd28fbe-dd83-47ab-9f83-19093a5fb014"
610
- * }
611
- * }
612
- * </request>
613
- * <response>
614
- * 1.1 200 OK
615
- * x-amzn-requestid: 676896d6-14ca-45b1-8029-6d36b10a077e
616
- * date: Sat, 04 Oct 2014 19:54:46 GMT
617
- * content-type: application/json
618
- * content-length: 103
619
- *
620
- * {
621
- * "Output":
622
- * {
623
- * "__type": "com.amazonaws.cognito.sync.model#UnsubscribeFromDatasetResponse"
624
- * },
625
- * "Version": "1.0"
626
- * }
627
- * </response>
628
- * </example>
629
- * </examples>
630
- */
631
- unsubscribeFromDataset(args: UnsubscribeFromDatasetCommandInput, options?: __HttpHandlerOptions): Promise<UnsubscribeFromDatasetCommandOutput>;
632
- unsubscribeFromDataset(args: UnsubscribeFromDatasetCommandInput, cb: (err: any, data?: UnsubscribeFromDatasetCommandOutput) => void): void;
633
- unsubscribeFromDataset(args: UnsubscribeFromDatasetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UnsubscribeFromDatasetCommandOutput) => void): void;
634
- /**
635
- * <p>Posts updates to records and adds and deletes records for a dataset and user.</p>
636
- * <p>The sync count in the record patch is your last known sync count for that record. The server will reject an UpdateRecords request with a ResourceConflictException if you try to patch a record with a new value but a stale sync count.</p><p>For example, if the sync count on the server is 5 for a key called highScore and you try and submit a new highScore with sync count of 4, the request will be rejected. To obtain the current sync count for a record, call ListRecords. On a successful update of the record, the response returns the new sync count for that record. You should present that sync count the next time you try to update that same record. When the record does not exist, specify the sync count as 0.</p>
637
- * <p>This API can be called with temporary user credentials provided by Cognito Identity or with developer credentials.</p>
638
- */
639
- updateRecords(args: UpdateRecordsCommandInput, options?: __HttpHandlerOptions): Promise<UpdateRecordsCommandOutput>;
640
- updateRecords(args: UpdateRecordsCommandInput, cb: (err: any, data?: UpdateRecordsCommandOutput) => void): void;
641
- updateRecords(args: UpdateRecordsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateRecordsCommandOutput) => void): void;
642
- }