Class CfnUserPoolRiskConfigurationAttachmentPropsMixin

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.mixins.preview.core.Mixin
software.amazon.awscdk.mixins.preview.services.cognito.mixins.CfnUserPoolRiskConfigurationAttachmentPropsMixin
All Implemented Interfaces:
IMixin, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.121.0 (build d7af9b9)", date="2025-12-18T18:20:24.210Z") @Stability(Stable) public class CfnUserPoolRiskConfigurationAttachmentPropsMixin extends Mixin implements IMixin
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.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.mixins.preview.mixins.*;
 import software.amazon.awscdk.mixins.preview.services.cognito.mixins.*;
 CfnUserPoolRiskConfigurationAttachmentPropsMixin cfnUserPoolRiskConfigurationAttachmentPropsMixin = CfnUserPoolRiskConfigurationAttachmentPropsMixin.Builder.create(CfnUserPoolRiskConfigurationAttachmentMixinProps.builder()
         .accountTakeoverRiskConfiguration(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())
                 .notifyConfiguration(NotifyConfigurationTypeProperty.builder()
                         .blockEmail(NotifyEmailTypeProperty.builder()
                                 .htmlBody("htmlBody")
                                 .subject("subject")
                                 .textBody("textBody")
                                 .build())
                         .from("from")
                         .mfaEmail(NotifyEmailTypeProperty.builder()
                                 .htmlBody("htmlBody")
                                 .subject("subject")
                                 .textBody("textBody")
                                 .build())
                         .noActionEmail(NotifyEmailTypeProperty.builder()
                                 .htmlBody("htmlBody")
                                 .subject("subject")
                                 .textBody("textBody")
                                 .build())
                         .replyTo("replyTo")
                         .sourceArn("sourceArn")
                         .build())
                 .build())
         .clientId("clientId")
         .compromisedCredentialsRiskConfiguration(CompromisedCredentialsRiskConfigurationTypeProperty.builder()
                 .actions(CompromisedCredentialsActionsTypeProperty.builder()
                         .eventAction("eventAction")
                         .build())
                 .eventFilter(List.of("eventFilter"))
                 .build())
         .riskExceptionConfiguration(RiskExceptionConfigurationTypeProperty.builder()
                 .blockedIpRangeList(List.of("blockedIpRangeList"))
                 .skippedIpRangeList(List.of("skippedIpRangeList"))
                 .build())
         .userPoolId("userPoolId")
         .build())
 .strategy(PropertyMergeStrategy.OVERRIDE)
 .build();
 

See Also:
  • Field Details

    • CFN_PROPERTY_KEYS

      @Stability(Stable) protected static final List<String> CFN_PROPERTY_KEYS
  • Constructor Details

    • CfnUserPoolRiskConfigurationAttachmentPropsMixin

      protected CfnUserPoolRiskConfigurationAttachmentPropsMixin(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnUserPoolRiskConfigurationAttachmentPropsMixin

      protected CfnUserPoolRiskConfigurationAttachmentPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnUserPoolRiskConfigurationAttachmentPropsMixin

      @Stability(Stable) public CfnUserPoolRiskConfigurationAttachmentPropsMixin(@NotNull CfnUserPoolRiskConfigurationAttachmentMixinProps props, @Nullable CfnPropertyMixinOptions options)
      Create a mixin to apply properties to AWS::Cognito::UserPoolRiskConfigurationAttachment.

      Parameters:
      props - L1 properties to apply. This parameter is required.
      options - Mixin options.
    • CfnUserPoolRiskConfigurationAttachmentPropsMixin

      @Stability(Stable) public CfnUserPoolRiskConfigurationAttachmentPropsMixin(@NotNull CfnUserPoolRiskConfigurationAttachmentMixinProps props)
      Create a mixin to apply properties to AWS::Cognito::UserPoolRiskConfigurationAttachment.

      Parameters:
      props - L1 properties to apply. This parameter is required.
  • Method Details

    • applyTo

      @Stability(Stable) @NotNull public software.constructs.IConstruct applyTo(@NotNull software.constructs.IConstruct construct)
      Apply the mixin properties to the construct.

      Specified by:
      applyTo in interface IMixin
      Specified by:
      applyTo in class Mixin
      Parameters:
      construct - This parameter is required.
    • supports

      @Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct)
      Check if this mixin supports the given construct.

      Specified by:
      supports in interface IMixin
      Overrides:
      supports in class Mixin
      Parameters:
      construct - This parameter is required.
    • getProps

      @Stability(Stable) @NotNull protected CfnUserPoolRiskConfigurationAttachmentMixinProps getProps()
    • getStrategy

      @Stability(Stable) @NotNull protected PropertyMergeStrategy getStrategy()