libZSservicesZSamazonka-cognito-idpZSamazonka-cognito-idp
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CognitoIdentityProvider.SetUserPoolMfaConfig

Description

Set the user pool multi-factor authentication (MFA) configuration.

This action might generate an SMS text message. Starting June 1, 2021, U.S. telecom carriers require that you register an origination phone number before you can send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with Amazon Pinpoint. Cognito will use the the registered number automatically. Otherwise, Cognito users that must receive SMS messages might be unable 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 SNS might place your account in SMS sandbox. In <https:docs.aws.amazon.comsnslatestdgsns-sms-sandbox.html sandbox mode> , you’ll have limitations, such as sending messages to only verified phone numbers. After testing in the sandbox environment, you can move out of the SMS sandbox and into production. For more information, see SMS message settings for Cognito User Pools in the Amazon Cognito Developer Guide.

Synopsis

Creating a Request

data SetUserPoolMfaConfig Source #

See: newSetUserPoolMfaConfig smart constructor.

Constructors

SetUserPoolMfaConfig' 

Fields

Instances

Instances details
Eq SetUserPoolMfaConfig Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetUserPoolMfaConfig

Read SetUserPoolMfaConfig Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetUserPoolMfaConfig

Show SetUserPoolMfaConfig Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetUserPoolMfaConfig

Generic SetUserPoolMfaConfig Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetUserPoolMfaConfig

Associated Types

type Rep SetUserPoolMfaConfig :: Type -> Type #

NFData SetUserPoolMfaConfig Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetUserPoolMfaConfig

Methods

rnf :: SetUserPoolMfaConfig -> () #

Hashable SetUserPoolMfaConfig Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetUserPoolMfaConfig

ToJSON SetUserPoolMfaConfig Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetUserPoolMfaConfig

AWSRequest SetUserPoolMfaConfig Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetUserPoolMfaConfig

Associated Types

type AWSResponse SetUserPoolMfaConfig #

ToHeaders SetUserPoolMfaConfig Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetUserPoolMfaConfig

ToPath SetUserPoolMfaConfig Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetUserPoolMfaConfig

ToQuery SetUserPoolMfaConfig Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetUserPoolMfaConfig

type Rep SetUserPoolMfaConfig Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetUserPoolMfaConfig

type Rep SetUserPoolMfaConfig = D1 ('MetaData "SetUserPoolMfaConfig" "Amazonka.CognitoIdentityProvider.SetUserPoolMfaConfig" "libZSservicesZSamazonka-cognito-idpZSamazonka-cognito-idp" 'False) (C1 ('MetaCons "SetUserPoolMfaConfig'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "smsMfaConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SmsMfaConfigType)) :*: S1 ('MetaSel ('Just "softwareTokenMfaConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SoftwareTokenMfaConfigType))) :*: (S1 ('MetaSel ('Just "mfaConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe UserPoolMfaType)) :*: S1 ('MetaSel ('Just "userPoolId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse SetUserPoolMfaConfig Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetUserPoolMfaConfig

newSetUserPoolMfaConfig Source #

Create a value of SetUserPoolMfaConfig with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:smsMfaConfiguration:SetUserPoolMfaConfig', setUserPoolMfaConfig_smsMfaConfiguration - The SMS text message MFA configuration.

$sel:softwareTokenMfaConfiguration:SetUserPoolMfaConfig', setUserPoolMfaConfig_softwareTokenMfaConfiguration - The software token MFA configuration.

$sel:mfaConfiguration:SetUserPoolMfaConfig', setUserPoolMfaConfig_mfaConfiguration - The MFA configuration. Users who don't have an MFA factor set up won't be able to sign-in if you set the MfaConfiguration value to ‘ON’. See Adding Multi-Factor Authentication (MFA) to a User Pool to learn more. Valid values include:

  • OFF MFA will not 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 enabled.

$sel:userPoolId:SetUserPoolMfaConfig', setUserPoolMfaConfig_userPoolId - The user pool ID.

Request Lenses

setUserPoolMfaConfig_mfaConfiguration :: Lens' SetUserPoolMfaConfig (Maybe UserPoolMfaType) Source #

The MFA configuration. Users who don't have an MFA factor set up won't be able to sign-in if you set the MfaConfiguration value to ‘ON’. See Adding Multi-Factor Authentication (MFA) to a User Pool to learn more. Valid values include:

  • OFF MFA will not 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 enabled.

Destructuring the Response

data SetUserPoolMfaConfigResponse Source #

See: newSetUserPoolMfaConfigResponse smart constructor.

Constructors

SetUserPoolMfaConfigResponse' 

Fields

Instances

Instances details
Eq SetUserPoolMfaConfigResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetUserPoolMfaConfig

Read SetUserPoolMfaConfigResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetUserPoolMfaConfig

Show SetUserPoolMfaConfigResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetUserPoolMfaConfig

Generic SetUserPoolMfaConfigResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetUserPoolMfaConfig

Associated Types

type Rep SetUserPoolMfaConfigResponse :: Type -> Type #

NFData SetUserPoolMfaConfigResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetUserPoolMfaConfig

type Rep SetUserPoolMfaConfigResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetUserPoolMfaConfig

type Rep SetUserPoolMfaConfigResponse = D1 ('MetaData "SetUserPoolMfaConfigResponse" "Amazonka.CognitoIdentityProvider.SetUserPoolMfaConfig" "libZSservicesZSamazonka-cognito-idpZSamazonka-cognito-idp" 'False) (C1 ('MetaCons "SetUserPoolMfaConfigResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "smsMfaConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SmsMfaConfigType)) :*: S1 ('MetaSel ('Just "softwareTokenMfaConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SoftwareTokenMfaConfigType))) :*: (S1 ('MetaSel ('Just "mfaConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe UserPoolMfaType)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newSetUserPoolMfaConfigResponse Source #

Create a value of SetUserPoolMfaConfigResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:smsMfaConfiguration:SetUserPoolMfaConfig', setUserPoolMfaConfigResponse_smsMfaConfiguration - The SMS text message MFA configuration.

$sel:softwareTokenMfaConfiguration:SetUserPoolMfaConfig', setUserPoolMfaConfigResponse_softwareTokenMfaConfiguration - The software token MFA configuration.

$sel:mfaConfiguration:SetUserPoolMfaConfig', setUserPoolMfaConfigResponse_mfaConfiguration - The MFA configuration. Valid values include:

  • OFF MFA will not 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 enabled.

$sel:httpStatus:SetUserPoolMfaConfigResponse', setUserPoolMfaConfigResponse_httpStatus - The response's http status code.

Response Lenses

setUserPoolMfaConfigResponse_mfaConfiguration :: Lens' SetUserPoolMfaConfigResponse (Maybe UserPoolMfaType) Source #

The MFA configuration. Valid values include:

  • OFF MFA will not 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 enabled.