amazonka-cognito-idp-1.6.0: Amazon Cognito Identity Provider SDK.

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

Network.AWS.CognitoIdentityProvider.SetRiskConfiguration

Contents

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 .

Synopsis

Creating a Request

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. 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 - The account takeover risk configuration.
  • srcCompromisedCredentialsRiskConfiguration - The compromised credentials risk configuration.
  • srcUserPoolId - The user pool ID.

data SetRiskConfiguration #

See: setRiskConfiguration smart constructor.

Instances

Eq SetRiskConfiguration # 
Data SetRiskConfiguration # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SetRiskConfiguration -> c SetRiskConfiguration #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SetRiskConfiguration #

toConstr :: SetRiskConfiguration -> Constr #

dataTypeOf :: SetRiskConfiguration -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c SetRiskConfiguration) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SetRiskConfiguration) #

gmapT :: (forall b. Data b => b -> b) -> SetRiskConfiguration -> SetRiskConfiguration #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SetRiskConfiguration -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SetRiskConfiguration -> r #

gmapQ :: (forall d. Data d => d -> u) -> SetRiskConfiguration -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> SetRiskConfiguration -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> SetRiskConfiguration -> m SetRiskConfiguration #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SetRiskConfiguration -> m SetRiskConfiguration #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SetRiskConfiguration -> m SetRiskConfiguration #

Show SetRiskConfiguration # 
Generic SetRiskConfiguration # 
Hashable SetRiskConfiguration # 
ToJSON SetRiskConfiguration # 
NFData SetRiskConfiguration # 

Methods

rnf :: SetRiskConfiguration -> () #

AWSRequest SetRiskConfiguration # 
ToHeaders SetRiskConfiguration # 
ToPath SetRiskConfiguration # 
ToQuery SetRiskConfiguration # 
type Rep SetRiskConfiguration # 
type Rep SetRiskConfiguration = D1 * (MetaData "SetRiskConfiguration" "Network.AWS.CognitoIdentityProvider.SetRiskConfiguration" "amazonka-cognito-idp-1.6.0-HX2vHucaSbyYp7rG4n6Wk" False) (C1 * (MetaCons "SetRiskConfiguration'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_srcRiskExceptionConfiguration") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe RiskExceptionConfigurationType))) (S1 * (MetaSel (Just Symbol "_srcClientId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe (Sensitive Text))))) ((:*:) * (S1 * (MetaSel (Just Symbol "_srcAccountTakeoverRiskConfiguration") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe AccountTakeoverRiskConfigurationType))) ((:*:) * (S1 * (MetaSel (Just Symbol "_srcCompromisedCredentialsRiskConfiguration") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe CompromisedCredentialsRiskConfigurationType))) (S1 * (MetaSel (Just Symbol "_srcUserPoolId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))))
type Rs SetRiskConfiguration # 

Request Lenses

srcClientId :: Lens' SetRiskConfiguration (Maybe Text) #

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.

Destructuring the Response

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:

data SetRiskConfigurationResponse #

See: setRiskConfigurationResponse smart constructor.

Instances

Eq SetRiskConfigurationResponse # 
Data SetRiskConfigurationResponse # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SetRiskConfigurationResponse -> c SetRiskConfigurationResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SetRiskConfigurationResponse #

toConstr :: SetRiskConfigurationResponse -> Constr #

dataTypeOf :: SetRiskConfigurationResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c SetRiskConfigurationResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SetRiskConfigurationResponse) #

gmapT :: (forall b. Data b => b -> b) -> SetRiskConfigurationResponse -> SetRiskConfigurationResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SetRiskConfigurationResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SetRiskConfigurationResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> SetRiskConfigurationResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> SetRiskConfigurationResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> SetRiskConfigurationResponse -> m SetRiskConfigurationResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SetRiskConfigurationResponse -> m SetRiskConfigurationResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SetRiskConfigurationResponse -> m SetRiskConfigurationResponse #

Show SetRiskConfigurationResponse # 
Generic SetRiskConfigurationResponse # 
NFData SetRiskConfigurationResponse # 
type Rep SetRiskConfigurationResponse # 
type Rep SetRiskConfigurationResponse = D1 * (MetaData "SetRiskConfigurationResponse" "Network.AWS.CognitoIdentityProvider.SetRiskConfiguration" "amazonka-cognito-idp-1.6.0-HX2vHucaSbyYp7rG4n6Wk" False) (C1 * (MetaCons "SetRiskConfigurationResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_srcrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)) (S1 * (MetaSel (Just Symbol "_srcrsRiskConfiguration") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * RiskConfigurationType))))

Response Lenses