Class CfnUserPoolRiskConfigurationAttachment

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.cognito.CfnUserPoolRiskConfigurationAttachment
All Implemented Interfaces:
IInspectable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)", date="2024-10-05T03:43:40.826Z") @Stability(Stable) public class CfnUserPoolRiskConfigurationAttachment extends CfnResource implements IInspectable
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.services.cognito.*;
 CfnUserPoolRiskConfigurationAttachment cfnUserPoolRiskConfigurationAttachment = CfnUserPoolRiskConfigurationAttachment.Builder.create(this, "MyCfnUserPoolRiskConfigurationAttachment")
         .clientId("clientId")
         .userPoolId("userPoolId")
         // the properties below are optional
         .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())
                 // 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())
         .compromisedCredentialsRiskConfiguration(CompromisedCredentialsRiskConfigurationTypeProperty.builder()
                 .actions(CompromisedCredentialsActionsTypeProperty.builder()
                         .eventAction("eventAction")
                         .build())
                 // the properties below are optional
                 .eventFilter(List.of("eventFilter"))
                 .build())
         .riskExceptionConfiguration(RiskExceptionConfigurationTypeProperty.builder()
                 .blockedIpRangeList(List.of("blockedIpRangeList"))
                 .skippedIpRangeList(List.of("skippedIpRangeList"))
                 .build())
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnUserPoolRiskConfigurationAttachment

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

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

      @Stability(Stable) public CfnUserPoolRiskConfigurationAttachment(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnUserPoolRiskConfigurationAttachmentProps props)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties. This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getClientId

      @Stability(Stable) @NotNull public String getClientId()
      The app client ID.
    • setClientId

      @Stability(Stable) public void setClientId(@NotNull String value)
      The app client ID.
    • getUserPoolId

      @Stability(Stable) @NotNull public String getUserPoolId()
      The ID of the user pool that has the risk configuration applied.
    • setUserPoolId

      @Stability(Stable) public void setUserPoolId(@NotNull String value)
      The ID of the user pool that has the risk configuration applied.
    • getAccountTakeoverRiskConfiguration

      @Stability(Stable) @Nullable public Object getAccountTakeoverRiskConfiguration()
      The settings for automated responses and notification templates for adaptive authentication with advanced security features.
    • setAccountTakeoverRiskConfiguration

      @Stability(Stable) public void setAccountTakeoverRiskConfiguration(@Nullable IResolvable value)
      The settings for automated responses and notification templates for adaptive authentication with advanced security features.
    • setAccountTakeoverRiskConfiguration

      @Stability(Stable) public void setAccountTakeoverRiskConfiguration(@Nullable CfnUserPoolRiskConfigurationAttachment.AccountTakeoverRiskConfigurationTypeProperty value)
      The settings for automated responses and notification templates for adaptive authentication with advanced security features.
    • getCompromisedCredentialsRiskConfiguration

      @Stability(Stable) @Nullable public Object getCompromisedCredentialsRiskConfiguration()
      Settings for compromised-credentials actions and authentication types with advanced security features in full-function ENFORCED mode.
    • setCompromisedCredentialsRiskConfiguration

      @Stability(Stable) public void setCompromisedCredentialsRiskConfiguration(@Nullable IResolvable value)
      Settings for compromised-credentials actions and authentication types with advanced security features in full-function ENFORCED mode.
    • setCompromisedCredentialsRiskConfiguration

      @Stability(Stable) public void setCompromisedCredentialsRiskConfiguration(@Nullable CfnUserPoolRiskConfigurationAttachment.CompromisedCredentialsRiskConfigurationTypeProperty value)
      Settings for compromised-credentials actions and authentication types with advanced security features in full-function ENFORCED mode.
    • getRiskExceptionConfiguration

      @Stability(Stable) @Nullable public Object getRiskExceptionConfiguration()
      Exceptions to the risk evaluation configuration, including always-allow and always-block IP address ranges.
    • setRiskExceptionConfiguration

      @Stability(Stable) public void setRiskExceptionConfiguration(@Nullable IResolvable value)
      Exceptions to the risk evaluation configuration, including always-allow and always-block IP address ranges.
    • setRiskExceptionConfiguration

      @Stability(Stable) public void setRiskExceptionConfiguration(@Nullable CfnUserPoolRiskConfigurationAttachment.RiskExceptionConfigurationTypeProperty value)
      Exceptions to the risk evaluation configuration, including always-allow and always-block IP address ranges.