/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the cognito-idp-2016-04-18.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CognitoIdentityProvider.Model
{
///
/// Container for the parameters to the SetUserPoolMfaConfig operation.
/// Sets the user pool multi-factor authentication (MFA) configuration.
///
///
///
/// This action might generate an SMS text message. Starting June 1, 2021, US telecom
/// carriers require you to register an origination phone number before you can send SMS
/// messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you
/// must register a phone number with Amazon
/// Pinpoint. Amazon Cognito uses the registered number automatically. Otherwise,
/// Amazon Cognito users who must receive SMS messages might not be able to sign up, activate
/// their accounts, or sign in.
///
///
///
/// If you have never used SMS text messages with Amazon Cognito or any other Amazon Web
/// Service, Amazon Simple Notification Service might place your account in the SMS sandbox.
/// In sandbox
/// mode , you can send messages only to verified phone numbers. After you test
/// your app while in the sandbox environment, you can move out of the sandbox and into
/// production. For more information, see
/// SMS message settings for Amazon Cognito user pools in the Amazon Cognito Developer
/// Guide.
///
///
///
public partial class SetUserPoolMfaConfigRequest : AmazonCognitoIdentityProviderRequest
{
private UserPoolMfaType _mfaConfiguration;
private SmsMfaConfigType _smsMfaConfiguration;
private SoftwareTokenMfaConfigType _softwareTokenMfaConfiguration;
private string _userPoolId;
///
/// Gets and sets the property MfaConfiguration.
///
/// The MFA configuration. If you set the MfaConfiguration value to ‘ON’, only users who
/// have set up an MFA factor can sign in. To learn more, see Adding
/// Multi-Factor Authentication (MFA) to a user pool. Valid values include:
///
/// -
///
///
OFF
MFA won't be used for any users.
///
/// -
///
///
ON
MFA is required for all users to sign in.
///
/// -
///
///
OPTIONAL
MFA will be required only for individual users who have an
/// MFA factor activated.
///
///
///
public UserPoolMfaType MfaConfiguration
{
get { return this._mfaConfiguration; }
set { this._mfaConfiguration = value; }
}
// Check to see if MfaConfiguration property is set
internal bool IsSetMfaConfiguration()
{
return this._mfaConfiguration != null;
}
///
/// Gets and sets the property SmsMfaConfiguration.
///
/// The SMS text message MFA configuration.
///
///
public SmsMfaConfigType SmsMfaConfiguration
{
get { return this._smsMfaConfiguration; }
set { this._smsMfaConfiguration = value; }
}
// Check to see if SmsMfaConfiguration property is set
internal bool IsSetSmsMfaConfiguration()
{
return this._smsMfaConfiguration != null;
}
///
/// Gets and sets the property SoftwareTokenMfaConfiguration.
///
/// The software token MFA configuration.
///
///
public SoftwareTokenMfaConfigType SoftwareTokenMfaConfiguration
{
get { return this._softwareTokenMfaConfiguration; }
set { this._softwareTokenMfaConfiguration = value; }
}
// Check to see if SoftwareTokenMfaConfiguration property is set
internal bool IsSetSoftwareTokenMfaConfiguration()
{
return this._softwareTokenMfaConfiguration != null;
}
///
/// Gets and sets the property UserPoolId.
///
/// The user pool ID.
///
///
[AWSProperty(Required=true, Min=1, Max=55)]
public string UserPoolId
{
get { return this._userPoolId; }
set { this._userPoolId = value; }
}
// Check to see if UserPoolId property is set
internal bool IsSetUserPoolId()
{
return this._userPoolId != null;
}
}
}