@aws-sdk/client-cognito-identity-provider 3.142.0 → 3.150.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/dist-cjs/commands/SignUpCommand.js +2 -1
- package/dist-cjs/models/models_0.js +19 -10
- package/dist-cjs/models/models_1.js +5 -1
- package/dist-cjs/protocols/Aws_json1_1.js +89 -0
- package/dist-es/commands/SignUpCommand.js +2 -1
- package/dist-es/models/models_0.js +12 -1
- package/dist-es/models/models_1.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +1008 -894
- package/dist-types/CognitoIdentityProvider.d.ts +1 -1
- package/dist-types/commands/AssociateSoftwareTokenCommand.d.ts +1 -1
- package/dist-types/commands/SignUpCommand.d.ts +2 -1
- package/dist-types/models/models_0.d.ts +76 -88
- package/dist-types/models/models_1.d.ts +30 -3
- package/dist-types/ts3.4/commands/SignUpCommand.d.ts +2 -1
- package/dist-types/ts3.4/models/models_0.d.ts +7 -11
- package/dist-types/ts3.4/models/models_1.d.ts +11 -0
- package/package.json +8 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.150.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.149.0...v3.150.0) (2022-08-15)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-cognito-identity-provider
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.145.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.144.0...v3.145.0) (2022-08-08)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/client-cognito-identity-provider
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [3.143.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.142.0...v3.143.0) (2022-08-03)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **client-cognito-identity-provider:** Add a new exception type, ForbiddenException, that is returned when request is not allowed ([5426503](https://github.com/aws/aws-sdk-js-v3/commit/5426503b36125cea89153651b8755786a63c6529))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.142.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.141.0...v3.142.0) (2022-08-02)
|
|
7
34
|
|
|
8
35
|
|
|
@@ -4,6 +4,7 @@ exports.SignUpCommand = void 0;
|
|
|
4
4
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const models_1_1 = require("../models/models_1");
|
|
7
8
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
9
|
class SignUpCommand extends smithy_client_1.Command {
|
|
9
10
|
constructor(input) {
|
|
@@ -21,7 +22,7 @@ class SignUpCommand extends smithy_client_1.Command {
|
|
|
21
22
|
clientName,
|
|
22
23
|
commandName,
|
|
23
24
|
inputFilterSensitiveLog: models_0_1.SignUpRequestFilterSensitiveLog,
|
|
24
|
-
outputFilterSensitiveLog:
|
|
25
|
+
outputFilterSensitiveLog: models_1_1.SignUpResponseFilterSensitiveLog,
|
|
25
26
|
};
|
|
26
27
|
const { requestHandler } = configuration;
|
|
27
28
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
3
|
+
exports.VerifiedAttributeType = exports.ForbiddenException = exports.ConcurrentModificationException = exports.AliasAttributeType = exports.AdvancedSecurityModeType = exports.DeviceRememberedStatusType = exports.SoftwareTokenMFANotFoundException = exports.ExpiredCodeException = exports.CodeMismatchException = exports.InvalidEmailRoleAccessPolicyException = exports.UserPoolAddOnNotEnabledException = exports.EventType = exports.RiskLevelType = exports.RiskDecisionType = exports.EventResponseType = exports.FeedbackValueType = exports.ChallengeResponse = exports.ChallengeName = exports.UserNotConfirmedException = exports.PasswordResetRequiredException = exports.MFAMethodNotFoundException = exports.ChallengeNameType = exports.AuthFlowType = exports.InvalidUserPoolConfigurationException = exports.AliasExistsException = exports.UsernameExistsException = exports.UnsupportedUserStateException = exports.PreconditionNotMetException = exports.InvalidSmsRoleTrustRelationshipException = exports.InvalidSmsRoleAccessPolicyException = exports.InvalidPasswordException = exports.CodeDeliveryFailureException = exports.UserStatusType = exports.MessageActionType = exports.DeliveryMediumType = exports.UserLambdaValidationException = exports.UnexpectedLambdaException = exports.TooManyFailedAttemptsException = exports.LimitExceededException = exports.InvalidLambdaResponseException = exports.UserNotFoundException = exports.UserImportInProgressException = exports.TooManyRequestsException = exports.ResourceNotFoundException = exports.NotAuthorizedException = exports.InvalidParameterException = exports.InternalErrorException = exports.AttributeDataType = exports.AccountTakeoverEventActionType = exports.RecoveryOptionNameType = void 0;
|
|
4
|
+
exports.AdminDeleteUserAttributesResponseFilterSensitiveLog = exports.AdminDeleteUserAttributesRequestFilterSensitiveLog = exports.AdminDeleteUserRequestFilterSensitiveLog = exports.AdminCreateUserConfigTypeFilterSensitiveLog = exports.MessageTemplateTypeFilterSensitiveLog = exports.AdminCreateUserResponseFilterSensitiveLog = exports.UserTypeFilterSensitiveLog = exports.MFAOptionTypeFilterSensitiveLog = exports.AdminCreateUserRequestFilterSensitiveLog = exports.AttributeTypeFilterSensitiveLog = exports.AdminConfirmSignUpResponseFilterSensitiveLog = exports.AdminConfirmSignUpRequestFilterSensitiveLog = exports.AdminAddUserToGroupRequestFilterSensitiveLog = exports.AddCustomAttributesResponseFilterSensitiveLog = exports.AddCustomAttributesRequestFilterSensitiveLog = exports.SchemaAttributeTypeFilterSensitiveLog = exports.StringAttributeConstraintsTypeFilterSensitiveLog = exports.NumberAttributeConstraintsTypeFilterSensitiveLog = exports.AccountTakeoverRiskConfigurationTypeFilterSensitiveLog = exports.NotifyConfigurationTypeFilterSensitiveLog = exports.NotifyEmailTypeFilterSensitiveLog = exports.AccountTakeoverActionsTypeFilterSensitiveLog = exports.AccountTakeoverActionTypeFilterSensitiveLog = exports.AccountRecoverySettingTypeFilterSensitiveLog = exports.RecoveryOptionTypeFilterSensitiveLog = exports.UnsupportedTokenTypeException = exports.UnsupportedOperationException = exports.UnauthorizedException = exports.DomainStatusType = exports.EventFilterType = exports.CompromisedCredentialsEventActionType = exports.UnsupportedIdentityProviderException = exports.ScopeDoesNotExistException = exports.InvalidOAuthFlowException = exports.TimeUnitsType = exports.PreventUserExistenceErrorTypes = exports.ExplicitAuthFlowsType = exports.OAuthFlowType = exports.UserPoolTaggingException = exports.StatusType = exports.DefaultEmailOptionType = exports.UsernameAttributeType = exports.UserPoolMfaType = exports.CustomSMSSenderLambdaVersionType = exports.CustomEmailSenderLambdaVersionType = exports.EmailSendingAccountType = exports.UserImportJobStatusType = exports.DuplicateProviderException = exports.IdentityProviderTypeType = exports.GroupExistsException = void 0;
|
|
5
|
+
exports.AdminUpdateDeviceStatusRequestFilterSensitiveLog = exports.AdminUpdateAuthEventFeedbackResponseFilterSensitiveLog = exports.AdminUpdateAuthEventFeedbackRequestFilterSensitiveLog = exports.AdminSetUserSettingsResponseFilterSensitiveLog = exports.AdminSetUserSettingsRequestFilterSensitiveLog = exports.AdminSetUserPasswordResponseFilterSensitiveLog = exports.AdminSetUserPasswordRequestFilterSensitiveLog = exports.AdminSetUserMFAPreferenceResponseFilterSensitiveLog = exports.AdminSetUserMFAPreferenceRequestFilterSensitiveLog = exports.SoftwareTokenMfaSettingsTypeFilterSensitiveLog = exports.SMSMfaSettingsTypeFilterSensitiveLog = exports.AdminRespondToAuthChallengeResponseFilterSensitiveLog = exports.AdminRespondToAuthChallengeRequestFilterSensitiveLog = exports.AdminResetUserPasswordResponseFilterSensitiveLog = exports.AdminResetUserPasswordRequestFilterSensitiveLog = exports.AdminRemoveUserFromGroupRequestFilterSensitiveLog = exports.AdminListUserAuthEventsResponseFilterSensitiveLog = exports.AuthEventTypeFilterSensitiveLog = exports.EventRiskTypeFilterSensitiveLog = exports.EventFeedbackTypeFilterSensitiveLog = exports.EventContextDataTypeFilterSensitiveLog = exports.ChallengeResponseTypeFilterSensitiveLog = exports.AdminListUserAuthEventsRequestFilterSensitiveLog = exports.AdminListGroupsForUserResponseFilterSensitiveLog = exports.GroupTypeFilterSensitiveLog = exports.AdminListGroupsForUserRequestFilterSensitiveLog = exports.AdminListDevicesResponseFilterSensitiveLog = exports.AdminListDevicesRequestFilterSensitiveLog = exports.AdminLinkProviderForUserResponseFilterSensitiveLog = exports.AdminLinkProviderForUserRequestFilterSensitiveLog = exports.AdminInitiateAuthResponseFilterSensitiveLog = exports.AuthenticationResultTypeFilterSensitiveLog = exports.NewDeviceMetadataTypeFilterSensitiveLog = exports.AdminInitiateAuthRequestFilterSensitiveLog = exports.ContextDataTypeFilterSensitiveLog = exports.HttpHeaderFilterSensitiveLog = exports.AnalyticsMetadataTypeFilterSensitiveLog = exports.AdminGetUserResponseFilterSensitiveLog = exports.AdminGetUserRequestFilterSensitiveLog = exports.AdminGetDeviceResponseFilterSensitiveLog = exports.DeviceTypeFilterSensitiveLog = exports.AdminGetDeviceRequestFilterSensitiveLog = exports.AdminForgetDeviceRequestFilterSensitiveLog = exports.AdminEnableUserResponseFilterSensitiveLog = exports.AdminEnableUserRequestFilterSensitiveLog = exports.AdminDisableUserResponseFilterSensitiveLog = exports.AdminDisableUserRequestFilterSensitiveLog = exports.AdminDisableProviderForUserResponseFilterSensitiveLog = exports.AdminDisableProviderForUserRequestFilterSensitiveLog = exports.ProviderUserIdentifierTypeFilterSensitiveLog = void 0;
|
|
6
|
+
exports.CustomDomainConfigTypeFilterSensitiveLog = exports.CreateUserPoolClientResponseFilterSensitiveLog = exports.UserPoolClientTypeFilterSensitiveLog = exports.CreateUserPoolClientRequestFilterSensitiveLog = exports.TokenValidityUnitsTypeFilterSensitiveLog = exports.CreateUserPoolResponseFilterSensitiveLog = exports.UserPoolTypeFilterSensitiveLog = exports.CreateUserPoolRequestFilterSensitiveLog = exports.VerificationMessageTemplateTypeFilterSensitiveLog = exports.UserPoolAddOnsTypeFilterSensitiveLog = exports.UsernameConfigurationTypeFilterSensitiveLog = exports.UserAttributeUpdateSettingsTypeFilterSensitiveLog = exports.SmsConfigurationTypeFilterSensitiveLog = exports.UserPoolPolicyTypeFilterSensitiveLog = exports.PasswordPolicyTypeFilterSensitiveLog = exports.LambdaConfigTypeFilterSensitiveLog = exports.CustomSMSLambdaVersionConfigTypeFilterSensitiveLog = exports.CustomEmailLambdaVersionConfigTypeFilterSensitiveLog = exports.EmailConfigurationTypeFilterSensitiveLog = exports.DeviceConfigurationTypeFilterSensitiveLog = exports.CreateUserImportJobResponseFilterSensitiveLog = exports.UserImportJobTypeFilterSensitiveLog = exports.CreateUserImportJobRequestFilterSensitiveLog = exports.CreateResourceServerResponseFilterSensitiveLog = exports.ResourceServerTypeFilterSensitiveLog = exports.CreateResourceServerRequestFilterSensitiveLog = exports.ResourceServerScopeTypeFilterSensitiveLog = exports.CreateIdentityProviderResponseFilterSensitiveLog = exports.IdentityProviderTypeFilterSensitiveLog = exports.CreateIdentityProviderRequestFilterSensitiveLog = exports.CreateGroupResponseFilterSensitiveLog = exports.CreateGroupRequestFilterSensitiveLog = exports.ConfirmSignUpResponseFilterSensitiveLog = exports.ConfirmSignUpRequestFilterSensitiveLog = exports.ConfirmForgotPasswordResponseFilterSensitiveLog = exports.ConfirmForgotPasswordRequestFilterSensitiveLog = exports.UserContextDataTypeFilterSensitiveLog = exports.ConfirmDeviceResponseFilterSensitiveLog = exports.ConfirmDeviceRequestFilterSensitiveLog = exports.DeviceSecretVerifierConfigTypeFilterSensitiveLog = exports.ChangePasswordResponseFilterSensitiveLog = exports.ChangePasswordRequestFilterSensitiveLog = exports.AssociateSoftwareTokenResponseFilterSensitiveLog = exports.AssociateSoftwareTokenRequestFilterSensitiveLog = exports.AnalyticsConfigurationTypeFilterSensitiveLog = exports.AdminUserGlobalSignOutResponseFilterSensitiveLog = exports.AdminUserGlobalSignOutRequestFilterSensitiveLog = exports.AdminUpdateUserAttributesResponseFilterSensitiveLog = exports.AdminUpdateUserAttributesRequestFilterSensitiveLog = exports.AdminUpdateDeviceStatusResponseFilterSensitiveLog = void 0;
|
|
7
|
+
exports.GetUserResponseFilterSensitiveLog = exports.GetUserRequestFilterSensitiveLog = exports.GetUICustomizationResponseFilterSensitiveLog = exports.UICustomizationTypeFilterSensitiveLog = exports.GetUICustomizationRequestFilterSensitiveLog = exports.GetSigningCertificateResponseFilterSensitiveLog = exports.GetSigningCertificateRequestFilterSensitiveLog = exports.GetIdentityProviderByIdentifierResponseFilterSensitiveLog = exports.GetIdentityProviderByIdentifierRequestFilterSensitiveLog = exports.GetGroupResponseFilterSensitiveLog = exports.GetGroupRequestFilterSensitiveLog = exports.GetDeviceResponseFilterSensitiveLog = exports.GetDeviceRequestFilterSensitiveLog = exports.GetCSVHeaderResponseFilterSensitiveLog = exports.GetCSVHeaderRequestFilterSensitiveLog = exports.ForgotPasswordResponseFilterSensitiveLog = exports.CodeDeliveryDetailsTypeFilterSensitiveLog = exports.ForgotPasswordRequestFilterSensitiveLog = exports.ForgetDeviceRequestFilterSensitiveLog = exports.DescribeUserPoolDomainResponseFilterSensitiveLog = exports.DomainDescriptionTypeFilterSensitiveLog = exports.DescribeUserPoolDomainRequestFilterSensitiveLog = exports.DescribeUserPoolClientResponseFilterSensitiveLog = exports.DescribeUserPoolClientRequestFilterSensitiveLog = exports.DescribeUserPoolResponseFilterSensitiveLog = exports.DescribeUserPoolRequestFilterSensitiveLog = exports.DescribeUserImportJobResponseFilterSensitiveLog = exports.DescribeUserImportJobRequestFilterSensitiveLog = exports.DescribeRiskConfigurationResponseFilterSensitiveLog = exports.RiskConfigurationTypeFilterSensitiveLog = exports.RiskExceptionConfigurationTypeFilterSensitiveLog = exports.CompromisedCredentialsRiskConfigurationTypeFilterSensitiveLog = exports.CompromisedCredentialsActionsTypeFilterSensitiveLog = exports.DescribeRiskConfigurationRequestFilterSensitiveLog = exports.DescribeResourceServerResponseFilterSensitiveLog = exports.DescribeResourceServerRequestFilterSensitiveLog = exports.DescribeIdentityProviderResponseFilterSensitiveLog = exports.DescribeIdentityProviderRequestFilterSensitiveLog = exports.DeleteUserPoolDomainResponseFilterSensitiveLog = exports.DeleteUserPoolDomainRequestFilterSensitiveLog = exports.DeleteUserPoolClientRequestFilterSensitiveLog = exports.DeleteUserPoolRequestFilterSensitiveLog = exports.DeleteUserAttributesResponseFilterSensitiveLog = exports.DeleteUserAttributesRequestFilterSensitiveLog = exports.DeleteUserRequestFilterSensitiveLog = exports.DeleteResourceServerRequestFilterSensitiveLog = exports.DeleteIdentityProviderRequestFilterSensitiveLog = exports.DeleteGroupRequestFilterSensitiveLog = exports.CreateUserPoolDomainResponseFilterSensitiveLog = exports.CreateUserPoolDomainRequestFilterSensitiveLog = void 0;
|
|
8
|
+
exports.SignUpRequestFilterSensitiveLog = exports.SetUserSettingsResponseFilterSensitiveLog = exports.SetUserSettingsRequestFilterSensitiveLog = exports.SetUserPoolMfaConfigResponseFilterSensitiveLog = exports.SetUserPoolMfaConfigRequestFilterSensitiveLog = exports.SetUserMFAPreferenceResponseFilterSensitiveLog = exports.SetUserMFAPreferenceRequestFilterSensitiveLog = exports.SetUICustomizationResponseFilterSensitiveLog = exports.SetUICustomizationRequestFilterSensitiveLog = exports.SetRiskConfigurationResponseFilterSensitiveLog = exports.SetRiskConfigurationRequestFilterSensitiveLog = exports.RevokeTokenResponseFilterSensitiveLog = exports.RevokeTokenRequestFilterSensitiveLog = exports.RespondToAuthChallengeResponseFilterSensitiveLog = exports.RespondToAuthChallengeRequestFilterSensitiveLog = exports.ResendConfirmationCodeResponseFilterSensitiveLog = exports.ResendConfirmationCodeRequestFilterSensitiveLog = exports.ListUsersInGroupResponseFilterSensitiveLog = exports.ListUsersInGroupRequestFilterSensitiveLog = exports.ListUsersResponseFilterSensitiveLog = exports.ListUsersRequestFilterSensitiveLog = exports.ListUserPoolsResponseFilterSensitiveLog = exports.UserPoolDescriptionTypeFilterSensitiveLog = exports.ListUserPoolsRequestFilterSensitiveLog = exports.ListUserPoolClientsResponseFilterSensitiveLog = exports.UserPoolClientDescriptionFilterSensitiveLog = exports.ListUserPoolClientsRequestFilterSensitiveLog = exports.ListUserImportJobsResponseFilterSensitiveLog = exports.ListUserImportJobsRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.ListResourceServersResponseFilterSensitiveLog = exports.ListResourceServersRequestFilterSensitiveLog = exports.ListIdentityProvidersResponseFilterSensitiveLog = exports.ProviderDescriptionFilterSensitiveLog = exports.ListIdentityProvidersRequestFilterSensitiveLog = exports.ListGroupsResponseFilterSensitiveLog = exports.ListGroupsRequestFilterSensitiveLog = exports.ListDevicesResponseFilterSensitiveLog = exports.ListDevicesRequestFilterSensitiveLog = exports.InitiateAuthResponseFilterSensitiveLog = exports.InitiateAuthRequestFilterSensitiveLog = exports.GlobalSignOutResponseFilterSensitiveLog = exports.GlobalSignOutRequestFilterSensitiveLog = exports.GetUserPoolMfaConfigResponseFilterSensitiveLog = exports.SoftwareTokenMfaConfigTypeFilterSensitiveLog = exports.SmsMfaConfigTypeFilterSensitiveLog = exports.GetUserPoolMfaConfigRequestFilterSensitiveLog = exports.GetUserAttributeVerificationCodeResponseFilterSensitiveLog = exports.GetUserAttributeVerificationCodeRequestFilterSensitiveLog = void 0;
|
|
9
9
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
10
10
|
const CognitoIdentityProviderServiceException_1 = require("./CognitoIdentityProviderServiceException");
|
|
11
11
|
var RecoveryOptionNameType;
|
|
@@ -516,6 +516,19 @@ class ConcurrentModificationException extends CognitoIdentityProviderServiceExce
|
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
518
|
exports.ConcurrentModificationException = ConcurrentModificationException;
|
|
519
|
+
class ForbiddenException extends CognitoIdentityProviderServiceException_1.CognitoIdentityProviderServiceException {
|
|
520
|
+
constructor(opts) {
|
|
521
|
+
super({
|
|
522
|
+
name: "ForbiddenException",
|
|
523
|
+
$fault: "client",
|
|
524
|
+
...opts,
|
|
525
|
+
});
|
|
526
|
+
this.name = "ForbiddenException";
|
|
527
|
+
this.$fault = "client";
|
|
528
|
+
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
exports.ForbiddenException = ForbiddenException;
|
|
519
532
|
var VerifiedAttributeType;
|
|
520
533
|
(function (VerifiedAttributeType) {
|
|
521
534
|
VerifiedAttributeType["EMAIL"] = "email";
|
|
@@ -1775,7 +1788,3 @@ const SignUpRequestFilterSensitiveLog = (obj) => ({
|
|
|
1775
1788
|
}),
|
|
1776
1789
|
});
|
|
1777
1790
|
exports.SignUpRequestFilterSensitiveLog = SignUpRequestFilterSensitiveLog;
|
|
1778
|
-
const SignUpResponseFilterSensitiveLog = (obj) => ({
|
|
1779
|
-
...obj,
|
|
1780
|
-
});
|
|
1781
|
-
exports.SignUpResponseFilterSensitiveLog = SignUpResponseFilterSensitiveLog;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VerifyUserAttributeResponseFilterSensitiveLog = exports.VerifyUserAttributeRequestFilterSensitiveLog = exports.VerifySoftwareTokenResponseFilterSensitiveLog = exports.VerifySoftwareTokenRequestFilterSensitiveLog = exports.UpdateUserPoolDomainResponseFilterSensitiveLog = exports.UpdateUserPoolDomainRequestFilterSensitiveLog = exports.UpdateUserPoolClientResponseFilterSensitiveLog = exports.UpdateUserPoolClientRequestFilterSensitiveLog = exports.UpdateUserPoolResponseFilterSensitiveLog = exports.UpdateUserPoolRequestFilterSensitiveLog = exports.UpdateUserAttributesResponseFilterSensitiveLog = exports.UpdateUserAttributesRequestFilterSensitiveLog = exports.UpdateResourceServerResponseFilterSensitiveLog = exports.UpdateResourceServerRequestFilterSensitiveLog = exports.UpdateIdentityProviderResponseFilterSensitiveLog = exports.UpdateIdentityProviderRequestFilterSensitiveLog = exports.UpdateGroupResponseFilterSensitiveLog = exports.UpdateGroupRequestFilterSensitiveLog = exports.UpdateDeviceStatusResponseFilterSensitiveLog = exports.UpdateDeviceStatusRequestFilterSensitiveLog = exports.UpdateAuthEventFeedbackResponseFilterSensitiveLog = exports.UpdateAuthEventFeedbackRequestFilterSensitiveLog = exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.StopUserImportJobResponseFilterSensitiveLog = exports.StopUserImportJobRequestFilterSensitiveLog = exports.StartUserImportJobResponseFilterSensitiveLog = exports.StartUserImportJobRequestFilterSensitiveLog = exports.VerifySoftwareTokenResponseType = exports.EnableSoftwareTokenMFAException = void 0;
|
|
3
|
+
exports.VerifyUserAttributeResponseFilterSensitiveLog = exports.VerifyUserAttributeRequestFilterSensitiveLog = exports.VerifySoftwareTokenResponseFilterSensitiveLog = exports.VerifySoftwareTokenRequestFilterSensitiveLog = exports.UpdateUserPoolDomainResponseFilterSensitiveLog = exports.UpdateUserPoolDomainRequestFilterSensitiveLog = exports.UpdateUserPoolClientResponseFilterSensitiveLog = exports.UpdateUserPoolClientRequestFilterSensitiveLog = exports.UpdateUserPoolResponseFilterSensitiveLog = exports.UpdateUserPoolRequestFilterSensitiveLog = exports.UpdateUserAttributesResponseFilterSensitiveLog = exports.UpdateUserAttributesRequestFilterSensitiveLog = exports.UpdateResourceServerResponseFilterSensitiveLog = exports.UpdateResourceServerRequestFilterSensitiveLog = exports.UpdateIdentityProviderResponseFilterSensitiveLog = exports.UpdateIdentityProviderRequestFilterSensitiveLog = exports.UpdateGroupResponseFilterSensitiveLog = exports.UpdateGroupRequestFilterSensitiveLog = exports.UpdateDeviceStatusResponseFilterSensitiveLog = exports.UpdateDeviceStatusRequestFilterSensitiveLog = exports.UpdateAuthEventFeedbackResponseFilterSensitiveLog = exports.UpdateAuthEventFeedbackRequestFilterSensitiveLog = exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.StopUserImportJobResponseFilterSensitiveLog = exports.StopUserImportJobRequestFilterSensitiveLog = exports.StartUserImportJobResponseFilterSensitiveLog = exports.StartUserImportJobRequestFilterSensitiveLog = exports.SignUpResponseFilterSensitiveLog = exports.VerifySoftwareTokenResponseType = exports.EnableSoftwareTokenMFAException = void 0;
|
|
4
4
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
5
|
const CognitoIdentityProviderServiceException_1 = require("./CognitoIdentityProviderServiceException");
|
|
6
6
|
const models_0_1 = require("./models_0");
|
|
@@ -22,6 +22,10 @@ var VerifySoftwareTokenResponseType;
|
|
|
22
22
|
VerifySoftwareTokenResponseType["ERROR"] = "ERROR";
|
|
23
23
|
VerifySoftwareTokenResponseType["SUCCESS"] = "SUCCESS";
|
|
24
24
|
})(VerifySoftwareTokenResponseType = exports.VerifySoftwareTokenResponseType || (exports.VerifySoftwareTokenResponseType = {}));
|
|
25
|
+
const SignUpResponseFilterSensitiveLog = (obj) => ({
|
|
26
|
+
...obj,
|
|
27
|
+
});
|
|
28
|
+
exports.SignUpResponseFilterSensitiveLog = SignUpResponseFilterSensitiveLog;
|
|
25
29
|
const StartUserImportJobRequestFilterSensitiveLog = (obj) => ({
|
|
26
30
|
...obj,
|
|
27
31
|
});
|
|
@@ -2535,6 +2535,9 @@ const deserializeAws_json1_1AssociateSoftwareTokenCommandError = async (output,
|
|
|
2535
2535
|
case "ConcurrentModificationException":
|
|
2536
2536
|
case "com.amazonaws.cognitoidentityprovider#ConcurrentModificationException":
|
|
2537
2537
|
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
2538
|
+
case "ForbiddenException":
|
|
2539
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
2540
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
2538
2541
|
case "InternalErrorException":
|
|
2539
2542
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
2540
2543
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -2581,6 +2584,9 @@ const deserializeAws_json1_1ChangePasswordCommandError = async (output, context)
|
|
|
2581
2584
|
};
|
|
2582
2585
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2583
2586
|
switch (errorCode) {
|
|
2587
|
+
case "ForbiddenException":
|
|
2588
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
2589
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
2584
2590
|
case "InternalErrorException":
|
|
2585
2591
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
2586
2592
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -2642,6 +2648,9 @@ const deserializeAws_json1_1ConfirmDeviceCommandError = async (output, context)
|
|
|
2642
2648
|
};
|
|
2643
2649
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2644
2650
|
switch (errorCode) {
|
|
2651
|
+
case "ForbiddenException":
|
|
2652
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
2653
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
2645
2654
|
case "InternalErrorException":
|
|
2646
2655
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
2647
2656
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -2715,6 +2724,9 @@ const deserializeAws_json1_1ConfirmForgotPasswordCommandError = async (output, c
|
|
|
2715
2724
|
case "ExpiredCodeException":
|
|
2716
2725
|
case "com.amazonaws.cognitoidentityprovider#ExpiredCodeException":
|
|
2717
2726
|
throw await deserializeAws_json1_1ExpiredCodeExceptionResponse(parsedOutput, context);
|
|
2727
|
+
case "ForbiddenException":
|
|
2728
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
2729
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
2718
2730
|
case "InternalErrorException":
|
|
2719
2731
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
2720
2732
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -2794,6 +2806,9 @@ const deserializeAws_json1_1ConfirmSignUpCommandError = async (output, context)
|
|
|
2794
2806
|
case "ExpiredCodeException":
|
|
2795
2807
|
case "com.amazonaws.cognitoidentityprovider#ExpiredCodeException":
|
|
2796
2808
|
throw await deserializeAws_json1_1ExpiredCodeExceptionResponse(parsedOutput, context);
|
|
2809
|
+
case "ForbiddenException":
|
|
2810
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
2811
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
2797
2812
|
case "InternalErrorException":
|
|
2798
2813
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
2799
2814
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -3351,6 +3366,9 @@ const deserializeAws_json1_1DeleteUserCommandError = async (output, context) =>
|
|
|
3351
3366
|
};
|
|
3352
3367
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3353
3368
|
switch (errorCode) {
|
|
3369
|
+
case "ForbiddenException":
|
|
3370
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
3371
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
3354
3372
|
case "InternalErrorException":
|
|
3355
3373
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
3356
3374
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -3406,6 +3424,9 @@ const deserializeAws_json1_1DeleteUserAttributesCommandError = async (output, co
|
|
|
3406
3424
|
};
|
|
3407
3425
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3408
3426
|
switch (errorCode) {
|
|
3427
|
+
case "ForbiddenException":
|
|
3428
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
3429
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
3409
3430
|
case "InternalErrorException":
|
|
3410
3431
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
3411
3432
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -3915,6 +3936,9 @@ const deserializeAws_json1_1ForgetDeviceCommandError = async (output, context) =
|
|
|
3915
3936
|
};
|
|
3916
3937
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3917
3938
|
switch (errorCode) {
|
|
3939
|
+
case "ForbiddenException":
|
|
3940
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
3941
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
3918
3942
|
case "InternalErrorException":
|
|
3919
3943
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
3920
3944
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -3976,6 +4000,9 @@ const deserializeAws_json1_1ForgotPasswordCommandError = async (output, context)
|
|
|
3976
4000
|
case "CodeDeliveryFailureException":
|
|
3977
4001
|
case "com.amazonaws.cognitoidentityprovider#CodeDeliveryFailureException":
|
|
3978
4002
|
throw await deserializeAws_json1_1CodeDeliveryFailureExceptionResponse(parsedOutput, context);
|
|
4003
|
+
case "ForbiddenException":
|
|
4004
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
4005
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
3979
4006
|
case "InternalErrorException":
|
|
3980
4007
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
3981
4008
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -4092,6 +4119,9 @@ const deserializeAws_json1_1GetDeviceCommandError = async (output, context) => {
|
|
|
4092
4119
|
};
|
|
4093
4120
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4094
4121
|
switch (errorCode) {
|
|
4122
|
+
case "ForbiddenException":
|
|
4123
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
4124
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
4095
4125
|
case "InternalErrorException":
|
|
4096
4126
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
4097
4127
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -4328,6 +4358,9 @@ const deserializeAws_json1_1GetUserCommandError = async (output, context) => {
|
|
|
4328
4358
|
};
|
|
4329
4359
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4330
4360
|
switch (errorCode) {
|
|
4361
|
+
case "ForbiddenException":
|
|
4362
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
4363
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
4331
4364
|
case "InternalErrorException":
|
|
4332
4365
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
4333
4366
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -4386,6 +4419,9 @@ const deserializeAws_json1_1GetUserAttributeVerificationCodeCommandError = async
|
|
|
4386
4419
|
case "CodeDeliveryFailureException":
|
|
4387
4420
|
case "com.amazonaws.cognitoidentityprovider#CodeDeliveryFailureException":
|
|
4388
4421
|
throw await deserializeAws_json1_1CodeDeliveryFailureExceptionResponse(parsedOutput, context);
|
|
4422
|
+
case "ForbiddenException":
|
|
4423
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
4424
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
4389
4425
|
case "InternalErrorException":
|
|
4390
4426
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
4391
4427
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -4508,6 +4544,9 @@ const deserializeAws_json1_1GlobalSignOutCommandError = async (output, context)
|
|
|
4508
4544
|
};
|
|
4509
4545
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4510
4546
|
switch (errorCode) {
|
|
4547
|
+
case "ForbiddenException":
|
|
4548
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
4549
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
4511
4550
|
case "InternalErrorException":
|
|
4512
4551
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
4513
4552
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -4560,6 +4599,9 @@ const deserializeAws_json1_1InitiateAuthCommandError = async (output, context) =
|
|
|
4560
4599
|
};
|
|
4561
4600
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4562
4601
|
switch (errorCode) {
|
|
4602
|
+
case "ForbiddenException":
|
|
4603
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
4604
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
4563
4605
|
case "InternalErrorException":
|
|
4564
4606
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
4565
4607
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -4633,6 +4675,9 @@ const deserializeAws_json1_1ListDevicesCommandError = async (output, context) =>
|
|
|
4633
4675
|
};
|
|
4634
4676
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4635
4677
|
switch (errorCode) {
|
|
4678
|
+
case "ForbiddenException":
|
|
4679
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
4680
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
4636
4681
|
case "InternalErrorException":
|
|
4637
4682
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
4638
4683
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -5105,6 +5150,9 @@ const deserializeAws_json1_1ResendConfirmationCodeCommandError = async (output,
|
|
|
5105
5150
|
case "CodeDeliveryFailureException":
|
|
5106
5151
|
case "com.amazonaws.cognitoidentityprovider#CodeDeliveryFailureException":
|
|
5107
5152
|
throw await deserializeAws_json1_1CodeDeliveryFailureExceptionResponse(parsedOutput, context);
|
|
5153
|
+
case "ForbiddenException":
|
|
5154
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
5155
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
5108
5156
|
case "InternalErrorException":
|
|
5109
5157
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
5110
5158
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -5184,6 +5232,9 @@ const deserializeAws_json1_1RespondToAuthChallengeCommandError = async (output,
|
|
|
5184
5232
|
case "ExpiredCodeException":
|
|
5185
5233
|
case "com.amazonaws.cognitoidentityprovider#ExpiredCodeException":
|
|
5186
5234
|
throw await deserializeAws_json1_1ExpiredCodeExceptionResponse(parsedOutput, context);
|
|
5235
|
+
case "ForbiddenException":
|
|
5236
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
5237
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
5187
5238
|
case "InternalErrorException":
|
|
5188
5239
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
5189
5240
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -5266,6 +5317,9 @@ const deserializeAws_json1_1RevokeTokenCommandError = async (output, context) =>
|
|
|
5266
5317
|
};
|
|
5267
5318
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5268
5319
|
switch (errorCode) {
|
|
5320
|
+
case "ForbiddenException":
|
|
5321
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
5322
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
5269
5323
|
case "InternalErrorException":
|
|
5270
5324
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
5271
5325
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -5416,6 +5470,9 @@ const deserializeAws_json1_1SetUserMFAPreferenceCommandError = async (output, co
|
|
|
5416
5470
|
};
|
|
5417
5471
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5418
5472
|
switch (errorCode) {
|
|
5473
|
+
case "ForbiddenException":
|
|
5474
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
5475
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
5419
5476
|
case "InternalErrorException":
|
|
5420
5477
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
5421
5478
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -5520,6 +5577,9 @@ const deserializeAws_json1_1SetUserSettingsCommandError = async (output, context
|
|
|
5520
5577
|
};
|
|
5521
5578
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5522
5579
|
switch (errorCode) {
|
|
5580
|
+
case "ForbiddenException":
|
|
5581
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
5582
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
5523
5583
|
case "InternalErrorException":
|
|
5524
5584
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
5525
5585
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -5575,6 +5635,9 @@ const deserializeAws_json1_1SignUpCommandError = async (output, context) => {
|
|
|
5575
5635
|
case "CodeDeliveryFailureException":
|
|
5576
5636
|
case "com.amazonaws.cognitoidentityprovider#CodeDeliveryFailureException":
|
|
5577
5637
|
throw await deserializeAws_json1_1CodeDeliveryFailureExceptionResponse(parsedOutput, context);
|
|
5638
|
+
case "ForbiddenException":
|
|
5639
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
5640
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
5578
5641
|
case "InternalErrorException":
|
|
5579
5642
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
5580
5643
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -5887,6 +5950,9 @@ const deserializeAws_json1_1UpdateDeviceStatusCommandError = async (output, cont
|
|
|
5887
5950
|
};
|
|
5888
5951
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5889
5952
|
switch (errorCode) {
|
|
5953
|
+
case "ForbiddenException":
|
|
5954
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
5955
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
5890
5956
|
case "InternalErrorException":
|
|
5891
5957
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
5892
5958
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -6098,6 +6164,9 @@ const deserializeAws_json1_1UpdateUserAttributesCommandError = async (output, co
|
|
|
6098
6164
|
case "ExpiredCodeException":
|
|
6099
6165
|
case "com.amazonaws.cognitoidentityprovider#ExpiredCodeException":
|
|
6100
6166
|
throw await deserializeAws_json1_1ExpiredCodeExceptionResponse(parsedOutput, context);
|
|
6167
|
+
case "ForbiddenException":
|
|
6168
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
6169
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
6101
6170
|
case "InternalErrorException":
|
|
6102
6171
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
6103
6172
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -6342,6 +6411,9 @@ const deserializeAws_json1_1VerifySoftwareTokenCommandError = async (output, con
|
|
|
6342
6411
|
case "EnableSoftwareTokenMFAException":
|
|
6343
6412
|
case "com.amazonaws.cognitoidentityprovider#EnableSoftwareTokenMFAException":
|
|
6344
6413
|
throw await deserializeAws_json1_1EnableSoftwareTokenMFAExceptionResponse(parsedOutput, context);
|
|
6414
|
+
case "ForbiddenException":
|
|
6415
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
6416
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
6345
6417
|
case "InternalErrorException":
|
|
6346
6418
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
6347
6419
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -6412,6 +6484,9 @@ const deserializeAws_json1_1VerifyUserAttributeCommandError = async (output, con
|
|
|
6412
6484
|
case "ExpiredCodeException":
|
|
6413
6485
|
case "com.amazonaws.cognitoidentityprovider#ExpiredCodeException":
|
|
6414
6486
|
throw await deserializeAws_json1_1ExpiredCodeExceptionResponse(parsedOutput, context);
|
|
6487
|
+
case "ForbiddenException":
|
|
6488
|
+
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
6489
|
+
throw await deserializeAws_json1_1ForbiddenExceptionResponse(parsedOutput, context);
|
|
6415
6490
|
case "InternalErrorException":
|
|
6416
6491
|
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
6417
6492
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
@@ -6512,6 +6587,15 @@ const deserializeAws_json1_1ExpiredCodeExceptionResponse = async (parsedOutput,
|
|
|
6512
6587
|
});
|
|
6513
6588
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
6514
6589
|
};
|
|
6590
|
+
const deserializeAws_json1_1ForbiddenExceptionResponse = async (parsedOutput, context) => {
|
|
6591
|
+
const body = parsedOutput.body;
|
|
6592
|
+
const deserialized = deserializeAws_json1_1ForbiddenException(body, context);
|
|
6593
|
+
const exception = new models_0_1.ForbiddenException({
|
|
6594
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
6595
|
+
...deserialized,
|
|
6596
|
+
});
|
|
6597
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
6598
|
+
};
|
|
6515
6599
|
const deserializeAws_json1_1GroupExistsExceptionResponse = async (parsedOutput, context) => {
|
|
6516
6600
|
const body = parsedOutput.body;
|
|
6517
6601
|
const deserialized = deserializeAws_json1_1GroupExistsException(body, context);
|
|
@@ -9038,6 +9122,11 @@ const deserializeAws_json1_1ExplicitAuthFlowsListType = (output, context) => {
|
|
|
9038
9122
|
});
|
|
9039
9123
|
return retVal;
|
|
9040
9124
|
};
|
|
9125
|
+
const deserializeAws_json1_1ForbiddenException = (output, context) => {
|
|
9126
|
+
return {
|
|
9127
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
9128
|
+
};
|
|
9129
|
+
};
|
|
9041
9130
|
const deserializeAws_json1_1ForgotPasswordResponse = (output, context) => {
|
|
9042
9131
|
return {
|
|
9043
9132
|
CodeDeliveryDetails: output.CodeDeliveryDetails != null
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { SignUpRequestFilterSensitiveLog
|
|
4
|
+
import { SignUpRequestFilterSensitiveLog } from "../models/models_0";
|
|
5
|
+
import { SignUpResponseFilterSensitiveLog } from "../models/models_1";
|
|
5
6
|
import { deserializeAws_json1_1SignUpCommand, serializeAws_json1_1SignUpCommand } from "../protocols/Aws_json1_1";
|
|
6
7
|
var SignUpCommand = (function (_super) {
|
|
7
8
|
__extends(SignUpCommand, _super);
|
|
@@ -479,6 +479,18 @@ var ConcurrentModificationException = (function (_super) {
|
|
|
479
479
|
return ConcurrentModificationException;
|
|
480
480
|
}(__BaseException));
|
|
481
481
|
export { ConcurrentModificationException };
|
|
482
|
+
var ForbiddenException = (function (_super) {
|
|
483
|
+
__extends(ForbiddenException, _super);
|
|
484
|
+
function ForbiddenException(opts) {
|
|
485
|
+
var _this = _super.call(this, __assign({ name: "ForbiddenException", $fault: "client" }, opts)) || this;
|
|
486
|
+
_this.name = "ForbiddenException";
|
|
487
|
+
_this.$fault = "client";
|
|
488
|
+
Object.setPrototypeOf(_this, ForbiddenException.prototype);
|
|
489
|
+
return _this;
|
|
490
|
+
}
|
|
491
|
+
return ForbiddenException;
|
|
492
|
+
}(__BaseException));
|
|
493
|
+
export { ForbiddenException };
|
|
482
494
|
export var VerifiedAttributeType;
|
|
483
495
|
(function (VerifiedAttributeType) {
|
|
484
496
|
VerifiedAttributeType["EMAIL"] = "email";
|
|
@@ -945,4 +957,3 @@ export var SignUpRequestFilterSensitiveLog = function (obj) { return (__assign(_
|
|
|
945
957
|
})), (obj.ValidationData && {
|
|
946
958
|
ValidationData: obj.ValidationData.map(function (item) { return AttributeTypeFilterSensitiveLog(item); }),
|
|
947
959
|
}))); };
|
|
948
|
-
export var SignUpResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -19,6 +19,7 @@ export var VerifySoftwareTokenResponseType;
|
|
|
19
19
|
VerifySoftwareTokenResponseType["ERROR"] = "ERROR";
|
|
20
20
|
VerifySoftwareTokenResponseType["SUCCESS"] = "SUCCESS";
|
|
21
21
|
})(VerifySoftwareTokenResponseType || (VerifySoftwareTokenResponseType = {}));
|
|
22
|
+
export var SignUpResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
22
23
|
export var StartUserImportJobRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
23
24
|
export var StartUserImportJobResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
24
25
|
export var StopUserImportJobRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|