@aws-sdk/client-cognito-identity-provider 3.92.0 → 3.98.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 (70) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +5 -2
  3. package/dist-cjs/commands/StartUserImportJobCommand.js +1 -2
  4. package/dist-cjs/models/models_0.js +15 -15
  5. package/dist-cjs/models/models_1.js +7 -1
  6. package/dist-cjs/protocols/Aws_json1_1.js +51 -0
  7. package/dist-es/commands/StartUserImportJobCommand.js +1 -2
  8. package/dist-es/models/models_0.js +9 -9
  9. package/dist-es/models/models_1.js +4 -0
  10. package/dist-es/protocols/Aws_json1_1.js +87 -39
  11. package/dist-types/CognitoIdentityProvider.d.ts +261 -157
  12. package/dist-types/CognitoIdentityProviderClient.d.ts +5 -2
  13. package/dist-types/commands/AdminConfirmSignUpCommand.d.ts +2 -1
  14. package/dist-types/commands/AdminCreateUserCommand.d.ts +9 -7
  15. package/dist-types/commands/AdminDeleteUserAttributesCommand.d.ts +2 -1
  16. package/dist-types/commands/AdminDisableProviderForUserCommand.d.ts +27 -16
  17. package/dist-types/commands/AdminGetUserCommand.d.ts +2 -1
  18. package/dist-types/commands/AdminInitiateAuthCommand.d.ts +0 -1
  19. package/dist-types/commands/AdminLinkProviderForUserCommand.d.ts +17 -12
  20. package/dist-types/commands/AdminListUserAuthEventsCommand.d.ts +2 -1
  21. package/dist-types/commands/AdminResetUserPasswordCommand.d.ts +10 -6
  22. package/dist-types/commands/AdminSetUserMFAPreferenceCommand.d.ts +5 -3
  23. package/dist-types/commands/AdminSetUserPasswordCommand.d.ts +10 -5
  24. package/dist-types/commands/AdminSetUserSettingsCommand.d.ts +3 -3
  25. package/dist-types/commands/AdminUpdateAuthEventFeedbackCommand.d.ts +3 -2
  26. package/dist-types/commands/AdminUpdateUserAttributesCommand.d.ts +6 -3
  27. package/dist-types/commands/AdminUserGlobalSignOutCommand.d.ts +6 -2
  28. package/dist-types/commands/AssociateSoftwareTokenCommand.d.ts +10 -6
  29. package/dist-types/commands/ConfirmDeviceCommand.d.ts +2 -1
  30. package/dist-types/commands/ConfirmSignUpCommand.d.ts +1 -1
  31. package/dist-types/commands/CreateIdentityProviderCommand.d.ts +1 -1
  32. package/dist-types/commands/CreateUserPoolClientCommand.d.ts +2 -2
  33. package/dist-types/commands/CreateUserPoolCommand.d.ts +2 -1
  34. package/dist-types/commands/DeleteIdentityProviderCommand.d.ts +1 -1
  35. package/dist-types/commands/DescribeIdentityProviderCommand.d.ts +1 -1
  36. package/dist-types/commands/DescribeUserPoolClientCommand.d.ts +2 -1
  37. package/dist-types/commands/ForgotPasswordCommand.d.ts +8 -8
  38. package/dist-types/commands/GetCSVHeaderCommand.d.ts +2 -1
  39. package/dist-types/commands/GetIdentityProviderByIdentifierCommand.d.ts +1 -1
  40. package/dist-types/commands/GetUICustomizationCommand.d.ts +5 -2
  41. package/dist-types/commands/GetUserAttributeVerificationCodeCommand.d.ts +3 -1
  42. package/dist-types/commands/GlobalSignOutCommand.d.ts +5 -2
  43. package/dist-types/commands/InitiateAuthCommand.d.ts +2 -1
  44. package/dist-types/commands/ListDevicesCommand.d.ts +1 -1
  45. package/dist-types/commands/ListIdentityProvidersCommand.d.ts +1 -1
  46. package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -1
  47. package/dist-types/commands/ResendConfirmationCodeCommand.d.ts +2 -1
  48. package/dist-types/commands/RevokeTokenCommand.d.ts +3 -1
  49. package/dist-types/commands/SetRiskConfigurationCommand.d.ts +5 -2
  50. package/dist-types/commands/SetUICustomizationCommand.d.ts +13 -7
  51. package/dist-types/commands/SetUserMFAPreferenceCommand.d.ts +8 -5
  52. package/dist-types/commands/SetUserSettingsCommand.d.ts +3 -2
  53. package/dist-types/commands/SignUpCommand.d.ts +2 -1
  54. package/dist-types/commands/StartUserImportJobCommand.d.ts +1 -2
  55. package/dist-types/commands/TagResourceCommand.d.ts +14 -7
  56. package/dist-types/commands/UntagResourceCommand.d.ts +2 -1
  57. package/dist-types/commands/UpdateAuthEventFeedbackCommand.d.ts +3 -2
  58. package/dist-types/commands/UpdateIdentityProviderCommand.d.ts +1 -1
  59. package/dist-types/commands/UpdateResourceServerCommand.d.ts +4 -3
  60. package/dist-types/commands/UpdateUserPoolClientCommand.d.ts +8 -7
  61. package/dist-types/commands/UpdateUserPoolCommand.d.ts +4 -3
  62. package/dist-types/commands/UpdateUserPoolDomainCommand.d.ts +19 -12
  63. package/dist-types/commands/VerifySoftwareTokenCommand.d.ts +3 -2
  64. package/dist-types/commands/VerifyUserAttributeCommand.d.ts +6 -0
  65. package/dist-types/models/models_0.d.ts +1940 -1245
  66. package/dist-types/models/models_1.d.ts +247 -123
  67. package/dist-types/ts3.4/commands/StartUserImportJobCommand.d.ts +1 -2
  68. package/dist-types/ts3.4/models/models_0.d.ts +17 -15
  69. package/dist-types/ts3.4/models/models_1.d.ts +14 -1
  70. package/package.json +4 -4
