@aws-sdk/client-cognito-identity-provider 3.650.0 → 3.651.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/dist-cjs/index.js +37 -36
- package/dist-es/commands/RespondToAuthChallengeCommand.js +2 -1
- package/dist-es/commands/RevokeTokenCommand.js +1 -1
- package/dist-es/models/models_0.js +13 -25
- package/dist-es/models/models_1.js +14 -1
- package/dist-es/protocols/Aws_json1_1.js +3 -3
- package/dist-types/commands/AdminCreateUserCommand.d.ts +1 -1
- package/dist-types/commands/AdminInitiateAuthCommand.d.ts +6 -2
- package/dist-types/commands/AdminResetUserPasswordCommand.d.ts +1 -1
- package/dist-types/commands/AdminRespondToAuthChallengeCommand.d.ts +7 -3
- package/dist-types/commands/AdminSetUserMFAPreferenceCommand.d.ts +9 -5
- package/dist-types/commands/AdminUpdateUserAttributesCommand.d.ts +1 -1
- package/dist-types/commands/CreateUserPoolCommand.d.ts +1 -1
- package/dist-types/commands/ForgotPasswordCommand.d.ts +1 -1
- package/dist-types/commands/GetUserAttributeVerificationCodeCommand.d.ts +1 -1
- package/dist-types/commands/GetUserPoolMfaConfigCommand.d.ts +4 -0
- package/dist-types/commands/InitiateAuthCommand.d.ts +6 -2
- package/dist-types/commands/ResendConfirmationCodeCommand.d.ts +1 -1
- package/dist-types/commands/RespondToAuthChallengeCommand.d.ts +9 -4
- package/dist-types/commands/RevokeTokenCommand.d.ts +1 -2
- package/dist-types/commands/SetUserMFAPreferenceCommand.d.ts +4 -0
- package/dist-types/commands/SetUserPoolMfaConfigCommand.d.ts +9 -1
- package/dist-types/commands/SignUpCommand.d.ts +1 -1
- package/dist-types/commands/UpdateUserAttributesCommand.d.ts +1 -1
- package/dist-types/commands/UpdateUserPoolCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +139 -95
- package/dist-types/models/models_1.d.ts +96 -9
- package/dist-types/ts3.4/commands/RespondToAuthChallengeCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/RevokeTokenCommand.d.ts +1 -2
- package/dist-types/ts3.4/models/models_0.d.ts +21 -27
- package/dist-types/ts3.4/models/models_1.d.ts +24 -0
- package/package.json +1 -1
package/dist-cjs/index.js
CHANGED
|
@@ -884,6 +884,7 @@ var ChallengeNameType = {
|
|
|
884
884
|
CUSTOM_CHALLENGE: "CUSTOM_CHALLENGE",
|
|
885
885
|
DEVICE_PASSWORD_VERIFIER: "DEVICE_PASSWORD_VERIFIER",
|
|
886
886
|
DEVICE_SRP_AUTH: "DEVICE_SRP_AUTH",
|
|
887
|
+
EMAIL_OTP: "EMAIL_OTP",
|
|
887
888
|
MFA_SETUP: "MFA_SETUP",
|
|
888
889
|
NEW_PASSWORD_REQUIRED: "NEW_PASSWORD_REQUIRED",
|
|
889
890
|
PASSWORD_VERIFIER: "PASSWORD_VERIFIER",
|
|
@@ -891,6 +892,23 @@ var ChallengeNameType = {
|
|
|
891
892
|
SMS_MFA: "SMS_MFA",
|
|
892
893
|
SOFTWARE_TOKEN_MFA: "SOFTWARE_TOKEN_MFA"
|
|
893
894
|
};
|
|
895
|
+
var _InvalidEmailRoleAccessPolicyException = class _InvalidEmailRoleAccessPolicyException extends CognitoIdentityProviderServiceException {
|
|
896
|
+
/**
|
|
897
|
+
* @internal
|
|
898
|
+
*/
|
|
899
|
+
constructor(opts) {
|
|
900
|
+
super({
|
|
901
|
+
name: "InvalidEmailRoleAccessPolicyException",
|
|
902
|
+
$fault: "client",
|
|
903
|
+
...opts
|
|
904
|
+
});
|
|
905
|
+
this.name = "InvalidEmailRoleAccessPolicyException";
|
|
906
|
+
this.$fault = "client";
|
|
907
|
+
Object.setPrototypeOf(this, _InvalidEmailRoleAccessPolicyException.prototype);
|
|
908
|
+
}
|
|
909
|
+
};
|
|
910
|
+
__name(_InvalidEmailRoleAccessPolicyException, "InvalidEmailRoleAccessPolicyException");
|
|
911
|
+
var InvalidEmailRoleAccessPolicyException = _InvalidEmailRoleAccessPolicyException;
|
|
894
912
|
var _MFAMethodNotFoundException = class _MFAMethodNotFoundException extends CognitoIdentityProviderServiceException {
|
|
895
913
|
/**
|
|
896
914
|
* @internal
|
|
@@ -993,23 +1011,6 @@ var _UserPoolAddOnNotEnabledException = class _UserPoolAddOnNotEnabledException
|
|
|
993
1011
|
};
|
|
994
1012
|
__name(_UserPoolAddOnNotEnabledException, "UserPoolAddOnNotEnabledException");
|
|
995
1013
|
var UserPoolAddOnNotEnabledException = _UserPoolAddOnNotEnabledException;
|
|
996
|
-
var _InvalidEmailRoleAccessPolicyException = class _InvalidEmailRoleAccessPolicyException extends CognitoIdentityProviderServiceException {
|
|
997
|
-
/**
|
|
998
|
-
* @internal
|
|
999
|
-
*/
|
|
1000
|
-
constructor(opts) {
|
|
1001
|
-
super({
|
|
1002
|
-
name: "InvalidEmailRoleAccessPolicyException",
|
|
1003
|
-
$fault: "client",
|
|
1004
|
-
...opts
|
|
1005
|
-
});
|
|
1006
|
-
this.name = "InvalidEmailRoleAccessPolicyException";
|
|
1007
|
-
this.$fault = "client";
|
|
1008
|
-
Object.setPrototypeOf(this, _InvalidEmailRoleAccessPolicyException.prototype);
|
|
1009
|
-
}
|
|
1010
|
-
};
|
|
1011
|
-
__name(_InvalidEmailRoleAccessPolicyException, "InvalidEmailRoleAccessPolicyException");
|
|
1012
|
-
var InvalidEmailRoleAccessPolicyException = _InvalidEmailRoleAccessPolicyException;
|
|
1013
1014
|
var _CodeMismatchException = class _CodeMismatchException extends CognitoIdentityProviderServiceException {
|
|
1014
1015
|
/**
|
|
1015
1016
|
* @internal
|
|
@@ -1682,19 +1683,6 @@ var RespondToAuthChallengeRequestFilterSensitiveLog = /* @__PURE__ */ __name((ob
|
|
|
1682
1683
|
...obj.ChallengeResponses && { ChallengeResponses: import_smithy_client.SENSITIVE_STRING },
|
|
1683
1684
|
...obj.UserContextData && { UserContextData: import_smithy_client.SENSITIVE_STRING }
|
|
1684
1685
|
}), "RespondToAuthChallengeRequestFilterSensitiveLog");
|
|
1685
|
-
var RespondToAuthChallengeResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1686
|
-
...obj,
|
|
1687
|
-
...obj.Session && { Session: import_smithy_client.SENSITIVE_STRING },
|
|
1688
|
-
...obj.AuthenticationResult && {
|
|
1689
|
-
AuthenticationResult: AuthenticationResultTypeFilterSensitiveLog(obj.AuthenticationResult)
|
|
1690
|
-
}
|
|
1691
|
-
}), "RespondToAuthChallengeResponseFilterSensitiveLog");
|
|
1692
|
-
var RevokeTokenRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1693
|
-
...obj,
|
|
1694
|
-
...obj.Token && { Token: import_smithy_client.SENSITIVE_STRING },
|
|
1695
|
-
...obj.ClientId && { ClientId: import_smithy_client.SENSITIVE_STRING },
|
|
1696
|
-
...obj.ClientSecret && { ClientSecret: import_smithy_client.SENSITIVE_STRING }
|
|
1697
|
-
}), "RevokeTokenRequestFilterSensitiveLog");
|
|
1698
1686
|
|
|
1699
1687
|
// src/models/models_1.ts
|
|
1700
1688
|
|
|
@@ -1770,6 +1758,19 @@ var VerifySoftwareTokenResponseType = {
|
|
|
1770
1758
|
ERROR: "ERROR",
|
|
1771
1759
|
SUCCESS: "SUCCESS"
|
|
1772
1760
|
};
|
|
1761
|
+
var RespondToAuthChallengeResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1762
|
+
...obj,
|
|
1763
|
+
...obj.Session && { Session: import_smithy_client.SENSITIVE_STRING },
|
|
1764
|
+
...obj.AuthenticationResult && {
|
|
1765
|
+
AuthenticationResult: AuthenticationResultTypeFilterSensitiveLog(obj.AuthenticationResult)
|
|
1766
|
+
}
|
|
1767
|
+
}), "RespondToAuthChallengeResponseFilterSensitiveLog");
|
|
1768
|
+
var RevokeTokenRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1769
|
+
...obj,
|
|
1770
|
+
...obj.Token && { Token: import_smithy_client.SENSITIVE_STRING },
|
|
1771
|
+
...obj.ClientId && { ClientId: import_smithy_client.SENSITIVE_STRING },
|
|
1772
|
+
...obj.ClientSecret && { ClientSecret: import_smithy_client.SENSITIVE_STRING }
|
|
1773
|
+
}), "RevokeTokenRequestFilterSensitiveLog");
|
|
1773
1774
|
var SetRiskConfigurationRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1774
1775
|
...obj,
|
|
1775
1776
|
...obj.ClientId && { ClientId: import_smithy_client.SENSITIVE_STRING }
|
|
@@ -3842,6 +3843,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3842
3843
|
case "InvalidUserPoolConfigurationException":
|
|
3843
3844
|
case "com.amazonaws.cognitoidentityprovider#InvalidUserPoolConfigurationException":
|
|
3844
3845
|
throw await de_InvalidUserPoolConfigurationExceptionRes(parsedOutput, context);
|
|
3846
|
+
case "InvalidEmailRoleAccessPolicyException":
|
|
3847
|
+
case "com.amazonaws.cognitoidentityprovider#InvalidEmailRoleAccessPolicyException":
|
|
3848
|
+
throw await de_InvalidEmailRoleAccessPolicyExceptionRes(parsedOutput, context);
|
|
3845
3849
|
case "MFAMethodNotFoundException":
|
|
3846
3850
|
case "com.amazonaws.cognitoidentityprovider#MFAMethodNotFoundException":
|
|
3847
3851
|
throw await de_MFAMethodNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -3854,9 +3858,6 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3854
3858
|
case "UserPoolAddOnNotEnabledException":
|
|
3855
3859
|
case "com.amazonaws.cognitoidentityprovider#UserPoolAddOnNotEnabledException":
|
|
3856
3860
|
throw await de_UserPoolAddOnNotEnabledExceptionRes(parsedOutput, context);
|
|
3857
|
-
case "InvalidEmailRoleAccessPolicyException":
|
|
3858
|
-
case "com.amazonaws.cognitoidentityprovider#InvalidEmailRoleAccessPolicyException":
|
|
3859
|
-
throw await de_InvalidEmailRoleAccessPolicyExceptionRes(parsedOutput, context);
|
|
3860
3861
|
case "CodeMismatchException":
|
|
3861
3862
|
case "com.amazonaws.cognitoidentityprovider#CodeMismatchException":
|
|
3862
3863
|
throw await de_CodeMismatchExceptionRes(parsedOutput, context);
|
|
@@ -6482,6 +6483,7 @@ var paginateListUsers = (0, import_core.createPaginator)(CognitoIdentityProvider
|
|
|
6482
6483
|
InvalidUserPoolConfigurationException,
|
|
6483
6484
|
AuthFlowType,
|
|
6484
6485
|
ChallengeNameType,
|
|
6486
|
+
InvalidEmailRoleAccessPolicyException,
|
|
6485
6487
|
MFAMethodNotFoundException,
|
|
6486
6488
|
PasswordResetRequiredException,
|
|
6487
6489
|
UserNotConfirmedException,
|
|
@@ -6493,7 +6495,6 @@ var paginateListUsers = (0, import_core.createPaginator)(CognitoIdentityProvider
|
|
|
6493
6495
|
RiskLevelType,
|
|
6494
6496
|
EventType,
|
|
6495
6497
|
UserPoolAddOnNotEnabledException,
|
|
6496
|
-
InvalidEmailRoleAccessPolicyException,
|
|
6497
6498
|
CodeMismatchException,
|
|
6498
6499
|
ExpiredCodeException,
|
|
6499
6500
|
PasswordHistoryPolicyViolationException,
|
|
@@ -6603,13 +6604,13 @@ var paginateListUsers = (0, import_core.createPaginator)(CognitoIdentityProvider
|
|
|
6603
6604
|
ListUsersInGroupResponseFilterSensitiveLog,
|
|
6604
6605
|
ResendConfirmationCodeRequestFilterSensitiveLog,
|
|
6605
6606
|
RespondToAuthChallengeRequestFilterSensitiveLog,
|
|
6606
|
-
RespondToAuthChallengeResponseFilterSensitiveLog,
|
|
6607
|
-
RevokeTokenRequestFilterSensitiveLog,
|
|
6608
6607
|
UnauthorizedException,
|
|
6609
6608
|
UnsupportedOperationException,
|
|
6610
6609
|
UnsupportedTokenTypeException,
|
|
6611
6610
|
EnableSoftwareTokenMFAException,
|
|
6612
6611
|
VerifySoftwareTokenResponseType,
|
|
6612
|
+
RespondToAuthChallengeResponseFilterSensitiveLog,
|
|
6613
|
+
RevokeTokenRequestFilterSensitiveLog,
|
|
6613
6614
|
SetRiskConfigurationRequestFilterSensitiveLog,
|
|
6614
6615
|
SetRiskConfigurationResponseFilterSensitiveLog,
|
|
6615
6616
|
SetUICustomizationRequestFilterSensitiveLog,
|
|
@@ -2,7 +2,8 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
4
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import { RespondToAuthChallengeRequestFilterSensitiveLog
|
|
5
|
+
import { RespondToAuthChallengeRequestFilterSensitiveLog } from "../models/models_0";
|
|
6
|
+
import { RespondToAuthChallengeResponseFilterSensitiveLog } from "../models/models_1";
|
|
6
7
|
import { de_RespondToAuthChallengeCommand, se_RespondToAuthChallengeCommand } from "../protocols/Aws_json1_1";
|
|
7
8
|
export { $Command };
|
|
8
9
|
export class RespondToAuthChallengeCommand extends $Command
|
|
@@ -2,7 +2,7 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
4
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import { RevokeTokenRequestFilterSensitiveLog } from "../models/
|
|
5
|
+
import { RevokeTokenRequestFilterSensitiveLog } from "../models/models_1";
|
|
6
6
|
import { de_RevokeTokenCommand, se_RevokeTokenCommand } from "../protocols/Aws_json1_1";
|
|
7
7
|
export { $Command };
|
|
8
8
|
export class RevokeTokenCommand extends $Command
|
|
@@ -301,6 +301,7 @@ export const ChallengeNameType = {
|
|
|
301
301
|
CUSTOM_CHALLENGE: "CUSTOM_CHALLENGE",
|
|
302
302
|
DEVICE_PASSWORD_VERIFIER: "DEVICE_PASSWORD_VERIFIER",
|
|
303
303
|
DEVICE_SRP_AUTH: "DEVICE_SRP_AUTH",
|
|
304
|
+
EMAIL_OTP: "EMAIL_OTP",
|
|
304
305
|
MFA_SETUP: "MFA_SETUP",
|
|
305
306
|
NEW_PASSWORD_REQUIRED: "NEW_PASSWORD_REQUIRED",
|
|
306
307
|
PASSWORD_VERIFIER: "PASSWORD_VERIFIER",
|
|
@@ -308,6 +309,18 @@ export const ChallengeNameType = {
|
|
|
308
309
|
SMS_MFA: "SMS_MFA",
|
|
309
310
|
SOFTWARE_TOKEN_MFA: "SOFTWARE_TOKEN_MFA",
|
|
310
311
|
};
|
|
312
|
+
export class InvalidEmailRoleAccessPolicyException extends __BaseException {
|
|
313
|
+
constructor(opts) {
|
|
314
|
+
super({
|
|
315
|
+
name: "InvalidEmailRoleAccessPolicyException",
|
|
316
|
+
$fault: "client",
|
|
317
|
+
...opts,
|
|
318
|
+
});
|
|
319
|
+
this.name = "InvalidEmailRoleAccessPolicyException";
|
|
320
|
+
this.$fault = "client";
|
|
321
|
+
Object.setPrototypeOf(this, InvalidEmailRoleAccessPolicyException.prototype);
|
|
322
|
+
}
|
|
323
|
+
}
|
|
311
324
|
export class MFAMethodNotFoundException extends __BaseException {
|
|
312
325
|
constructor(opts) {
|
|
313
326
|
super({
|
|
@@ -390,18 +403,6 @@ export class UserPoolAddOnNotEnabledException extends __BaseException {
|
|
|
390
403
|
Object.setPrototypeOf(this, UserPoolAddOnNotEnabledException.prototype);
|
|
391
404
|
}
|
|
392
405
|
}
|
|
393
|
-
export class InvalidEmailRoleAccessPolicyException extends __BaseException {
|
|
394
|
-
constructor(opts) {
|
|
395
|
-
super({
|
|
396
|
-
name: "InvalidEmailRoleAccessPolicyException",
|
|
397
|
-
$fault: "client",
|
|
398
|
-
...opts,
|
|
399
|
-
});
|
|
400
|
-
this.name = "InvalidEmailRoleAccessPolicyException";
|
|
401
|
-
this.$fault = "client";
|
|
402
|
-
Object.setPrototypeOf(this, InvalidEmailRoleAccessPolicyException.prototype);
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
406
|
export class CodeMismatchException extends __BaseException {
|
|
406
407
|
constructor(opts) {
|
|
407
408
|
super({
|
|
@@ -1014,16 +1015,3 @@ export const RespondToAuthChallengeRequestFilterSensitiveLog = (obj) => ({
|
|
|
1014
1015
|
...(obj.ChallengeResponses && { ChallengeResponses: SENSITIVE_STRING }),
|
|
1015
1016
|
...(obj.UserContextData && { UserContextData: SENSITIVE_STRING }),
|
|
1016
1017
|
});
|
|
1017
|
-
export const RespondToAuthChallengeResponseFilterSensitiveLog = (obj) => ({
|
|
1018
|
-
...obj,
|
|
1019
|
-
...(obj.Session && { Session: SENSITIVE_STRING }),
|
|
1020
|
-
...(obj.AuthenticationResult && {
|
|
1021
|
-
AuthenticationResult: AuthenticationResultTypeFilterSensitiveLog(obj.AuthenticationResult),
|
|
1022
|
-
}),
|
|
1023
|
-
});
|
|
1024
|
-
export const RevokeTokenRequestFilterSensitiveLog = (obj) => ({
|
|
1025
|
-
...obj,
|
|
1026
|
-
...(obj.Token && { Token: SENSITIVE_STRING }),
|
|
1027
|
-
...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
|
|
1028
|
-
...(obj.ClientSecret && { ClientSecret: SENSITIVE_STRING }),
|
|
1029
|
-
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
2
|
import { CognitoIdentityProviderServiceException as __BaseException } from "./CognitoIdentityProviderServiceException";
|
|
3
|
-
import { AttributeTypeFilterSensitiveLog, RiskConfigurationTypeFilterSensitiveLog, UICustomizationTypeFilterSensitiveLog, UserPoolClientTypeFilterSensitiveLog, } from "./models_0";
|
|
3
|
+
import { AttributeTypeFilterSensitiveLog, AuthenticationResultTypeFilterSensitiveLog, RiskConfigurationTypeFilterSensitiveLog, UICustomizationTypeFilterSensitiveLog, UserPoolClientTypeFilterSensitiveLog, } from "./models_0";
|
|
4
4
|
export class UnauthorizedException extends __BaseException {
|
|
5
5
|
constructor(opts) {
|
|
6
6
|
super({
|
|
@@ -53,6 +53,19 @@ export const VerifySoftwareTokenResponseType = {
|
|
|
53
53
|
ERROR: "ERROR",
|
|
54
54
|
SUCCESS: "SUCCESS",
|
|
55
55
|
};
|
|
56
|
+
export const RespondToAuthChallengeResponseFilterSensitiveLog = (obj) => ({
|
|
57
|
+
...obj,
|
|
58
|
+
...(obj.Session && { Session: SENSITIVE_STRING }),
|
|
59
|
+
...(obj.AuthenticationResult && {
|
|
60
|
+
AuthenticationResult: AuthenticationResultTypeFilterSensitiveLog(obj.AuthenticationResult),
|
|
61
|
+
}),
|
|
62
|
+
});
|
|
63
|
+
export const RevokeTokenRequestFilterSensitiveLog = (obj) => ({
|
|
64
|
+
...obj,
|
|
65
|
+
...(obj.Token && { Token: SENSITIVE_STRING }),
|
|
66
|
+
...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
|
|
67
|
+
...(obj.ClientSecret && { ClientSecret: SENSITIVE_STRING }),
|
|
68
|
+
});
|
|
56
69
|
export const SetRiskConfigurationRequestFilterSensitiveLog = (obj) => ({
|
|
57
70
|
...obj,
|
|
58
71
|
...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
|
|
@@ -1998,6 +1998,9 @@ const de_CommandError = async (output, context) => {
|
|
|
1998
1998
|
case "InvalidUserPoolConfigurationException":
|
|
1999
1999
|
case "com.amazonaws.cognitoidentityprovider#InvalidUserPoolConfigurationException":
|
|
2000
2000
|
throw await de_InvalidUserPoolConfigurationExceptionRes(parsedOutput, context);
|
|
2001
|
+
case "InvalidEmailRoleAccessPolicyException":
|
|
2002
|
+
case "com.amazonaws.cognitoidentityprovider#InvalidEmailRoleAccessPolicyException":
|
|
2003
|
+
throw await de_InvalidEmailRoleAccessPolicyExceptionRes(parsedOutput, context);
|
|
2001
2004
|
case "MFAMethodNotFoundException":
|
|
2002
2005
|
case "com.amazonaws.cognitoidentityprovider#MFAMethodNotFoundException":
|
|
2003
2006
|
throw await de_MFAMethodNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -2010,9 +2013,6 @@ const de_CommandError = async (output, context) => {
|
|
|
2010
2013
|
case "UserPoolAddOnNotEnabledException":
|
|
2011
2014
|
case "com.amazonaws.cognitoidentityprovider#UserPoolAddOnNotEnabledException":
|
|
2012
2015
|
throw await de_UserPoolAddOnNotEnabledExceptionRes(parsedOutput, context);
|
|
2013
|
-
case "InvalidEmailRoleAccessPolicyException":
|
|
2014
|
-
case "com.amazonaws.cognitoidentityprovider#InvalidEmailRoleAccessPolicyException":
|
|
2015
|
-
throw await de_InvalidEmailRoleAccessPolicyExceptionRes(parsedOutput, context);
|
|
2016
2016
|
case "CodeMismatchException":
|
|
2017
2017
|
case "com.amazonaws.cognitoidentityprovider#CodeMismatchException":
|
|
2018
2018
|
throw await de_CodeMismatchExceptionRes(parsedOutput, context);
|
|
@@ -38,7 +38,7 @@ declare const AdminCreateUserCommand_base: {
|
|
|
38
38
|
* Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must
|
|
39
39
|
* receive SMS messages might not be able to sign up, activate their accounts, or sign
|
|
40
40
|
* in.</p>
|
|
41
|
-
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web
|
|
41
|
+
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Servicesservice,
|
|
42
42
|
* Amazon Simple Notification Service might place your account in the SMS sandbox. In <i>
|
|
43
43
|
* <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
|
|
44
44
|
* mode</a>
|
|
@@ -36,7 +36,7 @@ declare const AdminInitiateAuthCommand_base: {
|
|
|
36
36
|
* Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must
|
|
37
37
|
* receive SMS messages might not be able to sign up, activate their accounts, or sign
|
|
38
38
|
* in.</p>
|
|
39
|
-
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web
|
|
39
|
+
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Servicesservice,
|
|
40
40
|
* Amazon Simple Notification Service might place your account in the SMS sandbox. In <i>
|
|
41
41
|
* <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
|
|
42
42
|
* mode</a>
|
|
@@ -100,7 +100,7 @@ declare const AdminInitiateAuthCommand_base: {
|
|
|
100
100
|
* const command = new AdminInitiateAuthCommand(input);
|
|
101
101
|
* const response = await client.send(command);
|
|
102
102
|
* // { // AdminInitiateAuthResponse
|
|
103
|
-
* // ChallengeName: "SMS_MFA" || "SOFTWARE_TOKEN_MFA" || "SELECT_MFA_TYPE" || "MFA_SETUP" || "PASSWORD_VERIFIER" || "CUSTOM_CHALLENGE" || "DEVICE_SRP_AUTH" || "DEVICE_PASSWORD_VERIFIER" || "ADMIN_NO_SRP_AUTH" || "NEW_PASSWORD_REQUIRED",
|
|
103
|
+
* // ChallengeName: "SMS_MFA" || "EMAIL_OTP" || "SOFTWARE_TOKEN_MFA" || "SELECT_MFA_TYPE" || "MFA_SETUP" || "PASSWORD_VERIFIER" || "CUSTOM_CHALLENGE" || "DEVICE_SRP_AUTH" || "DEVICE_PASSWORD_VERIFIER" || "ADMIN_NO_SRP_AUTH" || "NEW_PASSWORD_REQUIRED",
|
|
104
104
|
* // Session: "STRING_VALUE",
|
|
105
105
|
* // ChallengeParameters: { // ChallengeParametersType
|
|
106
106
|
* // "<keys>": "STRING_VALUE",
|
|
@@ -129,6 +129,10 @@ declare const AdminInitiateAuthCommand_base: {
|
|
|
129
129
|
* @throws {@link InternalErrorException} (server fault)
|
|
130
130
|
* <p>This exception is thrown when Amazon Cognito encounters an internal error.</p>
|
|
131
131
|
*
|
|
132
|
+
* @throws {@link InvalidEmailRoleAccessPolicyException} (client fault)
|
|
133
|
+
* <p>This exception is thrown when Amazon Cognito isn't allowed to use your email identity. HTTP
|
|
134
|
+
* status code: 400.</p>
|
|
135
|
+
*
|
|
132
136
|
* @throws {@link InvalidLambdaResponseException} (client fault)
|
|
133
137
|
* <p>This exception is thrown when Amazon Cognito encounters an invalid Lambda response.</p>
|
|
134
138
|
*
|
|
@@ -39,7 +39,7 @@ declare const AdminResetUserPasswordCommand_base: {
|
|
|
39
39
|
* Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must
|
|
40
40
|
* receive SMS messages might not be able to sign up, activate their accounts, or sign
|
|
41
41
|
* in.</p>
|
|
42
|
-
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web
|
|
42
|
+
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Servicesservice,
|
|
43
43
|
* Amazon Simple Notification Service might place your account in the SMS sandbox. In <i>
|
|
44
44
|
* <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
|
|
45
45
|
* mode</a>
|
|
@@ -42,7 +42,7 @@ declare const AdminRespondToAuthChallengeCommand_base: {
|
|
|
42
42
|
* Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must
|
|
43
43
|
* receive SMS messages might not be able to sign up, activate their accounts, or sign
|
|
44
44
|
* in.</p>
|
|
45
|
-
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web
|
|
45
|
+
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Servicesservice,
|
|
46
46
|
* Amazon Simple Notification Service might place your account in the SMS sandbox. In <i>
|
|
47
47
|
* <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
|
|
48
48
|
* mode</a>
|
|
@@ -80,7 +80,7 @@ declare const AdminRespondToAuthChallengeCommand_base: {
|
|
|
80
80
|
* const input = { // AdminRespondToAuthChallengeRequest
|
|
81
81
|
* UserPoolId: "STRING_VALUE", // required
|
|
82
82
|
* ClientId: "STRING_VALUE", // required
|
|
83
|
-
* ChallengeName: "SMS_MFA" || "SOFTWARE_TOKEN_MFA" || "SELECT_MFA_TYPE" || "MFA_SETUP" || "PASSWORD_VERIFIER" || "CUSTOM_CHALLENGE" || "DEVICE_SRP_AUTH" || "DEVICE_PASSWORD_VERIFIER" || "ADMIN_NO_SRP_AUTH" || "NEW_PASSWORD_REQUIRED", // required
|
|
83
|
+
* ChallengeName: "SMS_MFA" || "EMAIL_OTP" || "SOFTWARE_TOKEN_MFA" || "SELECT_MFA_TYPE" || "MFA_SETUP" || "PASSWORD_VERIFIER" || "CUSTOM_CHALLENGE" || "DEVICE_SRP_AUTH" || "DEVICE_PASSWORD_VERIFIER" || "ADMIN_NO_SRP_AUTH" || "NEW_PASSWORD_REQUIRED", // required
|
|
84
84
|
* ChallengeResponses: { // ChallengeResponsesType
|
|
85
85
|
* "<keys>": "STRING_VALUE",
|
|
86
86
|
* },
|
|
@@ -107,7 +107,7 @@ declare const AdminRespondToAuthChallengeCommand_base: {
|
|
|
107
107
|
* const command = new AdminRespondToAuthChallengeCommand(input);
|
|
108
108
|
* const response = await client.send(command);
|
|
109
109
|
* // { // AdminRespondToAuthChallengeResponse
|
|
110
|
-
* // ChallengeName: "SMS_MFA" || "SOFTWARE_TOKEN_MFA" || "SELECT_MFA_TYPE" || "MFA_SETUP" || "PASSWORD_VERIFIER" || "CUSTOM_CHALLENGE" || "DEVICE_SRP_AUTH" || "DEVICE_PASSWORD_VERIFIER" || "ADMIN_NO_SRP_AUTH" || "NEW_PASSWORD_REQUIRED",
|
|
110
|
+
* // ChallengeName: "SMS_MFA" || "EMAIL_OTP" || "SOFTWARE_TOKEN_MFA" || "SELECT_MFA_TYPE" || "MFA_SETUP" || "PASSWORD_VERIFIER" || "CUSTOM_CHALLENGE" || "DEVICE_SRP_AUTH" || "DEVICE_PASSWORD_VERIFIER" || "ADMIN_NO_SRP_AUTH" || "NEW_PASSWORD_REQUIRED",
|
|
111
111
|
* // Session: "STRING_VALUE",
|
|
112
112
|
* // ChallengeParameters: { // ChallengeParametersType
|
|
113
113
|
* // "<keys>": "STRING_VALUE",
|
|
@@ -150,6 +150,10 @@ declare const AdminRespondToAuthChallengeCommand_base: {
|
|
|
150
150
|
* @throws {@link InternalErrorException} (server fault)
|
|
151
151
|
* <p>This exception is thrown when Amazon Cognito encounters an internal error.</p>
|
|
152
152
|
*
|
|
153
|
+
* @throws {@link InvalidEmailRoleAccessPolicyException} (client fault)
|
|
154
|
+
* <p>This exception is thrown when Amazon Cognito isn't allowed to use your email identity. HTTP
|
|
155
|
+
* status code: 400.</p>
|
|
156
|
+
*
|
|
153
157
|
* @throws {@link InvalidLambdaResponseException} (client fault)
|
|
154
158
|
* <p>This exception is thrown when Amazon Cognito encounters an invalid Lambda response.</p>
|
|
155
159
|
*
|
|
@@ -27,11 +27,11 @@ declare const AdminSetUserMFAPreferenceCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>
|
|
31
|
-
* are activated, and if any are preferred. Only one factor can be set as
|
|
32
|
-
* preferred MFA factor will be used to authenticate a user if multiple
|
|
33
|
-
* activated. If multiple options are activated and no preference is set, a
|
|
34
|
-
* choose an MFA option will be returned during sign-in.</p>
|
|
30
|
+
* <p>Sets the user's multi-factor authentication (MFA) preference, including which MFA
|
|
31
|
+
* options are activated, and if any are preferred. Only one factor can be set as
|
|
32
|
+
* preferred. The preferred MFA factor will be used to authenticate a user if multiple
|
|
33
|
+
* factors are activated. If multiple options are activated and no preference is set, a
|
|
34
|
+
* challenge to choose an MFA option will be returned during sign-in.</p>
|
|
35
35
|
* <note>
|
|
36
36
|
* <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For
|
|
37
37
|
* this operation, you must use IAM credentials to authorize requests, and you must
|
|
@@ -67,6 +67,10 @@ declare const AdminSetUserMFAPreferenceCommand_base: {
|
|
|
67
67
|
* Enabled: true || false,
|
|
68
68
|
* PreferredMfa: true || false,
|
|
69
69
|
* },
|
|
70
|
+
* EmailMfaSettings: { // EmailMfaSettingsType
|
|
71
|
+
* Enabled: true || false,
|
|
72
|
+
* PreferredMfa: true || false,
|
|
73
|
+
* },
|
|
70
74
|
* Username: "STRING_VALUE", // required
|
|
71
75
|
* UserPoolId: "STRING_VALUE", // required
|
|
72
76
|
* };
|
|
@@ -35,7 +35,7 @@ declare const AdminUpdateUserAttributesCommand_base: {
|
|
|
35
35
|
* Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must
|
|
36
36
|
* receive SMS messages might not be able to sign up, activate their accounts, or sign
|
|
37
37
|
* in.</p>
|
|
38
|
-
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web
|
|
38
|
+
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Servicesservice,
|
|
39
39
|
* Amazon Simple Notification Service might place your account in the SMS sandbox. In <i>
|
|
40
40
|
* <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
|
|
41
41
|
* mode</a>
|
|
@@ -35,7 +35,7 @@ declare const CreateUserPoolCommand_base: {
|
|
|
35
35
|
* Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must
|
|
36
36
|
* receive SMS messages might not be able to sign up, activate their accounts, or sign
|
|
37
37
|
* in.</p>
|
|
38
|
-
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web
|
|
38
|
+
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Servicesservice,
|
|
39
39
|
* Amazon Simple Notification Service might place your account in the SMS sandbox. In <i>
|
|
40
40
|
* <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
|
|
41
41
|
* mode</a>
|
|
@@ -53,7 +53,7 @@ declare const ForgotPasswordCommand_base: {
|
|
|
53
53
|
* Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must
|
|
54
54
|
* receive SMS messages might not be able to sign up, activate their accounts, or sign
|
|
55
55
|
* in.</p>
|
|
56
|
-
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web
|
|
56
|
+
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Servicesservice,
|
|
57
57
|
* Amazon Simple Notification Service might place your account in the SMS sandbox. In <i>
|
|
58
58
|
* <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
|
|
59
59
|
* mode</a>
|
|
@@ -45,7 +45,7 @@ declare const GetUserAttributeVerificationCodeCommand_base: {
|
|
|
45
45
|
* Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must
|
|
46
46
|
* receive SMS messages might not be able to sign up, activate their accounts, or sign
|
|
47
47
|
* in.</p>
|
|
48
|
-
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web
|
|
48
|
+
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Servicesservice,
|
|
49
49
|
* Amazon Simple Notification Service might place your account in the SMS sandbox. In <i>
|
|
50
50
|
* <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
|
|
51
51
|
* mode</a>
|
|
@@ -51,6 +51,10 @@ declare const GetUserPoolMfaConfigCommand_base: {
|
|
|
51
51
|
* // SoftwareTokenMfaConfiguration: { // SoftwareTokenMfaConfigType
|
|
52
52
|
* // Enabled: true || false,
|
|
53
53
|
* // },
|
|
54
|
+
* // EmailMfaConfiguration: { // EmailMfaConfigType
|
|
55
|
+
* // Message: "STRING_VALUE",
|
|
56
|
+
* // Subject: "STRING_VALUE",
|
|
57
|
+
* // },
|
|
54
58
|
* // MfaConfiguration: "OFF" || "ON" || "OPTIONAL",
|
|
55
59
|
* // };
|
|
56
60
|
*
|
|
@@ -43,7 +43,7 @@ declare const InitiateAuthCommand_base: {
|
|
|
43
43
|
* Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must
|
|
44
44
|
* receive SMS messages might not be able to sign up, activate their accounts, or sign
|
|
45
45
|
* in.</p>
|
|
46
|
-
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web
|
|
46
|
+
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Servicesservice,
|
|
47
47
|
* Amazon Simple Notification Service might place your account in the SMS sandbox. In <i>
|
|
48
48
|
* <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
|
|
49
49
|
* mode</a>
|
|
@@ -78,7 +78,7 @@ declare const InitiateAuthCommand_base: {
|
|
|
78
78
|
* const command = new InitiateAuthCommand(input);
|
|
79
79
|
* const response = await client.send(command);
|
|
80
80
|
* // { // InitiateAuthResponse
|
|
81
|
-
* // ChallengeName: "SMS_MFA" || "SOFTWARE_TOKEN_MFA" || "SELECT_MFA_TYPE" || "MFA_SETUP" || "PASSWORD_VERIFIER" || "CUSTOM_CHALLENGE" || "DEVICE_SRP_AUTH" || "DEVICE_PASSWORD_VERIFIER" || "ADMIN_NO_SRP_AUTH" || "NEW_PASSWORD_REQUIRED",
|
|
81
|
+
* // ChallengeName: "SMS_MFA" || "EMAIL_OTP" || "SOFTWARE_TOKEN_MFA" || "SELECT_MFA_TYPE" || "MFA_SETUP" || "PASSWORD_VERIFIER" || "CUSTOM_CHALLENGE" || "DEVICE_SRP_AUTH" || "DEVICE_PASSWORD_VERIFIER" || "ADMIN_NO_SRP_AUTH" || "NEW_PASSWORD_REQUIRED",
|
|
82
82
|
* // Session: "STRING_VALUE",
|
|
83
83
|
* // ChallengeParameters: { // ChallengeParametersType
|
|
84
84
|
* // "<keys>": "STRING_VALUE",
|
|
@@ -111,6 +111,10 @@ declare const InitiateAuthCommand_base: {
|
|
|
111
111
|
* @throws {@link InternalErrorException} (server fault)
|
|
112
112
|
* <p>This exception is thrown when Amazon Cognito encounters an internal error.</p>
|
|
113
113
|
*
|
|
114
|
+
* @throws {@link InvalidEmailRoleAccessPolicyException} (client fault)
|
|
115
|
+
* <p>This exception is thrown when Amazon Cognito isn't allowed to use your email identity. HTTP
|
|
116
|
+
* status code: 400.</p>
|
|
117
|
+
*
|
|
114
118
|
* @throws {@link InvalidLambdaResponseException} (client fault)
|
|
115
119
|
* <p>This exception is thrown when Amazon Cognito encounters an invalid Lambda response.</p>
|
|
116
120
|
*
|
|
@@ -43,7 +43,7 @@ declare const ResendConfirmationCodeCommand_base: {
|
|
|
43
43
|
* Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must
|
|
44
44
|
* receive SMS messages might not be able to sign up, activate their accounts, or sign
|
|
45
45
|
* in.</p>
|
|
46
|
-
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web
|
|
46
|
+
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Servicesservice,
|
|
47
47
|
* Amazon Simple Notification Service might place your account in the SMS sandbox. In <i>
|
|
48
48
|
* <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
|
|
49
49
|
* mode</a>
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import { CognitoIdentityProviderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoIdentityProviderClient";
|
|
4
|
-
import { RespondToAuthChallengeRequest
|
|
4
|
+
import { RespondToAuthChallengeRequest } from "../models/models_0";
|
|
5
|
+
import { RespondToAuthChallengeResponse } from "../models/models_1";
|
|
5
6
|
/**
|
|
6
7
|
* @public
|
|
7
8
|
*/
|
|
@@ -48,7 +49,7 @@ declare const RespondToAuthChallengeCommand_base: {
|
|
|
48
49
|
* Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must
|
|
49
50
|
* receive SMS messages might not be able to sign up, activate their accounts, or sign
|
|
50
51
|
* in.</p>
|
|
51
|
-
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web
|
|
52
|
+
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Servicesservice,
|
|
52
53
|
* Amazon Simple Notification Service might place your account in the SMS sandbox. In <i>
|
|
53
54
|
* <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
|
|
54
55
|
* mode</a>
|
|
@@ -65,7 +66,7 @@ declare const RespondToAuthChallengeCommand_base: {
|
|
|
65
66
|
* const client = new CognitoIdentityProviderClient(config);
|
|
66
67
|
* const input = { // RespondToAuthChallengeRequest
|
|
67
68
|
* ClientId: "STRING_VALUE", // required
|
|
68
|
-
* ChallengeName: "SMS_MFA" || "SOFTWARE_TOKEN_MFA" || "SELECT_MFA_TYPE" || "MFA_SETUP" || "PASSWORD_VERIFIER" || "CUSTOM_CHALLENGE" || "DEVICE_SRP_AUTH" || "DEVICE_PASSWORD_VERIFIER" || "ADMIN_NO_SRP_AUTH" || "NEW_PASSWORD_REQUIRED", // required
|
|
69
|
+
* ChallengeName: "SMS_MFA" || "EMAIL_OTP" || "SOFTWARE_TOKEN_MFA" || "SELECT_MFA_TYPE" || "MFA_SETUP" || "PASSWORD_VERIFIER" || "CUSTOM_CHALLENGE" || "DEVICE_SRP_AUTH" || "DEVICE_PASSWORD_VERIFIER" || "ADMIN_NO_SRP_AUTH" || "NEW_PASSWORD_REQUIRED", // required
|
|
69
70
|
* Session: "STRING_VALUE",
|
|
70
71
|
* ChallengeResponses: { // ChallengeResponsesType
|
|
71
72
|
* "<keys>": "STRING_VALUE",
|
|
@@ -84,7 +85,7 @@ declare const RespondToAuthChallengeCommand_base: {
|
|
|
84
85
|
* const command = new RespondToAuthChallengeCommand(input);
|
|
85
86
|
* const response = await client.send(command);
|
|
86
87
|
* // { // RespondToAuthChallengeResponse
|
|
87
|
-
* // ChallengeName: "SMS_MFA" || "SOFTWARE_TOKEN_MFA" || "SELECT_MFA_TYPE" || "MFA_SETUP" || "PASSWORD_VERIFIER" || "CUSTOM_CHALLENGE" || "DEVICE_SRP_AUTH" || "DEVICE_PASSWORD_VERIFIER" || "ADMIN_NO_SRP_AUTH" || "NEW_PASSWORD_REQUIRED",
|
|
88
|
+
* // ChallengeName: "SMS_MFA" || "EMAIL_OTP" || "SOFTWARE_TOKEN_MFA" || "SELECT_MFA_TYPE" || "MFA_SETUP" || "PASSWORD_VERIFIER" || "CUSTOM_CHALLENGE" || "DEVICE_SRP_AUTH" || "DEVICE_PASSWORD_VERIFIER" || "ADMIN_NO_SRP_AUTH" || "NEW_PASSWORD_REQUIRED",
|
|
88
89
|
* // Session: "STRING_VALUE",
|
|
89
90
|
* // ChallengeParameters: { // ChallengeParametersType
|
|
90
91
|
* // "<keys>": "STRING_VALUE",
|
|
@@ -131,6 +132,10 @@ declare const RespondToAuthChallengeCommand_base: {
|
|
|
131
132
|
* @throws {@link InternalErrorException} (server fault)
|
|
132
133
|
* <p>This exception is thrown when Amazon Cognito encounters an internal error.</p>
|
|
133
134
|
*
|
|
135
|
+
* @throws {@link InvalidEmailRoleAccessPolicyException} (client fault)
|
|
136
|
+
* <p>This exception is thrown when Amazon Cognito isn't allowed to use your email identity. HTTP
|
|
137
|
+
* status code: 400.</p>
|
|
138
|
+
*
|
|
134
139
|
* @throws {@link InvalidLambdaResponseException} (client fault)
|
|
135
140
|
* <p>This exception is thrown when Amazon Cognito encounters an invalid Lambda response.</p>
|
|
136
141
|
*
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import { CognitoIdentityProviderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoIdentityProviderClient";
|
|
4
|
-
import { RevokeTokenRequest } from "../models/
|
|
5
|
-
import { RevokeTokenResponse } from "../models/models_1";
|
|
4
|
+
import { RevokeTokenRequest, RevokeTokenResponse } from "../models/models_1";
|
|
6
5
|
/**
|
|
7
6
|
* @public
|
|
8
7
|
*/
|
|
@@ -58,6 +58,10 @@ declare const SetUserMFAPreferenceCommand_base: {
|
|
|
58
58
|
* Enabled: true || false,
|
|
59
59
|
* PreferredMfa: true || false,
|
|
60
60
|
* },
|
|
61
|
+
* EmailMfaSettings: { // EmailMfaSettingsType
|
|
62
|
+
* Enabled: true || false,
|
|
63
|
+
* PreferredMfa: true || false,
|
|
64
|
+
* },
|
|
61
65
|
* AccessToken: "STRING_VALUE", // required
|
|
62
66
|
* };
|
|
63
67
|
* const command = new SetUserMFAPreferenceCommand(input);
|
|
@@ -36,7 +36,7 @@ declare const SetUserPoolMfaConfigCommand_base: {
|
|
|
36
36
|
* Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must
|
|
37
37
|
* receive SMS messages might not be able to sign up, activate their accounts, or sign
|
|
38
38
|
* in.</p>
|
|
39
|
-
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web
|
|
39
|
+
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Servicesservice,
|
|
40
40
|
* Amazon Simple Notification Service might place your account in the SMS sandbox. In <i>
|
|
41
41
|
* <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
|
|
42
42
|
* mode</a>
|
|
@@ -64,6 +64,10 @@ declare const SetUserPoolMfaConfigCommand_base: {
|
|
|
64
64
|
* SoftwareTokenMfaConfiguration: { // SoftwareTokenMfaConfigType
|
|
65
65
|
* Enabled: true || false,
|
|
66
66
|
* },
|
|
67
|
+
* EmailMfaConfiguration: { // EmailMfaConfigType
|
|
68
|
+
* Message: "STRING_VALUE",
|
|
69
|
+
* Subject: "STRING_VALUE",
|
|
70
|
+
* },
|
|
67
71
|
* MfaConfiguration: "OFF" || "ON" || "OPTIONAL",
|
|
68
72
|
* };
|
|
69
73
|
* const command = new SetUserPoolMfaConfigCommand(input);
|
|
@@ -80,6 +84,10 @@ declare const SetUserPoolMfaConfigCommand_base: {
|
|
|
80
84
|
* // SoftwareTokenMfaConfiguration: { // SoftwareTokenMfaConfigType
|
|
81
85
|
* // Enabled: true || false,
|
|
82
86
|
* // },
|
|
87
|
+
* // EmailMfaConfiguration: { // EmailMfaConfigType
|
|
88
|
+
* // Message: "STRING_VALUE",
|
|
89
|
+
* // Subject: "STRING_VALUE",
|
|
90
|
+
* // },
|
|
83
91
|
* // MfaConfiguration: "OFF" || "ON" || "OPTIONAL",
|
|
84
92
|
* // };
|
|
85
93
|
*
|
|
@@ -43,7 +43,7 @@ declare const SignUpCommand_base: {
|
|
|
43
43
|
* Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must
|
|
44
44
|
* receive SMS messages might not be able to sign up, activate their accounts, or sign
|
|
45
45
|
* in.</p>
|
|
46
|
-
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web
|
|
46
|
+
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Servicesservice,
|
|
47
47
|
* Amazon Simple Notification Service might place your account in the SMS sandbox. In <i>
|
|
48
48
|
* <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
|
|
49
49
|
* mode</a>
|
|
@@ -47,7 +47,7 @@ declare const UpdateUserAttributesCommand_base: {
|
|
|
47
47
|
* Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must
|
|
48
48
|
* receive SMS messages might not be able to sign up, activate their accounts, or sign
|
|
49
49
|
* in.</p>
|
|
50
|
-
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web
|
|
50
|
+
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Servicesservice,
|
|
51
51
|
* Amazon Simple Notification Service might place your account in the SMS sandbox. In <i>
|
|
52
52
|
* <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
|
|
53
53
|
* mode</a>
|
|
@@ -35,7 +35,7 @@ declare const UpdateUserPoolCommand_base: {
|
|
|
35
35
|
* Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must
|
|
36
36
|
* receive SMS messages might not be able to sign up, activate their accounts, or sign
|
|
37
37
|
* in.</p>
|
|
38
|
-
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web
|
|
38
|
+
* <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Servicesservice,
|
|
39
39
|
* Amazon Simple Notification Service might place your account in the SMS sandbox. In <i>
|
|
40
40
|
* <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
|
|
41
41
|
* mode</a>
|