Skip to content
v2.278.0

AccountTakeoverActionTypeProperty Struct ​

The automated response to a risk level for adaptive authentication in full-function, or ENFORCED , mode.

You can assign an action to each risk level that advanced security features evaluates.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cognito as cognito } from 'aws-cdk-lib';
const accountTakeoverActionTypeProperty: cognito.CfnUserPoolRiskConfigurationAttachment.AccountTakeoverActionTypeProperty = {
  eventAction: 'eventAction',
  notify: false,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_cognito as cognito

account_takeover_action_type_property = cognito.CfnUserPoolRiskConfigurationAttachment.AccountTakeoverActionTypeProperty(
    event_action="eventAction",
    notify=False
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cognito.*;

AccountTakeoverActionTypeProperty accountTakeoverActionTypeProperty = AccountTakeoverActionTypeProperty.builder()
        .eventAction("eventAction")
        .notify(false)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Cognito;

var accountTakeoverActionTypeProperty = new AccountTakeoverActionTypeProperty {
    EventAction = "eventAction",
    Notify = false
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

accountTakeoverActionTypeProperty := &AccountTakeoverActionTypeProperty{
	EventAction: jsii.String("eventAction"),
	Notify: jsii.Boolean(false),
}

Properties ​

eventActionstringevent_actionstreventActionStringEventActionstringEventAction*string required #
The action to take for the attempted account takeover action for the associated risk level.
notes

Valid values are as follows:

  • BLOCK : Block the request.
  • MFA_IF_CONFIGURED : Present an MFA challenge if possible. MFA is possible if the user pool has active MFA methods that the user can set up. For example, if the user pool only supports SMS message MFA but the user doesn't have a phone number attribute, MFA setup isn't possible. If MFA setup isn't possible, allow the request.
  • MFA_REQUIRED : Present an MFA challenge if possible. Block the request if a user hasn't set up MFA. To sign in with required MFA, users must have an email address or phone number attribute, or a registered TOTP factor.
  • NO_ACTION : Take no action. Permit sign-in.
notifyboolean | IResolvablenotifytyping.Union[bool, IResolvable]notifyBooleanNotifyboolNotifyinterface{} required #
Determines whether Amazon Cognito sends a user a notification message when your user pools assesses a user's session at the associated risk level.