Copyright | (c) 2013-2021 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 |
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
.
Synopsis
- data SetRiskConfiguration = SetRiskConfiguration' {}
- newSetRiskConfiguration :: Text -> SetRiskConfiguration
- setRiskConfiguration_riskExceptionConfiguration :: Lens' SetRiskConfiguration (Maybe RiskExceptionConfigurationType)
- setRiskConfiguration_clientId :: Lens' SetRiskConfiguration (Maybe Text)
- setRiskConfiguration_accountTakeoverRiskConfiguration :: Lens' SetRiskConfiguration (Maybe AccountTakeoverRiskConfigurationType)
- setRiskConfiguration_compromisedCredentialsRiskConfiguration :: Lens' SetRiskConfiguration (Maybe CompromisedCredentialsRiskConfigurationType)
- setRiskConfiguration_userPoolId :: Lens' SetRiskConfiguration Text
- data SetRiskConfigurationResponse = SetRiskConfigurationResponse' {}
- newSetRiskConfigurationResponse :: Int -> RiskConfigurationType -> SetRiskConfigurationResponse
- setRiskConfigurationResponse_httpStatus :: Lens' SetRiskConfigurationResponse Int
- setRiskConfigurationResponse_riskConfiguration :: Lens' SetRiskConfigurationResponse RiskConfigurationType
Creating a Request
data SetRiskConfiguration Source #
See: newSetRiskConfiguration
smart constructor.
SetRiskConfiguration' | |
|
Instances
newSetRiskConfiguration Source #
Create a value of SetRiskConfiguration
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:riskExceptionConfiguration:SetRiskConfiguration'
, setRiskConfiguration_riskExceptionConfiguration
- The configuration to override the risk decision.
$sel:clientId:SetRiskConfiguration'
, setRiskConfiguration_clientId
- 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.
$sel:accountTakeoverRiskConfiguration:SetRiskConfiguration'
, setRiskConfiguration_accountTakeoverRiskConfiguration
- The account takeover risk configuration.
$sel:compromisedCredentialsRiskConfiguration:SetRiskConfiguration'
, setRiskConfiguration_compromisedCredentialsRiskConfiguration
- The compromised credentials risk configuration.
$sel:userPoolId:SetRiskConfiguration'
, setRiskConfiguration_userPoolId
- The user pool ID.
Request Lenses
setRiskConfiguration_riskExceptionConfiguration :: Lens' SetRiskConfiguration (Maybe RiskExceptionConfigurationType) Source #
The configuration to override the risk decision.
setRiskConfiguration_clientId :: 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.
setRiskConfiguration_accountTakeoverRiskConfiguration :: Lens' SetRiskConfiguration (Maybe AccountTakeoverRiskConfigurationType) Source #
The account takeover risk configuration.
setRiskConfiguration_compromisedCredentialsRiskConfiguration :: Lens' SetRiskConfiguration (Maybe CompromisedCredentialsRiskConfigurationType) Source #
The compromised credentials risk configuration.
setRiskConfiguration_userPoolId :: Lens' SetRiskConfiguration Text Source #
The user pool ID.
Destructuring the Response
data SetRiskConfigurationResponse Source #
See: newSetRiskConfigurationResponse
smart constructor.
SetRiskConfigurationResponse' | |
|
Instances
newSetRiskConfigurationResponse Source #
Create a value of SetRiskConfigurationResponse
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:SetRiskConfigurationResponse'
, setRiskConfigurationResponse_httpStatus
- The response's http status code.
$sel:riskConfiguration:SetRiskConfigurationResponse'
, setRiskConfigurationResponse_riskConfiguration
- The risk configuration.
Response Lenses
setRiskConfigurationResponse_httpStatus :: Lens' SetRiskConfigurationResponse Int Source #
The response's http status code.
setRiskConfigurationResponse_riskConfiguration :: Lens' SetRiskConfigurationResponse RiskConfigurationType Source #
The risk configuration.