@aws-sdk/client-cognito-identity-provider 3.933.0 → 3.935.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 (111) hide show
  1. package/dist-cjs/index.js +282 -282
  2. package/dist-es/index.js +2 -1
  3. package/dist-es/models/enums.js +281 -0
  4. package/dist-es/models/errors.js +663 -0
  5. package/dist-es/models/models_0.js +1 -876
  6. package/dist-es/models/models_1.js +1 -69
  7. package/dist-es/schemas/schemas_0.js +1 -1
  8. package/dist-types/commands/GetTokensFromRefreshTokenCommand.d.ts +1 -2
  9. package/dist-types/commands/GetUICustomizationCommand.d.ts +1 -1
  10. package/dist-types/commands/GetUserAttributeVerificationCodeCommand.d.ts +1 -1
  11. package/dist-types/commands/GetUserAuthFactorsCommand.d.ts +1 -1
  12. package/dist-types/commands/GetUserCommand.d.ts +1 -1
  13. package/dist-types/commands/GetUserPoolMfaConfigCommand.d.ts +1 -1
  14. package/dist-types/commands/GlobalSignOutCommand.d.ts +1 -1
  15. package/dist-types/commands/InitiateAuthCommand.d.ts +1 -1
  16. package/dist-types/commands/ListDevicesCommand.d.ts +1 -1
  17. package/dist-types/commands/ListGroupsCommand.d.ts +1 -1
  18. package/dist-types/commands/ListIdentityProvidersCommand.d.ts +1 -1
  19. package/dist-types/commands/ListResourceServersCommand.d.ts +1 -1
  20. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  21. package/dist-types/commands/ListTermsCommand.d.ts +1 -1
  22. package/dist-types/commands/ListUserImportJobsCommand.d.ts +1 -1
  23. package/dist-types/commands/ListUserPoolClientsCommand.d.ts +1 -1
  24. package/dist-types/commands/ListUserPoolsCommand.d.ts +1 -1
  25. package/dist-types/commands/ListUsersCommand.d.ts +1 -1
  26. package/dist-types/commands/ListUsersInGroupCommand.d.ts +1 -1
  27. package/dist-types/commands/ListWebAuthnCredentialsCommand.d.ts +1 -1
  28. package/dist-types/commands/ResendConfirmationCodeCommand.d.ts +1 -1
  29. package/dist-types/commands/RespondToAuthChallengeCommand.d.ts +1 -1
  30. package/dist-types/commands/RevokeTokenCommand.d.ts +1 -1
  31. package/dist-types/commands/SetLogDeliveryConfigurationCommand.d.ts +1 -1
  32. package/dist-types/commands/SetRiskConfigurationCommand.d.ts +1 -1
  33. package/dist-types/commands/SetUICustomizationCommand.d.ts +1 -1
  34. package/dist-types/commands/SetUserMFAPreferenceCommand.d.ts +1 -1
  35. package/dist-types/commands/SetUserPoolMfaConfigCommand.d.ts +1 -1
  36. package/dist-types/commands/SetUserSettingsCommand.d.ts +1 -1
  37. package/dist-types/commands/SignUpCommand.d.ts +1 -1
  38. package/dist-types/commands/StartUserImportJobCommand.d.ts +1 -1
  39. package/dist-types/commands/StartWebAuthnRegistrationCommand.d.ts +1 -1
  40. package/dist-types/commands/StopUserImportJobCommand.d.ts +1 -1
  41. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  42. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  43. package/dist-types/commands/UpdateAuthEventFeedbackCommand.d.ts +1 -1
  44. package/dist-types/commands/UpdateDeviceStatusCommand.d.ts +1 -1
  45. package/dist-types/commands/UpdateGroupCommand.d.ts +1 -1
  46. package/dist-types/commands/UpdateIdentityProviderCommand.d.ts +1 -1
  47. package/dist-types/commands/UpdateManagedLoginBrandingCommand.d.ts +1 -1
  48. package/dist-types/commands/UpdateResourceServerCommand.d.ts +1 -1
  49. package/dist-types/commands/UpdateTermsCommand.d.ts +1 -1
  50. package/dist-types/commands/UpdateUserAttributesCommand.d.ts +1 -1
  51. package/dist-types/commands/UpdateUserPoolClientCommand.d.ts +2 -1
  52. package/dist-types/commands/UpdateUserPoolCommand.d.ts +1 -1
  53. package/dist-types/index.d.ts +4 -1
  54. package/dist-types/models/enums.d.ts +681 -0
  55. package/dist-types/models/errors.d.ts +710 -0
  56. package/dist-types/models/models_0.d.ts +3866 -1311
  57. package/dist-types/models/models_1.d.ts +2 -3949
  58. package/dist-types/ts3.4/commands/GetTokensFromRefreshTokenCommand.d.ts +4 -2
  59. package/dist-types/ts3.4/commands/GetUICustomizationCommand.d.ts +1 -1
  60. package/dist-types/ts3.4/commands/GetUserAttributeVerificationCodeCommand.d.ts +1 -1
  61. package/dist-types/ts3.4/commands/GetUserAuthFactorsCommand.d.ts +1 -1
  62. package/dist-types/ts3.4/commands/GetUserCommand.d.ts +1 -1
  63. package/dist-types/ts3.4/commands/GetUserPoolMfaConfigCommand.d.ts +1 -1
  64. package/dist-types/ts3.4/commands/GlobalSignOutCommand.d.ts +1 -1
  65. package/dist-types/ts3.4/commands/InitiateAuthCommand.d.ts +1 -1
  66. package/dist-types/ts3.4/commands/ListDevicesCommand.d.ts +1 -1
  67. package/dist-types/ts3.4/commands/ListGroupsCommand.d.ts +1 -1
  68. package/dist-types/ts3.4/commands/ListIdentityProvidersCommand.d.ts +1 -1
  69. package/dist-types/ts3.4/commands/ListResourceServersCommand.d.ts +1 -1
  70. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
  71. package/dist-types/ts3.4/commands/ListTermsCommand.d.ts +1 -1
  72. package/dist-types/ts3.4/commands/ListUserImportJobsCommand.d.ts +1 -1
  73. package/dist-types/ts3.4/commands/ListUserPoolClientsCommand.d.ts +1 -1
  74. package/dist-types/ts3.4/commands/ListUserPoolsCommand.d.ts +1 -1
  75. package/dist-types/ts3.4/commands/ListUsersCommand.d.ts +1 -1
  76. package/dist-types/ts3.4/commands/ListUsersInGroupCommand.d.ts +1 -1
  77. package/dist-types/ts3.4/commands/ListWebAuthnCredentialsCommand.d.ts +1 -1
  78. package/dist-types/ts3.4/commands/ResendConfirmationCodeCommand.d.ts +1 -1
  79. package/dist-types/ts3.4/commands/RespondToAuthChallengeCommand.d.ts +1 -1
  80. package/dist-types/ts3.4/commands/RevokeTokenCommand.d.ts +1 -1
  81. package/dist-types/ts3.4/commands/SetLogDeliveryConfigurationCommand.d.ts +1 -1
  82. package/dist-types/ts3.4/commands/SetRiskConfigurationCommand.d.ts +1 -1
  83. package/dist-types/ts3.4/commands/SetUICustomizationCommand.d.ts +1 -1
  84. package/dist-types/ts3.4/commands/SetUserMFAPreferenceCommand.d.ts +1 -1
  85. package/dist-types/ts3.4/commands/SetUserPoolMfaConfigCommand.d.ts +1 -1
  86. package/dist-types/ts3.4/commands/SetUserSettingsCommand.d.ts +1 -1
  87. package/dist-types/ts3.4/commands/SignUpCommand.d.ts +1 -1
  88. package/dist-types/ts3.4/commands/StartUserImportJobCommand.d.ts +1 -1
  89. package/dist-types/ts3.4/commands/StartWebAuthnRegistrationCommand.d.ts +1 -1
  90. package/dist-types/ts3.4/commands/StopUserImportJobCommand.d.ts +1 -1
  91. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
  92. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
  93. package/dist-types/ts3.4/commands/UpdateAuthEventFeedbackCommand.d.ts +1 -1
  94. package/dist-types/ts3.4/commands/UpdateDeviceStatusCommand.d.ts +1 -1
  95. package/dist-types/ts3.4/commands/UpdateGroupCommand.d.ts +1 -1
  96. package/dist-types/ts3.4/commands/UpdateIdentityProviderCommand.d.ts +1 -1
  97. package/dist-types/ts3.4/commands/UpdateManagedLoginBrandingCommand.d.ts +1 -1
  98. package/dist-types/ts3.4/commands/UpdateResourceServerCommand.d.ts +1 -1
  99. package/dist-types/ts3.4/commands/UpdateTermsCommand.d.ts +1 -1
  100. package/dist-types/ts3.4/commands/UpdateUserAttributesCommand.d.ts +1 -1
  101. package/dist-types/ts3.4/commands/UpdateUserPoolClientCommand.d.ts +2 -4
  102. package/dist-types/ts3.4/commands/UpdateUserPoolCommand.d.ts +1 -1
  103. package/dist-types/ts3.4/index.d.ts +4 -1
  104. package/dist-types/ts3.4/models/enums.d.ts +372 -0
  105. package/dist-types/ts3.4/models/errors.d.ts +440 -0
  106. package/dist-types/ts3.4/models/models_0.d.ts +540 -759
  107. package/dist-types/ts3.4/models/models_1.d.ts +2 -603
  108. package/package.json +12 -12
  109. package/dist-es/models/index.js +0 -2
  110. package/dist-types/models/index.d.ts +0 -2
  111. package/dist-types/ts3.4/models/index.d.ts +0 -2
