@aws-sdk/client-cognito-sync 3.296.0 → 3.297.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.
@@ -18,6 +18,7 @@ import { SubscribeToDatasetCommandInput, SubscribeToDatasetCommandOutput } from
18
18
  import { UnsubscribeFromDatasetCommandInput, UnsubscribeFromDatasetCommandOutput } from "./commands/UnsubscribeFromDatasetCommand";
19
19
  import { UpdateRecordsCommandInput, UpdateRecordsCommandOutput } from "./commands/UpdateRecordsCommand";
20
20
  /**
21
+ * @public
21
22
  * <fullname>Amazon Cognito Sync</fullname>
22
23
  * <p>Amazon Cognito Sync provides an AWS service and client library that enable cross-device syncing of
23
24
  * application-related user data. High-level client libraries are available for both iOS and
@@ -34,12 +35,14 @@ import { UpdateRecordsCommandInput, UpdateRecordsCommandOutput } from "./command
34
35
  */
35
36
  export declare class CognitoSync extends CognitoSyncClient {
36
37
  /**
38
+ * @public
37
39
  * <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
40
  */
39
41
  bulkPublish(args: BulkPublishCommandInput, options?: __HttpHandlerOptions): Promise<BulkPublishCommandOutput>;
40
42
  bulkPublish(args: BulkPublishCommandInput, cb: (err: any, data?: BulkPublishCommandOutput) => void): void;
41
43
  bulkPublish(args: BulkPublishCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BulkPublishCommandOutput) => void): void;
