@aws-sdk/client-cognito-identity-provider 3.649.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.
Files changed (133) hide show
  1. package/dist-cjs/index.js +140 -345
  2. package/dist-es/commands/AddCustomAttributesCommand.js +1 -3
  3. package/dist-es/commands/AdminAddUserToGroupCommand.js +1 -3
  4. package/dist-es/commands/AdminConfirmSignUpCommand.js +1 -3
  5. package/dist-es/commands/AdminCreateUserCommand.js +1 -3
  6. package/dist-es/commands/AdminDeleteUserAttributesCommand.js +1 -3
  7. package/dist-es/commands/AdminDeleteUserCommand.js +1 -3
  8. package/dist-es/commands/AdminDisableProviderForUserCommand.js +1 -3
  9. package/dist-es/commands/AdminDisableUserCommand.js +1 -3
  10. package/dist-es/commands/AdminEnableUserCommand.js +1 -3
  11. package/dist-es/commands/AdminForgetDeviceCommand.js +1 -3
  12. package/dist-es/commands/AdminGetDeviceCommand.js +1 -3
  13. package/dist-es/commands/AdminGetUserCommand.js +1 -3
  14. package/dist-es/commands/AdminInitiateAuthCommand.js +1 -3
  15. package/dist-es/commands/AdminLinkProviderForUserCommand.js +1 -3
  16. package/dist-es/commands/AdminListDevicesCommand.js +1 -3
  17. package/dist-es/commands/AdminListGroupsForUserCommand.js +1 -3
  18. package/dist-es/commands/AdminListUserAuthEventsCommand.js +1 -3
  19. package/dist-es/commands/AdminRemoveUserFromGroupCommand.js +1 -3
  20. package/dist-es/commands/AdminResetUserPasswordCommand.js +1 -3
  21. package/dist-es/commands/AdminRespondToAuthChallengeCommand.js +1 -3
  22. package/dist-es/commands/AdminSetUserMFAPreferenceCommand.js +1 -3
  23. package/dist-es/commands/AdminSetUserPasswordCommand.js +1 -3
  24. package/dist-es/commands/AdminSetUserSettingsCommand.js +1 -3
  25. package/dist-es/commands/AdminUpdateAuthEventFeedbackCommand.js +1 -3
  26. package/dist-es/commands/AdminUpdateDeviceStatusCommand.js +1 -3
  27. package/dist-es/commands/AdminUpdateUserAttributesCommand.js +1 -3
  28. package/dist-es/commands/AdminUserGlobalSignOutCommand.js +1 -3
  29. package/dist-es/commands/AssociateSoftwareTokenCommand.js +1 -3
  30. package/dist-es/commands/ChangePasswordCommand.js +1 -3
  31. package/dist-es/commands/ConfirmDeviceCommand.js +1 -3
  32. package/dist-es/commands/ConfirmForgotPasswordCommand.js +1 -3
  33. package/dist-es/commands/ConfirmSignUpCommand.js +1 -3
  34. package/dist-es/commands/CreateGroupCommand.js +1 -3
  35. package/dist-es/commands/CreateIdentityProviderCommand.js +1 -3
  36. package/dist-es/commands/CreateResourceServerCommand.js +1 -3
  37. package/dist-es/commands/CreateUserImportJobCommand.js +1 -3
  38. package/dist-es/commands/CreateUserPoolClientCommand.js +1 -3
  39. package/dist-es/commands/CreateUserPoolCommand.js +1 -3
  40. package/dist-es/commands/CreateUserPoolDomainCommand.js +1 -3
  41. package/dist-es/commands/DeleteGroupCommand.js +1 -3
  42. package/dist-es/commands/DeleteIdentityProviderCommand.js +1 -3
  43. package/dist-es/commands/DeleteResourceServerCommand.js +1 -3
  44. package/dist-es/commands/DeleteUserAttributesCommand.js +1 -3
  45. package/dist-es/commands/DeleteUserCommand.js +1 -3
  46. package/dist-es/commands/DeleteUserPoolClientCommand.js +1 -3
  47. package/dist-es/commands/DeleteUserPoolCommand.js +1 -3
  48. package/dist-es/commands/DeleteUserPoolDomainCommand.js +1 -3
  49. package/dist-es/commands/DescribeIdentityProviderCommand.js +1 -3
  50. package/dist-es/commands/DescribeResourceServerCommand.js +1 -3
  51. package/dist-es/commands/DescribeRiskConfigurationCommand.js +1 -3
  52. package/dist-es/commands/DescribeUserImportJobCommand.js +1 -3
  53. package/dist-es/commands/DescribeUserPoolClientCommand.js +1 -3
  54. package/dist-es/commands/DescribeUserPoolCommand.js +1 -3
  55. package/dist-es/commands/DescribeUserPoolDomainCommand.js +1 -3
  56. package/dist-es/commands/ForgetDeviceCommand.js +1 -3
  57. package/dist-es/commands/ForgotPasswordCommand.js +1 -3
  58. package/dist-es/commands/GetCSVHeaderCommand.js +1 -3
  59. package/dist-es/commands/GetDeviceCommand.js +1 -3
  60. package/dist-es/commands/GetGroupCommand.js +1 -3
  61. package/dist-es/commands/GetIdentityProviderByIdentifierCommand.js +1 -3
  62. package/dist-es/commands/GetLogDeliveryConfigurationCommand.js +1 -3
  63. package/dist-es/commands/GetSigningCertificateCommand.js +1 -3
  64. package/dist-es/commands/GetUICustomizationCommand.js +1 -3
  65. package/dist-es/commands/GetUserAttributeVerificationCodeCommand.js +1 -3
  66. package/dist-es/commands/GetUserCommand.js +1 -3
  67. package/dist-es/commands/GetUserPoolMfaConfigCommand.js +1 -3
  68. package/dist-es/commands/GlobalSignOutCommand.js +1 -3
  69. package/dist-es/commands/InitiateAuthCommand.js +1 -3
  70. package/dist-es/commands/ListDevicesCommand.js +1 -3
  71. package/dist-es/commands/ListGroupsCommand.js +1 -3
  72. package/dist-es/commands/ListIdentityProvidersCommand.js +1 -3
  73. package/dist-es/commands/ListResourceServersCommand.js +1 -3
  74. package/dist-es/commands/ListTagsForResourceCommand.js +1 -3
  75. package/dist-es/commands/ListUserImportJobsCommand.js +1 -3
  76. package/dist-es/commands/ListUserPoolClientsCommand.js +1 -3
  77. package/dist-es/commands/ListUserPoolsCommand.js +1 -3
  78. package/dist-es/commands/ListUsersCommand.js +1 -3
  79. package/dist-es/commands/ListUsersInGroupCommand.js +1 -3
  80. package/dist-es/commands/ResendConfirmationCodeCommand.js +1 -3
  81. package/dist-es/commands/RespondToAuthChallengeCommand.js +3 -4
  82. package/dist-es/commands/RevokeTokenCommand.js +2 -4
  83. package/dist-es/commands/SetLogDeliveryConfigurationCommand.js +1 -3
  84. package/dist-es/commands/SetRiskConfigurationCommand.js +1 -3
  85. package/dist-es/commands/SetUICustomizationCommand.js +1 -3
  86. package/dist-es/commands/SetUserMFAPreferenceCommand.js +1 -3
  87. package/dist-es/commands/SetUserPoolMfaConfigCommand.js +1 -3
  88. package/dist-es/commands/SetUserSettingsCommand.js +1 -3
  89. package/dist-es/commands/SignUpCommand.js +1 -3
  90. package/dist-es/commands/StartUserImportJobCommand.js +1 -3
  91. package/dist-es/commands/StopUserImportJobCommand.js +1 -3
  92. package/dist-es/commands/TagResourceCommand.js +1 -3
  93. package/dist-es/commands/UntagResourceCommand.js +1 -3
  94. package/dist-es/commands/UpdateAuthEventFeedbackCommand.js +1 -3
  95. package/dist-es/commands/UpdateDeviceStatusCommand.js +1 -3
  96. package/dist-es/commands/UpdateGroupCommand.js +1 -3
  97. package/dist-es/commands/UpdateIdentityProviderCommand.js +1 -3
  98. package/dist-es/commands/UpdateResourceServerCommand.js +1 -3
  99. package/dist-es/commands/UpdateUserAttributesCommand.js +1 -3
  100. package/dist-es/commands/UpdateUserPoolClientCommand.js +1 -3
  101. package/dist-es/commands/UpdateUserPoolCommand.js +1 -3
  102. package/dist-es/commands/UpdateUserPoolDomainCommand.js +1 -3
  103. package/dist-es/commands/VerifySoftwareTokenCommand.js +1 -3
  104. package/dist-es/commands/VerifyUserAttributeCommand.js +1 -3
  105. package/dist-es/models/models_0.js +13 -25
  106. package/dist-es/models/models_1.js +14 -1
  107. package/dist-es/protocols/Aws_json1_1.js +3 -3
  108. package/dist-types/commands/AdminCreateUserCommand.d.ts +1 -1
  109. package/dist-types/commands/AdminInitiateAuthCommand.d.ts +6 -2
  110. package/dist-types/commands/AdminResetUserPasswordCommand.d.ts +1 -1
  111. package/dist-types/commands/AdminRespondToAuthChallengeCommand.d.ts +7 -3
  112. package/dist-types/commands/AdminSetUserMFAPreferenceCommand.d.ts +9 -5
  113. package/dist-types/commands/AdminUpdateUserAttributesCommand.d.ts +1 -1
  114. package/dist-types/commands/CreateUserPoolCommand.d.ts +1 -1
  115. package/dist-types/commands/ForgotPasswordCommand.d.ts +1 -1
  116. package/dist-types/commands/GetUserAttributeVerificationCodeCommand.d.ts +1 -1
  117. package/dist-types/commands/GetUserPoolMfaConfigCommand.d.ts +4 -0
  118. package/dist-types/commands/InitiateAuthCommand.d.ts +6 -2
  119. package/dist-types/commands/ResendConfirmationCodeCommand.d.ts +1 -1
  120. package/dist-types/commands/RespondToAuthChallengeCommand.d.ts +9 -4
  121. package/dist-types/commands/RevokeTokenCommand.d.ts +1 -2
  122. package/dist-types/commands/SetUserMFAPreferenceCommand.d.ts +4 -0
  123. package/dist-types/commands/SetUserPoolMfaConfigCommand.d.ts +9 -1
  124. package/dist-types/commands/SignUpCommand.d.ts +1 -1
  125. package/dist-types/commands/UpdateUserAttributesCommand.d.ts +1 -1
  126. package/dist-types/commands/UpdateUserPoolCommand.d.ts +1 -1
  127. package/dist-types/models/models_0.d.ts +139 -95
  128. package/dist-types/models/models_1.d.ts +96 -9
  129. package/dist-types/ts3.4/commands/RespondToAuthChallengeCommand.d.ts +2 -4
  130. package/dist-types/ts3.4/commands/RevokeTokenCommand.d.ts +1 -2
  131. package/dist-types/ts3.4/models/models_0.d.ts +21 -27
  132. package/dist-types/ts3.4/models/models_1.d.ts +24 -0
  133. package/package.json +4 -4
@@ -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 Services service,
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 Services service,
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 Services service,
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 Services service,
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>The user's multi-factor authentication (MFA) preference, including which MFA options
31
- * are activated, and if any are preferred. Only one factor can be set as preferred. The
32
- * preferred MFA factor will be used to authenticate a user if multiple factors are
33
- * activated. If multiple options are activated and no preference is set, a challenge to
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 Services service,
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 Services service,
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 Services service,
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 Services service,
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 Services service,
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 Services service,
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, RespondToAuthChallengeResponse } from "../models/models_0";
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 Services service,
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/models_0";
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 Services service,
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 Services service,
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 Services service,
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 Services service,
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>