@@ -1,8 +1,28 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
2
  import { CognitoIdentityProviderServiceException as __BaseException } from "./CognitoIdentityProviderServiceException";
3
- import { AccountRecoverySettingType, AdminCreateUserConfigType, AnalyticsConfigurationType, AttributeType, CodeDeliveryDetailsType, CustomDomainConfigType, DeviceConfigurationType, DeviceRememberedStatusType, EmailConfigurationType, ExplicitAuthFlowsType, FeedbackValueType, GroupType, IdentityProviderType, LambdaConfigType, OAuthFlowType, PreventUserExistenceErrorTypes, ResourceServerScopeType, ResourceServerType, SmsConfigurationType, TokenValidityUnitsType, UserImportJobType, UserPoolAddOnsType, UserPoolClientType, UserPoolMfaType, UserPoolPolicyType, VerificationMessageTemplateType, VerifiedAttributeType } from "./models_0";
3
+ import { AccountRecoverySettingType, AdminCreateUserConfigType, AnalyticsConfigurationType, AttributeType, CodeDeliveryDetailsType, CustomDomainConfigType, DeviceConfigurationType, DeviceRememberedStatusType, EmailConfigurationType, ExplicitAuthFlowsType, FeedbackValueType, GroupType, IdentityProviderType, LambdaConfigType, OAuthFlowType, PreventUserExistenceErrorTypes, ResourceServerScopeType, ResourceServerType, SmsConfigurationType, TokenValidityUnitsType, UserAttributeUpdateSettingsType, UserImportJobType, UserPoolAddOnsType, UserPoolClientType, UserPoolMfaType, UserPoolPolicyType, VerificationMessageTemplateType, VerifiedAttributeType } from "./models_0";
4
4
  /**
5
- * <p>Represents the response from the server to the request to start the user import job.</p>
5
+ * <p>Represents the request to start the user import job.</p>
6
+ */
7
+ export interface StartUserImportJobRequest {
8
+ /**
9
+ * <p>The user pool ID for the user pool that the users are being imported into.</p>
10
+ */
11
+ UserPoolId: string | undefined;
12
+ /**
13
+ * <p>The job ID for the user import job.</p>
14
+ */
15
+ JobId: string | undefined;
16
+ }
17
+ export declare namespace StartUserImportJobRequest {
18
+ /**
19
+ * @internal
20
+ */
21
+ const filterSensitiveLog: (obj: StartUserImportJobRequest) => any;
22
+ }
23
+ /**
24
+ * <p>Represents the response from the server to the request to start the user import
25
+ * job.</p>
6
26
  */
