Class CfnUserPoolRiskConfigurationAttachment.AccountTakeoverActionTypeProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.CfnUserPoolRiskConfigurationAttachment.AccountTakeoverActionTypeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUserPoolRiskConfigurationAttachment.AccountTakeoverActionTypeProperty>
- Enclosing interface:
CfnUserPoolRiskConfigurationAttachment.AccountTakeoverActionTypeProperty
@Stability(Stable)
public static final class CfnUserPoolRiskConfigurationAttachment.AccountTakeoverActionTypeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnUserPoolRiskConfigurationAttachment.AccountTakeoverActionTypeProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.eventAction
(String eventAction) notify
(IResolvable notify)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
eventAction
@Stability(Stable) public CfnUserPoolRiskConfigurationAttachment.AccountTakeoverActionTypeProperty.Builder eventAction(String eventAction) Sets the value ofCfnUserPoolRiskConfigurationAttachment.AccountTakeoverActionTypeProperty.getEventAction()
- Parameters:
eventAction
- The action to take for the attempted account takeover action for the associated risk level. This parameter is required. 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.
- Returns:
this
-
notify
@Stability(Stable) public CfnUserPoolRiskConfigurationAttachment.AccountTakeoverActionTypeProperty.Builder notify(Boolean notify) Sets the value ofCfnUserPoolRiskConfigurationAttachment.AccountTakeoverActionTypeProperty.getNotify()
- Parameters:
notify
- Determines whether Amazon Cognito sends a user a notification message when your user pools assesses a user's session at the associated risk level. This parameter is required.- Returns:
this
-
notify
@Stability(Stable) public CfnUserPoolRiskConfigurationAttachment.AccountTakeoverActionTypeProperty.Builder notify(IResolvable notify) Sets the value ofCfnUserPoolRiskConfigurationAttachment.AccountTakeoverActionTypeProperty.getNotify()
- Parameters:
notify
- Determines whether Amazon Cognito sends a user a notification message when your user pools assesses a user's session at the associated risk level. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public CfnUserPoolRiskConfigurationAttachment.AccountTakeoverActionTypeProperty build()Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnUserPoolRiskConfigurationAttachment.AccountTakeoverActionTypeProperty>
- Returns:
- a new instance of
CfnUserPoolRiskConfigurationAttachment.AccountTakeoverActionTypeProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-