@aws-sdk/client-cognito-sync 3.956.0 → 3.958.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.
package/README.md CHANGED
@@ -7,7 +7,6 @@
7
7
  AWS SDK for JavaScript CognitoSync Client for Node.js, Browser and React Native.
8
8
 
9
9
  <fullname>Amazon Cognito Sync</fullname>
10
-
11
10
  <p>Amazon Cognito Sync provides an AWS service and client library that enable cross-device syncing of
12
11
  application-related user data. High-level client libraries are available for both iOS and
13
12
  Android. You can use these libraries to persist data locally so that it's available even if
@@ -22,10 +21,8 @@ to make API calls using credentials retrieved with <a href="http://docs.aws.amaz
22
21
  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>
23
22
 
24
23
  ## Installing
25
-
26
24
  To install this package, simply type add or install @aws-sdk/client-cognito-sync
27
25
  using your favorite package manager:
28
-
29
26
  - `npm install @aws-sdk/client-cognito-sync`
30
27
  - `yarn add @aws-sdk/client-cognito-sync`
31
28
  - `pnpm add @aws-sdk/client-cognito-sync`
@@ -61,9 +58,7 @@ To send a request, you:
61
58
  // a client can be shared by different commands.
62
59
  const client = new CognitoSyncClient({ region: "REGION" });
63
60
 
64
- const params = {
65
- /** input parameters */
66
- };
61
+ const params = { /** input parameters */ };
67
62
  const command = new ListIdentityPoolUsageCommand(params);