7
27
  export interface StartUserImportJobResponse {
8
28
  /**
@@ -21,8 +41,7 @@ export declare namespace StartUserImportJobResponse {
21
41
  */
22
42
  export interface StopUserImportJobRequest {
23
43
  /**
24
- * <p>The user pool ID for the user pool that the users are being imported
25
- * into.</p>
44
+ * <p>The user pool ID for the user pool that the users are being imported into.</p>
26
45
  */
27
46
  UserPoolId: string | undefined;
28
47
  /**
@@ -37,7 +56,8 @@ export declare namespace StopUserImportJobRequest {
37
56
  const filterSensitiveLog: (obj: StopUserImportJobRequest) => any;
38
57
  }
39
58
  /**
40
- * <p>Represents the response from the server to the request to stop the user import job.</p>
59
+ * <p>Represents the response from the server to the request to stop the user import
60
+ * job.</p>
41
61
  */
42
62
  export interface StopUserImportJobResponse {
43
63
  /**
@@ -142,7 +162,8 @@ export declare namespace UpdateAuthEventFeedbackResponse {
142
162
  */
143
163
  export interface UpdateDeviceStatusRequest {
144
164
  /**
145
- * <p>The access token.</p>
165
+ * <p>A valid access token that Amazon Cognito issued to the user whose device status you want to
166
+ * update.</p>
146
167
  */
147
168
  AccessToken: string | undefined;
148
169
  /**
@@ -185,12 +206,14 @@ export interface UpdateGroupRequest {
185
206
  */
186
207
  Description?: string;
187
208
  /**
188
- * <p>The new role Amazon Resource Name (ARN) for the group. This is used for setting the <code>cognito:roles</code> and <code>cognito:preferred_role</code> claims in the token.</p>
209
+ * <p>The new role Amazon Resource Name (ARN) for the group. This is used for setting the
210
+ * <code>cognito:roles</code> and <code>cognito:preferred_role</code> claims in the
211
+ * token.</p>
189
212
  */
190
213
  RoleArn?: string;
191
214
  /**
192
- * <p>The new precedence value for the group. For more information about this parameter,
193
- * see <a href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateGroup.html">CreateGroup</a>.</p>
215
+ * <p>The new precedence value for the group. For more information about this parameter, see
216
+ * <a href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateGroup.html">CreateGroup</a>.</p>
194
217
  */
195
218
  Precedence?: number;
196
219
  }
@@ -218,23 +241,24 @@ export interface UpdateIdentityProviderRequest {
218
241
  */
219
242
  UserPoolId: string | undefined;
220
243
  /**
221
- * <p>The identity provider name.</p>
244
+ * <p>The IdP name.</p>
222
245
  */
223
246
  ProviderName: string | undefined;
224
247
  /**
225
- * <p>The identity provider details to be updated, such as <code>MetadataURL</code> and <code>MetadataFile</code>.</p>
248
+ * <p>The IdP details to be updated, such as <code>MetadataURL</code> and
249
+ * <code>MetadataFile</code>.</p>
226
250
  */
227
251
  ProviderDetails?: {
228
252
  [key: string]: string;
229
253
  };
230
254
  /**
231
- * <p>The identity provider attribute mapping to be changed.</p>
255
+ * <p>The IdP attribute mapping to be changed.</p>
232
256
  */
233
257
  AttributeMapping?: {
234
258
  [key: string]: string;
235
259
  };
236
260
  /**
237
- * <p>A list of identity provider identifiers.</p>
261
+ * <p>A list of IdP identifiers.</p>
238
262
  */
239
263
  IdpIdentifiers?: string[];
240
264
  }
@@ -246,7 +270,7 @@ export declare namespace UpdateIdentityProviderRequest {
246
270
  }
247
271
  export interface UpdateIdentityProviderResponse {
248
272
  /**
249
- * <p>The identity provider object.</p>
273
+ * <p>The IdP object.</p>
250
274
  */
251
275
  IdentityProvider: IdentityProviderType | undefined;
252
276
  }
@@ -298,15 +322,23 @@ export declare namespace UpdateResourceServerResponse {
298
322
  export interface UpdateUserAttributesRequest {
299
323
  /**
300
324
  * <p>An array of name-value pairs representing user attributes.</p>
301
- * <p>For custom attributes, you must prepend the <code>custom:</code> prefix to the attribute name.</p>
325
+ * <p>For custom attributes, you must prepend the <code>custom:</code> prefix to the
326
+ * attribute name.</p>
327
+ * <p>If you have set an attribute to require verification before Amazon Cognito updates its value,
328
+ * this request doesn’t immediately update the value of that attribute. After your user
329
+ * receives and responds to a verification message to verify the new value, Amazon Cognito updates
330
+ * the attribute value. Your user can sign in and receive messages with the original
331
+ * attribute value until they verify the new value.</p>
302
332
  */
303
333
  UserAttributes: AttributeType[] | undefined;
304
334
  /**
305
- * <p>The access token for the request to update user attributes.</p>
335
+ * <p>A valid access token that Amazon Cognito issued to the user whose user attributes you want to
336
+ * update.</p>
306
337
  */
307
338
  AccessToken: string | undefined;
308
339
  /**
309
- * <p>A map of custom key-value pairs that you can provide as input for any custom workflows that this action initiates. </p>
340
+ * <p>A map of custom key-value pairs that you can provide as input for any custom workflows
341
+ * that this action initiates. </p>
310
342
  * <p>You create custom workflows by assigning Lambda functions to user pool triggers. When
311
343
  * you use the UpdateUserAttributes API action, Amazon Cognito invokes the function that is assigned
312
344
  * to the <i>custom message</i> trigger. When Amazon Cognito invokes this function, it
@@ -319,21 +351,25 @@ export interface UpdateUserAttributesRequest {
319
351
  * <p>For more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">
320
352
  * Customizing user pool Workflows with Lambda Triggers</a> in the <i>Amazon Cognito Developer Guide</i>.</p>
321
353
  *
322
- * <note>
323
- * <p>When you use the ClientMetadata parameter, remember that Amazon Cognito won't do the following:</p>
354
+ * <note>
355
+ * <p>When you use the ClientMetadata parameter, remember that Amazon Cognito won't do the
356
+ * following:</p>
324
357
  * <ul>
325
358
  * <li>
326
- * <p>Store the ClientMetadata value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool
327
- * configuration doesn't include triggers, the ClientMetadata parameter serves no purpose.</p>
328
- * </li>
359
+ * <p>Store the ClientMetadata value. This data is available only to Lambda
360
+ * triggers that are assigned to a user pool to support custom workflows. If
361
+ * your user pool configuration doesn't include triggers, the ClientMetadata
362
+ * parameter serves no purpose.</p>
363
+ * </li>
329
364
  * <li>
330
- * <p>Validate the ClientMetadata value.</p>
331
- * </li>
365
+ * <p>Validate the ClientMetadata value.</p>
366
+ * </li>
332
367
  * <li>
333
- * <p>Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive information.</p>
334
- * </li>
368
+ * <p>Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive
369
+ * information.</p>
370
+ * </li>
335
371
  * </ul>
336
- * </note>
372
+ * </note>
337
373
  */
338
374
  ClientMetadata?: {
339
375
  [key: string]: string;
@@ -346,11 +382,13 @@ export declare namespace UpdateUserAttributesRequest {
346
382
  const filterSensitiveLog: (obj: UpdateUserAttributesRequest) => any;
347
383
  }
348
384
  /**
349
- * <p>Represents the response from the server for the request to update user attributes.</p>
385
+ * <p>Represents the response from the server for the request to update user
386
+ * attributes.</p>
350
387
  */
351
388
  export interface UpdateUserAttributesResponse {
352
389
  /**
353
- * <p>The code delivery details list from the server for the request to update user attributes.</p>
390
+ * <p>The code delivery details list from the server for the request to update user
391
+ * attributes.</p>
354
392
  */
355
393
  CodeDeliveryDetailsList?: CodeDeliveryDetailsType[];
356
394
  }
@@ -377,7 +415,8 @@ export interface UpdateUserPoolRequest {
377
415
  */
378
416
  LambdaConfig?: LambdaConfigType;
379
417
  /**
380
- * <p>The attributes that are automatically verified when Amazon Cognito requests to update user pools.</p>
418
+ * <p>The attributes that are automatically verified when Amazon Cognito requests to update user
419
+ * pools.</p>
381
420
  */
382
421
  AutoVerifiedAttributes?: (VerifiedAttributeType | string)[];
383
422
  /**
@@ -401,22 +440,28 @@ export interface UpdateUserPoolRequest {
401
440
  */
402
441
  SmsAuthenticationMessage?: string;
403
442
  /**
404
- * <p>Can be one of the following values:</p>
405
- *
406
- * <ul>
443
+ * <p></p>
444
+ */
445
+ UserAttributeUpdateSettings?: UserAttributeUpdateSettingsType;
446
+ /**
447
+ * <p>Possible values include:</p>
448
+ * <ul>
407
449
  * <li>
408
- * <p>
409
- * <code>OFF</code> - MFA tokens aren't required and can't be specified during user registration.</p>
450
+ * <p>
451
+ * <code>OFF</code> - MFA tokens aren't required and can't be specified during user
452
+ * registration.</p>
410
453
  * </li>
411
454
  * <li>
412
- * <p>
413
- * <code>ON</code> - MFA tokens are required for all user registrations. You can only specify ON when you're initially creating a user pool. You can
414
- * use the <a href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_SetUserPoolMfaConfig.html">SetUserPoolMfaConfig</a> API operation
415
- * to turn MFA "ON" for existing user pools. </p>
455
+ * <p>
456
+ * <code>ON</code> - MFA tokens are required for all user registrations. You can
457
+ * only specify ON when you're initially creating a user pool. You can use the
458
+ * <a href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_SetUserPoolMfaConfig.html">SetUserPoolMfaConfig</a> API operation to turn MFA "ON" for existing
459
+ * user pools. </p>
416
460
  * </li>
417
461
  * <li>
418
- * <p>
419
- * <code>OPTIONAL</code> - Users have the option when registering to create an MFA token.</p>
462
+ * <p>
463
+ * <code>OPTIONAL</code> - Users have the option when registering to create an MFA
464
+ * token.</p>
420
465
  * </li>
421
466
  * </ul>
422
467
  */
@@ -439,8 +484,9 @@ export interface UpdateUserPoolRequest {
439
484
  */
440
485
  SmsConfiguration?: SmsConfigurationType;
441
486
  /**
442
- * <p>The tag keys and values to assign to the user pool. A tag is a label that you can use to categorize and manage user pools in different ways, such as by purpose, owner, environment,
443
- * or other criteria.</p>
487
+ * <p>The tag keys and values to assign to the user pool. A tag is a label that you can use
488
+ * to categorize and manage user pools in different ways, such as by purpose, owner,
489
+ * environment, or other criteria.</p>
444
490
  */
445
491
  UserPoolTags?: {
446
492
  [key: string]: string;
@@ -450,14 +496,17 @@ export interface UpdateUserPoolRequest {
450
496
  */
451
497
  AdminCreateUserConfig?: AdminCreateUserConfigType;
452
498
  /**
453
- * <p>Enables advanced security risk detection. Set the key <code>AdvancedSecurityMode</code> to the value "AUDIT".</p>
499
+ * <p>Enables advanced security risk detection. Set the key
500
+ * <code>AdvancedSecurityMode</code> to the value "AUDIT".</p>
454
501
  */
455
502
  UserPoolAddOns?: UserPoolAddOnsType;
456
503
  /**
457
- * <p>The available verified method a user can use to recover their password when they call <code>ForgotPassword</code>. You can use this setting to define a
458
- * preferred method when a user has more than one method available. With this setting, SMS doesn't qualify for a valid password recovery mechanism if the user
459
- * also has SMS multi-factor authentication (MFA) activated. In the absence of this setting, Amazon Cognito uses the legacy behavior to determine the recovery method
460
- * where SMS is preferred through email.</p>
504
+ * <p>The available verified method a user can use to recover their password when they call
505
+ * <code>ForgotPassword</code>. You can use this setting to define a preferred method
506
+ * when a user has more than one method available. With this setting, SMS doesn't qualify
507
+ * for a valid password recovery mechanism if the user also has SMS multi-factor
508
+ * authentication (MFA) activated. In the absence of this setting, Amazon Cognito uses the legacy
509
+ * behavior to determine the recovery method where SMS is preferred through email.</p>
461
510
  */
462
511
  AccountRecoverySetting?: AccountRecoverySettingType;
463
512
  }
@@ -468,7 +517,8 @@ export declare namespace UpdateUserPoolRequest {
468
517
  const filterSensitiveLog: (obj: UpdateUserPoolRequest) => any;
469
518
  }
470
519
  /**
471
- * <p>Represents the response from the server when you make a request to update the user pool.</p>
520
+ * <p>Represents the response from the server when you make a request to update the user
521
+ * pool.</p>
472
522
  */
473
523
  export interface UpdateUserPoolResponse {
474
524
  }
@@ -483,7 +533,8 @@ export declare namespace UpdateUserPoolResponse {
483
533
  */
484
534
  export interface UpdateUserPoolClientRequest {
485
535
  /**
486
- * <p>The user pool ID for the user pool where you want to update the user pool client.</p>
536
+ * <p>The user pool ID for the user pool where you want to update the user pool
537
+ * client.</p>
487
538
  */
488
539
  UserPoolId: string | undefined;
489
540
  /**
@@ -495,19 +546,46 @@ export interface UpdateUserPoolClientRequest {
495
546
  */
496
547
  ClientName?: string;
497
548
  /**
498
- * <p>The time limit, in days, after which the refresh token is no longer valid and can't be used.</p>
549
+ * <p>The refresh token time limit. After this limit expires, your user can't use
550
+ * their refresh token. To specify the time unit for <code>RefreshTokenValidity</code> as
551
+ * <code>seconds</code>, <code>minutes</code>, <code>hours</code>, or <code>days</code>,
552
+ * set a <code>TokenValidityUnits</code> value in your API request.</p>
553
+ * <p>For example, when you set <code>RefreshTokenValidity</code> as <code>10</code> and
554
+ * <code>TokenValidityUnits</code> as <code>days</code>, your user can refresh their session
555
+ * and retrieve new access and ID tokens for 10 days.</p>
556
+ * <p>The default time unit for <code>RefreshTokenValidity</code> in an API request is days.
557
+ * You can't set <code>RefreshTokenValidity</code> to 0. If you do, Amazon Cognito overrides the
558
+ * value with the default value of 30 days. <i>Valid range</i> is displayed below
559
+ * in seconds.</p>
499
560
  */
500
561
  RefreshTokenValidity?: number;
501
562
  /**
502
- * <p>The time limit after which the access token is no longer valid and can't be used.</p>
563
+ * <p>The access token time limit. After this limit expires, your user can't use
564
+ * their access token. To specify the time unit for <code>AccessTokenValidity</code> as
565
+ * <code>seconds</code>, <code>minutes</code>, <code>hours</code>, or <code>days</code>,
566
+ * set a <code>TokenValidityUnits</code> value in your API request.</p>
567
+ * <p>For example, when you set <code>AccessTokenValidity</code> to <code>10</code> and
568
+ * <code>TokenValidityUnits</code> to <code>hours</code>, your user can authorize access with
569
+ * their access token for 10 hours.</p>
570
+ * <p>The default time unit for <code>AccessTokenValidity</code> in an API request is hours.
571
+ * <i>Valid range</i> is displayed below in seconds.</p>
503
572
  */
504
573
  AccessTokenValidity?: number;
505
574
  /**
506
- * <p>The time limit after which the ID token is no longer valid and can't be used.</p>
575
+ * <p>The ID token time limit. After this limit expires, your user can't use
576
+ * their ID token. To specify the time unit for <code>IdTokenValidity</code> as
577
+ * <code>seconds</code>, <code>minutes</code>, <code>hours</code>, or <code>days</code>,
578
+ * set a <code>TokenValidityUnits</code> value in your API request.</p>
579
+ * <p>For example, when you set <code>IdTokenValidity</code> as <code>10</code> and
580
+ * <code>TokenValidityUnits</code> as <code>hours</code>, your user can authenticate their
581
+ * session with their ID token for 10 hours.</p>
582
+ * <p>The default time unit for <code>AccessTokenValidity</code> in an API request is hours.
583
+ * <i>Valid range</i> is displayed below in seconds.</p>
507
584
  */
508
585
  IdTokenValidity?: number;
509
586
  /**
510
- * <p>The units in which the validity times are represented. Default for RefreshToken is days, and default for ID and access tokens is hours.</p>
587
+ * <p>The units in which the validity times are represented. The default unit for
588
+ * RefreshToken is days, and the default for ID and access tokens is hours.</p>
511
589
  */
512
590
  TokenValidityUnits?: TokenValidityUnitsType;
513
591
  /**
@@ -519,126 +597,159 @@ export interface UpdateUserPoolClientRequest {
519
597
  */
520
598
  WriteAttributes?: string[];
521
599
  /**
522
- * <p>The authentication flows that are supported by the user pool clients. Flow names without the <code>ALLOW_</code> prefix are no longer supported in favor of new names with the
523
- * <code>ALLOW_</code> prefix. Note that values with <code>ALLOW_</code> prefix must be used only along with values with the <code>ALLOW_</code> prefix.</p>
600
+ * <p>The authentication flows that are supported by the user pool clients. Flow names
601
+ * without the <code>ALLOW_</code> prefix are no longer supported in favor of new names
602
+ * with the <code>ALLOW_</code> prefix. Note that values with <code>ALLOW_</code> prefix
603
+ * must be used only along with values with the <code>ALLOW_</code> prefix.</p>
524
604
  * <p>Valid values include:</p>
525
- * <ul>
605
+ * <ul>
526
606
  * <li>
527
- * <p>
528
- * <code>ALLOW_ADMIN_USER_PASSWORD_AUTH</code>: Enable admin based user password authentication flow <code>ADMIN_USER_PASSWORD_AUTH</code>. This setting replaces the
529
- * <code>ADMIN_NO_SRP_AUTH</code> setting. With this authentication flow, Amazon Cognito receives the password in the request instead of using the Secure Remote Password (SRP) protocol to
530
- * verify passwords.</p>
607
+ * <p>
608
+ * <code>ALLOW_ADMIN_USER_PASSWORD_AUTH</code>: Enable admin based user password
609
+ * authentication flow <code>ADMIN_USER_PASSWORD_AUTH</code>. This setting replaces
610
+ * the <code>ADMIN_NO_SRP_AUTH</code> setting. With this authentication flow, Amazon Cognito
611
+ * receives the password in the request instead of using the Secure Remote Password
612
+ * (SRP) protocol to verify passwords.</p>
531
613
  * </li>
532
614
  * <li>
533
- * <p>
534
- * <code>ALLOW_CUSTOM_AUTH</code>: Enable Lambda trigger based authentication.</p>
615
+ * <p>
616
+ * <code>ALLOW_CUSTOM_AUTH</code>: Enable Lambda trigger based
617
+ * authentication.</p>
535
618
  * </li>
536
619
  * <li>
537
- * <p>
538
- * <code>ALLOW_USER_PASSWORD_AUTH</code>: Enable user password-based authentication. In this flow, Amazon Cognito receives the password in the request instead of using the SRP
539
- * protocol to verify passwords.</p>
620
+ * <p>
621
+ * <code>ALLOW_USER_PASSWORD_AUTH</code>: Enable user password-based
622
+ * authentication. In this flow, Amazon Cognito receives the password in the request instead
623
+ * of using the SRP protocol to verify passwords.</p>
540
624
  * </li>
541
625
  * <li>
542
- * <p>
626
+ * <p>
543
627
  * <code>ALLOW_USER_SRP_AUTH</code>: Enable SRP-based authentication.</p>
544
628
  * </li>
545
629
  * <li>
546
- * <p>
547
- * <code>ALLOW_REFRESH_TOKEN_AUTH</code>: Enable authflow to refresh tokens.</p>
630
+ * <p>
631
+ * <code>ALLOW_REFRESH_TOKEN_AUTH</code>: Enable authflow to refresh
632
+ * tokens.</p>
548
633
  * </li>
549
634
  * </ul>
550
635
  */
551
636
  ExplicitAuthFlows?: (ExplicitAuthFlowsType | string)[];
552
637
  /**
553
- * <p>A list of provider names for the identity providers that are supported on this client.</p>
638
+ * <p>A list of provider names for the IdPs that this client supports. The following are
639
+ * supported: <code>COGNITO</code>, <code>Facebook</code>, <code>Google</code>
640
+ * <code>LoginWithAmazon</code>, and the names of your own SAML and OIDC providers.</p>
554
641
  */
555
642
  SupportedIdentityProviders?: string[];
556
643
  /**
557
- * <p>A list of allowed redirect (callback) URLs for the identity providers.</p>
644
+ * <p>A list of allowed redirect (callback) URLs for the IdPs.</p>
558
645
  * <p>A redirect URI must:</p>
559
- * <ul>
646
+ * <ul>
560
647
  * <li>
561
- * <p>Be an absolute URI.</p>
648
+ * <p>Be an absolute URI.</p>
562
649
  * </li>
563
650
  * <li>
564
- * <p>Be registered with the authorization server.</p>
651
+ * <p>Be registered with the authorization server.</p>
565
652
  * </li>
566
653
  * <li>
567
- * <p>Not include a
568
- * fragment component.</p>
654
+ * <p>Not include a fragment component.</p>
569
655
  * </li>
570
656
  * </ul>
571
- * <p>See <a href="https://tools.ietf.org/html/rfc6749#section-3.1.2">OAuth 2.0 - Redirection Endpoint</a>.</p>
572
- * <p>Amazon Cognito requires HTTPS over HTTP except for http://localhost for testing purposes only.</p>
657
+ * <p>See <a href="https://tools.ietf.org/html/rfc6749#section-3.1.2">OAuth 2.0 -
658
+ * Redirection Endpoint</a>.</p>
659
+ * <p>Amazon Cognito requires HTTPS over HTTP except for http://localhost for testing purposes
660
+ * only.</p>
573
661
  * <p>App callback URLs such as <code>myapp://example</code> are also supported.</p>
574
662
  */
575
663
  CallbackURLs?: string[];
576
664
  /**
577
- * <p>A list of allowed logout URLs for the identity providers.</p>
665
+ * <p>A list of allowed logout URLs for the IdPs.</p>
578
666
  */
579
667
  LogoutURLs?: string[];
580
668
  /**
581
669
  * <p>The default redirect URI. Must be in the <code>CallbackURLs</code> list.</p>
582
670
  * <p>A redirect URI must:</p>
583
- * <ul>
671
+ * <ul>
584
672
  * <li>
585
- * <p>Be an absolute URI.</p>
673
+ * <p>Be an absolute URI.</p>
586
674
  * </li>
587
675
  * <li>
588
- * <p>Be registered with the authorization server.</p>
676
+ * <p>Be registered with the authorization server.</p>
589
677
  * </li>
590
678
  * <li>
591
- * <p>Not include a
592
- * fragment component.</p>
679
+ * <p>Not include a fragment component.</p>
593
680
  * </li>
594
681
  * </ul>
595
- * <p>See <a href="https://tools.ietf.org/html/rfc6749#section-3.1.2">OAuth 2.0 - Redirection Endpoint</a>.</p>
596
- * <p>Amazon Cognito requires HTTPS over HTTP except for <code>http://localhost</code> for testing purposes only.</p>
682
+ * <p>See <a href="https://tools.ietf.org/html/rfc6749#section-3.1.2">OAuth 2.0 -
683
+ * Redirection Endpoint</a>.</p>
684
+ * <p>Amazon Cognito requires HTTPS over HTTP except for <code>http://localhost</code> for testing
685
+ * purposes only.</p>
597
686
  * <p>App callback URLs such as <code>myapp://example</code> are also supported.</p>
598
687
  */
599
688
  DefaultRedirectURI?: string;
600
689
  /**
601
690
  * <p>The allowed OAuth flows.</p>
602
- * <p>Set to <code>code</code> to initiate a code grant flow, which provides an authorization code as the response. This code can be exchanged for access tokens with the token endpoint.</p>
603
- * <p>Set to <code>implicit</code> to specify that the client should get the access token (and, optionally, ID token, based on scopes) directly.</p>
604
- * <p>Set to <code>client_credentials</code> to specify that the client should get the access token (and, optionally, ID token, based on scopes) from the token endpoint using a combination
605
- * of client and client_secret.</p>
691
+ * <dl>
692
+ * <dt>code</dt>
693
+ * <dd>
694
+ * <p>Use a code grant flow, which provides an authorization code as the
695
+ * response. This code can be exchanged for access tokens with the
696
+ * <code>/oauth2/token</code> endpoint.</p>
697
+ * </dd>
698
+ * <dt>implicit</dt>
699
+ * <dd>
700
+ * <p>Issue the access token (and, optionally, ID token, based on scopes)
701
+ * directly to your user.</p>
702
+ * </dd>
703
+ * <dt>client_credentials</dt>
704
+ * <dd>
705
+ * <p>Issue the access token from the <code>/oauth2/token</code> endpoint
706
+ * directly to a non-person user using a combination of the client ID and
707
+ * client secret.</p>
708
+ * </dd>
709
+ * </dl>
606
710
  */
607
711
  AllowedOAuthFlows?: (OAuthFlowType | string)[];
608
712
  /**
609
- * <p>The allowed OAuth scopes. Possible values provided by OAuth are: <code>phone</code>,
610
- * <code>email</code>, <code>openid</code>, and <code>profile</code>. Possible values provided by Amazon Web Services are: <code>aws.cognito.signin.user.admin</code>. Custom scopes created
713
+ * <p>The allowed OAuth scopes. Possible values provided by OAuth are <code>phone</code>,
714
+ * <code>email</code>, <code>openid</code>, and <code>profile</code>. Possible values
715
+ * provided by Amazon Web Services are <code>aws.cognito.signin.user.admin</code>. Custom scopes created
611
716
  * in Resource Servers are also supported.</p>
612
717
  */
613
718
  AllowedOAuthScopes?: string[];
614
719
  /**
615
- * <p>Set to true if the client is allowed to follow the OAuth protocol when interacting with Amazon Cognito user pools.</p>
720
+ * <p>Set to true if the client is allowed to follow the OAuth protocol when interacting
721
+ * with Amazon Cognito user pools.</p>
616
722
  */
617
723
  AllowedOAuthFlowsUserPoolClient?: boolean;
618
724
  /**
619
- * <p>The Amazon Pinpoint analytics configuration for collecting metrics for this user pool.</p>
620
- * <note>
621
- * <p>In Amazon Web Services Regions where Amazon Pinpoint isn't available, user pools only support sending events to Amazon Pinpoint
622
- * projects in us-east-1. In Regions where Amazon Pinpoint is available, user pools support
623
- * sending events to Amazon Pinpoint projects within that same Region.</p>
624
- * </note>
725
+ * <p>The Amazon Pinpoint analytics configuration necessary to collect metrics for this user
726
+ * pool.</p>
727
+ * <note>
728
+ * <p>In Amazon Web Services Regions where Amazon Pinpoint isn't available, user pools only support sending
729
+ * events to Amazon Pinpoint projects in us-east-1. In Regions where Amazon Pinpoint is available, user
730
+ * pools support sending events to Amazon Pinpoint projects within that same Region.</p>
731
+ * </note>
625
732
  */
626
733
  AnalyticsConfiguration?: AnalyticsConfigurationType;
627
734
  /**
628
- * <p>Errors and responses that you want Amazon Cognito APIs to return during authentication, account confirmation, and password recovery when the user doesn't exist in the
629
- * user pool. When set to <code>ENABLED</code> and the user doesn't exist, authentication returns an error indicating either the username or password was incorrect.
630
- * Account confirmation and password recovery return a response indicating a code was sent to a simulated destination. When set to <code>LEGACY</code>, those APIs
631
- * return a <code>UserNotFoundException</code> exception if the user doesn't exist in the user pool.</p>
735
+ * <p>Errors and responses that you want Amazon Cognito APIs to return during authentication, account
736
+ * confirmation, and password recovery when the user doesn't exist in the user pool. When
737
+ * set to <code>ENABLED</code> and the user doesn't exist, authentication returns an error
738
+ * indicating either the username or password was incorrect. Account confirmation and
739
+ * password recovery return a response indicating a code was sent to a simulated
740
+ * destination. When set to <code>LEGACY</code>, those APIs return a
741
+ * <code>UserNotFoundException</code> exception if the user doesn't exist in the user
742
+ * pool.</p>
632
743
  * <p>Valid values include:</p>
633
- * <ul>
744
+ * <ul>
634
745
  * <li>
635
- * <p>
746
+ * <p>
636
747
  * <code>ENABLED</code> - This prevents user existence-related errors.</p>
637
748
  * </li>
638
749
  * <li>
639
- * <p>
640
- * <code>LEGACY</code> - This represents the early
641
- * behavior of Amazon Cognito where user existence related errors aren't prevented.</p>
750
+ * <p>
751
+ * <code>LEGACY</code> - This represents the early behavior of Amazon Cognito where user
752
+ * existence related errors aren't prevented.</p>
642
753
  * </li>
643
754
  * </ul>
644
755
  */
@@ -656,11 +767,13 @@ export declare namespace UpdateUserPoolClientRequest {
656
767
  const filterSensitiveLog: (obj: UpdateUserPoolClientRequest) => any;
657
768
  }
658
769
  /**
659
- * <p>Represents the response from the server to the request to update the user pool client.</p>
770
+ * <p>Represents the response from the server to the request to update the user pool
771
+ * client.</p>
660
772
  */
661
773
  export interface UpdateUserPoolClientResponse {
662
774
  /**
663
- * <p>The user pool client value from the response from the server when you request to update the user pool client.</p>
775
+ * <p>The user pool client value from the response from the server when you request to
776
+ * update the user pool client.</p>
664
777
  */
665
778
  UserPoolClient?: UserPoolClientType;
666
779
  }
@@ -675,16 +788,21 @@ export declare namespace UpdateUserPoolClientResponse {
675
788
  */
676
789
  export interface UpdateUserPoolDomainRequest {
677
790
  /**
678
- * <p>The domain name for the custom domain that hosts the sign-up and sign-in pages for your application. One example might be <code>auth.example.com</code>. </p>
679
- * <p>This string can include only lowercase letters, numbers, and hyphens. Don't use a hyphen for the first or last character. Use periods to separate subdomain names.</p>
791
+ * <p>The domain name for the custom domain that hosts the sign-up and sign-in pages for
792
+ * your application. One example might be <code>auth.example.com</code>. </p>
793
+ * <p>This string can include only lowercase letters, numbers, and hyphens. Don't use a
794
+ * hyphen for the first or last character. Use periods to separate subdomain names.</p>
680
795
  */
681
796
  Domain: string | undefined;
682
797
  /**
683
- * <p>The ID of the user pool that is associated with the custom domain whose certificate you're updating.</p>
798
+ * <p>The ID of the user pool that is associated with the custom domain whose certificate
799
+ * you're updating.</p>
684
800
  */
685
801
  UserPoolId: string | undefined;
686
802
  /**
687
- * <p>The configuration for a custom domain that hosts the sign-up and sign-in pages for your application. Use this object to specify an SSL certificate that is managed by ACM.</p>
803
+ * <p>The configuration for a custom domain that hosts the sign-up and sign-in pages for
804
+ * your application. Use this object to specify an SSL certificate that is managed by
805
+ * ACM.</p>
688
806
  */
689
807
  CustomDomainConfig: CustomDomainConfigType | undefined;
690
808
  }
@@ -699,7 +817,8 @@ export declare namespace UpdateUserPoolDomainRequest {
699
817
  */
700
818
  export interface UpdateUserPoolDomainResponse {
701
819
  /**
702
- * <p>The Amazon CloudFront endpoint that Amazon Cognito set up when you added the custom domain to your user pool.</p>
820
+ * <p>The Amazon CloudFront endpoint that Amazon Cognito set up when you added the custom domain to your user
821
+ * pool.</p>
703
822
  */
704
823
  CloudFrontDomain?: string;
705
824
  }
@@ -710,7 +829,8 @@ export declare namespace UpdateUserPoolDomainResponse {
710
829
  const filterSensitiveLog: (obj: UpdateUserPoolDomainResponse) => any;
711
830
  }
712
831
  /**
713
- * <p>This exception is thrown when there is a code mismatch and the service fails to configure the software token TOTP multi-factor authentication (MFA).</p>
832
+ * <p>This exception is thrown when there is a code mismatch and the service fails to
833
+ * configure the software token TOTP multi-factor authentication (MFA).</p>
714
834
  */
715
835
  export declare class EnableSoftwareTokenMFAException extends __BaseException {
716
836
  readonly name: "EnableSoftwareTokenMFAException";
@@ -722,16 +842,17 @@ export declare class EnableSoftwareTokenMFAException extends __BaseException {
722
842
  }
723
843
  export interface VerifySoftwareTokenRequest {
724
844
  /**
725
- * <p>The access token.</p>
845
+ * <p>A valid access token that Amazon Cognito issued to the user whose software token you want to
846
+ * verify.</p>
726
847
  */
727
848
  AccessToken?: string;
728
849
  /**
729
- * <p>The session that should be passed both ways in challenge-response calls to the service.</p>
850
+ * <p>The session that should be passed both ways in challenge-response calls to the
851
+ * service.</p>
730
852
  */
731
853
  Session?: string;
732
854
  /**
733
- * <p>The one- time password computed using the secret code returned by
734
- * <a href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AssociateSoftwareToken.html">AssociateSoftwareToken</a>.</p>
855
+ * <p>The one- time password computed using the secret code returned by <a href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AssociateSoftwareToken.html">AssociateSoftwareToken</a>.</p>
735
856
  */
736
857
  UserCode: string | undefined;
737
858
  /**
@@ -755,7 +876,8 @@ export interface VerifySoftwareTokenResponse {
755
876
  */
756
877
  Status?: VerifySoftwareTokenResponseType | string;
757
878
  /**
758
- * <p>The session that should be passed both ways in challenge-response calls to the service.</p>
879
+ * <p>The session that should be passed both ways in challenge-response calls to the
880
+ * service.</p>
759
881
  */
760
882
  Session?: string;
761
883
  }
@@ -770,7 +892,8 @@ export declare namespace VerifySoftwareTokenResponse {
770
892
  */
771
893
  export interface VerifyUserAttributeRequest {
772
894
  /**
773
- * <p>The access token of the request to verify user attributes.</p>
895
+ * <p>A valid access token that Amazon Cognito issued to the user whose user attributes you want to
896
+ * verify.</p>
774
897
  */
775
898
  AccessToken: string | undefined;
776
899
  /**
@@ -789,7 +912,8 @@ export declare namespace VerifyUserAttributeRequest {
789
912
  const filterSensitiveLog: (obj: VerifyUserAttributeRequest) => any;
790
913
  }
791
914
  /**
792
- * <p>A container representing the response from the server from the request to verify user attributes.</p>
915
+ * <p>A container representing the response from the server from the request to verify user
916
+ * attributes.</p>
793
917
  */
794
918
  export interface VerifyUserAttributeResponse {
795
919
  }