| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.CognitoIdentityProvider.GetUserPoolMfaConfig
Description
Gets the user pool multi-factor authentication (MFA) configuration.
Synopsis
- data GetUserPoolMfaConfig = GetUserPoolMfaConfig' {
- userPoolId :: Text
- newGetUserPoolMfaConfig :: Text -> GetUserPoolMfaConfig
- getUserPoolMfaConfig_userPoolId :: Lens' GetUserPoolMfaConfig Text
- data GetUserPoolMfaConfigResponse = GetUserPoolMfaConfigResponse' {}
- newGetUserPoolMfaConfigResponse :: Int -> GetUserPoolMfaConfigResponse
- getUserPoolMfaConfigResponse_mfaConfiguration :: Lens' GetUserPoolMfaConfigResponse (Maybe UserPoolMfaType)
- getUserPoolMfaConfigResponse_smsMfaConfiguration :: Lens' GetUserPoolMfaConfigResponse (Maybe SmsMfaConfigType)
- getUserPoolMfaConfigResponse_softwareTokenMfaConfiguration :: Lens' GetUserPoolMfaConfigResponse (Maybe SoftwareTokenMfaConfigType)
- getUserPoolMfaConfigResponse_httpStatus :: Lens' GetUserPoolMfaConfigResponse Int
Creating a Request
data GetUserPoolMfaConfig Source #
See: newGetUserPoolMfaConfig smart constructor.
Constructors
| GetUserPoolMfaConfig' | |
Fields
| |
Instances
newGetUserPoolMfaConfig Source #
Arguments
| :: Text | |
| -> GetUserPoolMfaConfig |
Create a value of GetUserPoolMfaConfig 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:
GetUserPoolMfaConfig, getUserPoolMfaConfig_userPoolId - The user pool ID.
Request Lenses
getUserPoolMfaConfig_userPoolId :: Lens' GetUserPoolMfaConfig Text Source #
The user pool ID.
Destructuring the Response
data GetUserPoolMfaConfigResponse Source #
See: newGetUserPoolMfaConfigResponse smart constructor.
Constructors
| GetUserPoolMfaConfigResponse' | |
Fields
| |
Instances
newGetUserPoolMfaConfigResponse Source #
Create a value of GetUserPoolMfaConfigResponse 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:
GetUserPoolMfaConfigResponse, getUserPoolMfaConfigResponse_mfaConfiguration - The multi-factor authentication (MFA) configuration. Valid values
include:
OFFMFA won't be used for any users.ONMFA is required for all users to sign in.OPTIONALMFA will be required only for individual users who have an MFA factor activated.
$sel:smsMfaConfiguration:GetUserPoolMfaConfigResponse', getUserPoolMfaConfigResponse_smsMfaConfiguration - The SMS text message multi-factor authentication (MFA) configuration.
$sel:softwareTokenMfaConfiguration:GetUserPoolMfaConfigResponse', getUserPoolMfaConfigResponse_softwareTokenMfaConfiguration - The software token multi-factor authentication (MFA) configuration.
$sel:httpStatus:GetUserPoolMfaConfigResponse', getUserPoolMfaConfigResponse_httpStatus - The response's http status code.
Response Lenses
getUserPoolMfaConfigResponse_mfaConfiguration :: Lens' GetUserPoolMfaConfigResponse (Maybe UserPoolMfaType) Source #
The multi-factor authentication (MFA) configuration. Valid values include:
OFFMFA won't be used for any users.ONMFA is required for all users to sign in.OPTIONALMFA will be required only for individual users who have an MFA factor activated.
getUserPoolMfaConfigResponse_smsMfaConfiguration :: Lens' GetUserPoolMfaConfigResponse (Maybe SmsMfaConfigType) Source #
The SMS text message multi-factor authentication (MFA) configuration.
getUserPoolMfaConfigResponse_softwareTokenMfaConfiguration :: Lens' GetUserPoolMfaConfigResponse (Maybe SoftwareTokenMfaConfigType) Source #
The software token multi-factor authentication (MFA) configuration.
getUserPoolMfaConfigResponse_httpStatus :: Lens' GetUserPoolMfaConfigResponse Int Source #
The response's http status code.