68
63
  ```
69
64
 
@@ -222,7 +217,6 @@ BulkPublish
222
217
  </summary>
223
218
 
224
219
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-sync/command/BulkPublishCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-sync/Interface/BulkPublishCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-sync/Interface/BulkPublishCommandOutput/)
225
-
226
220
  </details>
227
221
  <details>
228
222
  <summary>
@@ -230,7 +224,6 @@ DeleteDataset
230
224
  </summary>
231
225
 
232
226
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-sync/command/DeleteDatasetCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-sync/Interface/DeleteDatasetCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-sync/Interface/DeleteDatasetCommandOutput/)
233
-
234
227
  </details>
235
228
  <details>
236
229
  <summary>
@@ -238,7 +231,6 @@ DescribeDataset
238
231
  </summary>
239
232
 
240
233
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-sync/command/DescribeDatasetCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-sync/Interface/DescribeDatasetCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-sync/Interface/DescribeDatasetCommandOutput/)
241
-
242
234
  </details>
243
235
  <details>
244
236
  <summary>
@@ -246,7 +238,6 @@ DescribeIdentityPoolUsage
246
238
  </summary>
247
239
 
248
240
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-sync/command/DescribeIdentityPoolUsageCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-sync/Interface/DescribeIdentityPoolUsageCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-sync/Interface/DescribeIdentityPoolUsageCommandOutput/)
249
-
250
241
  </details>
251
242
  <details>
252
243
  <summary>
@@ -254,7 +245,6 @@ DescribeIdentityUsage
254
245
  </summary>
255
246
 
256
247
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-sync/command/DescribeIdentityUsageCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-sync/Interface/DescribeIdentityUsageCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-sync/Interface/DescribeIdentityUsageCommandOutput/)
257
-
258
248
  </details>
259
249
  <details>
260
250
  <summary>
@@ -262,7 +252,6 @@ GetBulkPublishDetails
262
252
  </summary>
263
253
 
264
254
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-sync/command/GetBulkPublishDetailsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-sync/Interface/GetBulkPublishDetailsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-sync/Interface/GetBulkPublishDetailsCommandOutput/)
265
-
266
255
  </details>
267
256
  <details>
268
257
  <summary>
@@ -270,7 +259,6 @@ GetCognitoEvents
270
259
  </summary>
271
260
 
272
261
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-sync/command/GetCognitoEventsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-sync/Interface/GetCognitoEventsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-sync/Interface/GetCognitoEventsCommandOutput/)
273
-
274
262
  </details>
275
263
  <details>
276
264
  <summary>
@@ -278,7 +266,6 @@ GetIdentityPoolConfiguration
278
266
  </summary>
279
267
 
280
268
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-sync/command/GetIdentityPoolConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-sync/Interface/GetIdentityPoolConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-sync/Interface/GetIdentityPoolConfigurationCommandOutput/)
281
-
282
269
  </details>
283
270
  <details>
284
271
  <summary>
@@ -286,7 +273,6 @@ ListDatasets
286
273
  </summary>
287
274
 
288
275
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-sync/command/ListDatasetsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-sync/Interface/ListDatasetsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-sync/Interface/ListDatasetsCommandOutput/)
289
-
290
276
  </details>
291
277
  <details>
292
278
  <summary>
@@ -294,7 +280,6 @@ ListIdentityPoolUsage
294
280
  </summary>
295
281
 
296
282
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-sync/command/ListIdentityPoolUsageCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-sync/Interface/ListIdentityPoolUsageCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-sync/Interface/ListIdentityPoolUsageCommandOutput/)
297
-
298
283
  </details>
299
284
  <details>
300
285
  <summary>
@@ -302,7 +287,6 @@ ListRecords
302
287
  </summary>
303
288
 
304
289
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-sync/command/ListRecordsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-sync/Interface/ListRecordsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-sync/Interface/ListRecordsCommandOutput/)
305
-
306
290
  </details>
307
291
  <details>
308
292
  <summary>
@@ -310,7 +294,6 @@ RegisterDevice
310
294
  </summary>
311
295
 
312
296
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-sync/command/RegisterDeviceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-sync/Interface/RegisterDeviceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-sync/Interface/RegisterDeviceCommandOutput/)
313
-
314
297
  </details>
315
298
  <details>
316
299
  <summary>
@@ -318,7 +301,6 @@ SetCognitoEvents
318
301
  </summary>
319
302
 
320
303
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-sync/command/SetCognitoEventsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-sync/Interface/SetCognitoEventsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-sync/Interface/SetCognitoEventsCommandOutput/)
321
-
322
304
  </details>
323
305
  <details>
324
306
  <summary>
@@ -326,7 +308,6 @@ SetIdentityPoolConfiguration
326
308
  </summary>
327
309
 
328
310
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-sync/command/SetIdentityPoolConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-sync/Interface/SetIdentityPoolConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-sync/Interface/SetIdentityPoolConfigurationCommandOutput/)
329
-
330
311
  </details>
331
312
  <details>
332
313
  <summary>
@@ -334,7 +315,6 @@ SubscribeToDataset
334
315
  </summary>
335
316
 
336
317
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-sync/command/SubscribeToDatasetCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-sync/Interface/SubscribeToDatasetCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-sync/Interface/SubscribeToDatasetCommandOutput/)
337
-
338
318
  </details>
339
319
  <details>
340
320
  <summary>
@@ -342,7 +322,6 @@ UnsubscribeFromDataset
342
322
  </summary>
343
323
 
344
324
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-sync/command/UnsubscribeFromDatasetCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-sync/Interface/UnsubscribeFromDatasetCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-sync/Interface/UnsubscribeFromDatasetCommandOutput/)
345
-
346
325
  </details>
347
326
  <details>
348
327
  <summary>
@@ -350,5 +329,4 @@ UpdateRecords
350
329
  </summary>
351
330
 
352
331
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-sync/command/UpdateRecordsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-sync/Interface/UpdateRecordsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-sync/Interface/UpdateRecordsCommandOutput/)
353
-
354
332
  </details>
@@ -6,10 +6,9 @@ const util_middleware_1 = require("@smithy/util-middleware");
6
6
  const defaultCognitoSyncHttpAuthSchemeParametersProvider = async (config, context, input) => {
7
7
  return {
8
8
  operation: (0, util_middleware_1.getSmithyContext)(context).operation,
9
- region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||
10
- (() => {
11
- throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
12
- })(),
9
+ region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
10
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
11
+ })(),
13
12
  };
14
13
  };
15
14
  exports.defaultCognitoSyncHttpAuthSchemeParametersProvider = defaultCognitoSyncHttpAuthSchemeParametersProvider;