@aws-sdk/client-cognito-identity 3.50.0 → 3.53.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 (52) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist-cjs/index.js +3 -0
  3. package/dist-cjs/models/CognitoIdentityServiceException.js +11 -0
  4. package/dist-cjs/models/models_0.js +146 -1
  5. package/dist-cjs/protocols/Aws_json1_1.js +280 -1104
  6. package/dist-es/index.js +1 -0
  7. package/dist-es/models/CognitoIdentityServiceException.js +12 -0
  8. package/dist-es/models/models_0.js +134 -1
  9. package/dist-es/protocols/Aws_json1_1.js +600 -1175
  10. package/dist-types/index.d.ts +1 -0
  11. package/dist-types/models/CognitoIdentityServiceException.d.ts +10 -0
  12. package/dist-types/models/models_0.d.ts +57 -57
  13. package/dist-types/ts3.4/CognitoIdentity.d.ts +120 -0
  14. package/dist-types/ts3.4/CognitoIdentityClient.d.ts +96 -0
  15. package/dist-types/ts3.4/commands/CreateIdentityPoolCommand.d.ts +17 -0
  16. package/dist-types/ts3.4/commands/DeleteIdentitiesCommand.d.ts +17 -0
  17. package/dist-types/ts3.4/commands/DeleteIdentityPoolCommand.d.ts +17 -0
  18. package/dist-types/ts3.4/commands/DescribeIdentityCommand.d.ts +17 -0
  19. package/dist-types/ts3.4/commands/DescribeIdentityPoolCommand.d.ts +17 -0
  20. package/dist-types/ts3.4/commands/GetCredentialsForIdentityCommand.d.ts +17 -0
  21. package/dist-types/ts3.4/commands/GetIdCommand.d.ts +17 -0
  22. package/dist-types/ts3.4/commands/GetIdentityPoolRolesCommand.d.ts +17 -0
  23. package/dist-types/ts3.4/commands/GetOpenIdTokenCommand.d.ts +17 -0
  24. package/dist-types/ts3.4/commands/GetOpenIdTokenForDeveloperIdentityCommand.d.ts +17 -0
  25. package/dist-types/ts3.4/commands/GetPrincipalTagAttributeMapCommand.d.ts +17 -0
  26. package/dist-types/ts3.4/commands/ListIdentitiesCommand.d.ts +17 -0
  27. package/dist-types/ts3.4/commands/ListIdentityPoolsCommand.d.ts +17 -0
  28. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
  29. package/dist-types/ts3.4/commands/LookupDeveloperIdentityCommand.d.ts +17 -0
  30. package/dist-types/ts3.4/commands/MergeDeveloperIdentitiesCommand.d.ts +17 -0
  31. package/dist-types/ts3.4/commands/SetIdentityPoolRolesCommand.d.ts +17 -0
  32. package/dist-types/ts3.4/commands/SetPrincipalTagAttributeMapCommand.d.ts +17 -0
  33. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
  34. package/dist-types/ts3.4/commands/UnlinkDeveloperIdentityCommand.d.ts +17 -0
  35. package/dist-types/ts3.4/commands/UnlinkIdentityCommand.d.ts +17 -0
  36. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
  37. package/dist-types/ts3.4/commands/UpdateIdentityPoolCommand.d.ts +17 -0
  38. package/dist-types/ts3.4/commands/index.d.ts +23 -0
  39. package/dist-types/ts3.4/endpoints.d.ts +2 -0
  40. package/dist-types/ts3.4/index.d.ts +6 -0
  41. package/dist-types/ts3.4/models/CognitoIdentityServiceException.d.ts +6 -0
  42. package/dist-types/ts3.4/models/index.d.ts +1 -0
  43. package/dist-types/ts3.4/models/models_0.d.ts +697 -0
  44. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  45. package/dist-types/ts3.4/pagination/ListIdentityPoolsPaginator.d.ts +4 -0
  46. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  47. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +71 -0
  48. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
  49. package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
  50. package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
  51. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
  52. package/package.json +34 -34
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.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
7
+
8
+
9
+ ### Features
10
+
11
+ * **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))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-cognito-identity
20
+
21
+
22
+
23
+
24
+
25
+ # [3.51.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.50.0...v3.51.0) (2022-02-12)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-cognito-identity
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.50.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.49.0...v3.50.0) (2022-02-08)
7
34
 
8
35
  **Note:** Version bump only for package @aws-sdk/client-cognito-identity
package/dist-cjs/index.js CHANGED
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CognitoIdentityServiceException = void 0;
3
4
  const tslib_1 = require("tslib");
4
5
  tslib_1.__exportStar(require("./CognitoIdentity"), exports);
5
6
  tslib_1.__exportStar(require("./CognitoIdentityClient"), exports);
6
7
  tslib_1.__exportStar(require("./commands"), exports);