42
44
  /**
45
+ * @public
43
46
  * <p>Deletes the specific dataset. The dataset will be deleted permanently, and the action can't
44
47
  * be undone. Datasets that this dataset was merged with will no longer report the merge. Any
45
48
  * subsequent operation on this dataset will result in a
@@ -50,6 +53,7 @@ export declare class CognitoSync extends CognitoSyncClient {
50
53
  deleteDataset(args: DeleteDatasetCommandInput, cb: (err: any, data?: DeleteDatasetCommandOutput) => void): void;
51
54
  deleteDataset(args: DeleteDatasetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteDatasetCommandOutput) => void): void;
52
55
  /**
56
+ * @public
53
57
  * <p>Gets meta data about a dataset by identity and dataset name. With Amazon Cognito Sync, each
54
58
  * identity has access only to its own data. Thus, the credentials used to make this API call
55
59
  * need to have access to the identity data.</p>
@@ -59,6 +63,7 @@ export declare class CognitoSync extends CognitoSyncClient {
59
63
  describeDataset(args: DescribeDatasetCommandInput, cb: (err: any, data?: DescribeDatasetCommandOutput) => void): void;
60
64
  describeDataset(args: DescribeDatasetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeDatasetCommandOutput) => void): void;
61
65
  /**
66
+ * @public
62
67
  * <p>Gets usage details (for example, data storage) about a particular identity pool.</p>
63
68
  * <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
69
  *
@@ -75,14 +80,14 @@ export declare class CognitoSync extends CognitoSyncClient {
75
80
  * X-AMZ-DATE: 20141111T205737Z
76
81
  * AUTHORIZATION: AWS4-HMAC-SHA256 Credential=<credential>, SignedHeaders=content-type;host;x-amz-date;x-amz-target;x-amzn-requestid, Signature=<signature>
77
82
  *
78
- * {
83
+ * \{
79
84
  * "Operation": "com.amazonaws.cognito.sync.model#DescribeIdentityPoolUsage",
80
85
  * "Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService",
81
86
  * "Input":
82
- * {
87
+ * \{
83
88
  * "IdentityPoolId": "IDENTITY_POOL_ID"
84
- * }
85
- * }
89
+ * \}
90
+ * \}
86
91
  * </request>
87
92
  * <response>
88
93
  * 1.1 200 OK
@@ -91,20 +96,20 @@ export declare class CognitoSync extends CognitoSyncClient {
91
96
  * content-length: 271
92
97
  * date: Tue, 11 Nov 2014 20:57:37 GMT
93
98
  *
94
- * {
99
+ * \{
95
100
  * "Output":
96
- * {
101
+ * \{
97
102
  * "__type": "com.amazonaws.cognito.sync.model#DescribeIdentityPoolUsageResponse",
98
103
  * "IdentityPoolUsage":
99
- * {
104
+ * \{
100
105
  * "DataStorage": 0,
101
106
  * "IdentityPoolId": "IDENTITY_POOL_ID",
102
107
  * "LastModifiedDate": 1.413231134115E9,
103
108
  * "SyncSessionsCount": null
104
- * }
105
- * },
109
+ * \}
110
+ * \},
106
111
  * "Version": "1.0"
107
- * }
112
+ * \}
108
113
  * </response>
109
114
  * </example>
110
115
  * </examples>
@@ -113,6 +118,7 @@ export declare class CognitoSync extends CognitoSyncClient {
113
118
  describeIdentityPoolUsage(args: DescribeIdentityPoolUsageCommandInput, cb: (err: any, data?: DescribeIdentityPoolUsageCommandOutput) => void): void;
114
119
  describeIdentityPoolUsage(args: DescribeIdentityPoolUsageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeIdentityPoolUsageCommandOutput) => void): void;
115
120
  /**
121
+ * @public
116
122
  * <p>Gets usage information for an identity, including number of datasets and data usage.</p>
117
123
  * <p>This API can be called with temporary user credentials provided by Cognito Identity or with developer credentials.</p>
118
124
  * <examples>
@@ -128,15 +134,15 @@ export declare class CognitoSync extends CognitoSyncClient {
128
134
  * X-AMZ-DATE: 20141111T215129Z
129
135
  * AUTHORIZATION: AWS4-HMAC-SHA256 Credential=<credential>, SignedHeaders=content-type;host;x-amz-date;x-amz-target;x-amzn-requestid, Signature=<signature>
130
136
  *
131
- * {
137
+ * \{
132
138
  * "Operation": "com.amazonaws.cognito.sync.model#DescribeIdentityUsage",
133
139
  * "Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService",
134
140
  * "Input":
135
- * {
141
+ * \{
136
142
  * "IdentityPoolId": "IDENTITY_POOL_ID",
137
143
  * "IdentityId": "IDENTITY_ID"
138
- * }
139
- * }
144
+ * \}
145
+ * \}
140
146
  * </request>
141
147
  * <response>
142
148
  * 1.1 200 OK
@@ -145,21 +151,21 @@ export declare class CognitoSync extends CognitoSyncClient {
145
151
  * content-length: 318
146
152
  * date: Tue, 11 Nov 2014 21:51:29 GMT
147
153
  *
148
- * {
154
+ * \{
149
155
  * "Output":
150
- * {
156
+ * \{
151
157
  * "__type": "com.amazonaws.cognito.sync.model#DescribeIdentityUsageResponse",
152
158
  * "IdentityUsage":
153
- * {
159
+ * \{
154
160
  * "DataStorage": 16,
155
161
  * "DatasetCount": 1,
156
162
  * "IdentityId": "IDENTITY_ID",
157
163
  * "IdentityPoolId": "IDENTITY_POOL_ID",
158
164
  * "LastModifiedDate": 1.412974081336E9
159
- * }
160
- * },
165
+ * \}
166
+ * \},
161
167
  * "Version": "1.0"
162
- * }
168
+ * \}
163
169
  * </response>
164
170
  * </example>
165
171
  * </examples>
@@ -168,18 +174,21 @@ export declare class CognitoSync extends CognitoSyncClient {
168
174
  describeIdentityUsage(args: DescribeIdentityUsageCommandInput, cb: (err: any, data?: DescribeIdentityUsageCommandOutput) => void): void;
169
175
  describeIdentityUsage(args: DescribeIdentityUsageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeIdentityUsageCommandOutput) => void): void;
170
176
  /**
177
+ * @public
171
178
  * <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
179
  */
173
180
  getBulkPublishDetails(args: GetBulkPublishDetailsCommandInput, options?: __HttpHandlerOptions): Promise<GetBulkPublishDetailsCommandOutput>;
174
181
  getBulkPublishDetails(args: GetBulkPublishDetailsCommandInput, cb: (err: any, data?: GetBulkPublishDetailsCommandOutput) => void): void;
175
182
  getBulkPublishDetails(args: GetBulkPublishDetailsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetBulkPublishDetailsCommandOutput) => void): void;
