UNPKG

@aws-sdk/client-cognito-identity-provider

Version:

AWS SDK for JavaScript Cognito Identity Provider Client for Node.js, Browser and React Native

700 lines (699 loc) • 23.7 kB
const { CognitoIdentityProviderServiceException: __BaseException } = require("./CognitoIdentityProviderServiceException"); exports.AccessDeniedException = class AccessDeniedException extends __BaseException { name = "AccessDeniedException"; $fault = "client"; constructor(opts) { super({ name: "AccessDeniedException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, AccessDeniedException.prototype); } }; exports.InternalErrorException = class InternalErrorException extends __BaseException { name = "InternalErrorException"; $fault = "server"; constructor(opts) { super({ name: "InternalErrorException", $fault: "server", ...opts, }); Object.setPrototypeOf(this, InternalErrorException.prototype); } }; exports.InvalidParameterException = class InvalidParameterException extends __BaseException { name = "InvalidParameterException"; $fault = "client"; reasonCode; constructor(opts) { super({ name: "InvalidParameterException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, InvalidParameterException.prototype); this.reasonCode = opts.reasonCode; } }; exports.NotAuthorizedException = class NotAuthorizedException extends __BaseException { name = "NotAuthorizedException"; $fault = "client"; constructor(opts) { super({ name: "NotAuthorizedException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, NotAuthorizedException.prototype); } }; exports.OperationNotEnabledException = class OperationNotEnabledException extends __BaseException { name = "OperationNotEnabledException"; $fault = "client"; constructor(opts) { super({ name: "OperationNotEnabledException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, OperationNotEnabledException.prototype); } }; exports.ResourceNotFoundException = class ResourceNotFoundException extends __BaseException { name = "ResourceNotFoundException"; $fault = "client"; constructor(opts) { super({ name: "ResourceNotFoundException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, ResourceNotFoundException.prototype); } }; exports.TooManyRequestsException = class TooManyRequestsException extends __BaseException { name = "TooManyRequestsException"; $fault = "client"; constructor(opts) { super({ name: "TooManyRequestsException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, TooManyRequestsException.prototype); } }; exports.UserImportInProgressException = class UserImportInProgressException extends __BaseException { name = "UserImportInProgressException"; $fault = "client"; constructor(opts) { super({ name: "UserImportInProgressException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, UserImportInProgressException.prototype); } }; exports.InternalServerException = class InternalServerException extends __BaseException { name = "InternalServerException"; $fault = "server"; constructor(opts) { super({ name: "InternalServerException", $fault: "server", ...opts, }); Object.setPrototypeOf(this, InternalServerException.prototype); } }; exports.LimitExceededException = class LimitExceededException extends __BaseException { name = "LimitExceededException"; $fault = "client"; constructor(opts) { super({ name: "LimitExceededException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, LimitExceededException.prototype); } }; exports.UserNotFoundException = class UserNotFoundException extends __BaseException { name = "UserNotFoundException"; $fault = "client"; constructor(opts) { super({ name: "UserNotFoundException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, UserNotFoundException.prototype); } }; exports.InvalidLambdaResponseException = class InvalidLambdaResponseException extends __BaseException { name = "InvalidLambdaResponseException"; $fault = "client"; constructor(opts) { super({ name: "InvalidLambdaResponseException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, InvalidLambdaResponseException.prototype); } }; exports.TooManyFailedAttemptsException = class TooManyFailedAttemptsException extends __BaseException { name = "TooManyFailedAttemptsException"; $fault = "client"; constructor(opts) { super({ name: "TooManyFailedAttemptsException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, TooManyFailedAttemptsException.prototype); } }; exports.UnexpectedLambdaException = class UnexpectedLambdaException extends __BaseException { name = "UnexpectedLambdaException"; $fault = "client"; constructor(opts) { super({ name: "UnexpectedLambdaException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, UnexpectedLambdaException.prototype); } }; exports.UserLambdaValidationException = class UserLambdaValidationException extends __BaseException { name = "UserLambdaValidationException"; $fault = "client"; constructor(opts) { super({ name: "UserLambdaValidationException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, UserLambdaValidationException.prototype); } }; exports.CodeDeliveryFailureException = class CodeDeliveryFailureException extends __BaseException { name = "CodeDeliveryFailureException"; $fault = "client"; constructor(opts) { super({ name: "CodeDeliveryFailureException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, CodeDeliveryFailureException.prototype); } }; exports.InvalidPasswordException = class InvalidPasswordException extends __BaseException { name = "InvalidPasswordException"; $fault = "client"; constructor(opts) { super({ name: "InvalidPasswordException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, InvalidPasswordException.prototype); } }; exports.InvalidSmsRoleAccessPolicyException = class InvalidSmsRoleAccessPolicyException extends __BaseException { name = "InvalidSmsRoleAccessPolicyException"; $fault = "client"; constructor(opts) { super({ name: "InvalidSmsRoleAccessPolicyException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, InvalidSmsRoleAccessPolicyException.prototype); } }; exports.InvalidSmsRoleTrustRelationshipException = class InvalidSmsRoleTrustRelationshipException extends __BaseException { name = "InvalidSmsRoleTrustRelationshipException"; $fault = "client"; constructor(opts) { super({ name: "InvalidSmsRoleTrustRelationshipException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, InvalidSmsRoleTrustRelationshipException.prototype); } }; exports.PreconditionNotMetException = class PreconditionNotMetException extends __BaseException { name = "PreconditionNotMetException"; $fault = "client"; constructor(opts) { super({ name: "PreconditionNotMetException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, PreconditionNotMetException.prototype); } }; exports.UnsupportedUserStateException = class UnsupportedUserStateException extends __BaseException { name = "UnsupportedUserStateException"; $fault = "client"; constructor(opts) { super({ name: "UnsupportedUserStateException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, UnsupportedUserStateException.prototype); } }; exports.UsernameExistsException = class UsernameExistsException extends __BaseException { name = "UsernameExistsException"; $fault = "client"; constructor(opts) { super({ name: "UsernameExistsException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, UsernameExistsException.prototype); } }; exports.AliasExistsException = class AliasExistsException extends __BaseException { name = "AliasExistsException"; $fault = "client"; constructor(opts) { super({ name: "AliasExistsException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, AliasExistsException.prototype); } }; exports.InvalidUserPoolConfigurationException = class InvalidUserPoolConfigurationException extends __BaseException { name = "InvalidUserPoolConfigurationException"; $fault = "client"; constructor(opts) { super({ name: "InvalidUserPoolConfigurationException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, InvalidUserPoolConfigurationException.prototype); } }; exports.InvalidEmailRoleAccessPolicyException = class InvalidEmailRoleAccessPolicyException extends __BaseException { name = "InvalidEmailRoleAccessPolicyException"; $fault = "client"; constructor(opts) { super({ name: "InvalidEmailRoleAccessPolicyException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, InvalidEmailRoleAccessPolicyException.prototype); } }; exports.MFAMethodNotFoundException = class MFAMethodNotFoundException extends __BaseException { name = "MFAMethodNotFoundException"; $fault = "client"; constructor(opts) { super({ name: "MFAMethodNotFoundException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, MFAMethodNotFoundException.prototype); } }; exports.PasswordResetRequiredException = class PasswordResetRequiredException extends __BaseException { name = "PasswordResetRequiredException"; $fault = "client"; constructor(opts) { super({ name: "PasswordResetRequiredException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, PasswordResetRequiredException.prototype); } }; exports.UnsupportedOperationException = class UnsupportedOperationException extends __BaseException { name = "UnsupportedOperationException"; $fault = "client"; constructor(opts) { super({ name: "UnsupportedOperationException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, UnsupportedOperationException.prototype); } }; exports.UserNotConfirmedException = class UserNotConfirmedException extends __BaseException { name = "UserNotConfirmedException"; $fault = "client"; constructor(opts) { super({ name: "UserNotConfirmedException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, UserNotConfirmedException.prototype); } }; exports.UserPoolAddOnNotEnabledException = class UserPoolAddOnNotEnabledException extends __BaseException { name = "UserPoolAddOnNotEnabledException"; $fault = "client"; constructor(opts) { super({ name: "UserPoolAddOnNotEnabledException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, UserPoolAddOnNotEnabledException.prototype); } }; exports.CodeMismatchException = class CodeMismatchException extends __BaseException { name = "CodeMismatchException"; $fault = "client"; constructor(opts) { super({ name: "CodeMismatchException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, CodeMismatchException.prototype); } }; exports.ExpiredCodeException = class ExpiredCodeException extends __BaseException { name = "ExpiredCodeException"; $fault = "client"; constructor(opts) { super({ name: "ExpiredCodeException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, ExpiredCodeException.prototype); } }; exports.PasswordHistoryPolicyViolationException = class PasswordHistoryPolicyViolationException extends __BaseException { name = "PasswordHistoryPolicyViolationException"; $fault = "client"; constructor(opts) { super({ name: "PasswordHistoryPolicyViolationException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, PasswordHistoryPolicyViolationException.prototype); } }; exports.SoftwareTokenMFANotFoundException = class SoftwareTokenMFANotFoundException extends __BaseException { name = "SoftwareTokenMFANotFoundException"; $fault = "client"; constructor(opts) { super({ name: "SoftwareTokenMFANotFoundException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, SoftwareTokenMFANotFoundException.prototype); } }; exports.ConcurrentModificationException = class ConcurrentModificationException extends __BaseException { name = "ConcurrentModificationException"; $fault = "client"; constructor(opts) { super({ name: "ConcurrentModificationException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, ConcurrentModificationException.prototype); } }; exports.ForbiddenException = class ForbiddenException extends __BaseException { name = "ForbiddenException"; $fault = "client"; constructor(opts) { super({ name: "ForbiddenException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, ForbiddenException.prototype); } }; exports.WebAuthnChallengeNotFoundException = class WebAuthnChallengeNotFoundException extends __BaseException { name = "WebAuthnChallengeNotFoundException"; $fault = "client"; constructor(opts) { super({ name: "WebAuthnChallengeNotFoundException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, WebAuthnChallengeNotFoundException.prototype); } }; exports.WebAuthnClientMismatchException = class WebAuthnClientMismatchException extends __BaseException { name = "WebAuthnClientMismatchException"; $fault = "client"; constructor(opts) { super({ name: "WebAuthnClientMismatchException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, WebAuthnClientMismatchException.prototype); } }; exports.WebAuthnCredentialNotSupportedException = class WebAuthnCredentialNotSupportedException extends __BaseException { name = "WebAuthnCredentialNotSupportedException"; $fault = "client"; constructor(opts) { super({ name: "WebAuthnCredentialNotSupportedException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, WebAuthnCredentialNotSupportedException.prototype); } }; exports.WebAuthnNotEnabledException = class WebAuthnNotEnabledException extends __BaseException { name = "WebAuthnNotEnabledException"; $fault = "client"; constructor(opts) { super({ name: "WebAuthnNotEnabledException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, WebAuthnNotEnabledException.prototype); } }; exports.WebAuthnOriginNotAllowedException = class WebAuthnOriginNotAllowedException extends __BaseException { name = "WebAuthnOriginNotAllowedException"; $fault = "client"; constructor(opts) { super({ name: "WebAuthnOriginNotAllowedException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, WebAuthnOriginNotAllowedException.prototype); } }; exports.WebAuthnRelyingPartyMismatchException = class WebAuthnRelyingPartyMismatchException extends __BaseException { name = "WebAuthnRelyingPartyMismatchException"; $fault = "client"; constructor(opts) { super({ name: "WebAuthnRelyingPartyMismatchException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, WebAuthnRelyingPartyMismatchException.prototype); } }; exports.DeviceKeyExistsException = class DeviceKeyExistsException extends __BaseException { name = "DeviceKeyExistsException"; $fault = "client"; constructor(opts) { super({ name: "DeviceKeyExistsException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, DeviceKeyExistsException.prototype); } }; exports.GroupExistsException = class GroupExistsException extends __BaseException { name = "GroupExistsException"; $fault = "client"; constructor(opts) { super({ name: "GroupExistsException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, GroupExistsException.prototype); } }; exports.DuplicateProviderException = class DuplicateProviderException extends __BaseException { name = "DuplicateProviderException"; $fault = "client"; constructor(opts) { super({ name: "DuplicateProviderException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, DuplicateProviderException.prototype); } }; exports.ManagedLoginBrandingExistsException = class ManagedLoginBrandingExistsException extends __BaseException { name = "ManagedLoginBrandingExistsException"; $fault = "client"; constructor(opts) { super({ name: "ManagedLoginBrandingExistsException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, ManagedLoginBrandingExistsException.prototype); } }; exports.TermsExistsException = class TermsExistsException extends __BaseException { name = "TermsExistsException"; $fault = "client"; constructor(opts) { super({ name: "TermsExistsException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, TermsExistsException.prototype); } }; exports.FeatureUnavailableInTierException = class FeatureUnavailableInTierException extends __BaseException { name = "FeatureUnavailableInTierException"; $fault = "client"; constructor(opts) { super({ name: "FeatureUnavailableInTierException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, FeatureUnavailableInTierException.prototype); } }; exports.TierChangeNotAllowedException = class TierChangeNotAllowedException extends __BaseException { name = "TierChangeNotAllowedException"; $fault = "client"; constructor(opts) { super({ name: "TierChangeNotAllowedException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, TierChangeNotAllowedException.prototype); } }; exports.UserPoolTaggingException = class UserPoolTaggingException extends __BaseException { name = "UserPoolTaggingException"; $fault = "client"; constructor(opts) { super({ name: "UserPoolTaggingException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, UserPoolTaggingException.prototype); } }; exports.InvalidOAuthFlowException = class InvalidOAuthFlowException extends __BaseException { name = "InvalidOAuthFlowException"; $fault = "client"; constructor(opts) { super({ name: "InvalidOAuthFlowException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, InvalidOAuthFlowException.prototype); } }; exports.ScopeDoesNotExistException = class ScopeDoesNotExistException extends __BaseException { name = "ScopeDoesNotExistException"; $fault = "client"; constructor(opts) { super({ name: "ScopeDoesNotExistException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, ScopeDoesNotExistException.prototype); } }; exports.UnsupportedIdentityProviderException = class UnsupportedIdentityProviderException extends __BaseException { name = "UnsupportedIdentityProviderException"; $fault = "client"; constructor(opts) { super({ name: "UnsupportedIdentityProviderException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, UnsupportedIdentityProviderException.prototype); } }; exports.RefreshTokenReuseException = class RefreshTokenReuseException extends __BaseException { name = "RefreshTokenReuseException"; $fault = "client"; constructor(opts) { super({ name: "RefreshTokenReuseException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, RefreshTokenReuseException.prototype); } }; exports.UnauthorizedException = class UnauthorizedException extends __BaseException { name = "UnauthorizedException"; $fault = "client"; constructor(opts) { super({ name: "UnauthorizedException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, UnauthorizedException.prototype); } }; exports.UnsupportedTokenTypeException = class UnsupportedTokenTypeException extends __BaseException { name = "UnsupportedTokenTypeException"; $fault = "client"; constructor(opts) { super({ name: "UnsupportedTokenTypeException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, UnsupportedTokenTypeException.prototype); } }; exports.WebAuthnConfigurationMissingException = class WebAuthnConfigurationMissingException extends __BaseException { name = "WebAuthnConfigurationMissingException"; $fault = "client"; constructor(opts) { super({ name: "WebAuthnConfigurationMissingException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, WebAuthnConfigurationMissingException.prototype); } }; exports.EnableSoftwareTokenMFAException = class EnableSoftwareTokenMFAException extends __BaseException { name = "EnableSoftwareTokenMFAException"; $fault = "client"; constructor(opts) { super({ name: "EnableSoftwareTokenMFAException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, EnableSoftwareTokenMFAException.prototype); } };