Skip to content
v2.278.0

AccountTakeoverRiskConfigurationTypeProperty Struct ​

The settings for automated responses and notification templates for adaptive authentication with advanced security features.

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 accountTakeoverRiskConfigurationTypeProperty: cognito.CfnUserPoolRiskConfigurationAttachment.AccountTakeoverRiskConfigurationTypeProperty = {
  actions: {
    highAction: {
      eventAction: 'eventAction',
      notify: false,
    },
    lowAction: {
      eventAction: 'eventAction',
      notify: false,
    },
    mediumAction: {
      eventAction: 'eventAction',
      notify: false,
    },
  },

  // the properties below are optional
  notifyConfiguration: {
    sourceArn: 'sourceArn',

    // the properties below are optional
    blockEmail: {
      subject: 'subject',

      // the properties below are optional
      htmlBody: 'htmlBody',
      textBody: 'textBody',
    },
    from: 'from',
    mfaEmail: {
      subject: 'subject',

      // the properties below are optional
      htmlBody: 'htmlBody',
      textBody: 'textBody',
    },
    noActionEmail: {
      subject: 'subject',

      // the properties below are optional
      htmlBody: 'htmlBody',
      textBody: 'textBody',
    },
    replyTo: 'replyTo',
  },
};
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_risk_configuration_type_property = cognito.CfnUserPoolRiskConfigurationAttachment.AccountTakeoverRiskConfigurationTypeProperty(
    actions=cognito.CfnUserPoolRiskConfigurationAttachment.AccountTakeoverActionsTypeProperty(
        high_action=cognito.CfnUserPoolRiskConfigurationAttachment.AccountTakeoverActionTypeProperty(
            event_action="eventAction",
            notify=False
        ),
        low_action=cognito.CfnUserPoolRiskConfigurationAttachment.AccountTakeoverActionTypeProperty(
            event_action="eventAction",
            notify=False
        ),
        medium_action=cognito.CfnUserPoolRiskConfigurationAttachment.AccountTakeoverActionTypeProperty(
            event_action="eventAction",
            notify=False
        )
    ),

    # the properties below are optional
    notify_configuration=cognito.CfnUserPoolRiskConfigurationAttachment.NotifyConfigurationTypeProperty(
        source_arn="sourceArn",

        # the properties below are optional
        block_email=cognito.CfnUserPoolRiskConfigurationAttachment.NotifyEmailTypeProperty(
            subject="subject",

            # the properties below are optional
            html_body="htmlBody",
            text_body="textBody"
        ),
        from="from",
        mfa_email=cognito.CfnUserPoolRiskConfigurationAttachment.NotifyEmailTypeProperty(
            subject="subject",

            # the properties below are optional
            html_body="htmlBody",
            text_body="textBody"
        ),
        no_action_email=cognito.CfnUserPoolRiskConfigurationAttachment.NotifyEmailTypeProperty(
            subject="subject",

            # the properties below are optional
            html_body="htmlBody",
            text_body="textBody"
        ),
        reply_to="replyTo"
    )
)
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.*;

