v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-14101465558.4 KB

Configures actions on detected risks. To delete the risk configuration for UserPoolId or ClientId, pass null values for all four configuration types.

To activate Amazon Cognito advanced security features, update the user pool to include the UserPoolAddOns keyAdvancedSecurityMode.

post/#X-Amz-Target=AWSCognitoIdentityProviderService.SetRiskConfiguration

Headers

X-Amz-Target'AWSCognitoIdentityProviderService.SetRiskConfiguration' required

Request body

UserPoolIdstring required

The user pool ID.

ClientIdstring password
<p>The app client ID. If <code>ClientId</code> is null, then the risk configuration is mapped to <code>userPoolId</code>. When the client ID is null, the same risk configuration is applied to all the clients in the userPool.</p> <p>Otherwise, <code>ClientId</code> is mapped to the client. When the client ID isn't null, the user pool configuration is overridden and the risk configuration for the client is used instead.</p>

Response

Success