amazonka-cognito-idp-1.6.1: 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 Source #

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 Source #

See: setRiskConfiguration smart constructor.

Instances
Eq SetRiskConfiguration Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.SetRiskConfiguration

Data SetRiskConfiguration Source # 
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 Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.SetRiskConfiguration

Generic SetRiskConfiguration Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.SetRiskConfiguration

Associated Types

type Rep SetRiskConfiguration :: Type -> Type #

Hashable SetRiskConfiguration Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.SetRiskConfiguration

ToJSON SetRiskConfiguration Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.SetRiskConfiguration

AWSRequest SetRiskConfiguration Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.SetRiskConfiguration

Associated Types

type Rs SetRiskConfiguration :: Type #

ToHeaders SetRiskConfiguration Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.SetRiskConfiguration

ToPath SetRiskConfiguration Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.SetRiskConfiguration

ToQuery SetRiskConfiguration Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.SetRiskConfiguration

NFData SetRiskConfiguration Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.SetRiskConfiguration

Methods

rnf :: SetRiskConfiguration -> () #

type Rep SetRiskConfiguration Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.SetRiskConfiguration

type Rep SetRiskConfiguration = D1 (MetaData "SetRiskConfiguration" "Network.AWS.CognitoIdentityProvider.SetRiskConfiguration" "amazonka-cognito-idp-1.6.1-IATNKTGZSOc4TejpW4Ifw7" 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 Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.SetRiskConfiguration

Request Lenses

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.

Destructuring the Response

setRiskConfigurationResponse Source #

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 Source #

See: setRiskConfigurationResponse smart constructor.

Instances
Eq SetRiskConfigurationResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.SetRiskConfiguration

Data SetRiskConfigurationResponse Source # 
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 Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.SetRiskConfiguration

Generic SetRiskConfigurationResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.SetRiskConfiguration

Associated Types

type Rep SetRiskConfigurationResponse :: Type -> Type #

NFData SetRiskConfigurationResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.SetRiskConfiguration

type Rep SetRiskConfigurationResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.SetRiskConfiguration

type Rep SetRiskConfigurationResponse = D1 (MetaData "SetRiskConfigurationResponse" "Network.AWS.CognitoIdentityProvider.SetRiskConfiguration" "amazonka-cognito-idp-1.6.1-IATNKTGZSOc4TejpW4Ifw7" 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