AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::Cognito::UserPoolRiskConfigurationAttachment

CfnUserPoolRiskConfigurationAttachment

The `AWS::Cognito::UserPoolRiskConfigurationAttachment` resource sets the risk configuration that is used for Amazon Cognito advanced security features. You can specify risk configuration for a single client (with a specific `clientId` ) or for all clients (by setting the `clientId` to `ALL` ). If you specify `ALL` , the default configuration is used for every client that has had no risk configuration set previously. If you specify risk configuration for a particular client, it no longer falls back to the `ALL` configuration.

Import

import { CfnUserPoolRiskConfigurationAttachment } from 'aws-cdk-lib/aws-cognito';

Or use the module namespace:

import * as cognito from 'aws-cdk-lib/aws-cognito';
// cognito.CfnUserPoolRiskConfigurationAttachment

Properties

Configuration passed to the constructor as CfnUserPoolRiskConfigurationAttachmentProps.

clientIdRequired
string

The app client where this configuration is applied. When this parameter isn't present, the risk configuration applies to all user pool app clients that don't have client-level settings.

userPoolIdRequired
string | IUserPoolRef

The ID of the user pool that has the risk configuration applied.

accountTakeoverRiskConfigurationOptional
IResolvable | AccountTakeoverRiskConfigurationTypeProperty

The settings for automated responses and notification templates for adaptive authentication with threat protection.

compromisedCredentialsRiskConfigurationOptional
IResolvable | CompromisedCredentialsRiskConfigurationTypeProperty

Settings for compromised-credentials actions and authentication types with threat protection in full-function `ENFORCED` mode.

riskExceptionConfigurationOptional
IResolvable | RiskExceptionConfigurationTypeProperty

Exceptions to the risk evaluation configuration, including always-allow and always-block IP address ranges.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Get the Amazon Cognito Cheat Sheet

Everything you need to know about Amazon Cognito on one page. HD quality, print-friendly.

Download Free Infographic