176
183
  /**
184
+ * @public
177
185
  * <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
186
  */
179
187
  getCognitoEvents(args: GetCognitoEventsCommandInput, options?: __HttpHandlerOptions): Promise<GetCognitoEventsCommandOutput>;
180
188
  getCognitoEvents(args: GetCognitoEventsCommandInput, cb: (err: any, data?: GetCognitoEventsCommandOutput) => void): void;
181
189
  getCognitoEvents(args: GetCognitoEventsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCognitoEventsCommandOutput) => void): void;
182
190
  /**
191
+ * @public
183
192
  * <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
193
  * <examples>
185
194
  * <example>
@@ -194,14 +203,14 @@ export declare class CognitoSync extends CognitoSyncClient {
194
203
  * X-AMZ-DATE: 20141004T195722Z
195
204
  * AUTHORIZATION: AWS4-HMAC-SHA256 Credential=<credential>, SignedHeaders=content-type;content-length;host;x-amz-date;x-amz-target, Signature=<signature>
196
205
  *
197
- * {
206
+ * \{
198
207
  * "Operation": "com.amazonaws.cognito.sync.model#GetIdentityPoolConfiguration",
199
208
  * "Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService",
200
209
  * "Input":
201
- * {
210
+ * \{
202
211
  * "IdentityPoolId": "ID_POOL_ID"
203
- * }
204
- * }
212
+ * \}
213
+ * \}
205
214
  *
206
215
  * </request>
207
216
  * <response>
@@ -211,19 +220,19 @@ export declare class CognitoSync extends CognitoSyncClient {
211
220
  * content-type: application/json
212
221
  * content-length: 332
213
222
  *
214
- * {
223
+ * \{
215
224
  * "Output":
216
- * {
225
+ * \{
217
226
  * "__type": "com.amazonaws.cognito.sync.model#GetIdentityPoolConfigurationResponse",
218
227
  * "IdentityPoolId": "ID_POOL_ID",
219
228
  * "PushSync":
220
- * {
229
+ * \{
221
230
  * "ApplicationArns": ["PLATFORMARN1", "PLATFORMARN2"],
222
231
  * "RoleArn": "ROLEARN"
223
- * }
224
- * },
232
+ * \}
233
+ * \},
225
234
  * "Version": "1.0"
226
- * }
235
+ * \}
227
236
  * </response>
228
237
  * </example>
229
238
  * </examples>
@@ -232,6 +241,7 @@ export declare class CognitoSync extends CognitoSyncClient {
232
241
  getIdentityPoolConfiguration(args: GetIdentityPoolConfigurationCommandInput, cb: (err: any, data?: GetIdentityPoolConfigurationCommandOutput) => void): void;
233
242
  getIdentityPoolConfiguration(args: GetIdentityPoolConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetIdentityPoolConfigurationCommandOutput) => void): void;
234
243
  /**
244
+ * @public
235
245
  * <p>Lists datasets for an identity. With Amazon Cognito Sync, each identity has access only to
236
246
  * its own data. Thus, the credentials used to make this API call need to have access to the
237
247
  * identity data.</p>
@@ -251,16 +261,16 @@ export declare class CognitoSync extends CognitoSyncClient {
251
261
  * X-AMZ-DATE: 20141111T215640Z
252
262
  * AUTHORIZATION: AWS4-HMAC-SHA256 Credential=<credential>, SignedHeaders=content-type;host;x-amz-date;x-amz-target;x-amzn-requestid, Signature=<signature>
253
263
  *
254
- * {
264
+ * \{
255
265
  * "Operation": "com.amazonaws.cognito.sync.model#ListDatasets",
256
266
  * "Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService",
257
267
  * "Input":
258
- * {
268
+ * \{
259
269
  * "IdentityPoolId": "IDENTITY_POOL_ID",
260
270
  * "IdentityId": "IDENTITY_ID",
261
271
  * "MaxResults": "3"
262
- * }
263
- * }
272
+ * \}
273
+ * \}
264
274
  * </request>
265
275
  * <response>
266
276
  * 1.1 200 OK
@@ -269,13 +279,13 @@ export declare class CognitoSync extends CognitoSyncClient {
269
279
  * content-length: 355
270
280
  * date: Tue, 11 Nov 2014 21:56:40 GMT
271
281
  *
272
- * {
282
+ * \{
273
283
  * "Output":
274
- * {
284
+ * \{
275
285
  * "__type": "com.amazonaws.cognito.sync.model#ListDatasetsResponse",
276
286
  * "Count": 1,
277
287
  * "Datasets": [
278
- * {
288
+ * \{
279
289
  * "CreationDate": 1.412974057151E9,
280
290
  * "DataStorage": 16,
281
291
  * "DatasetName": "my_list",
@@ -283,11 +293,11 @@ export declare class CognitoSync extends CognitoSyncClient {
283
293
  * "LastModifiedBy": "123456789012",
284
294
  * "LastModifiedDate": 1.412974057244E9,
285
295
  * "NumRecords": 1
286
- * }],
296
+ * \}],
287
297
  * "NextToken": null
288
- * },
298
+ * \},
289
299
  * "Version": "1.0"
290
- * }
300
+ * \}
291
301
  * </response>
292
302
  * </example>
293
303
  * </examples>
@@ -296,6 +306,7 @@ export declare class CognitoSync extends CognitoSyncClient {
296
306
  listDatasets(args: ListDatasetsCommandInput, cb: (err: any, data?: ListDatasetsCommandOutput) => void): void;
297
307
  listDatasets(args: ListDatasetsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListDatasetsCommandOutput) => void): void;
298
308
  /**
309
+ * @public
299
310
  * <p>Gets a list of identity pools registered with Cognito.</p>
300
311
  * <p>ListIdentityPoolUsage can only be called with developer credentials. You
301
312
  * cannot make this API call with the temporary user credentials provided by Cognito
@@ -313,14 +324,14 @@ export declare class CognitoSync extends CognitoSyncClient {
313
324
  * X-AMZ-DATE: 20141111T211414Z
314
325
  * AUTHORIZATION: AWS4-HMAC-SHA256 Credential=<credential>, SignedHeaders=content-type;host;x-amz-date;x-amz-target;x-amzn-requestid, Signature=<signature>
315
326
  *
316
- * {
327
+ * \{
317
328
  * "Operation": "com.amazonaws.cognito.sync.model#ListIdentityPoolUsage",
318
329
  * "Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService",
319
330
  * "Input":
320
- * {
331
+ * \{
321
332
  * "MaxResults": "2"
322
- * }
323
- * }
333
+ * \}
334
+ * \}
324
335
  * </request>
325
336
  * <response>
326
337
  * 1.1 200 OK
@@ -329,29 +340,29 @@ export declare class CognitoSync extends CognitoSyncClient {
329
340
  * content-length: 519
330
341
  * date: Tue, 11 Nov 2014 21:14:14 GMT
331
342
  *
332
- * {
343
+ * \{
333
344
  * "Output":
334
- * {
345
+ * \{
335
346
  * "__type": "com.amazonaws.cognito.sync.model#ListIdentityPoolUsageResponse",
336
347
  * "Count": 2,
337
348
  * "IdentityPoolUsages": [
338
- * {
349
+ * \{
339
350
  * "DataStorage": 0,
340
351
  * "IdentityPoolId": "IDENTITY_POOL_ID",
341
352
  * "LastModifiedDate": 1.413836234607E9,
342
353
  * "SyncSessionsCount": null
343
- * },
344
- * {
354
+ * \},
355
+ * \{
345
356
  * "DataStorage": 0,
346
357
  * "IdentityPoolId": "IDENTITY_POOL_ID",
347
358
  * "LastModifiedDate": 1.410892165601E9,
348
359
  * "SyncSessionsCount": null
349
- * }],
360
+ * \}],
350
361
  * "MaxResults": 2,
351
362
  * "NextToken": "dXMtZWFzdC0xOjBjMWJhMDUyLWUwOTgtNDFmYS1hNzZlLWVhYTJjMTI1Zjg2MQ=="
352
- * },
363
+ * \},
353
364
  * "Version": "1.0"
354
- * }
365
+ * \}
355
366
  * </response>
356
367
  * </example>
357
368
  * </examples>
@@ -360,6 +371,7 @@ export declare class CognitoSync extends CognitoSyncClient {
360
371
  listIdentityPoolUsage(args: ListIdentityPoolUsageCommandInput, cb: (err: any, data?: ListIdentityPoolUsageCommandOutput) => void): void;
361
372
  listIdentityPoolUsage(args: ListIdentityPoolUsageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListIdentityPoolUsageCommandOutput) => void): void;
362
373
  /**
374
+ * @public
363
375
  * <p>Gets paginated records, optionally changed after a particular sync count for a dataset and
364
376
  * identity. With Amazon Cognito Sync, each identity has access only to its own data. Thus,
365
377
  * the credentials used to make this API call need to have access to the identity data.</p>
@@ -379,16 +391,16 @@ export declare class CognitoSync extends CognitoSyncClient {
379
391
  * X-AMZ-DATE: 20141111T183230Z
380
392
  * AUTHORIZATION: AWS4-HMAC-SHA256 Credential=<credential>, SignedHeaders=content-type;host;x-amz-date;x-amz-target;x-amzn-requestid, Signature=<signature>
381
393
  *
382
- * {
394
+ * \{
383
395
  * "Operation": "com.amazonaws.cognito.sync.model#ListRecords",
384
396
  * "Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService",
385
397
  * "Input":
386
- * {
398
+ * \{
387
399
  * "IdentityPoolId": "IDENTITY_POOL_ID",
388
400
  * "IdentityId": "IDENTITY_ID",
389
401
  * "DatasetName": "newDataSet"
390
- * }
391
- * }
402
+ * \}
403
+ * \}
392
404
  * </request>
393
405
  * <response>
394
406
  * 1.1 200 OK
@@ -397,9 +409,9 @@ export declare class CognitoSync extends CognitoSyncClient {
397
409
  * content-length: 623
398
410
  * date: Tue, 11 Nov 2014 18:32:30 GMT
399
411
  *
400
- * {
412
+ * \{
401
413
  * "Output":
402
- * {
414
+ * \{
403
415
  * "__type": "com.amazonaws.cognito.sync.model#ListRecordsResponse",
404
416
  * "Count": 0,
405
417
  * "DatasetDeletedAfterRequestedSyncCount": false,
@@ -410,9 +422,9 @@ export declare class CognitoSync extends CognitoSyncClient {
410
422
  * "NextToken": null,
411
423
  * "Records": [],
412
424
  * "SyncSessionToken": "SYNC_SESSION_TOKEN"
413
- * },
425
+ * \},
414
426
  * "Version": "1.0"
415
- * }
427
+ * \}
416
428
  * </response>
417
429
  * </example>
418
430
  * </examples>
@@ -421,6 +433,7 @@ export declare class CognitoSync extends CognitoSyncClient {
421
433
  listRecords(args: ListRecordsCommandInput, cb: (err: any, data?: ListRecordsCommandOutput) => void): void;
422
434
  listRecords(args: ListRecordsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRecordsCommandOutput) => void): void;
423
435
  /**
436
+ * @public
424
437
  * <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
438
  * <examples>
426
439
  * <example>
@@ -436,17 +449,17 @@ export declare class CognitoSync extends CognitoSyncClient {
436
449
  * X-AMZ-SECURITY-TOKEN: <securitytoken>
437
450
  * AUTHORIZATION: AWS4-HMAC-SHA256 Credential=<credential>, SignedHeaders=content-type;content-length;host;x-amz-date;x-amz-target, Signature=<signature>
438
451
  *
439
- * {
452
+ * \{
440
453
  * "Operation": "com.amazonaws.cognito.sync.model#RegisterDevice",
441
454
  * "Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService",
442
455
  * "Input":
443
- * {
456
+ * \{
444
457
  * "IdentityPoolId": "ID_POOL_ID",
445
458
  * "IdentityId": "IDENTITY_ID",
446
459
  * "Platform": "GCM",
447
460
  * "Token": "PUSH_TOKEN"
448
- * }
449
- * }
461
+ * \}
462
+ * \}
450
463
  * </request>
451
464
  * <response>
452
465
  * 1.1 200 OK
@@ -455,14 +468,14 @@ export declare class CognitoSync extends CognitoSyncClient {
455
468
  * content-type: application/json
456
469
  * content-length: 145
457
470
  *
458
- * {
471
+ * \{
459
472
  * "Output":
460
- * {
473
+ * \{
461
474
  * "__type": "com.amazonaws.cognito.sync.model#RegisterDeviceResponse",
462
475
  * "DeviceId": "5cd28fbe-dd83-47ab-9f83-19093a5fb014"
463
- * },
476
+ * \},
464
477
  * "Version": "1.0"
465
- * }
478
+ * \}
466
479
  * </response>
467
480
  * </example>
468
481
  * </examples>
@@ -471,12 +484,14 @@ export declare class CognitoSync extends CognitoSyncClient {
471
484
  registerDevice(args: RegisterDeviceCommandInput, cb: (err: any, data?: RegisterDeviceCommandOutput) => void): void;
472
485
  registerDevice(args: RegisterDeviceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RegisterDeviceCommandOutput) => void): void;
473
486
  /**
487
+ * @public
474
488
  * <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
489
  */
