@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,109 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DescribeIdentityPoolUsageCommand = void 0;
4
- const models_0_1 = require("../models/models_0");
5
- const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
6
- const middleware_serde_1 = require("@aws-sdk/middleware-serde");
7
- const smithy_client_1 = require("@aws-sdk/smithy-client");
8
- /**
9
- * <p>Gets usage details (for example, data storage) about a particular identity pool.</p>
10
- * <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>
11
- *
12
- * <examples>
13
- * <example>
14
- * <name>DescribeIdentityPoolUsage</name>
15
- * <description>The following examples have been edited for readability.</description>
16
- * <request>
17
- * POST / HTTP/1.1
18
- * CONTENT-TYPE: application/json
19
- * X-AMZN-REQUESTID: 8dc0e749-c8cd-48bd-8520-da6be00d528b
20
- * X-AMZ-TARGET: com.amazonaws.cognito.sync.model.AWSCognitoSyncService.DescribeIdentityPoolUsage
21
- * HOST: cognito-sync.us-east-1.amazonaws.com:443
22
- * X-AMZ-DATE: 20141111T205737Z
23
- * AUTHORIZATION: AWS4-HMAC-SHA256 Credential=<credential>, SignedHeaders=content-type;host;x-amz-date;x-amz-target;x-amzn-requestid, Signature=<signature>
24
- *
25
- * {
26
- * "Operation": "com.amazonaws.cognito.sync.model#DescribeIdentityPoolUsage",
27
- * "Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService",
28
- * "Input":
29
- * {
30
- * "IdentityPoolId": "IDENTITY_POOL_ID"
31
- * }
32
- * }
33
- * </request>
34
- * <response>
35
- * 1.1 200 OK
36
- * x-amzn-requestid: 8dc0e749-c8cd-48bd-8520-da6be00d528b
37
- * content-type: application/json
38
- * content-length: 271
39
- * date: Tue, 11 Nov 2014 20:57:37 GMT
40
- *
41
- * {
42
- * "Output":
43
- * {
44
- * "__type": "com.amazonaws.cognito.sync.model#DescribeIdentityPoolUsageResponse",
45
- * "IdentityPoolUsage":
46
- * {
47
- * "DataStorage": 0,
48
- * "IdentityPoolId": "IDENTITY_POOL_ID",
49
- * "LastModifiedDate": 1.413231134115E9,
50
- * "SyncSessionsCount": null
51
- * }
52
- * },
53
- * "Version": "1.0"
54
- * }
55
- * </response>
56
- * </example>
57
- * </examples>
58
- * @example
59
- * Use a bare-bones client and the command you need to make an API call.
60
- * ```javascript
61
- * import { CognitoSyncClient, DescribeIdentityPoolUsageCommand } from "@aws-sdk/client-cognito-sync"; // ES Modules import
62
- * // const { CognitoSyncClient, DescribeIdentityPoolUsageCommand } = require("@aws-sdk/client-cognito-sync"); // CommonJS import
63
- * const client = new CognitoSyncClient(config);
64
- * const command = new DescribeIdentityPoolUsageCommand(input);
65
- * const response = await client.send(command);
66
- * ```
67
- *
68
- * @see {@link DescribeIdentityPoolUsageCommandInput} for command's `input` shape.
69
- * @see {@link DescribeIdentityPoolUsageCommandOutput} for command's `response` shape.
70
- * @see {@link CognitoSyncClientResolvedConfig | config} for command's `input` shape.
71
- *
72
- */
73
- class DescribeIdentityPoolUsageCommand extends smithy_client_1.Command {
74
- // Start section: command_properties
75
- // End section: command_properties
76
- constructor(input) {
77
- // Start section: command_constructor
78
- super();
79
- this.input = input;
80
- // End section: command_constructor
81
- }
82
- /**
83
- * @internal
84
- */
85
- resolveMiddleware(clientStack, configuration, options) {
86
- this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
87
- const stack = clientStack.concat(this.middlewareStack);
88
- const { logger } = configuration;
89
- const clientName = "CognitoSyncClient";
90
- const commandName = "DescribeIdentityPoolUsageCommand";
91
- const handlerExecutionContext = {
92
- logger,
93
- clientName,
94
- commandName,
95
- inputFilterSensitiveLog: models_0_1.DescribeIdentityPoolUsageRequest.filterSensitiveLog,
96
- outputFilterSensitiveLog: models_0_1.DescribeIdentityPoolUsageResponse.filterSensitiveLog,
97
- };
98
- const { requestHandler } = configuration;
99
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
100
- }
101
- serialize(input, context) {
102
- return Aws_restJson1_1.serializeAws_restJson1DescribeIdentityPoolUsageCommand(input, context);
103
- }
104
- deserialize(output, context) {
105
- return Aws_restJson1_1.deserializeAws_restJson1DescribeIdentityPoolUsageCommand(output, context);
106
- }
107
- }
108
- exports.DescribeIdentityPoolUsageCommand = DescribeIdentityPoolUsageCommand;
109
- //# sourceMappingURL=DescribeIdentityPoolUsageCommand.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DescribeIdentityPoolUsageCommand.js","sourceRoot":"","sources":["../../../commands/DescribeIdentityPoolUsageCommand.ts"],"names":[],"mappings":";;;AACA,iDAAyG;AACzG,8DAGoC;AACpC,gEAA2D;AAE3D,0DAA6D;AAc7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgEG;AACH,MAAa,gCAAiC,SAAQ,uBAIrD;IACC,oCAAoC;IACpC,kCAAkC;IAElC,YAAqB,KAA4C;QAC/D,qCAAqC;QACrC,KAAK,EAAE,CAAC;QAFW,UAAK,GAAL,KAAK,CAAuC;QAG/D,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,iBAAiB,CACf,WAAmE,EACnE,aAA8C,EAC9C,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,iCAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,MAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAEvD,MAAM,EAAE,MAAM,EAAE,GAAG,aAAa,CAAC;QACjC,MAAM,UAAU,GAAG,mBAAmB,CAAC;QACvC,MAAM,WAAW,GAAG,kCAAkC,CAAC;QACvD,MAAM,uBAAuB,GAA4B;YACvD,MAAM;YACN,UAAU;YACV,WAAW;YACX,uBAAuB,EAAE,2CAAgC,CAAC,kBAAkB;YAC5E,wBAAwB,EAAE,4CAAiC,CAAC,kBAAkB;SAC/E,CAAC;QACF,MAAM,EAAE,cAAc,EAAE,GAAG,aAAa,CAAC;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,CAAC,OAAsC,EAAE,EAAE,CACzC,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,SAAS,CAAC,KAA4C,EAAE,OAAuB;QACrF,OAAO,sEAAsD,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;IAEO,WAAW,CACjB,MAAsB,EACtB,OAAuB;QAEvB,OAAO,wEAAwD,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnF,CAAC;CAIF;AAzDD,4EAyDC"}
@@ -1,110 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DescribeIdentityUsageCommand = void 0;
4
- const models_0_1 = require("../models/models_0");
5
- const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
6
- const middleware_serde_1 = require("@aws-sdk/middleware-serde");
7
- const smithy_client_1 = require("@aws-sdk/smithy-client");
8
- /**
9
- * <p>Gets usage information for an identity, including number of datasets and data usage.</p>
10
- * <p>This API can be called with temporary user credentials provided by Cognito Identity or with developer credentials.</p>
11
- * <examples>
12
- * <example>
13
- * <name>DescribeIdentityUsage</name>
14
- * <description>The following examples have been edited for readability.</description>
15
- * <request>
16
- * POST / HTTP/1.1
17
- * CONTENT-TYPE: application/json
18
- * X-AMZN-REQUESTID: 33f9b4e4-a177-4aad-a3bb-6edb7980b283
19
- * X-AMZ-TARGET: com.amazonaws.cognito.sync.model.AWSCognitoSyncService.DescribeIdentityUsage
20
- * HOST: cognito-sync.us-east-1.amazonaws.com:443
21
- * X-AMZ-DATE: 20141111T215129Z
22
- * AUTHORIZATION: AWS4-HMAC-SHA256 Credential=<credential>, SignedHeaders=content-type;host;x-amz-date;x-amz-target;x-amzn-requestid, Signature=<signature>
23
- *
24
- * {
25
- * "Operation": "com.amazonaws.cognito.sync.model#DescribeIdentityUsage",
26
- * "Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService",
27
- * "Input":
28
- * {
29
- * "IdentityPoolId": "IDENTITY_POOL_ID",
30
- * "IdentityId": "IDENTITY_ID"
31
- * }
32
- * }
33
- * </request>
34
- * <response>
35
- * 1.1 200 OK
36
- * x-amzn-requestid: 33f9b4e4-a177-4aad-a3bb-6edb7980b283
37
- * content-type: application/json
38
- * content-length: 318
39
- * date: Tue, 11 Nov 2014 21:51:29 GMT
40
- *
41
- * {
42
- * "Output":
43
- * {
44
- * "__type": "com.amazonaws.cognito.sync.model#DescribeIdentityUsageResponse",
45
- * "IdentityUsage":
46
- * {
47
- * "DataStorage": 16,
48
- * "DatasetCount": 1,
49
- * "IdentityId": "IDENTITY_ID",
50
- * "IdentityPoolId": "IDENTITY_POOL_ID",
51
- * "LastModifiedDate": 1.412974081336E9
52
- * }
53
- * },
54
- * "Version": "1.0"
55
- * }
56
- * </response>
57
- * </example>
58
- * </examples>
59
- * @example
60
- * Use a bare-bones client and the command you need to make an API call.
61
- * ```javascript
62
- * import { CognitoSyncClient, DescribeIdentityUsageCommand } from "@aws-sdk/client-cognito-sync"; // ES Modules import
63
- * // const { CognitoSyncClient, DescribeIdentityUsageCommand } = require("@aws-sdk/client-cognito-sync"); // CommonJS import
64
- * const client = new CognitoSyncClient(config);
65
- * const command = new DescribeIdentityUsageCommand(input);
66
- * const response = await client.send(command);
67
- * ```
68
- *
69
- * @see {@link DescribeIdentityUsageCommandInput} for command's `input` shape.
70
- * @see {@link DescribeIdentityUsageCommandOutput} for command's `response` shape.
71
- * @see {@link CognitoSyncClientResolvedConfig | config} for command's `input` shape.
72
- *
73
- */
74
- class DescribeIdentityUsageCommand extends smithy_client_1.Command {
75
- // Start section: command_properties
76
- // End section: command_properties
77
- constructor(input) {
78
- // Start section: command_constructor
79
- super();
80
- this.input = input;
81
- // End section: command_constructor
82
- }
83
- /**
84
- * @internal
85
- */
86
- resolveMiddleware(clientStack, configuration, options) {
87
- this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
88
- const stack = clientStack.concat(this.middlewareStack);
89
- const { logger } = configuration;
90
- const clientName = "CognitoSyncClient";
91
- const commandName = "DescribeIdentityUsageCommand";
92
- const handlerExecutionContext = {
93
- logger,
94
- clientName,
95
- commandName,
96
- inputFilterSensitiveLog: models_0_1.DescribeIdentityUsageRequest.filterSensitiveLog,
97
- outputFilterSensitiveLog: models_0_1.DescribeIdentityUsageResponse.filterSensitiveLog,
98
- };
99
- const { requestHandler } = configuration;
100
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
101
- }
102
- serialize(input, context) {
103
- return Aws_restJson1_1.serializeAws_restJson1DescribeIdentityUsageCommand(input, context);
104
- }
105
- deserialize(output, context) {
106
- return Aws_restJson1_1.deserializeAws_restJson1DescribeIdentityUsageCommand(output, context);
107
- }
108
- }
109
- exports.DescribeIdentityUsageCommand = DescribeIdentityUsageCommand;
110
- //# sourceMappingURL=DescribeIdentityUsageCommand.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DescribeIdentityUsageCommand.js","sourceRoot":"","sources":["../../../commands/DescribeIdentityUsageCommand.ts"],"names":[],"mappings":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O,WAAW,CAAC,MAAsB,EAAE,OAAuB;QACjE,OAAO,oEAAoD,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;CAIF;AAtDD,oEAsDC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"GetBulkPublishDetailsCommand.js","sourceRoot":"","sources":["../../../commands/GetBulkPublishDetailsCommand.ts"],"names":[],"mappings":";;;AACA,iDAAiG;AACjG,8DAGoC;AACpC,gEAA2D;AAE3D,0DAA6D;AAc7D;;;;;;;;;;;;;;;;GAgBG;AACH,MAAa,4BAA6B,SAAQ,uBAIjD;IACC,oCAAoC;IACpC,kCAAkC;IAElC,YAAqB,KAAwC;QAC3D,qCAAqC;QACrC,KAAK,EAAE,CAAC;QAFW,UAAK,GAAL,KAAK,CAAmC;QAG3D,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,iBAAiB,CACf,WAAmE,EACnE,aAA8C,EAC9C,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,iCAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,MAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAEvD,MAAM,EAAE,MAAM,EAAE,GAAG,aAAa,CAAC;QACjC,MAAM,UAAU,GAAG,mBAAmB,CAAC;QACvC,MAAM,WAAW,GAAG,8BAA8B,CAAC;QACnD,MAAM,uBAAuB,GAA4B;YACvD,MAAM;YACN,UAAU;YACV,WAAW;YACX,uBAAuB,EAAE,uCAA4B,CAAC,kBAAkB;YACxE,wBAAwB,EAAE,wCAA6B,CAAC,kBAAkB;SAC3E,CAAC;QACF,MAAM,EAAE,cAAc,EAAE,GAAG,aAAa,CAAC;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,CAAC,OAAsC,EAAE,EAAE,CACzC,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAw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BAAkB;SACtE,CAAC;QACF,MAAM,EAAE,cAAc,EAAE,GAAG,aAAa,CAAC;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,CAAC,OAAsC,EAAE,EAAE,CACzC,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,SAAS,CAAC,KAAmC,EAAE,OAAuB;QAC5E,OAAO,6DAA6C,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAEO,WAAW,CAAC,MAAsB,EAAE,OAAuB;QACjE,OAAO,+DAA+C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;CAIF;AAtDD,0DAsDC"}
@@ -1,107 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetIdentityPoolConfigurationCommand = void 0;
4
- const models_0_1 = require("../models/models_0");
5
- const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
6
- const middleware_serde_1 = require("@aws-sdk/middleware-serde");
7
- const smithy_client_1 = require("@aws-sdk/smithy-client");
8
- /**
9
- * <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>
10
- * <examples>
11
- * <example>
12
- * <name>GetIdentityPoolConfiguration</name>
13
- * <description>The following examples have been edited for readability.</description>
14
- * <request>
15
- * POST / HTTP/1.1
16
- * CONTENT-TYPE: application/json
17
- * X-AMZN-REQUESTID: b1cfdd4b-f620-4fe4-be0f-02024a1d33da
18
- * X-AMZ-TARGET: com.amazonaws.cognito.sync.model.AWSCognitoSyncService.GetIdentityPoolConfiguration
19
- * HOST: cognito-sync.us-east-1.amazonaws.com
20
- * X-AMZ-DATE: 20141004T195722Z
21
- * AUTHORIZATION: AWS4-HMAC-SHA256 Credential=<credential>, SignedHeaders=content-type;content-length;host;x-amz-date;x-amz-target, Signature=<signature>
22
- *
23
- * {
24
- * "Operation": "com.amazonaws.cognito.sync.model#GetIdentityPoolConfiguration",
25
- * "Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService",
26
- * "Input":
27
- * {
28
- * "IdentityPoolId": "ID_POOL_ID"
29
- * }
30
- * }
31
- *
32
- * </request>
33
- * <response>
34
- * 1.1 200 OK
35
- * x-amzn-requestid: b1cfdd4b-f620-4fe4-be0f-02024a1d33da
36
- * date: Sat, 04 Oct 2014 19:57:22 GMT
37
- * content-type: application/json
38
- * content-length: 332
39
- *
40
- * {
41
- * "Output":
42
- * {
43
- * "__type": "com.amazonaws.cognito.sync.model#GetIdentityPoolConfigurationResponse",
44
- * "IdentityPoolId": "ID_POOL_ID",
45
- * "PushSync":
46
- * {
47
- * "ApplicationArns": ["PLATFORMARN1", "PLATFORMARN2"],
48
- * "RoleArn": "ROLEARN"
49
- * }
50
- * },
51
- * "Version": "1.0"
52
- * }
53
- * </response>
54
- * </example>
55
- * </examples>
56
- * @example
57
- * Use a bare-bones client and the command you need to make an API call.
58
- * ```javascript
59
- * import { CognitoSyncClient, GetIdentityPoolConfigurationCommand } from "@aws-sdk/client-cognito-sync"; // ES Modules import
60
- * // const { CognitoSyncClient, GetIdentityPoolConfigurationCommand } = require("@aws-sdk/client-cognito-sync"); // CommonJS import
61
- * const client = new CognitoSyncClient(config);
62
- * const command = new GetIdentityPoolConfigurationCommand(input);
63
- * const response = await client.send(command);
64
- * ```
65
- *
66
- * @see {@link GetIdentityPoolConfigurationCommandInput} for command's `input` shape.
67
- * @see {@link GetIdentityPoolConfigurationCommandOutput} for command's `response` shape.
68
- * @see {@link CognitoSyncClientResolvedConfig | config} for command's `input` shape.
69
- *
70
- */
71
- class GetIdentityPoolConfigurationCommand extends smithy_client_1.Command {
72
- // Start section: command_properties
73
- // End section: command_properties
74
- constructor(input) {
75
- // Start section: command_constructor
76
- super();
77
- this.input = input;
78
- // End section: command_constructor
79
- }
80
- /**
81
- * @internal
82
- */
83
- resolveMiddleware(clientStack, configuration, options) {
84
- this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
85
- const stack = clientStack.concat(this.middlewareStack);
86
- const { logger } = configuration;
87
- const clientName = "CognitoSyncClient";
88
- const commandName = "GetIdentityPoolConfigurationCommand";
89
- const handlerExecutionContext = {
90
- logger,
91
- clientName,
92
- commandName,
93
- inputFilterSensitiveLog: models_0_1.GetIdentityPoolConfigurationRequest.filterSensitiveLog,
94
- outputFilterSensitiveLog: models_0_1.GetIdentityPoolConfigurationResponse.filterSensitiveLog,
95
- };
96
- const { requestHandler } = configuration;
97
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
98
- }
99
- serialize(input, context) {
100
- return Aws_restJson1_1.serializeAws_restJson1GetIdentityPoolConfigurationCommand(input, context);
101
- }
102
- deserialize(output, context) {
103
- return Aws_restJson1_1.deserializeAws_restJson1GetIdentityPoolConfigurationCommand(output, context);
104
- }
105
- }
106
- exports.GetIdentityPoolConfigurationCommand = GetIdentityPoolConfigurationCommand;
107
- //# sourceMappingURL=GetIdentityPoolConfigurationCommand.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GetIdentityPoolConfigurationCommand.js","sourceRoot":"","sources":["../../../commands/GetIdentityPoolConfigurationCommand.ts"],"names":[],"mappings":";;;AACA,iDAA+G;AAC/G,8DAGoC;AACpC,gEAA2D;AAE3D,0DAA6D;AAgB7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AACH,MAAa,mCAAoC,SAAQ,uBAIxD;IACC,oCAAoC;IACpC,kCAAkC;IAElC,YAAqB,KAA+C;QAClE,qCAAqC;QACrC,KAAK,EAAE,CAAC;QAFW,UAAK,GAAL,KAAK,CAA0C;QAGlE,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,iBAAiB,CACf,WAAmE,EACnE,aAA8C,EAC9C,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,iCAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,MAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAEvD,MAAM,EAAE,MAAM,EAAE,GAAG,aAAa,CAAC;QACjC,MAAM,UAAU,GAAG,mBAAmB,CAAC;QACvC,MAAM,WAAW,GAAG,qCAAqC,CAAC;QAC1D,MAAM,uBAAuB,GAA4B;YACvD,MAAM;YACN,UAAU;YACV,WAAW;YACX,uBAAuB,EAAE,8CAAmC,CAAC,kBAAkB;YAC/E,wBAAwB,EAAE,+CAAoC,CAAC,kBAAkB;SAClF,CAAC;QACF,MAAM,EAAE,cAAc,EAAE,GAAG,aAAa,CAAC;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,CAAC,OAAsC,EAAE,EAAE,CACzC,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,SAAS,CAAC,KAA+C,EAAE,OAAuB;QACxF,OAAO,yEAAyD,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACnF,CAAC;IAEO,WAAW,CACjB,MAAsB,EACtB,OAAuB;QAEvB,OAAO,2EAA2D,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;CAIF;AAzDD,kFAyDC"}
@@ -1,119 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ListDatasetsCommand = void 0;
4
- const models_0_1 = require("../models/models_0");
5
- const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
6
- const middleware_serde_1 = require("@aws-sdk/middleware-serde");
7
- const smithy_client_1 = require("@aws-sdk/smithy-client");
8
- /**
9
- * <p>Lists datasets for an identity. With Amazon Cognito Sync, each identity has access only to
10
- * its own data. Thus, the credentials used to make this API call need to have access to the
11
- * identity data.</p>
12
- * <p>ListDatasets can be called with temporary user credentials provided by Cognito
13
- * Identity or with developer credentials. You should use the Cognito Identity credentials to
14
- * make this API call.</p>
15
- * <examples>
16
- * <example>
17
- * <name>ListDatasets</name>
18
- * <description>The following examples have been edited for readability.</description>
19
- * <request>
20
- * POST / HTTP/1.1
21
- * CONTENT-TYPE: application/json
22
- * X-AMZN-REQUESTID: 15225768-209f-4078-aaed-7494ace9f2db
23
- * X-AMZ-TARGET: com.amazonaws.cognito.sync.model.AWSCognitoSyncService.ListDatasets
24
- * HOST: cognito-sync.us-east-1.amazonaws.com:443
25
- * X-AMZ-DATE: 20141111T215640Z
26
- * AUTHORIZATION: AWS4-HMAC-SHA256 Credential=<credential>, SignedHeaders=content-type;host;x-amz-date;x-amz-target;x-amzn-requestid, Signature=<signature>
27
- *
28
- * {
29
- * "Operation": "com.amazonaws.cognito.sync.model#ListDatasets",
30
- * "Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService",
31
- * "Input":
32
- * {
33
- * "IdentityPoolId": "IDENTITY_POOL_ID",
34
- * "IdentityId": "IDENTITY_ID",
35
- * "MaxResults": "3"
36
- * }
37
- * }
38
- * </request>
39
- * <response>
40
- * 1.1 200 OK
41
- * x-amzn-requestid: 15225768-209f-4078-aaed-7494ace9f2db, 15225768-209f-4078-aaed-7494ace9f2db
42
- * content-type: application/json
43
- * content-length: 355
44
- * date: Tue, 11 Nov 2014 21:56:40 GMT
45
- *
46
- * {
47
- * "Output":
48
- * {
49
- * "__type": "com.amazonaws.cognito.sync.model#ListDatasetsResponse",
50
- * "Count": 1,
51
- * "Datasets": [
52
- * {
53
- * "CreationDate": 1.412974057151E9,
54
- * "DataStorage": 16,
55
- * "DatasetName": "my_list",
56
- * "IdentityId": "IDENTITY_ID",
57
- * "LastModifiedBy": "123456789012",
58
- * "LastModifiedDate": 1.412974057244E9,
59
- * "NumRecords": 1
60
- * }],
61
- * "NextToken": null
62
- * },
63
- * "Version": "1.0"
64
- * }
65
- * </response>
66
- * </example>
67
- * </examples>
68
- * @example
69
- * Use a bare-bones client and the command you need to make an API call.
70
- * ```javascript
71
- * import { CognitoSyncClient, ListDatasetsCommand } from "@aws-sdk/client-cognito-sync"; // ES Modules import
72
- * // const { CognitoSyncClient, ListDatasetsCommand } = require("@aws-sdk/client-cognito-sync"); // CommonJS import
73
- * const client = new CognitoSyncClient(config);
74
- * const command = new ListDatasetsCommand(input);
75
- * const response = await client.send(command);
76
- * ```
77
- *
78
- * @see {@link ListDatasetsCommandInput} for command's `input` shape.
79
- * @see {@link ListDatasetsCommandOutput} for command's `response` shape.
80
- * @see {@link CognitoSyncClientResolvedConfig | config} for command's `input` shape.
81
- *
82
- */
83
- class ListDatasetsCommand extends smithy_client_1.Command {
84
- // Start section: command_properties
85
- // End section: command_properties
86
- constructor(input) {
87
- // Start section: command_constructor
88
- super();
89
- this.input = input;
90
- // End section: command_constructor
91
- }
92
- /**
93
- * @internal
94
- */
95
- resolveMiddleware(clientStack, configuration, options) {
96
- this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
97
- const stack = clientStack.concat(this.middlewareStack);
98
- const { logger } = configuration;
99
- const clientName = "CognitoSyncClient";
100
- const commandName = "ListDatasetsCommand";
101
- const handlerExecutionContext = {
102
- logger,
103
- clientName,
104
- commandName,
105
- inputFilterSensitiveLog: models_0_1.ListDatasetsRequest.filterSensitiveLog,
106
- outputFilterSensitiveLog: models_0_1.ListDatasetsResponse.filterSensitiveLog,
107
- };
108
- const { requestHandler } = configuration;
109
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
110
- }
111
- serialize(input, context) {
112
- return Aws_restJson1_1.serializeAws_restJson1ListDatasetsCommand(input, context);
113
- }
114
- deserialize(output, context) {
115
- return Aws_restJson1_1.deserializeAws_restJson1ListDatasetsCommand(output, context);
116
- }
117
- }
118
- exports.ListDatasetsCommand = ListDatasetsCommand;
119
- //# sourceMappingURL=ListDatasetsCommand.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ListDatasetsCommand.js","sourceRoot":"","sources":["../../../commands/ListDatasetsCommand.ts"],"names":[],"mappings":";;;AACA,iDAA+E;AAC/E,8DAGoC;AACpC,gEAA2D;AAE3D,0DAA6D;AAc7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0EG;AACH,MAAa,mBAAoB,SAAQ,uBAIxC;IACC,oCAAoC;IACpC,kCAAkC;IAElC,YAAqB,KAA+B;QAClD,qCAAqC;QACrC,KAAK,EAAE,CAAC;QAFW,UAAK,GAAL,KAAK,CAA0B;QAGlD,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,iBAAiB,CACf,WAAmE,EACnE,aAA8C,EAC9C,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,iCAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,MAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAEvD,MAAM,EAAE,MAAM,EAAE,GAAG,aAAa,CAAC;QACjC,MAAM,UAAU,GAAG,mBAAmB,CAAC;QACvC,MAAM,WAAW,GAAG,qBAAqB,CAAC;QAC1C,MAAM,uBAAuB,GAA4B;YACvD,MAAM;YACN,UAAU;YACV,WAAW;YACX,uBAAuB,EAAE,8BAAmB,CAAC,kBAAkB;YAC/D,wBAAwB,EAAE,+BAAoB,CAAC,kBAAkB;SAClE,CAAC;QACF,MAAM,EAAE,cAAc,EAAE,GAAG,aAAa,CAAC;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,CAAC,OAAsC,EAAE,EAAE,CACzC,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,SAAS,CAAC,KAA+B,EAAE,OAAuB;QACxE,OAAO,yDAAyC,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;IAEO,WAAW,CAAC,MAAsB,EAAE,OAAuB;QACjE,OAAO,2DAA2C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;CAIF;AAtDD,kDAsDC"}
@@ -1,119 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ListIdentityPoolUsageCommand = void 0;
4
- const models_0_1 = require("../models/models_0");
5
- const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
6
- const middleware_serde_1 = require("@aws-sdk/middleware-serde");
7
- const smithy_client_1 = require("@aws-sdk/smithy-client");
8
- /**
9
- * <p>Gets a list of identity pools registered with Cognito.</p>
10
- * <p>ListIdentityPoolUsage can only be called with developer credentials. You
11
- * cannot make this API call with the temporary user credentials provided by Cognito
12
- * Identity.</p>
13
- * <examples>
14
- * <example>
15
- * <name>ListIdentityPoolUsage</name>
16
- * <description>The following examples have been edited for readability.</description>
17
- * <request>
18
- * POST / HTTP/1.1
19
- * CONTENT-TYPE: application/json
20
- * X-AMZN-REQUESTID: 9be7c425-ef05-48c0-aef3-9f0ff2fe17d3
21
- * X-AMZ-TARGET: com.amazonaws.cognito.sync.model.AWSCognitoSyncService.ListIdentityPoolUsage
22
- * HOST: cognito-sync.us-east-1.amazonaws.com:443
23
- * X-AMZ-DATE: 20141111T211414Z
24
- * AUTHORIZATION: AWS4-HMAC-SHA256 Credential=<credential>, SignedHeaders=content-type;host;x-amz-date;x-amz-target;x-amzn-requestid, Signature=<signature>
25
- *
26
- * {
27
- * "Operation": "com.amazonaws.cognito.sync.model#ListIdentityPoolUsage",
28
- * "Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService",
29
- * "Input":
30
- * {
31
- * "MaxResults": "2"
32
- * }
33
- * }
34
- * </request>
35
- * <response>
36
- * 1.1 200 OK
37
- * x-amzn-requestid: 9be7c425-ef05-48c0-aef3-9f0ff2fe17d3
38
- * content-type: application/json
39
- * content-length: 519
40
- * date: Tue, 11 Nov 2014 21:14:14 GMT
41
- *
42
- * {
43
- * "Output":
44
- * {
45
- * "__type": "com.amazonaws.cognito.sync.model#ListIdentityPoolUsageResponse",
46
- * "Count": 2,
47
- * "IdentityPoolUsages": [
48
- * {
49
- * "DataStorage": 0,
50
- * "IdentityPoolId": "IDENTITY_POOL_ID",
51
- * "LastModifiedDate": 1.413836234607E9,
52
- * "SyncSessionsCount": null
53
- * },
54
- * {
55
- * "DataStorage": 0,
56
- * "IdentityPoolId": "IDENTITY_POOL_ID",
57
- * "LastModifiedDate": 1.410892165601E9,
58
- * "SyncSessionsCount": null
59
- * }],
60
- * "MaxResults": 2,
61
- * "NextToken": "dXMtZWFzdC0xOjBjMWJhMDUyLWUwOTgtNDFmYS1hNzZlLWVhYTJjMTI1Zjg2MQ=="
62
- * },
63
- * "Version": "1.0"
64
- * }
65
- * </response>
66
- * </example>
67
- * </examples>
68
- * @example
69
- * Use a bare-bones client and the command you need to make an API call.
70
- * ```javascript
71
- * import { CognitoSyncClient, ListIdentityPoolUsageCommand } from "@aws-sdk/client-cognito-sync"; // ES Modules import
72
- * // const { CognitoSyncClient, ListIdentityPoolUsageCommand } = require("@aws-sdk/client-cognito-sync"); // CommonJS import
73
- * const client = new CognitoSyncClient(config);
74
- * const command = new ListIdentityPoolUsageCommand(input);
75
- * const response = await client.send(command);
76
- * ```
77
- *
78
- * @see {@link ListIdentityPoolUsageCommandInput} for command's `input` shape.
79
- * @see {@link ListIdentityPoolUsageCommandOutput} for command's `response` shape.
80
- * @see {@link CognitoSyncClientResolvedConfig | config} for command's `input` shape.
81
- *
82
- */
83
- class ListIdentityPoolUsageCommand extends smithy_client_1.Command {
84
- // Start section: command_properties
85
- // End section: command_properties
86
- constructor(input) {
87
- // Start section: command_constructor
88
- super();
89
- this.input = input;
90
- // End section: command_constructor
91
- }
92
- /**
93
- * @internal
94
- */
95
- resolveMiddleware(clientStack, configuration, options) {
96
- this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
97
- const stack = clientStack.concat(this.middlewareStack);
98
- const { logger } = configuration;
99
- const clientName = "CognitoSyncClient";
100
- const commandName = "ListIdentityPoolUsageCommand";
101
- const handlerExecutionContext = {
102
- logger,
103
- clientName,
104
- commandName,
105
- inputFilterSensitiveLog: models_0_1.ListIdentityPoolUsageRequest.filterSensitiveLog,
106
- outputFilterSensitiveLog: models_0_1.ListIdentityPoolUsageResponse.filterSensitiveLog,
107
- };
108
- const { requestHandler } = configuration;
109
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
110
- }
111
- serialize(input, context) {
112
- return Aws_restJson1_1.serializeAws_restJson1ListIdentityPoolUsageCommand(input, context);
113
- }
114
- deserialize(output, context) {
115
- return Aws_restJson1_1.deserializeAws_restJson1ListIdentityPoolUsageCommand(output, context);
116
- }
117
- }
118
- exports.ListIdentityPoolUsageCommand = ListIdentityPoolUsageCommand;
119
- //# sourceMappingURL=ListIdentityPoolUsageCommand.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ListIdentityPoolUsageCommand.js","sourceRoot":"","sources":["../../../commands/ListIdentityPoolUsageCommand.ts"],"names":[],"mappings":";;;AACA,iDAAiG;AACjG,8DAGoC;AACpC,gEAA2D;AAE3D,0DAA6D;AAc7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0EG;AACH,MAAa,4BAA6B,SAAQ,uBAIjD;IACC,oCAAoC;IACpC,kCAAkC;IAElC,YAAqB,KAAwC;QAC3D,qCAAqC;QACrC,KAAK,EAAE,CAAC;QAFW,UAAK,GAAL,KAAK,CAAmC;QAG3D,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,iBAAiB,CACf,WA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