amazonka-cognito-idp-2.0: Amazon Cognito Identity Provider SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.CognitoIdentityProvider.AdminSetUserSettings

Description

This action is no longer supported. You can use it to configure only SMS MFA. You can't use it to configure time-based one-time password (TOTP) software token MFA. To configure either type of MFA, use AdminSetUserMFAPreference instead.

Synopsis

Creating a Request

data AdminSetUserSettings Source #

You can use this parameter to set an MFA configuration that uses the SMS delivery medium.

See: newAdminSetUserSettings smart constructor.

Constructors

AdminSetUserSettings' 

Fields

  • userPoolId :: Text

    The ID of the user pool that contains the user whose options you're setting.

  • username :: Sensitive Text

    The user name of the user whose options you're setting.

  • mfaOptions :: [MFAOptionType]

    You can use this parameter only to set an SMS configuration that uses SMS for delivery.

Instances

Instances details
ToJSON AdminSetUserSettings Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserSettings

ToHeaders AdminSetUserSettings Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserSettings

ToPath AdminSetUserSettings Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserSettings

ToQuery AdminSetUserSettings Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserSettings

AWSRequest AdminSetUserSettings Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserSettings

Associated Types

type AWSResponse AdminSetUserSettings #

Generic AdminSetUserSettings Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserSettings

Associated Types

type Rep AdminSetUserSettings :: Type -> Type #

Show AdminSetUserSettings Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserSettings

NFData AdminSetUserSettings Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserSettings

Methods

rnf :: AdminSetUserSettings -> () #

Eq AdminSetUserSettings Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserSettings

Hashable AdminSetUserSettings Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserSettings

type AWSResponse AdminSetUserSettings Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserSettings

type Rep AdminSetUserSettings Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserSettings

type Rep AdminSetUserSettings = D1 ('MetaData "AdminSetUserSettings" "Amazonka.CognitoIdentityProvider.AdminSetUserSettings" "amazonka-cognito-idp-2.0-D1ERgMvEVPG9z8cOLXdU2" 'False) (C1 ('MetaCons "AdminSetUserSettings'" 'PrefixI 'True) (S1 ('MetaSel ('Just "userPoolId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "username") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text)) :*: S1 ('MetaSel ('Just "mfaOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [MFAOptionType]))))

newAdminSetUserSettings Source #

Create a value of AdminSetUserSettings 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:

AdminSetUserSettings, adminSetUserSettings_userPoolId - The ID of the user pool that contains the user whose options you're setting.

AdminSetUserSettings, adminSetUserSettings_username - The user name of the user whose options you're setting.

AdminSetUserSettings, adminSetUserSettings_mfaOptions - You can use this parameter only to set an SMS configuration that uses SMS for delivery.

Request Lenses

adminSetUserSettings_userPoolId :: Lens' AdminSetUserSettings Text Source #

The ID of the user pool that contains the user whose options you're setting.

adminSetUserSettings_username :: Lens' AdminSetUserSettings Text Source #

The user name of the user whose options you're setting.

adminSetUserSettings_mfaOptions :: Lens' AdminSetUserSettings [MFAOptionType] Source #

You can use this parameter only to set an SMS configuration that uses SMS for delivery.

Destructuring the Response

data AdminSetUserSettingsResponse Source #

Represents the response from the server to set user settings as an administrator.

See: newAdminSetUserSettingsResponse smart constructor.

Constructors

AdminSetUserSettingsResponse' 

Fields

Instances

Instances details
Generic AdminSetUserSettingsResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserSettings

Associated Types

type Rep AdminSetUserSettingsResponse :: Type -> Type #

Read AdminSetUserSettingsResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserSettings

Show AdminSetUserSettingsResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserSettings

NFData AdminSetUserSettingsResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserSettings

Eq AdminSetUserSettingsResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserSettings

type Rep AdminSetUserSettingsResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserSettings

type Rep AdminSetUserSettingsResponse = D1 ('MetaData "AdminSetUserSettingsResponse" "Amazonka.CognitoIdentityProvider.AdminSetUserSettings" "amazonka-cognito-idp-2.0-D1ERgMvEVPG9z8cOLXdU2" 'False) (C1 ('MetaCons "AdminSetUserSettingsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newAdminSetUserSettingsResponse Source #

Create a value of AdminSetUserSettingsResponse 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:httpStatus:AdminSetUserSettingsResponse', adminSetUserSettingsResponse_httpStatus - The response's http status code.

Response Lenses