aws-cdk-lib.aws_cognito.CfnUserPoolRiskConfigurationAttachmentProps

interface CfnUserPoolRiskConfigurationAttachmentProps

LanguageType name
.NETAmazon.CDK.AWS.Cognito.CfnUserPoolRiskConfigurationAttachmentProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscognito#CfnUserPoolRiskConfigurationAttachmentProps
Javasoftware.amazon.awscdk.services.cognito.CfnUserPoolRiskConfigurationAttachmentProps
Pythonaws_cdk.aws_cognito.CfnUserPoolRiskConfigurationAttachmentProps
TypeScript aws-cdk-lib » aws_cognito » CfnUserPoolRiskConfigurationAttachmentProps

Properties for defining a CfnUserPoolRiskConfigurationAttachment.

Example

// 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 cfnUserPoolRiskConfigurationAttachmentProps: cognito.CfnUserPoolRiskConfigurationAttachmentProps = {
  clientId: 'clientId',
  userPoolId: 'userPoolId',

  // the properties below are optional
  accountTakeoverRiskConfiguration: {
    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',
    },
  },
  compromisedCredentialsRiskConfiguration: {
    actions: {
      eventAction: 'eventAction',
    },

    // the properties below are optional
    eventFilter: ['eventFilter'],
  },
  riskExceptionConfiguration: {
    blockedIpRangeList: ['blockedIpRangeList'],
    skippedIpRangeList: ['skippedIpRangeList'],
  },
};

Properties

NameTypeDescription
clientIdstringThe app client ID.
userPoolIdstringThe user pool ID.
accountTakeoverRiskConfiguration?IResolvable | AccountTakeoverRiskConfigurationTypePropertyThe account takeover risk configuration object, including the NotifyConfiguration object and Actions to take if there is an account takeover.
compromisedCredentialsRiskConfiguration?IResolvable | CompromisedCredentialsRiskConfigurationTypePropertyThe compromised credentials risk configuration object, including the EventFilter and the EventAction .
riskExceptionConfiguration?IResolvable | RiskExceptionConfigurationTypePropertyThe configuration to override the risk decision.

clientId

Type: string

The app client ID.

You can specify the risk configuration for a single client (with a specific ClientId) or for all clients (by setting the ClientId to ALL ).


userPoolId

Type: string

The user pool ID.


accountTakeoverRiskConfiguration?

Type: IResolvable | AccountTakeoverRiskConfigurationTypeProperty (optional)

The account takeover risk configuration object, including the NotifyConfiguration object and Actions to take if there is an account takeover.


compromisedCredentialsRiskConfiguration?

Type: IResolvable | CompromisedCredentialsRiskConfigurationTypeProperty (optional)

The compromised credentials risk configuration object, including the EventFilter and the EventAction .


riskExceptionConfiguration?

Type: IResolvable | RiskExceptionConfigurationTypeProperty (optional)

The configuration to override the risk decision.