| Copyright | (c) 2013-2018 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.CognitoIdentityProvider.SetRiskConfiguration
Description
Configures actions on detected risks. To delete the risk configuration for UserPoolId or ClientId , pass null values for all four configuration types.
To enable Amazon Cognito advanced security features, update the user pool to include the UserPoolAddOns keyAdvancedSecurityMode .
See .
- setRiskConfiguration :: Text -> SetRiskConfiguration
- data SetRiskConfiguration
- srcRiskExceptionConfiguration :: Lens' SetRiskConfiguration (Maybe RiskExceptionConfigurationType)
- srcClientId :: Lens' SetRiskConfiguration (Maybe Text)
- srcAccountTakeoverRiskConfiguration :: Lens' SetRiskConfiguration (Maybe AccountTakeoverRiskConfigurationType)
- srcCompromisedCredentialsRiskConfiguration :: Lens' SetRiskConfiguration (Maybe CompromisedCredentialsRiskConfigurationType)
- srcUserPoolId :: Lens' SetRiskConfiguration Text
- setRiskConfigurationResponse :: Int -> RiskConfigurationType -> SetRiskConfigurationResponse
- data SetRiskConfigurationResponse
- srcrsResponseStatus :: Lens' SetRiskConfigurationResponse Int
- srcrsRiskConfiguration :: Lens' SetRiskConfigurationResponse RiskConfigurationType
Creating a Request
Arguments
| :: Text | |
| -> SetRiskConfiguration |
Creates a value of SetRiskConfiguration with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
srcRiskExceptionConfiguration- The configuration to override the risk decision.srcClientId- The app client ID. IfClientIdis null, then the risk configuration is mapped touserPoolId. When the client ID is null, the same risk configuration is applied to all the clients in the userPool. Otherwise,ClientIdis mapped to the client. When the client ID is not null, the user pool configuration is overridden and the risk configuration for the client is used instead.srcAccountTakeoverRiskConfiguration- The account takeover risk configuration.srcCompromisedCredentialsRiskConfiguration- The compromised credentials risk configuration.srcUserPoolId- The user pool ID.
data SetRiskConfiguration Source #
See: setRiskConfiguration smart constructor.
Instances
Request Lenses
srcRiskExceptionConfiguration :: Lens' SetRiskConfiguration (Maybe RiskExceptionConfigurationType) Source #
The configuration to override the risk decision.
srcClientId :: Lens' SetRiskConfiguration (Maybe Text) Source #
The app client ID. If ClientId is null, then the risk configuration is mapped to userPoolId . When the client ID is null, the same risk configuration is applied to all the clients in the userPool. Otherwise, ClientId is mapped to the client. When the client ID is not null, the user pool configuration is overridden and the risk configuration for the client is used instead.
srcAccountTakeoverRiskConfiguration :: Lens' SetRiskConfiguration (Maybe AccountTakeoverRiskConfigurationType) Source #
The account takeover risk configuration.
srcCompromisedCredentialsRiskConfiguration :: Lens' SetRiskConfiguration (Maybe CompromisedCredentialsRiskConfigurationType) Source #
The compromised credentials risk configuration.
srcUserPoolId :: Lens' SetRiskConfiguration Text Source #
The user pool ID.
Destructuring the Response
setRiskConfigurationResponse Source #
Arguments
| :: Int | |
| -> RiskConfigurationType | |
| -> SetRiskConfigurationResponse |
Creates a value of SetRiskConfigurationResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
srcrsResponseStatus- -- | The response status code.srcrsRiskConfiguration- The risk configuration.
data SetRiskConfigurationResponse Source #
See: setRiskConfigurationResponse smart constructor.
Response Lenses
srcrsResponseStatus :: Lens' SetRiskConfigurationResponse Int Source #
- - | The response status code.
srcrsRiskConfiguration :: Lens' SetRiskConfigurationResponse RiskConfigurationType Source #
The risk configuration.