476
490
  setCognitoEvents(args: SetCognitoEventsCommandInput, options?: __HttpHandlerOptions): Promise<SetCognitoEventsCommandOutput>;
477
491
  setCognitoEvents(args: SetCognitoEventsCommandInput, cb: (err: any, data?: SetCognitoEventsCommandOutput) => void): void;
478
492
  setCognitoEvents(args: SetCognitoEventsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SetCognitoEventsCommandOutput) => void): void;
479
493
  /**
494
+ * @public
480
495
  * <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
496
  * <examples>
482
497
  * <example>
@@ -491,19 +506,19 @@ export declare class CognitoSync extends CognitoSyncClient {
491
506
  * X-AMZ-DATE: 20141004T200006Z
492
507
  * AUTHORIZATION: AWS4-HMAC-SHA256 Credential=<credential>, SignedHeaders=content-type;content-length;host;x-amz-date;x-amz-target, Signature=<signature>
493
508
  *
494
- * {
509
+ * \{
495
510
  * "Operation": "com.amazonaws.cognito.sync.model#SetIdentityPoolConfiguration",
496
511
  * "Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService",
497
512
  * "Input":
498
- * {
513
+ * \{
499
514
  * "IdentityPoolId": "ID_POOL_ID",
500
515
  * "PushSync":
501
- * {
516
+ * \{
502
517
  * "ApplicationArns": ["PLATFORMARN1", "PLATFORMARN2"],
503
518
  * "RoleArn": "ROLEARN"
504
- * }
505
- * }
506
- * }
519
+ * \}
520
+ * \}
521
+ * \}
507
522
  * </request>
508
523
  * <response>
509
524
  * 1.1 200 OK
@@ -512,19 +527,19 @@ export declare class CognitoSync extends CognitoSyncClient {
512
527
  * content-type: application/json
513
528
  * content-length: 332
514
529
  *
515
- * {
530
+ * \{
516
531
  * "Output":
517
- * {
532
+ * \{
518
533
  * "__type": "com.amazonaws.cognito.sync.model#SetIdentityPoolConfigurationResponse",
519
534
  * "IdentityPoolId": "ID_POOL_ID",
520
535
  * "PushSync":
521
- * {
536
+ * \{
522
537
  * "ApplicationArns": ["PLATFORMARN1", "PLATFORMARN2"],
523
538
  * "RoleArn": "ROLEARN"
524
- * }
525
- * },
539
+ * \}
540
+ * \},
526
541
  * "Version": "1.0"
527
- * }
542
+ * \}
528
543
  * </response>
529
544
  * </example>
530
545
  * </examples>
@@ -533,6 +548,7 @@ export declare class CognitoSync extends CognitoSyncClient {
533
548
  setIdentityPoolConfiguration(args: SetIdentityPoolConfigurationCommandInput, cb: (err: any, data?: SetIdentityPoolConfigurationCommandOutput) => void): void;
534
549
  setIdentityPoolConfiguration(args: SetIdentityPoolConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SetIdentityPoolConfigurationCommandOutput) => void): void;
535
550
  /**
551
+ * @public
536
552
  * <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
553
  * <examples>
538
554
  * <example>
@@ -548,17 +564,17 @@ export declare class CognitoSync extends CognitoSyncClient {
548
564
  * X-AMZ-SECURITY-TOKEN: <securitytoken>
549
565
  * AUTHORIZATION: AWS4-HMAC-SHA256 Credential=<credential>, SignedHeaders=content-type;content-length;host;x-amz-date;x-amz-target, Signature=<signature>
550
566
  *
551
- * {
567
+ * \{
552
568
  * "Operation": "com.amazonaws.cognito.sync.model#SubscribeToDataset",
553
569
  * "Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService",
554
570
  * "Input":
555
- * {
571
+ * \{
556
572
  * "IdentityPoolId": "ID_POOL_ID",
557
573
  * "IdentityId": "IDENTITY_ID",
558
574
  * "DatasetName": "Rufus",
559
575
  * "DeviceId": "5cd28fbe-dd83-47ab-9f83-19093a5fb014"
560
- * }
561
- * }
576
+ * \}
577
+ * \}
562
578
  * </request>
563
579
  * <response>
564
580
  * 1.1 200 OK
@@ -567,13 +583,13 @@ export declare class CognitoSync extends CognitoSyncClient {
567
583
  * content-type: application/json
568
584
  * content-length: 99
569
585
  *
570
- * {
586
+ * \{
571
587
  * "Output":
572
- * {
588
+ * \{
573
589
  * "__type": "com.amazonaws.cognito.sync.model#SubscribeToDatasetResponse"
574
- * },
590
+ * \},
575
591
  * "Version": "1.0"
576
- * }
592
+ * \}
577
593
  * </response>
578
594
  * </example>
579
595
  * </examples>
@@ -582,6 +598,7 @@ export declare class CognitoSync extends CognitoSyncClient {
582
598
  subscribeToDataset(args: SubscribeToDatasetCommandInput, cb: (err: any, data?: SubscribeToDatasetCommandOutput) => void): void;
583
599
  subscribeToDataset(args: SubscribeToDatasetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SubscribeToDatasetCommandOutput) => void): void;
584
600
  /**
601
+ * @public
585
602
  * <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
603
  * <examples>
587
604
  * <example>
@@ -598,17 +615,17 @@ export declare class CognitoSync extends CognitoSyncClient {
598
615
  * X-AMZ-SECURITY-TOKEN: <securitytoken>
599
616
  * AUTHORIZATION: AWS4-HMAC-SHA256 Credential=<credential>, SignedHeaders=content-type;content-length;host;x-amz-date;x-amz-target, Signature=<signature>
600
617
  *
601
- * {
618
+ * \{
602
619
  * "Operation": "com.amazonaws.cognito.sync.model#UnsubscribeFromDataset",
603
620
  * "Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService",
604
621
  * "Input":
605
- * {
622
+ * \{
606
623
  * "IdentityPoolId": "ID_POOL_ID",
607
624
  * "IdentityId": "IDENTITY_ID",
608
625
  * "DatasetName": "Rufus",
609
626
  * "DeviceId": "5cd28fbe-dd83-47ab-9f83-19093a5fb014"
610
- * }
611
- * }
627
+ * \}
628
+ * \}
612
629
  * </request>
613
630
  * <response>
614
631
  * 1.1 200 OK
@@ -617,13 +634,13 @@ export declare class CognitoSync extends CognitoSyncClient {
617
634
  * content-type: application/json
618
635
  * content-length: 103
619
636
  *
620
- * {
637
+ * \{
621
638
  * "Output":
622
- * {
639
+ * \{
623
640
  * "__type": "com.amazonaws.cognito.sync.model#UnsubscribeFromDatasetResponse"
624
- * },
641
+ * \},
625
642
  * "Version": "1.0"
626
- * }
643
+ * \}
627
644
  * </response>
628
645
  * </example>
629
646
  * </examples>
@@ -632,6 +649,7 @@ export declare class CognitoSync extends CognitoSyncClient {
632
649
  unsubscribeFromDataset(args: UnsubscribeFromDatasetCommandInput, cb: (err: any, data?: UnsubscribeFromDatasetCommandOutput) => void): void;
633
650
  unsubscribeFromDataset(args: UnsubscribeFromDatasetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UnsubscribeFromDatasetCommandOutput) => void): void;
634
651
  /**
652
+ * @public
635
653
  * <p>Posts updates to records and adds and deletes records for a dataset and user.</p>
636
654
  * <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
655
  * <p>This API can be called with temporary user credentials provided by Cognito Identity or with developer credentials.</p>
@@ -25,15 +25,24 @@ import { SubscribeToDatasetCommandInput, SubscribeToDatasetCommandOutput } from
25
25
  import { UnsubscribeFromDatasetCommandInput, UnsubscribeFromDatasetCommandOutput } from "./commands/UnsubscribeFromDatasetCommand";
26
26
  import { UpdateRecordsCommandInput, UpdateRecordsCommandOutput } from "./commands/UpdateRecordsCommand";
27
27
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
28
+ /**
29
+ * @public
30
+ */
28
31
  export type ServiceInputTypes = BulkPublishCommandInput | DeleteDatasetCommandInput | DescribeDatasetCommandInput | DescribeIdentityPoolUsageCommandInput | DescribeIdentityUsageCommandInput | GetBulkPublishDetailsCommandInput | GetCognitoEventsCommandInput | GetIdentityPoolConfigurationCommandInput | ListDatasetsCommandInput | ListIdentityPoolUsageCommandInput | ListRecordsCommandInput | RegisterDeviceCommandInput | SetCognitoEventsCommandInput | SetIdentityPoolConfigurationCommandInput | SubscribeToDatasetCommandInput | UnsubscribeFromDatasetCommandInput | UpdateRecordsCommandInput;
