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 # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.SetRiskConfiguration

Data SetRiskConfiguration # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.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 # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.SetRiskConfiguration

Generic SetRiskConfiguration # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.SetRiskConfiguration

Associated Types

type Rep SetRiskConfiguration :: * -> * #

Hashable SetRiskConfiguration # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.SetRiskConfiguration

ToJSON SetRiskConfiguration # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.SetRiskConfiguration

AWSRequest SetRiskConfiguration # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.SetRiskConfiguration

Associated Types

type Rs SetRiskConfiguration :: * #

ToHeaders SetRiskConfiguration # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.SetRiskConfiguration

ToPath SetRiskConfiguration # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.SetRiskConfiguration

ToQuery SetRiskConfiguration # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.SetRiskConfiguration

NFData SetRiskConfiguration # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.SetRiskConfiguration

Methods

rnf :: SetRiskConfiguration -> () #

type Rep SetRiskConfiguration # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.SetRiskConfiguration

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

Defined in Network.AWS.CognitoIdentityProvider.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 # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.SetRiskConfiguration

Data SetRiskConfigurationResponse # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.SetRiskConfiguration

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 # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.SetRiskConfiguration

Generic SetRiskConfigurationResponse # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.SetRiskConfiguration

Associated Types

type Rep SetRiskConfigurationResponse :: * -> * #

NFData SetRiskConfigurationResponse # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.SetRiskConfiguration

type Rep SetRiskConfigurationResponse # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.SetRiskConfiguration

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

Response Lenses