@aws-sdk/client-cognito-sync 3.52.0 → 3.54.1

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/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.54.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.0...v3.54.1) (2022-03-15)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-cognito-sync
9
+
10
+
11
+
12
+
13
+
14
+ # [3.54.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.53.1...v3.54.0) (2022-03-11)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-cognito-sync
17
+
18
+
19
+
20
+
21
+
22
+ # [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
23
+
24
+
25
+ ### Features
26
+
27
+ * **clients:** generate service exceptions as classes ([#3267](https://github.com/aws/aws-sdk-js-v3/issues/3267)) ([ca64fee](https://github.com/aws/aws-sdk-js-v3/commit/ca64feed3351c394c07dc26b782a5760a396a074))
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
7
34
 
8
35
  **Note:** Version bump only for package @aws-sdk/client-cognito-sync
package/dist-cjs/index.js CHANGED
@@ -1,7 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CognitoSyncServiceException = void 0;
3
4
  const tslib_1 = require("tslib");
4
5
  tslib_1.__exportStar(require("./CognitoSync"), exports);
5
6
  tslib_1.__exportStar(require("./CognitoSyncClient"), exports);
6
7
  tslib_1.__exportStar(require("./commands"), exports);
7
8
  tslib_1.__exportStar(require("./models"), exports);
9
+ var CognitoSyncServiceException_1 = require("./models/CognitoSyncServiceException");
10
+ Object.defineProperty(exports, "CognitoSyncServiceException", { enumerable: true, get: function () { return CognitoSyncServiceException_1.CognitoSyncServiceException; } });
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CognitoSyncServiceException = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ class CognitoSyncServiceException extends smithy_client_1.ServiceException {
6
+ constructor(options) {
7
+ super(options);
8
+ Object.setPrototypeOf(this, CognitoSyncServiceException.prototype);
9
+ }
10
+ }
11
+ exports.CognitoSyncServiceException = CognitoSyncServiceException;
@@ -1,6 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdateRecordsResponse = exports.UpdateRecordsRequest = exports.RecordPatch = exports.UnsubscribeFromDatasetResponse = exports.UnsubscribeFromDatasetRequest = exports.SubscribeToDatasetResponse = exports.SubscribeToDatasetRequest = exports.SetIdentityPoolConfigurationResponse = exports.SetIdentityPoolConfigurationRequest = exports.SetCognitoEventsRequest = exports.RegisterDeviceResponse = exports.RegisterDeviceRequest = exports.ListRecordsResponse = exports._Record = exports.ListRecordsRequest = exports.ListIdentityPoolUsageResponse = exports.ListIdentityPoolUsageRequest = exports.ListDatasetsResponse = exports.ListDatasetsRequest = exports.GetIdentityPoolConfigurationResponse = exports.PushSync = exports.CognitoStreams = exports.GetIdentityPoolConfigurationRequest = exports.GetCognitoEventsResponse = exports.GetCognitoEventsRequest = exports.GetBulkPublishDetailsResponse = exports.BulkPublishStatus = exports.GetBulkPublishDetailsRequest = exports.DescribeIdentityUsageResponse = exports.IdentityUsage = exports.DescribeIdentityUsageRequest = exports.DescribeIdentityPoolUsageResponse = exports.IdentityPoolUsage = exports.DescribeIdentityPoolUsageRequest = exports.DescribeDatasetResponse = exports.DescribeDatasetRequest = exports.DeleteDatasetResponse = exports.Dataset = exports.DeleteDatasetRequest = exports.BulkPublishResponse = exports.BulkPublishRequest = void 0;
3
+ exports.LambdaThrottledException = exports.InvalidLambdaFunctionOutputException = exports.UnsubscribeFromDatasetResponse = exports.UnsubscribeFromDatasetRequest = exports.SubscribeToDatasetResponse = exports.SubscribeToDatasetRequest = exports.SetIdentityPoolConfigurationResponse = exports.SetIdentityPoolConfigurationRequest = exports.ConcurrentModificationException = exports.SetCognitoEventsRequest = exports.RegisterDeviceResponse = exports.RegisterDeviceRequest = exports.InvalidConfigurationException = exports.ListRecordsResponse = exports._Record = exports.ListRecordsRequest = exports.ListIdentityPoolUsageResponse = exports.ListIdentityPoolUsageRequest = exports.ListDatasetsResponse = exports.ListDatasetsRequest = exports.GetIdentityPoolConfigurationResponse = exports.PushSync = exports.CognitoStreams = exports.GetIdentityPoolConfigurationRequest = exports.GetCognitoEventsResponse = exports.GetCognitoEventsRequest = exports.GetBulkPublishDetailsResponse = exports.BulkPublishStatus = exports.GetBulkPublishDetailsRequest = exports.DescribeIdentityUsageResponse = exports.IdentityUsage = exports.DescribeIdentityUsageRequest = exports.DescribeIdentityPoolUsageResponse = exports.IdentityPoolUsage = exports.DescribeIdentityPoolUsageRequest = exports.DescribeDatasetResponse = exports.DescribeDatasetRequest = exports.TooManyRequestsException = exports.ResourceConflictException = exports.DeleteDatasetResponse = exports.Dataset = exports.DeleteDatasetRequest = exports.ResourceNotFoundException = exports.NotAuthorizedException = exports.InvalidParameterException = exports.InternalErrorException = exports.DuplicateRequestException = exports.BulkPublishResponse = exports.BulkPublishRequest = exports.AlreadyStreamedException = void 0;
4
+ exports.UpdateRecordsResponse = exports.UpdateRecordsRequest = exports.RecordPatch = exports.LimitExceededException = void 0;
5
+ const CognitoSyncServiceException_1 = require("./CognitoSyncServiceException");
6
+ class AlreadyStreamedException extends CognitoSyncServiceException_1.CognitoSyncServiceException {
7
+ constructor(opts) {
8
+ super({
9
+ name: "AlreadyStreamedException",
10
+ $fault: "client",
11
+ ...opts,
12
+ });
13
+ this.name = "AlreadyStreamedException";
14
+ this.$fault = "client";
15
+ Object.setPrototypeOf(this, AlreadyStreamedException.prototype);
16
+ }
17
+ }
18
+ exports.AlreadyStreamedException = AlreadyStreamedException;
4
19
  var BulkPublishRequest;
5
20
  (function (BulkPublishRequest) {
6
21
  BulkPublishRequest.filterSensitiveLog = (obj) => ({
@@ -13,6 +28,71 @@ var BulkPublishResponse;
13
28
  ...obj,
14
29
  });
15
30
  })(BulkPublishResponse = exports.BulkPublishResponse || (exports.BulkPublishResponse = {}));
31
+ class DuplicateRequestException extends CognitoSyncServiceException_1.CognitoSyncServiceException {
32
+ constructor(opts) {
33
+ super({
34
+ name: "DuplicateRequestException",
35
+ $fault: "client",
36
+ ...opts,
37
+ });
38
+ this.name = "DuplicateRequestException";
39
+ this.$fault = "client";
40
+ Object.setPrototypeOf(this, DuplicateRequestException.prototype);
41
+ }
42
+ }
43
+ exports.DuplicateRequestException = DuplicateRequestException;
44
+ class InternalErrorException extends CognitoSyncServiceException_1.CognitoSyncServiceException {
45
+ constructor(opts) {
46
+ super({
47
+ name: "InternalErrorException",
48
+ $fault: "server",
49
+ ...opts,
50
+ });
51
+ this.name = "InternalErrorException";
52
+ this.$fault = "server";
53
+ Object.setPrototypeOf(this, InternalErrorException.prototype);
54
+ }
55
+ }
56
+ exports.InternalErrorException = InternalErrorException;
57
+ class InvalidParameterException extends CognitoSyncServiceException_1.CognitoSyncServiceException {
58
+ constructor(opts) {
59
+ super({
60
+ name: "InvalidParameterException",
61
+ $fault: "client",
62
+ ...opts,
63
+ });
64
+ this.name = "InvalidParameterException";
65
+ this.$fault = "client";
66
+ Object.setPrototypeOf(this, InvalidParameterException.prototype);
67
+ }
68
+ }
69
+ exports.InvalidParameterException = InvalidParameterException;
70
+ class NotAuthorizedException extends CognitoSyncServiceException_1.CognitoSyncServiceException {
71
+ constructor(opts) {
72
+ super({
73
+ name: "NotAuthorizedException",
74
+ $fault: "client",
75
+ ...opts,
76
+ });
77
+ this.name = "NotAuthorizedException";
78
+ this.$fault = "client";
79
+ Object.setPrototypeOf(this, NotAuthorizedException.prototype);
80
+ }
81
+ }
82
+ exports.NotAuthorizedException = NotAuthorizedException;
83
+ class ResourceNotFoundException extends CognitoSyncServiceException_1.CognitoSyncServiceException {
84
+ constructor(opts) {
85
+ super({
86
+ name: "ResourceNotFoundException",
87
+ $fault: "client",
88
+ ...opts,
89
+ });
90
+ this.name = "ResourceNotFoundException";
91
+ this.$fault = "client";
92
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
93
+ }
94
+ }
95
+ exports.ResourceNotFoundException = ResourceNotFoundException;
16
96
  var DeleteDatasetRequest;
17
97
  (function (DeleteDatasetRequest) {
18
98
  DeleteDatasetRequest.filterSensitiveLog = (obj) => ({
@@ -31,6 +111,32 @@ var DeleteDatasetResponse;
31
111
  ...obj,
32
112
  });
33
113
  })(DeleteDatasetResponse = exports.DeleteDatasetResponse || (exports.DeleteDatasetResponse = {}));
114
+ class ResourceConflictException extends CognitoSyncServiceException_1.CognitoSyncServiceException {
115
+ constructor(opts) {
116
+ super({
117
+ name: "ResourceConflictException",
118
+ $fault: "client",
119
+ ...opts,
120
+ });
121
+ this.name = "ResourceConflictException";
122
+ this.$fault = "client";
123
+ Object.setPrototypeOf(this, ResourceConflictException.prototype);
124
+ }
125
+ }
126
+ exports.ResourceConflictException = ResourceConflictException;
127
+ class TooManyRequestsException extends CognitoSyncServiceException_1.CognitoSyncServiceException {
128
+ constructor(opts) {
129
+ super({
130
+ name: "TooManyRequestsException",
131
+ $fault: "client",
132
+ ...opts,
133
+ });
134
+ this.name = "TooManyRequestsException";
135
+ this.$fault = "client";
136
+ Object.setPrototypeOf(this, TooManyRequestsException.prototype);
137
+ }
138
+ }
139
+ exports.TooManyRequestsException = TooManyRequestsException;
34
140
  var DescribeDatasetRequest;
35
141
  (function (DescribeDatasetRequest) {
36
142
  DescribeDatasetRequest.filterSensitiveLog = (obj) => ({
@@ -176,6 +282,19 @@ var ListRecordsResponse;
176
282
  ...obj,
177
283
  });
178
284
  })(ListRecordsResponse = exports.ListRecordsResponse || (exports.ListRecordsResponse = {}));
285
+ class InvalidConfigurationException extends CognitoSyncServiceException_1.CognitoSyncServiceException {
286
+ constructor(opts) {
287
+ super({
288
+ name: "InvalidConfigurationException",
289
+ $fault: "client",
290
+ ...opts,
291
+ });
292
+ this.name = "InvalidConfigurationException";
293
+ this.$fault = "client";
294
+ Object.setPrototypeOf(this, InvalidConfigurationException.prototype);
295
+ }
296
+ }
297
+ exports.InvalidConfigurationException = InvalidConfigurationException;
179
298
  var RegisterDeviceRequest;
180
299
  (function (RegisterDeviceRequest) {
181
300
  RegisterDeviceRequest.filterSensitiveLog = (obj) => ({
@@ -194,6 +313,19 @@ var SetCognitoEventsRequest;
194
313
  ...obj,
195
314
  });
196
315
  })(SetCognitoEventsRequest = exports.SetCognitoEventsRequest || (exports.SetCognitoEventsRequest = {}));
316
+ class ConcurrentModificationException extends CognitoSyncServiceException_1.CognitoSyncServiceException {
317
+ constructor(opts) {
318
+ super({
319
+ name: "ConcurrentModificationException",
320
+ $fault: "client",
321
+ ...opts,
322
+ });
323
+ this.name = "ConcurrentModificationException";
324
+ this.$fault = "client";
325
+ Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
326
+ }
327
+ }
328
+ exports.ConcurrentModificationException = ConcurrentModificationException;
197
329
  var SetIdentityPoolConfigurationRequest;
198
330
  (function (SetIdentityPoolConfigurationRequest) {
199
331
  SetIdentityPoolConfigurationRequest.filterSensitiveLog = (obj) => ({
@@ -230,6 +362,45 @@ var UnsubscribeFromDatasetResponse;
230
362
  ...obj,
231
363
  });
232
364
  })(UnsubscribeFromDatasetResponse = exports.UnsubscribeFromDatasetResponse || (exports.UnsubscribeFromDatasetResponse = {}));
365
+ class InvalidLambdaFunctionOutputException extends CognitoSyncServiceException_1.CognitoSyncServiceException {
366
+ constructor(opts) {
367
+ super({
368
+ name: "InvalidLambdaFunctionOutputException",
369
+ $fault: "client",
370
+ ...opts,
371
+ });
372
+ this.name = "InvalidLambdaFunctionOutputException";
373
+ this.$fault = "client";
374
+ Object.setPrototypeOf(this, InvalidLambdaFunctionOutputException.prototype);
375
+ }
376
+ }
377
+ exports.InvalidLambdaFunctionOutputException = InvalidLambdaFunctionOutputException;
378
+ class LambdaThrottledException extends CognitoSyncServiceException_1.CognitoSyncServiceException {
379
+ constructor(opts) {
380
+ super({
381
+ name: "LambdaThrottledException",
382
+ $fault: "client",
383
+ ...opts,
384
+ });
385
+ this.name = "LambdaThrottledException";
386
+ this.$fault = "client";
387
+ Object.setPrototypeOf(this, LambdaThrottledException.prototype);
388
+ }
389
+ }
390
+ exports.LambdaThrottledException = LambdaThrottledException;
391
+ class LimitExceededException extends CognitoSyncServiceException_1.CognitoSyncServiceException {
392
+ constructor(opts) {
393
+ super({
394
+ name: "LimitExceededException",
395
+ $fault: "client",
396
+ ...opts,
397
+ });
398
+ this.name = "LimitExceededException";
399
+ this.$fault = "client";
400
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
401
+ }
402
+ }
403
+ exports.LimitExceededException = LimitExceededException;
233
404
  var RecordPatch;
234
405
  (function (RecordPatch) {
235
406
  RecordPatch.filterSensitiveLog = (obj) => ({