UNPKG

697 BTypeScriptView Raw
1import { UpdateMFAPreferenceInput } from '../types';
2import { MFAPreference } from '../types/models';
3import { CognitoMFASettings } from '../utils/clients/CognitoIdentityProvider/types';
4/**
5 * Updates the MFA preference of the user.
6 *
7 * @param input - The UpdateMFAPreferenceInput object.
8 * @throws -{@link SetUserMFAPreferenceException } - Service error thrown when the MFA preference cannot be updated.
9 * @throws AuthTokenConfigException - Thrown when the token provider config is invalid.
10 */
11export declare function updateMFAPreference(input: UpdateMFAPreferenceInput): Promise<void>;
12export declare function getMFASettings(mfaPreference?: MFAPreference): CognitoMFASettings | undefined;