7
8
  tslib_1.__exportStar(require("./models"), exports);
8
9
  tslib_1.__exportStar(require("./pagination"), exports);
10
+ var CognitoIdentityServiceException_1 = require("./models/CognitoIdentityServiceException");
11
+ Object.defineProperty(exports, "CognitoIdentityServiceException", { enumerable: true, get: function () { return CognitoIdentityServiceException_1.CognitoIdentityServiceException; } });
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CognitoIdentityServiceException = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ class CognitoIdentityServiceException extends smithy_client_1.ServiceException {
6
+ constructor(options) {
7
+ super(options);
8
+ Object.setPrototypeOf(this, CognitoIdentityServiceException.prototype);
9
+ }
10
+ }
11
+ exports.CognitoIdentityServiceException = CognitoIdentityServiceException;
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UntagResourceResponse = exports.UntagResourceInput = exports.UnlinkIdentityInput = exports.UnlinkDeveloperIdentityInput = exports.TagResourceResponse = exports.TagResourceInput = exports.SetPrincipalTagAttributeMapResponse = exports.SetPrincipalTagAttributeMapInput = exports.SetIdentityPoolRolesInput = exports.MergeDeveloperIdentitiesResponse = exports.MergeDeveloperIdentitiesInput = exports.LookupDeveloperIdentityResponse = exports.LookupDeveloperIdentityInput = exports.ListTagsForResourceResponse = exports.ListTagsForResourceInput = exports.ListIdentityPoolsResponse = exports.IdentityPoolShortDescription = exports.ListIdentityPoolsInput = exports.ListIdentitiesResponse = exports.ListIdentitiesInput = exports.GetPrincipalTagAttributeMapResponse = exports.GetPrincipalTagAttributeMapInput = exports.GetOpenIdTokenForDeveloperIdentityResponse = exports.GetOpenIdTokenForDeveloperIdentityInput = exports.GetOpenIdTokenResponse = exports.GetOpenIdTokenInput = exports.GetIdentityPoolRolesResponse = exports.RoleMapping = exports.RoleMappingType = exports.RulesConfigurationType = exports.MappingRule = exports.MappingRuleMatchType = exports.GetIdentityPoolRolesInput = exports.GetIdResponse = exports.GetIdInput = exports.GetCredentialsForIdentityResponse = exports.Credentials = exports.GetCredentialsForIdentityInput = exports.DescribeIdentityPoolInput = exports.IdentityDescription = exports.DescribeIdentityInput = exports.DeleteIdentityPoolInput = exports.DeleteIdentitiesResponse = exports.UnprocessedIdentityId = exports.ErrorCode = exports.DeleteIdentitiesInput = exports.IdentityPool = exports.CreateIdentityPoolInput = exports.CognitoIdentityProvider = exports.AmbiguousRoleResolutionType = void 0;
3
+ exports.MergeDeveloperIdentitiesInput = exports.LookupDeveloperIdentityResponse = exports.LookupDeveloperIdentityInput = exports.ListTagsForResourceResponse = exports.ListTagsForResourceInput = exports.ListIdentityPoolsResponse = exports.IdentityPoolShortDescription = exports.ListIdentityPoolsInput = exports.ListIdentitiesResponse = exports.ListIdentitiesInput = exports.GetPrincipalTagAttributeMapResponse = exports.GetPrincipalTagAttributeMapInput = exports.GetOpenIdTokenForDeveloperIdentityResponse = exports.GetOpenIdTokenForDeveloperIdentityInput = exports.DeveloperUserAlreadyRegisteredException = exports.GetOpenIdTokenResponse = exports.GetOpenIdTokenInput = exports.GetIdentityPoolRolesResponse = exports.RoleMapping = exports.RoleMappingType = exports.RulesConfigurationType = exports.MappingRule = exports.MappingRuleMatchType = exports.GetIdentityPoolRolesInput = exports.GetIdResponse = exports.GetIdInput = exports.InvalidIdentityPoolConfigurationException = exports.GetCredentialsForIdentityResponse = exports.Credentials = exports.GetCredentialsForIdentityInput = exports.ExternalServiceException = exports.DescribeIdentityPoolInput = exports.IdentityDescription = exports.DescribeIdentityInput = exports.ResourceNotFoundException = exports.DeleteIdentityPoolInput = exports.DeleteIdentitiesResponse = exports.UnprocessedIdentityId = exports.ErrorCode = exports.DeleteIdentitiesInput = exports.TooManyRequestsException = exports.ResourceConflictException = exports.NotAuthorizedException = exports.LimitExceededException = exports.InvalidParameterException = exports.InternalErrorException = exports.IdentityPool = exports.CreateIdentityPoolInput = exports.CognitoIdentityProvider = exports.AmbiguousRoleResolutionType = void 0;
4
+ exports.UntagResourceResponse = exports.UntagResourceInput = exports.UnlinkIdentityInput = exports.UnlinkDeveloperIdentityInput = exports.TagResourceResponse = exports.TagResourceInput = exports.SetPrincipalTagAttributeMapResponse = exports.SetPrincipalTagAttributeMapInput = exports.SetIdentityPoolRolesInput = exports.ConcurrentModificationException = exports.MergeDeveloperIdentitiesResponse = void 0;
5
+ const CognitoIdentityServiceException_1 = require("./CognitoIdentityServiceException");
4
6
  var AmbiguousRoleResolutionType;
