@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.
- package/CHANGELOG.md +27 -0
- package/README.md +5 -2
- package/dist-cjs/commands/StartUserImportJobCommand.js +1 -2
- package/dist-cjs/models/models_0.js +15 -15
- package/dist-cjs/models/models_1.js +7 -1
- package/dist-cjs/protocols/Aws_json1_1.js +51 -0
- package/dist-es/commands/StartUserImportJobCommand.js +1 -2
- package/dist-es/models/models_0.js +9 -9
- package/dist-es/models/models_1.js +4 -0
- package/dist-es/protocols/Aws_json1_1.js +87 -39
- package/dist-types/CognitoIdentityProvider.d.ts +261 -157
- package/dist-types/CognitoIdentityProviderClient.d.ts +5 -2
- package/dist-types/commands/AdminConfirmSignUpCommand.d.ts +2 -1
- package/dist-types/commands/AdminCreateUserCommand.d.ts +9 -7
- package/dist-types/commands/AdminDeleteUserAttributesCommand.d.ts +2 -1
- package/dist-types/commands/AdminDisableProviderForUserCommand.d.ts +27 -16
- package/dist-types/commands/AdminGetUserCommand.d.ts +2 -1
- package/dist-types/commands/AdminInitiateAuthCommand.d.ts +0 -1
- package/dist-types/commands/AdminLinkProviderForUserCommand.d.ts +17 -12
- package/dist-types/commands/AdminListUserAuthEventsCommand.d.ts +2 -1
- package/dist-types/commands/AdminResetUserPasswordCommand.d.ts +10 -6
- package/dist-types/commands/AdminSetUserMFAPreferenceCommand.d.ts +5 -3
- package/dist-types/commands/AdminSetUserPasswordCommand.d.ts +10 -5
- package/dist-types/commands/AdminSetUserSettingsCommand.d.ts +3 -3
- package/dist-types/commands/AdminUpdateAuthEventFeedbackCommand.d.ts +3 -2
- package/dist-types/commands/AdminUpdateUserAttributesCommand.d.ts +6 -3
- package/dist-types/commands/AdminUserGlobalSignOutCommand.d.ts +6 -2
- package/dist-types/commands/AssociateSoftwareTokenCommand.d.ts +10 -6
- package/dist-types/commands/ConfirmDeviceCommand.d.ts +2 -1
- package/dist-types/commands/ConfirmSignUpCommand.d.ts +1 -1
- package/dist-types/commands/CreateIdentityProviderCommand.d.ts +1 -1
- package/dist-types/commands/CreateUserPoolClientCommand.d.ts +2 -2
- package/dist-types/commands/CreateUserPoolCommand.d.ts +2 -1
- package/dist-types/commands/DeleteIdentityProviderCommand.d.ts +1 -1
- package/dist-types/commands/DescribeIdentityProviderCommand.d.ts +1 -1
- package/dist-types/commands/DescribeUserPoolClientCommand.d.ts +2 -1
- package/dist-types/commands/ForgotPasswordCommand.d.ts +8 -8
- package/dist-types/commands/GetCSVHeaderCommand.d.ts +2 -1
- package/dist-types/commands/GetIdentityProviderByIdentifierCommand.d.ts +1 -1
- package/dist-types/commands/GetUICustomizationCommand.d.ts +5 -2
- package/dist-types/commands/GetUserAttributeVerificationCodeCommand.d.ts +3 -1
- package/dist-types/commands/GlobalSignOutCommand.d.ts +5 -2
- package/dist-types/commands/InitiateAuthCommand.d.ts +2 -1
- package/dist-types/commands/ListDevicesCommand.d.ts +1 -1
- package/dist-types/commands/ListIdentityProvidersCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -1
- package/dist-types/commands/ResendConfirmationCodeCommand.d.ts +2 -1
- package/dist-types/commands/RevokeTokenCommand.d.ts +3 -1
- package/dist-types/commands/SetRiskConfigurationCommand.d.ts +5 -2
- package/dist-types/commands/SetUICustomizationCommand.d.ts +13 -7
- package/dist-types/commands/SetUserMFAPreferenceCommand.d.ts +8 -5
- package/dist-types/commands/SetUserSettingsCommand.d.ts +3 -2
- package/dist-types/commands/SignUpCommand.d.ts +2 -1
- package/dist-types/commands/StartUserImportJobCommand.d.ts +1 -2
- package/dist-types/commands/TagResourceCommand.d.ts +14 -7
- package/dist-types/commands/UntagResourceCommand.d.ts +2 -1
- package/dist-types/commands/UpdateAuthEventFeedbackCommand.d.ts +3 -2
- package/dist-types/commands/UpdateIdentityProviderCommand.d.ts +1 -1
- package/dist-types/commands/UpdateResourceServerCommand.d.ts +4 -3
- package/dist-types/commands/UpdateUserPoolClientCommand.d.ts +8 -7
- package/dist-types/commands/UpdateUserPoolCommand.d.ts +4 -3
- package/dist-types/commands/UpdateUserPoolDomainCommand.d.ts +19 -12
- package/dist-types/commands/VerifySoftwareTokenCommand.d.ts +3 -2
- package/dist-types/commands/VerifyUserAttributeCommand.d.ts +6 -0
- package/dist-types/models/models_0.d.ts +1940 -1245
- package/dist-types/models/models_1.d.ts +247 -123
- package/dist-types/ts3.4/commands/StartUserImportJobCommand.d.ts +1 -2
- package/dist-types/ts3.4/models/models_0.d.ts +17 -15
- package/dist-types/ts3.4/models/models_1.d.ts +14 -1
- 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
|
|
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
|
|
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>
|
|
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
|
|
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
|
-
*
|
|
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
|
|
244
|
+
* <p>The IdP name.</p>
|
|
222
245
|
*/
|
|
223
246
|
ProviderName: string | undefined;
|
|
224
247
|
/**
|
|
225
|
-
* <p>The
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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>
|
|
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
|
|
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
|
-
*
|
|
323
|
-
* <p>When you use the ClientMetadata parameter, remember that Amazon Cognito won't do the
|
|
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
|
-
*
|
|
327
|
-
*
|
|
328
|
-
*
|
|
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
|
-
*
|
|
331
|
-
*
|
|
365
|
+
* <p>Validate the ClientMetadata value.</p>
|
|
366
|
+
* </li>
|
|
332
367
|
* <li>
|
|
333
|
-
*
|
|
334
|
-
*
|
|
368
|
+
* <p>Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive
|
|
369
|
+
* information.</p>
|
|
370
|
+
* </li>
|
|
335
371
|
* </ul>
|
|
336
|
-
*
|
|
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
|
|
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
|
|
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
|
|
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
|
|
405
|
-
|
|
406
|
-
|
|
443
|
+
* <p></p>
|
|
444
|
+
*/
|
|
445
|
+
UserAttributeUpdateSettings?: UserAttributeUpdateSettingsType;
|
|
446
|
+
/**
|
|
447
|
+
* <p>Possible values include:</p>
|
|
448
|
+
* <ul>
|
|
407
449
|
* <li>
|
|
408
|
-
*
|
|
409
|
-
*
|
|
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
|
-
*
|
|
413
|
-
*
|
|
414
|
-
*
|
|
415
|
-
*
|
|
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
|
-
*
|
|
419
|
-
*
|
|
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
|
|
443
|
-
*
|
|
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
|
|
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
|
|
458
|
-
*
|
|
459
|
-
*
|
|
460
|
-
*
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
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
|
|
523
|
-
*
|
|
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
|
-
*
|
|
605
|
+
* <ul>
|
|
526
606
|
* <li>
|
|
527
|
-
*
|
|
528
|
-
* <code>ALLOW_ADMIN_USER_PASSWORD_AUTH</code>: Enable admin based user password
|
|
529
|
-
*
|
|
530
|
-
*
|
|
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
|
-
*
|
|
534
|
-
* <code>ALLOW_CUSTOM_AUTH</code>: Enable Lambda trigger based
|
|
615
|
+
* <p>
|
|
616
|
+
* <code>ALLOW_CUSTOM_AUTH</code>: Enable Lambda trigger based
|
|
617
|
+
* authentication.</p>
|
|
535
618
|
* </li>
|
|
536
619
|
* <li>
|
|
537
|
-
*
|
|
538
|
-
* <code>ALLOW_USER_PASSWORD_AUTH</code>: Enable user password-based
|
|
539
|
-
*
|
|
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
|
-
*
|
|
626
|
+
* <p>
|
|
543
627
|
* <code>ALLOW_USER_SRP_AUTH</code>: Enable SRP-based authentication.</p>
|
|
544
628
|
* </li>
|
|
545
629
|
* <li>
|
|
546
|
-
*
|
|
547
|
-
* <code>ALLOW_REFRESH_TOKEN_AUTH</code>: Enable authflow to refresh
|
|
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
|
|
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
|
|
644
|
+
* <p>A list of allowed redirect (callback) URLs for the IdPs.</p>
|
|
558
645
|
* <p>A redirect URI must:</p>
|
|
559
|
-
*
|
|
646
|
+
* <ul>
|
|
560
647
|
* <li>
|
|
561
|
-
*
|
|
648
|
+
* <p>Be an absolute URI.</p>
|
|
562
649
|
* </li>
|
|
563
650
|
* <li>
|
|
564
|
-
*
|
|
651
|
+
* <p>Be registered with the authorization server.</p>
|
|
565
652
|
* </li>
|
|
566
653
|
* <li>
|
|
567
|
-
*
|
|
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 -
|
|
572
|
-
*
|
|
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
|
|
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
|
-
*
|
|
671
|
+
* <ul>
|
|
584
672
|
* <li>
|
|
585
|
-
*
|
|
673
|
+
* <p>Be an absolute URI.</p>
|
|
586
674
|
* </li>
|
|
587
675
|
* <li>
|
|
588
|
-
*
|
|
676
|
+
* <p>Be registered with the authorization server.</p>
|
|
589
677
|
* </li>
|
|
590
678
|
* <li>
|
|
591
|
-
*
|
|
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 -
|
|
596
|
-
*
|
|
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
|
-
* <
|
|
603
|
-
*
|
|
604
|
-
*
|
|
605
|
-
*
|
|
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
|
|
610
|
-
*
|
|
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
|
|
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
|
|
620
|
-
*
|
|
621
|
-
*
|
|
622
|
-
*
|
|
623
|
-
*
|
|
624
|
-
*
|
|
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
|
|
629
|
-
*
|
|
630
|
-
*
|
|
631
|
-
*
|
|
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
|
-
*
|
|
744
|
+
* <ul>
|
|
634
745
|
* <li>
|
|
635
|
-
*
|
|
746
|
+
* <p>
|
|
636
747
|
* <code>ENABLED</code> - This prevents user existence-related errors.</p>
|
|
637
748
|
* </li>
|
|
638
749
|
* <li>
|
|
639
|
-
*
|
|
640
|
-
* <code>LEGACY</code> - This represents the early
|
|
641
|
-
*
|
|
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
|
|
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
|
|
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
|
|
679
|
-
*
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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>
|
|
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
|
|
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
|
|
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>
|
|
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
|
|
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
|
}
|