@@ -0,0 +1,710 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { CognitoIdentityProviderServiceException as __BaseException } from "./CognitoIdentityProviderServiceException";
3
+ /**
4
+ * <p>This exception is thrown when Amazon Cognito encounters an internal error.</p>
5
+ * @public
6
+ */
7
+ export declare class InternalErrorException extends __BaseException {
8
+ readonly name: "InternalErrorException";
9
+ readonly $fault: "server";
10
+ /**
11
+ * @internal
12
+ */
13
+ constructor(opts: __ExceptionOptionType<InternalErrorException, __BaseException>);
14
+ }
15
+ /**
16
+ * <p>This exception is thrown when the Amazon Cognito service encounters an invalid
17
+ * parameter.</p>
18
+ * @public
19
+ */
20
+ export declare class InvalidParameterException extends __BaseException {
21
+ readonly name: "InvalidParameterException";
22
+ readonly $fault: "client";
23
+ /**
24
+ * <p>The reason code of the exception.</p>
25
+ * @public
26
+ */
27
+ reasonCode?: string | undefined;
28
+ /**
29
+ * @internal
30
+ */
31
+ constructor(opts: __ExceptionOptionType<InvalidParameterException, __BaseException>);
32
+ }
33
+ /**
34
+ * <p>This exception is thrown when a user isn't authorized.</p>
35
+ * @public
36
+ */
37
+ export declare class NotAuthorizedException extends __BaseException {
38
+ readonly name: "NotAuthorizedException";
39
+ readonly $fault: "client";
40
+ /**
41
+ * @internal
42
+ */
43
+ constructor(opts: __ExceptionOptionType<NotAuthorizedException, __BaseException>);
44
+ }
45
+ /**
46
+ * <p>This exception is thrown when the Amazon Cognito service can't find the requested
47
+ * resource.</p>
48
+ * @public
49
+ */
50
+ export declare class ResourceNotFoundException extends __BaseException {
51
+ readonly name: "ResourceNotFoundException";
52
+ readonly $fault: "client";
53
+ /**
54
+ * @internal
55
+ */
56
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
57
+ }
58
+ /**
59
+ * <p>This exception is thrown when the user has made too many requests for a given
60
+ * operation.</p>
61
+ * @public
62
+ */
63
+ export declare class TooManyRequestsException extends __BaseException {
64
+ readonly name: "TooManyRequestsException";
65
+ readonly $fault: "client";
66
+ /**
67
+ * @internal
68
+ */
69
+ constructor(opts: __ExceptionOptionType<TooManyRequestsException, __BaseException>);
70
+ }
71
+ /**
72
+ * <p>This exception is thrown when you're trying to modify a user pool while a user import
73
+ * job is in progress for that pool.</p>
74
+ * @public
75
+ */
76
+ export declare class UserImportInProgressException extends __BaseException {
77
+ readonly name: "UserImportInProgressException";
78
+ readonly $fault: "client";
79
+ /**
80
+ * @internal
81
+ */
82
+ constructor(opts: __ExceptionOptionType<UserImportInProgressException, __BaseException>);
83
+ }
84
+ /**
85
+ * <p>This exception is thrown when a user isn't found.</p>
86
+ * @public
87
+ */
88
+ export declare class UserNotFoundException extends __BaseException {
89
+ readonly name: "UserNotFoundException";
90
+ readonly $fault: "client";
91
+ /**
92
+ * @internal
93
+ */
94
+ constructor(opts: __ExceptionOptionType<UserNotFoundException, __BaseException>);
95
+ }
96
+ /**
97
+ * <p>This exception is thrown when Amazon Cognito encounters an invalid Lambda response.</p>
98
+ * @public
99
+ */
100
+ export declare class InvalidLambdaResponseException extends __BaseException {
101
+ readonly name: "InvalidLambdaResponseException";
102
+ readonly $fault: "client";
103
+ /**
104
+ * @internal
105
+ */
106
+ constructor(opts: __ExceptionOptionType<InvalidLambdaResponseException, __BaseException>);
107
+ }
108
+ /**
109
+ * <p>This exception is thrown when a user exceeds the limit for a requested Amazon Web Services
110
+ * resource.</p>
111
+ * @public
112
+ */
113
+ export declare class LimitExceededException extends __BaseException {
114
+ readonly name: "LimitExceededException";
115
+ readonly $fault: "client";
116
+ /**
117
+ * @internal
118
+ */
119
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
120
+ }
121
+ /**
122
+ * <p>This exception is thrown when the user has made too many failed attempts for a given
123
+ * action, such as sign-in.</p>
124
+ * @public
125
+ */
126
+ export declare class TooManyFailedAttemptsException extends __BaseException {
127
+ readonly name: "TooManyFailedAttemptsException";
128
+ readonly $fault: "client";
129
+ /**
130
+ * @internal
131
+ */
132
+ constructor(opts: __ExceptionOptionType<TooManyFailedAttemptsException, __BaseException>);
133
+ }
134
+ /**
135
+ * <p>This exception is thrown when Amazon Cognito encounters an unexpected exception with
136
+ * Lambda.</p>
137
+ * @public
138
+ */
139
+ export declare class UnexpectedLambdaException extends __BaseException {
140
+ readonly name: "UnexpectedLambdaException";
141
+ readonly $fault: "client";
142
+ /**
143
+ * @internal
144
+ */
145
+ constructor(opts: __ExceptionOptionType<UnexpectedLambdaException, __BaseException>);
146
+ }
147
+ /**
148
+ * <p>This exception is thrown when the Amazon Cognito service encounters a user validation exception
149
+ * with the Lambda service.</p>
150
+ * @public
151
+ */
152
+ export declare class UserLambdaValidationException extends __BaseException {
153
+ readonly name: "UserLambdaValidationException";
154
+ readonly $fault: "client";
155
+ /**
156
+ * @internal
157
+ */
158
+ constructor(opts: __ExceptionOptionType<UserLambdaValidationException, __BaseException>);
159
+ }
160
+ /**
161
+ * <p>This exception is thrown when a verification code fails to deliver
162
+ * successfully.</p>
163
+ * @public
164
+ */
165
+ export declare class CodeDeliveryFailureException extends __BaseException {
166
+ readonly name: "CodeDeliveryFailureException";
167
+ readonly $fault: "client";
168
+ /**
169
+ * @internal
170
+ */
171
+ constructor(opts: __ExceptionOptionType<CodeDeliveryFailureException, __BaseException>);
172
+ }
173
+ /**
174
+ * <p>This exception is thrown when Amazon Cognito encounters an invalid password.</p>
175
+ * @public
176
+ */
177
+ export declare class InvalidPasswordException extends __BaseException {
178
+ readonly name: "InvalidPasswordException";
179
+ readonly $fault: "client";
180
+ /**
181
+ * @internal
182
+ */
183
+ constructor(opts: __ExceptionOptionType<InvalidPasswordException, __BaseException>);
184
+ }
185
+ /**
186
+ * <p>This exception is returned when the role provided for SMS configuration doesn't have
187
+ * permission to publish using Amazon SNS.</p>
188
+ * @public
189
+ */
190
+ export declare class InvalidSmsRoleAccessPolicyException extends __BaseException {
191
+ readonly name: "InvalidSmsRoleAccessPolicyException";
192
+ readonly $fault: "client";
193
+ /**
194
+ * @internal
195
+ */
196
+ constructor(opts: __ExceptionOptionType<InvalidSmsRoleAccessPolicyException, __BaseException>);
197
+ }
198
+ /**
199
+ * <p>This exception is thrown when the trust relationship is not valid for the role
200
+ * provided for SMS configuration. This can happen if you don't trust
201
+ * <code>cognito-idp.amazonaws.com</code> or the external ID provided in the role does
202
+ * not match what is provided in the SMS configuration for the user pool.</p>
203
+ * @public
204
+ */
205
+ export declare class InvalidSmsRoleTrustRelationshipException extends __BaseException {
206
+ readonly name: "InvalidSmsRoleTrustRelationshipException";
207
+ readonly $fault: "client";
208
+ /**
209
+ * @internal
210
+ */
211
+ constructor(opts: __ExceptionOptionType<InvalidSmsRoleTrustRelationshipException, __BaseException>);
212
+ }
213
+ /**
214
+ * <p>This exception is thrown when a precondition is not met.</p>
215
+ * @public
216
+ */
217
+ export declare class PreconditionNotMetException extends __BaseException {
218
+ readonly name: "PreconditionNotMetException";
219
+ readonly $fault: "client";
220
+ /**
221
+ * @internal
222
+ */
223
+ constructor(opts: __ExceptionOptionType<PreconditionNotMetException, __BaseException>);
224
+ }
225
+ /**
226
+ * <p>The request failed because the user is in an unsupported state.</p>
227
+ * @public
228
+ */
229
+ export declare class UnsupportedUserStateException extends __BaseException {
230
+ readonly name: "UnsupportedUserStateException";
231
+ readonly $fault: "client";
232
+ /**
233
+ * @internal
234
+ */
235
+ constructor(opts: __ExceptionOptionType<UnsupportedUserStateException, __BaseException>);
236
+ }
237
+ /**
238
+ * <p>This exception is thrown when Amazon Cognito encounters a user name that already
239
+ * exists in the user pool.</p>
240
+ * @public
241
+ */
242
+ export declare class UsernameExistsException extends __BaseException {
243
+ readonly name: "UsernameExistsException";
244
+ readonly $fault: "client";
245
+ /**
246
+ * @internal
247
+ */
248
+ constructor(opts: __ExceptionOptionType<UsernameExistsException, __BaseException>);
249
+ }
250
+ /**
251
+ * <p>This exception is thrown when a user tries to confirm the account with an email
252
+ * address or phone number that has already been supplied as an alias for a different user
253
+ * profile. This exception indicates that an account with this email address or phone
254
+ * already exists in a user pool that you've configured to use email address or phone
255
+ * number as a sign-in alias.</p>
256
+ * @public
257
+ */
258
+ export declare class AliasExistsException extends __BaseException {
259
+ readonly name: "AliasExistsException";
260
+ readonly $fault: "client";
261
+ /**
262
+ * @internal
263
+ */
264
+ constructor(opts: __ExceptionOptionType<AliasExistsException, __BaseException>);
265
+ }
266
+ /**
267
+ * <p>This exception is thrown when the user pool configuration is not valid.</p>
268
+ * @public
269
+ */
270
+ export declare class InvalidUserPoolConfigurationException extends __BaseException {
271
+ readonly name: "InvalidUserPoolConfigurationException";
272
+ readonly $fault: "client";
273
+ /**
274
+ * @internal
275
+ */
276
+ constructor(opts: __ExceptionOptionType<InvalidUserPoolConfigurationException, __BaseException>);
277
+ }
278
+ /**
279
+ * <p>This exception is thrown when Amazon Cognito isn't allowed to use your email identity. HTTP
280
+ * status code: 400.</p>
281
+ * @public
282
+ */
283
+ export declare class InvalidEmailRoleAccessPolicyException extends __BaseException {
284
+ readonly name: "InvalidEmailRoleAccessPolicyException";
285
+ readonly $fault: "client";
286
+ /**
287
+ * @internal
288
+ */
289
+ constructor(opts: __ExceptionOptionType<InvalidEmailRoleAccessPolicyException, __BaseException>);
290
+ }
291
+ /**
292
+ * <p>This exception is thrown when Amazon Cognito can't find a multi-factor authentication
293
+ * (MFA) method.</p>
294
+ * @public
295
+ */
296
+ export declare class MFAMethodNotFoundException extends __BaseException {
297
+ readonly name: "MFAMethodNotFoundException";
298
+ readonly $fault: "client";
299
+ /**
300
+ * @internal
301
+ */
302
+ constructor(opts: __ExceptionOptionType<MFAMethodNotFoundException, __BaseException>);
303
+ }
304
+ /**
305
+ * <p>This exception is thrown when a password reset is required.</p>
306
+ * @public
307
+ */
308
+ export declare class PasswordResetRequiredException extends __BaseException {
309
+ readonly name: "PasswordResetRequiredException";
310
+ readonly $fault: "client";
311
+ /**
312
+ * @internal
313
+ */
314
+ constructor(opts: __ExceptionOptionType<PasswordResetRequiredException, __BaseException>);
315
+ }
316
+ /**
317
+ * <p>Exception that is thrown when you attempt to perform an operation that isn't enabled
318
+ * for the user pool client.</p>
319
+ * @public
320
+ */
321
+ export declare class UnsupportedOperationException extends __BaseException {
322
+ readonly name: "UnsupportedOperationException";
323
+ readonly $fault: "client";
324
+ /**
325
+ * @internal
326
+ */
327
+ constructor(opts: __ExceptionOptionType<UnsupportedOperationException, __BaseException>);
328
+ }
329
+ /**
330
+ * <p>This exception is thrown when a user isn't confirmed successfully.</p>
331
+ * @public
332
+ */
333
+ export declare class UserNotConfirmedException extends __BaseException {
334
+ readonly name: "UserNotConfirmedException";
335
+ readonly $fault: "client";
336
+ /**
337
+ * @internal
338
+ */
339
+ constructor(opts: __ExceptionOptionType<UserNotConfirmedException, __BaseException>);
340
+ }
341
+ /**
342
+ * <p>This exception is thrown when user pool add-ons aren't enabled.</p>
343
+ * @public
344
+ */
345
+ export declare class UserPoolAddOnNotEnabledException extends __BaseException {
346
+ readonly name: "UserPoolAddOnNotEnabledException";
347
+ readonly $fault: "client";
348
+ /**
349
+ * @internal
350
+ */
351
+ constructor(opts: __ExceptionOptionType<UserPoolAddOnNotEnabledException, __BaseException>);
352
+ }
353
+ /**
354
+ * <p>This exception is thrown if the provided code doesn't match what the server was
355
+ * expecting.</p>
356
+ * @public
357
+ */
358
+ export declare class CodeMismatchException extends __BaseException {
359
+ readonly name: "CodeMismatchException";
360
+ readonly $fault: "client";
361
+ /**
362
+ * @internal
363
+ */
364
+ constructor(opts: __ExceptionOptionType<CodeMismatchException, __BaseException>);
365
+ }
366
+ /**
367
+ * <p>This exception is thrown if a code has expired.</p>
368
+ * @public
369
+ */
370
+ export declare class ExpiredCodeException extends __BaseException {
371
+ readonly name: "ExpiredCodeException";
372
+ readonly $fault: "client";
373
+ /**
374
+ * @internal
375
+ */
376
+ constructor(opts: __ExceptionOptionType<ExpiredCodeException, __BaseException>);
377
+ }
378
+ /**
379
+ * <p>The message returned when a user's new password matches a previous password and
380
+ * doesn't comply with the password-history policy.</p>
381
+ * @public
382
+ */
383
+ export declare class PasswordHistoryPolicyViolationException extends __BaseException {
384
+ readonly name: "PasswordHistoryPolicyViolationException";
385
+ readonly $fault: "client";
386
+ /**
387
+ * @internal
388
+ */
389
+ constructor(opts: __ExceptionOptionType<PasswordHistoryPolicyViolationException, __BaseException>);
390
+ }
391
+ /**
392
+ * <p>This exception is thrown when the software token time-based one-time password (TOTP)
393
+ * multi-factor authentication (MFA) isn't activated for the user pool.</p>
394
+ * @public
395
+ */
396
+ export declare class SoftwareTokenMFANotFoundException extends __BaseException {
397
+ readonly name: "SoftwareTokenMFANotFoundException";
398
+ readonly $fault: "client";
399
+ /**
400
+ * @internal
401
+ */
402
+ constructor(opts: __ExceptionOptionType<SoftwareTokenMFANotFoundException, __BaseException>);
403
+ }
404
+ /**
405
+ * <p>This exception is thrown if two or more modifications are happening
406
+ * concurrently.</p>
407
+ * @public
408
+ */
409
+ export declare class ConcurrentModificationException extends __BaseException {
410
+ readonly name: "ConcurrentModificationException";
411
+ readonly $fault: "client";
412
+ /**
413
+ * @internal
414
+ */
415
+ constructor(opts: __ExceptionOptionType<ConcurrentModificationException, __BaseException>);
416
+ }
417
+ /**
418
+ * <p>This exception is thrown when WAF doesn't allow your request based on a web
419
+ * ACL that's associated with your user pool.</p>
420
+ * @public
421
+ */
422
+ export declare class ForbiddenException extends __BaseException {
423
+ readonly name: "ForbiddenException";
424
+ readonly $fault: "client";
425
+ /**
426
+ * @internal
427
+ */
428
+ constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
429
+ }
430
+ /**
431
+ * <p>This exception is thrown when the challenge from <code>StartWebAuthn</code>
432
+ * registration has expired.</p>
433
+ * @public
434
+ */
435
+ export declare class WebAuthnChallengeNotFoundException extends __BaseException {
436
+ readonly name: "WebAuthnChallengeNotFoundException";
437
+ readonly $fault: "client";
438
+ /**
439
+ * @internal
440
+ */
441
+ constructor(opts: __ExceptionOptionType<WebAuthnChallengeNotFoundException, __BaseException>);
442
+ }
443
+ /**
444
+ * <p>This exception is thrown when the access token is for a different client than the one
445
+ * in the original <code>StartWebAuthnRegistration</code> request.</p>
446
+ * @public
447
+ */
448
+ export declare class WebAuthnClientMismatchException extends __BaseException {
449
+ readonly name: "WebAuthnClientMismatchException";
450
+ readonly $fault: "client";
451
+ /**
452
+ * @internal
453
+ */
454
+ constructor(opts: __ExceptionOptionType<WebAuthnClientMismatchException, __BaseException>);
455
+ }
456
+ /**
457
+ * <p>This exception is thrown when a user presents passkey credentials from an unsupported
458
+ * device or provider.</p>
459
+ * @public
460
+ */
461
+ export declare class WebAuthnCredentialNotSupportedException extends __BaseException {
462
+ readonly name: "WebAuthnCredentialNotSupportedException";
463
+ readonly $fault: "client";
464
+ /**
465
+ * @internal
466
+ */
467
+ constructor(opts: __ExceptionOptionType<WebAuthnCredentialNotSupportedException, __BaseException>);
468
+ }
469
+ /**
470
+ * <p>This exception is thrown when the passkey feature isn't enabled for the user
471
+ * pool.</p>
472
+ * @public
473
+ */
474
+ export declare class WebAuthnNotEnabledException extends __BaseException {
475
+ readonly name: "WebAuthnNotEnabledException";
476
+ readonly $fault: "client";
477
+ /**
478
+ * @internal
479
+ */
480
+ constructor(opts: __ExceptionOptionType<WebAuthnNotEnabledException, __BaseException>);
481
+ }
482
+ /**
483
+ * <p>This exception is thrown when the passkey credential's registration origin does not
484
+ * align with the user pool relying party id.</p>
485
+ * @public
486
+ */
487
+ export declare class WebAuthnOriginNotAllowedException extends __BaseException {
488
+ readonly name: "WebAuthnOriginNotAllowedException";
489
+ readonly $fault: "client";
490
+ /**
491
+ * @internal
492
+ */
493
+ constructor(opts: __ExceptionOptionType<WebAuthnOriginNotAllowedException, __BaseException>);
494
+ }
495
+ /**
496
+ * <p>This exception is thrown when the given passkey credential is associated with a
497
+ * different relying party ID than the user pool relying party ID.</p>
498
+ * @public
499
+ */
500
+ export declare class WebAuthnRelyingPartyMismatchException extends __BaseException {
501
+ readonly name: "WebAuthnRelyingPartyMismatchException";
502
+ readonly $fault: "client";
503
+ /**
504
+ * @internal
505
+ */
506
+ constructor(opts: __ExceptionOptionType<WebAuthnRelyingPartyMismatchException, __BaseException>);
507
+ }
508
+ /**
509
+ * <p>This exception is thrown when a user attempts to confirm a device with a device key
510
+ * that already exists.</p>
511
+ * @public
512
+ */
513
+ export declare class DeviceKeyExistsException extends __BaseException {
514
+ readonly name: "DeviceKeyExistsException";
515
+ readonly $fault: "client";
516
+ /**
517
+ * @internal
518
+ */
519
+ constructor(opts: __ExceptionOptionType<DeviceKeyExistsException, __BaseException>);
520
+ }
521
+ /**
522
+ * <p>This exception is thrown when Amazon Cognito encounters a group that already exists in the user
523
+ * pool.</p>
524
+ * @public
525
+ */
526
+ export declare class GroupExistsException extends __BaseException {
527
+ readonly name: "GroupExistsException";
528
+ readonly $fault: "client";
529
+ /**
530
+ * @internal
531
+ */
532
+ constructor(opts: __ExceptionOptionType<GroupExistsException, __BaseException>);
533
+ }
534
+ /**
535
+ * <p>This exception is thrown when the provider is already supported by the user
536
+ * pool.</p>
537
+ * @public
538
+ */
539
+ export declare class DuplicateProviderException extends __BaseException {
540
+ readonly name: "DuplicateProviderException";
541
+ readonly $fault: "client";
542
+ /**
543
+ * @internal
544
+ */
545
+ constructor(opts: __ExceptionOptionType<DuplicateProviderException, __BaseException>);
546
+ }
547
+ /**
548
+ * <p>This exception is thrown when you attempt to apply a managed login branding style to
549
+ * an app client that already has an assigned style.</p>
550
+ * @public
551
+ */
552
+ export declare class ManagedLoginBrandingExistsException extends __BaseException {
553
+ readonly name: "ManagedLoginBrandingExistsException";
554
+ readonly $fault: "client";
555
+ /**
556
+ * @internal
557
+ */
558
+ constructor(opts: __ExceptionOptionType<ManagedLoginBrandingExistsException, __BaseException>);
559
+ }
560
+ /**
561
+ * <p>Terms document names must be unique to the app client. This exception is thrown when
562
+ * you attempt to create terms documents with a duplicate <code>TermsName</code>.</p>
563
+ * @public
564
+ */
565
+ export declare class TermsExistsException extends __BaseException {
566
+ readonly name: "TermsExistsException";
567
+ readonly $fault: "client";
568
+ /**
569
+ * @internal
570
+ */
571
+ constructor(opts: __ExceptionOptionType<TermsExistsException, __BaseException>);
572
+ }
573
+ /**
574
+ * <p>This exception is thrown when a feature you attempted to configure isn't
575
+ * available in your current feature plan.</p>
576
+ * @public
577
+ */
578
+ export declare class FeatureUnavailableInTierException extends __BaseException {
579
+ readonly name: "FeatureUnavailableInTierException";
580
+ readonly $fault: "client";
581
+ /**
582
+ * @internal
583
+ */
584
+ constructor(opts: __ExceptionOptionType<FeatureUnavailableInTierException, __BaseException>);
585
+ }
586
+ /**
587
+ * <p>This exception is thrown when you've attempted to change your feature plan but
588
+ * the operation isn't permitted.</p>
589
+ * @public
590
+ */
591
+ export declare class TierChangeNotAllowedException extends __BaseException {
592
+ readonly name: "TierChangeNotAllowedException";
593
+ readonly $fault: "client";
594
+ /**
595
+ * @internal
596
+ */
597
+ constructor(opts: __ExceptionOptionType<TierChangeNotAllowedException, __BaseException>);
598
+ }
599
+ /**
600
+ * <p>This exception is thrown when a user pool tag can't be set or updated.</p>
601
+ * @public
602
+ */
603
+ export declare class UserPoolTaggingException extends __BaseException {
604
+ readonly name: "UserPoolTaggingException";
605
+ readonly $fault: "client";
606
+ /**
607
+ * @internal
608
+ */
609
+ constructor(opts: __ExceptionOptionType<UserPoolTaggingException, __BaseException>);
610
+ }
611
+ /**
612
+ * <p>This exception is thrown when the specified OAuth flow is not valid.</p>
613
+ * @public
614
+ */
615
+ export declare class InvalidOAuthFlowException extends __BaseException {
616
+ readonly name: "InvalidOAuthFlowException";
617
+ readonly $fault: "client";
618
+ /**
619
+ * @internal
620
+ */
621
+ constructor(opts: __ExceptionOptionType<InvalidOAuthFlowException, __BaseException>);
622
+ }
623
+ /**
624
+ * <p>This exception is thrown when the specified scope doesn't exist.</p>
625
+ * @public
626
+ */
627
+ export declare class ScopeDoesNotExistException extends __BaseException {
628
+ readonly name: "ScopeDoesNotExistException";
629
+ readonly $fault: "client";
630
+ /**
631
+ * @internal
632
+ */
633
+ constructor(opts: __ExceptionOptionType<ScopeDoesNotExistException, __BaseException>);
634
+ }
635
+ /**
636
+ * <p>This exception is thrown when the specified identifier isn't supported.</p>
637
+ * @public
638
+ */
639
+ export declare class UnsupportedIdentityProviderException extends __BaseException {
640
+ readonly name: "UnsupportedIdentityProviderException";
641
+ readonly $fault: "client";
642
+ /**
643
+ * @internal
644
+ */
645
+ constructor(opts: __ExceptionOptionType<UnsupportedIdentityProviderException, __BaseException>);
646
+ }
647
+ /**
648
+ * <p>This exception is throw when your application requests token refresh with a refresh
649
+ * token that has been invalidated by refresh-token rotation.</p>
650
+ * @public
651
+ */
652
+ export declare class RefreshTokenReuseException extends __BaseException {
653
+ readonly name: "RefreshTokenReuseException";
654
+ readonly $fault: "client";
655
+ /**
656
+ * @internal
657
+ */
658
+ constructor(opts: __ExceptionOptionType<RefreshTokenReuseException, __BaseException>);
659
+ }
660
+ /**
661
+ * <p>Exception that is thrown when the request isn't authorized. This can happen due to an
662
+ * invalid access token in the request.</p>
663
+ * @public
664
+ */
665
+ export declare class UnauthorizedException extends __BaseException {
666
+ readonly name: "UnauthorizedException";
667
+ readonly $fault: "client";
668
+ /**
669
+ * @internal
670
+ */
671
+ constructor(opts: __ExceptionOptionType<UnauthorizedException, __BaseException>);
672
+ }
673
+ /**
674
+ * <p>Exception that is thrown when an unsupported token is passed to an operation.</p>
675
+ * @public
676
+ */
677
+ export declare class UnsupportedTokenTypeException extends __BaseException {
678
+ readonly name: "UnsupportedTokenTypeException";
679
+ readonly $fault: "client";
680
+ /**
681
+ * @internal
682
+ */
683
+ constructor(opts: __ExceptionOptionType<UnsupportedTokenTypeException, __BaseException>);
684
+ }
685
+ /**
686
+ * <p>This exception is thrown when a user pool doesn't have a configured relying party
687
+ * id or a user pool domain.</p>
688
+ * @public
689
+ */
690
+ export declare class WebAuthnConfigurationMissingException extends __BaseException {
691
+ readonly name: "WebAuthnConfigurationMissingException";
692
+ readonly $fault: "client";
693
+ /**
694
+ * @internal
695
+ */
696
+ constructor(opts: __ExceptionOptionType<WebAuthnConfigurationMissingException, __BaseException>);
697
+ }
698
+ /**
699
+ * <p>This exception is thrown when there is a code mismatch and the service fails to
700
+ * configure the software token TOTP multi-factor authentication (MFA).</p>
701
+ * @public
702
+ */
703
+ export declare class EnableSoftwareTokenMFAException extends __BaseException {
704
+ readonly name: "EnableSoftwareTokenMFAException";
705
+ readonly $fault: "client";
706
+ /**
707
+ * @internal
708
+ */
709
+ constructor(opts: __ExceptionOptionType<EnableSoftwareTokenMFAException, __BaseException>);
710
+ }