5
7
  (function (AmbiguousRoleResolutionType) {
6
8
  AmbiguousRoleResolutionType["AUTHENTICATED_ROLE"] = "AuthenticatedRole";
@@ -24,6 +26,84 @@ var IdentityPool;
24
26
  ...obj,
25
27
  });
26
28
  })(IdentityPool = exports.IdentityPool || (exports.IdentityPool = {}));
29
+ class InternalErrorException extends CognitoIdentityServiceException_1.CognitoIdentityServiceException {
30
+ constructor(opts) {
31
+ super({
32
+ name: "InternalErrorException",
33
+ $fault: "server",
34
+ ...opts,
35
+ });
36
+ this.name = "InternalErrorException";
37
+ this.$fault = "server";
38
+ Object.setPrototypeOf(this, InternalErrorException.prototype);
39
+ }
40
+ }
41
+ exports.InternalErrorException = InternalErrorException;
42
+ class InvalidParameterException extends CognitoIdentityServiceException_1.CognitoIdentityServiceException {
43
+ constructor(opts) {
44
+ super({
45
+ name: "InvalidParameterException",
46
+ $fault: "client",
47
+ ...opts,
48
+ });
49
+ this.name = "InvalidParameterException";
50
+ this.$fault = "client";
51
+ Object.setPrototypeOf(this, InvalidParameterException.prototype);
52
+ }
53
+ }
54
+ exports.InvalidParameterException = InvalidParameterException;
55
+ class LimitExceededException extends CognitoIdentityServiceException_1.CognitoIdentityServiceException {
56
+ constructor(opts) {
57
+ super({
58
+ name: "LimitExceededException",
59
+ $fault: "client",
60
+ ...opts,
61
+ });
62
+ this.name = "LimitExceededException";
63
+ this.$fault = "client";
64
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
65
+ }
66
+ }
67
+ exports.LimitExceededException = LimitExceededException;
68
+ class NotAuthorizedException extends CognitoIdentityServiceException_1.CognitoIdentityServiceException {
69
+ constructor(opts) {
70
+ super({
71
+ name: "NotAuthorizedException",
72
+ $fault: "client",
73
+ ...opts,
74
+ });
75
+ this.name = "NotAuthorizedException";
76
+ this.$fault = "client";
77
+ Object.setPrototypeOf(this, NotAuthorizedException.prototype);
78
+ }
79
+ }
80
+ exports.NotAuthorizedException = NotAuthorizedException;
81
+ class ResourceConflictException extends CognitoIdentityServiceException_1.CognitoIdentityServiceException {
82
+ constructor(opts) {
83
+ super({
84
+ name: "ResourceConflictException",
85
+ $fault: "client",
86
+ ...opts,
87
+ });
88
+ this.name = "ResourceConflictException";
89
+ this.$fault = "client";
90
+ Object.setPrototypeOf(this, ResourceConflictException.prototype);
91
+ }
92
+ }
93
+ exports.ResourceConflictException = ResourceConflictException;
94
+ class TooManyRequestsException extends CognitoIdentityServiceException_1.CognitoIdentityServiceException {
95
+ constructor(opts) {
96
+ super({
97
+ name: "TooManyRequestsException",
98
+ $fault: "client",
99
+ ...opts,
100
+ });
101
+ this.name = "TooManyRequestsException";
102
+ this.$fault = "client";
103
+ Object.setPrototypeOf(this, TooManyRequestsException.prototype);
104
+ }
105
+ }
106
+ exports.TooManyRequestsException = TooManyRequestsException;
27
107
  var DeleteIdentitiesInput;
28
108
  (function (DeleteIdentitiesInput) {
29
109
  DeleteIdentitiesInput.filterSensitiveLog = (obj) => ({
@@ -53,6 +133,19 @@ var DeleteIdentityPoolInput;
53
133
  ...obj,
54
134
  });
55
135
  })(DeleteIdentityPoolInput = exports.DeleteIdentityPoolInput || (exports.DeleteIdentityPoolInput = {}));
