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 in response to the account takeover action. Valid values are as follows:. This parameter is required.BLOCK
Choosing this action will block the request.MFA_IF_CONFIGURED
Present an MFA challenge if user has configured it, else allow the request.MFA_REQUIRED
Present an MFA challenge if user has configured it, else block the request.NO_ACTION
Allow the user to sign in.
- Returns:
this
-
notify
@Stability(Stable) public CfnUserPoolRiskConfigurationAttachment.AccountTakeoverActionTypeProperty.Builder notify(Boolean notify) Sets the value ofCfnUserPoolRiskConfigurationAttachment.AccountTakeoverActionTypeProperty.getNotify()
- Parameters:
notify
- Flag specifying whether to send a notification. This parameter is required.- Returns:
this
-
notify
@Stability(Stable) public CfnUserPoolRiskConfigurationAttachment.AccountTakeoverActionTypeProperty.Builder notify(IResolvable notify) Sets the value ofCfnUserPoolRiskConfigurationAttachment.AccountTakeoverActionTypeProperty.getNotify()
- Parameters:
notify
- Flag specifying whether to send a notification. 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
-