

# MFAOptionType


 *This data type is no longer supported.* Applies only to SMS multi-factor authentication (MFA) configurations. Does not apply to time-based one-time password (TOTP) software token MFA configurations.

To set either type of MFA configuration, use the [AdminSetUserMFAPreference](API_AdminSetUserMFAPreference.md) or [SetUserMFAPreference](API_SetUserMFAPreference.md) actions.

To look up information about either type of MFA configuration, use the [AdminGetUser:UserMFASettingList](API_AdminGetUser.md#CognitoUserPools-AdminGetUser-response-UserMFASettingList) or [GetUser:UserMFASettingList](API_GetUser.md#CognitoUserPools-GetUser-response-UserMFASettingList) responses.

## Contents


 ** AttributeName **   <a name="CognitoUserPools-Type-MFAOptionType-AttributeName"></a>
The attribute name of the MFA option type. The only valid value is `phone_number`.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 32.  
Pattern: `[\p{L}\p{M}\p{S}\p{N}\p{P}\t\n\r ]+`   
Required: No

 ** DeliveryMedium **   <a name="CognitoUserPools-Type-MFAOptionType-DeliveryMedium"></a>
The delivery medium to send the MFA code. You can use this parameter to set only the `SMS` delivery medium value.  
Type: String  
Valid Values: `SMS | EMAIL`   
Required: No

## See Also


For more information about using this API in one of the language-specific Amazon SDKs, see the following:
+  [Amazon SDK for C\$1\$1](https://docs.amazonaws.cn/goto/SdkForCpp/cognito-idp-2016-04-18/MFAOptionType) 
+  [Amazon SDK for Java V2](https://docs.amazonaws.cn/goto/SdkForJavaV2/cognito-idp-2016-04-18/MFAOptionType) 
+  [Amazon SDK for Ruby V3](https://docs.amazonaws.cn/goto/SdkForRubyV3/cognito-idp-2016-04-18/MFAOptionType) 