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

Amazonka.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.

Synopsis

Creating a Request

data SetRiskConfiguration Source #

See: newSetRiskConfiguration smart constructor.

Constructors

SetRiskConfiguration' 

Fields

Instances

Instances details
Eq SetRiskConfiguration Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetRiskConfiguration

Show SetRiskConfiguration Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetRiskConfiguration

Generic SetRiskConfiguration Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetRiskConfiguration

Associated Types

type Rep SetRiskConfiguration :: Type -> Type #

NFData SetRiskConfiguration Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetRiskConfiguration

Methods

rnf :: SetRiskConfiguration -> () #

Hashable SetRiskConfiguration Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetRiskConfiguration

ToJSON SetRiskConfiguration Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetRiskConfiguration

AWSRequest SetRiskConfiguration Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetRiskConfiguration

Associated Types

type AWSResponse SetRiskConfiguration #

ToHeaders SetRiskConfiguration Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetRiskConfiguration

ToPath SetRiskConfiguration Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetRiskConfiguration

ToQuery SetRiskConfiguration Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetRiskConfiguration

type Rep SetRiskConfiguration Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetRiskConfiguration

type Rep SetRiskConfiguration = D1 ('MetaData "SetRiskConfiguration" "Amazonka.CognitoIdentityProvider.SetRiskConfiguration" "libZSservicesZSamazonka-cognito-idpZSamazonka-cognito-idp" 'False) (C1 ('MetaCons "SetRiskConfiguration'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "riskExceptionConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RiskExceptionConfigurationType)) :*: S1 ('MetaSel ('Just "clientId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text)))) :*: (S1 ('MetaSel ('Just "accountTakeoverRiskConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AccountTakeoverRiskConfigurationType)) :*: (S1 ('MetaSel ('Just "compromisedCredentialsRiskConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CompromisedCredentialsRiskConfigurationType)) :*: S1 ('MetaSel ('Just "userPoolId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse SetRiskConfiguration Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetRiskConfiguration

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_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.

Destructuring the Response

data SetRiskConfigurationResponse Source #

See: newSetRiskConfigurationResponse smart constructor.

Constructors

SetRiskConfigurationResponse' 

Fields

Instances

Instances details
Eq SetRiskConfigurationResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetRiskConfiguration

Show SetRiskConfigurationResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetRiskConfiguration

Generic SetRiskConfigurationResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetRiskConfiguration

Associated Types

type Rep SetRiskConfigurationResponse :: Type -> Type #

NFData SetRiskConfigurationResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetRiskConfiguration

type Rep SetRiskConfigurationResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetRiskConfiguration

type Rep SetRiskConfigurationResponse = D1 ('MetaData "SetRiskConfigurationResponse" "Amazonka.CognitoIdentityProvider.SetRiskConfiguration" "libZSservicesZSamazonka-cognito-idpZSamazonka-cognito-idp" 'False) (C1 ('MetaCons "SetRiskConfigurationResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "riskConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RiskConfigurationType)))

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