32
+ /**
33
+ * @public
34
+ */
29
35
  export type ServiceOutputTypes = BulkPublishCommandOutput | DeleteDatasetCommandOutput | DescribeDatasetCommandOutput | DescribeIdentityPoolUsageCommandOutput | DescribeIdentityUsageCommandOutput | GetBulkPublishDetailsCommandOutput | GetCognitoEventsCommandOutput | GetIdentityPoolConfigurationCommandOutput | ListDatasetsCommandOutput | ListIdentityPoolUsageCommandOutput | ListRecordsCommandOutput | RegisterDeviceCommandOutput | SetCognitoEventsCommandOutput | SetIdentityPoolConfigurationCommandOutput | SubscribeToDatasetCommandOutput | UnsubscribeFromDatasetCommandOutput | UpdateRecordsCommandOutput;
36
+ /**
37
+ * @public
38
+ */
30
39
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
31
40
  /**
32
41
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.
33
42
  */
34
43
  requestHandler?: __HttpHandler;
35
44
  /**
36
- * A constructor for a class implementing the {@link __Checksum} interface
45
+ * A constructor for a class implementing the {@link @aws-sdk/types#ChecksumConstructor} interface
37
46
  * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
38
47
  * @internal
39
48
  */
@@ -123,23 +132,34 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
123
132
  */