AccountTakeoverRiskConfigurationTypeProperty accountTakeoverRiskConfigurationTypeProperty = AccountTakeoverRiskConfigurationTypeProperty.builder()
        .actions(AccountTakeoverActionsTypeProperty.builder()
                .highAction(AccountTakeoverActionTypeProperty.builder()
                        .eventAction("eventAction")
                        .notify(false)
                        .build())
                .lowAction(AccountTakeoverActionTypeProperty.builder()
                        .eventAction("eventAction")
                        .notify(false)
                        .build())
                .mediumAction(AccountTakeoverActionTypeProperty.builder()
                        .eventAction("eventAction")
                        .notify(false)
                        .build())
                .build())

        // the properties below are optional
        .notifyConfiguration(NotifyConfigurationTypeProperty.builder()
                .sourceArn("sourceArn")

                // the properties below are optional
                .blockEmail(NotifyEmailTypeProperty.builder()
                        .subject("subject")

                        // the properties below are optional
                        .htmlBody("htmlBody")
                        .textBody("textBody")
                        .build())
                .from("from")
                .mfaEmail(NotifyEmailTypeProperty.builder()
                        .subject("subject")

                        // the properties below are optional
                        .htmlBody("htmlBody")
                        .textBody("textBody")
                        .build())
                .noActionEmail(NotifyEmailTypeProperty.builder()
                        .subject("subject")

                        // the properties below are optional
                        .htmlBody("htmlBody")
                        .textBody("textBody")
                        .build())
                .replyTo("replyTo")
                .build())
        .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 accountTakeoverRiskConfigurationTypeProperty = new AccountTakeoverRiskConfigurationTypeProperty {
    Actions = new AccountTakeoverActionsTypeProperty {
        HighAction = new AccountTakeoverActionTypeProperty {
            EventAction = "eventAction",
            Notify = false
        },
        LowAction = new AccountTakeoverActionTypeProperty {
            EventAction = "eventAction",
            Notify = false
        },
        MediumAction = new AccountTakeoverActionTypeProperty {
            EventAction = "eventAction",
            Notify = false
        }
    },

    // the properties below are optional
    NotifyConfiguration = new NotifyConfigurationTypeProperty {
        SourceArn = "sourceArn",

        // the properties below are optional
        BlockEmail = new NotifyEmailTypeProperty {
            Subject = "subject",

            // the properties below are optional
            HtmlBody = "htmlBody",
            TextBody = "textBody"
        },
        From = "from",
        MfaEmail = new NotifyEmailTypeProperty {
            Subject = "subject",

            // the properties below are optional
            HtmlBody = "htmlBody",
            TextBody = "textBody"
        },
        NoActionEmail = new NotifyEmailTypeProperty {
            Subject = "subject",

            // the properties below are optional
            HtmlBody = "htmlBody",
            TextBody = "textBody"
        },
        ReplyTo = "replyTo"
    }
};
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"

accountTakeoverRiskConfigurationTypeProperty := &AccountTakeoverRiskConfigurationTypeProperty{
	Actions: &AccountTakeoverActionsTypeProperty{
		HighAction: &AccountTakeoverActionTypeProperty{
			EventAction: jsii.String("eventAction"),
			Notify: jsii.Boolean(false),
		},
		LowAction: &AccountTakeoverActionTypeProperty{
			EventAction: jsii.String("eventAction"),
			Notify: jsii.Boolean(false),
		},
		MediumAction: &AccountTakeoverActionTypeProperty{
			EventAction: jsii.String("eventAction"),
			Notify: jsii.Boolean(false),
		},
	},

	// the properties below are optional
	NotifyConfiguration: &NotifyConfigurationTypeProperty{
		SourceArn: jsii.String("sourceArn"),

		// the properties below are optional
		BlockEmail: &NotifyEmailTypeProperty{
			Subject: jsii.String("subject"),

			// the properties below are optional
			HtmlBody: jsii.String("htmlBody"),
			TextBody: jsii.String("textBody"),
		},
		From: jsii.String("from"),
		MfaEmail: &NotifyEmailTypeProperty{
			Subject: jsii.String("subject"),

			// the properties below are optional
			HtmlBody: jsii.String("htmlBody"),
			TextBody: jsii.String("textBody"),
		},
		NoActionEmail: &NotifyEmailTypeProperty{
			Subject: jsii.String("subject"),

			// the properties below are optional
			HtmlBody: jsii.String("htmlBody"),
			TextBody: jsii.String("textBody"),
		},
		ReplyTo: jsii.String("replyTo"),
	},
}

Properties ​

A list of account-takeover actions for each level of risk that Amazon Cognito might assess with threat protection.
notifyConfigurationoptionalIResolvable | CfnUserPoolRiskConfigurationAttachment.NotifyConfigurationTypePropertynotify_configurationoptionaltyping.Union[IResolvable, NotifyConfigurationTypeProperty]notifyConfigurationoptionalIResolvableNotifyConfigurationoptionalIResolvableNotifyConfigurationoptionalinterface{} #
The settings for composing and sending an email message when threat protection assesses a risk level with adaptive authentication.

When you choose to notify users in AccountTakeoverRiskConfiguration , Amazon Cognito sends an email message using the method and template that you set with this data type.