136
+ class ResourceNotFoundException extends CognitoIdentityServiceException_1.CognitoIdentityServiceException {
137
+ constructor(opts) {
138
+ super({
139
+ name: "ResourceNotFoundException",
140
+ $fault: "client",
141
+ ...opts,
142
+ });
143
+ this.name = "ResourceNotFoundException";
144
+ this.$fault = "client";
145
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
146
+ }
147
+ }
148
+ exports.ResourceNotFoundException = ResourceNotFoundException;
56
149
  var DescribeIdentityInput;
57
150
  (function (DescribeIdentityInput) {
58
151
  DescribeIdentityInput.filterSensitiveLog = (obj) => ({
@@ -71,6 +164,19 @@ var DescribeIdentityPoolInput;
71
164
  ...obj,
72
165
  });
73
166
  })(DescribeIdentityPoolInput = exports.DescribeIdentityPoolInput || (exports.DescribeIdentityPoolInput = {}));
167
+ class ExternalServiceException extends CognitoIdentityServiceException_1.CognitoIdentityServiceException {
168
+ constructor(opts) {
169
+ super({
170
+ name: "ExternalServiceException",
171
+ $fault: "client",
172
+ ...opts,
173
+ });
174
+ this.name = "ExternalServiceException";
175
+ this.$fault = "client";
176
+ Object.setPrototypeOf(this, ExternalServiceException.prototype);
177
+ }
178
+ }
179
+ exports.ExternalServiceException = ExternalServiceException;
74
180
  var GetCredentialsForIdentityInput;
75
181
  (function (GetCredentialsForIdentityInput) {
76
182
  GetCredentialsForIdentityInput.filterSensitiveLog = (obj) => ({
@@ -89,6 +195,19 @@ var GetCredentialsForIdentityResponse;
89
195
  ...obj,
90
196
  });
91
197
  })(GetCredentialsForIdentityResponse = exports.GetCredentialsForIdentityResponse || (exports.GetCredentialsForIdentityResponse = {}));
198
+ class InvalidIdentityPoolConfigurationException extends CognitoIdentityServiceException_1.CognitoIdentityServiceException {
199
+ constructor(opts) {
200
+ super({
201
+ name: "InvalidIdentityPoolConfigurationException",
202
+ $fault: "client",
203
+ ...opts,
204
+ });
205
+ this.name = "InvalidIdentityPoolConfigurationException";
206
+ this.$fault = "client";
207
+ Object.setPrototypeOf(this, InvalidIdentityPoolConfigurationException.prototype);
208
+ }
209
+ }
210
+ exports.InvalidIdentityPoolConfigurationException = InvalidIdentityPoolConfigurationException;
92
211
  var GetIdInput;
93
212
  (function (GetIdInput) {
94
213
  GetIdInput.filterSensitiveLog = (obj) => ({
@@ -155,6 +274,19 @@ var GetOpenIdTokenResponse;
155
274
  ...obj,
156
275
  });
157
276
  })(GetOpenIdTokenResponse = exports.GetOpenIdTokenResponse || (exports.GetOpenIdTokenResponse = {}));
277
+ class DeveloperUserAlreadyRegisteredException extends CognitoIdentityServiceException_1.CognitoIdentityServiceException {
278
+ constructor(opts) {
279
+ super({
280
+ name: "DeveloperUserAlreadyRegisteredException",
281
+ $fault: "client",
282
+ ...opts,
283
+ });
284
+ this.name = "DeveloperUserAlreadyRegisteredException";
285
+ this.$fault = "client";
286
+ Object.setPrototypeOf(this, DeveloperUserAlreadyRegisteredException.prototype);
287
+ }
288
+ }
289
+ exports.DeveloperUserAlreadyRegisteredException = DeveloperUserAlreadyRegisteredException;
158
290
  var GetOpenIdTokenForDeveloperIdentityInput;
159
291
  (function (GetOpenIdTokenForDeveloperIdentityInput) {
160
292
  GetOpenIdTokenForDeveloperIdentityInput.filterSensitiveLog = (obj) => ({
@@ -245,6 +377,19 @@ var MergeDeveloperIdentitiesResponse;
245
377
  ...obj,
246
378
  });
247
379
  })(MergeDeveloperIdentitiesResponse = exports.MergeDeveloperIdentitiesResponse || (exports.MergeDeveloperIdentitiesResponse = {}));
380
+ class ConcurrentModificationException extends CognitoIdentityServiceException_1.CognitoIdentityServiceException {
381
+ constructor(opts) {
382
+ super({
383
+ name: "ConcurrentModificationException",
384
+ $fault: "client",
385
+ ...opts,
386
+ });
387
+ this.name = "ConcurrentModificationException";
388
+ this.$fault = "client";
389
+ Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
390
+ }
391
+ }
392
+ exports.ConcurrentModificationException = ConcurrentModificationException;
248
393
  var SetIdentityPoolRolesInput;
249
394
  (function (SetIdentityPoolRolesInput) {
250
395
  SetIdentityPoolRolesInput.filterSensitiveLog = (obj) => ({