124
133
  logger?: __Logger;
125
134
  /**
126
- * The {@link __DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
135
+ * The {@link @aws-sdk/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
127
136
  */
128
137
  defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
129
138
  }
139
+ /**
140
+ * @public
141
+ */
130
142
  type CognitoSyncClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & ClientInputEndpointParameters;
131
143
  /**
132
- * The configuration interface of CognitoSyncClient class constructor that set the region, credentials and other options.
144
+ * @public
145
+ *
146
+ * The configuration interface of CognitoSyncClient class constructor that set the region, credentials and other options.
133
147
  */
134
148
  export interface CognitoSyncClientConfig extends CognitoSyncClientConfigType {
135
149
  }
150
+ /**
151
+ * @public
152
+ */
136
153
  type CognitoSyncClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
137
154
  /**
138
- * The resolved configuration interface of CognitoSyncClient class. This is resolved and normalized from the {@link CognitoSyncClientConfig | constructor configuration interface}.
155
+ * @public
156
+ *
157
+ * The resolved configuration interface of CognitoSyncClient class. This is resolved and normalized from the {@link CognitoSyncClientConfig | constructor configuration interface}.
139
158
  */
140
159
  export interface CognitoSyncClientResolvedConfig extends CognitoSyncClientResolvedConfigType {
141
160
  }
142
161
  /**
162
+ * @public
143
163
  * <fullname>Amazon Cognito Sync</fullname>
144
164
  * <p>Amazon Cognito Sync provides an AWS service and client library that enable cross-device syncing of
145
165
  * application-related user data. High-level client libraries are available for both iOS and