public static final class CfnUserPoolRiskConfigurationAttachment.AccountTakeoverActionTypeProperty.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnUserPoolRiskConfigurationAttachment.AccountTakeoverActionTypeProperty |
build()
Builds the configured instance.
|
CfnUserPoolRiskConfigurationAttachment.AccountTakeoverActionTypeProperty.Builder |
eventAction(java.lang.String eventAction)
|
CfnUserPoolRiskConfigurationAttachment.AccountTakeoverActionTypeProperty.Builder |
notify(java.lang.Boolean notify)
|
CfnUserPoolRiskConfigurationAttachment.AccountTakeoverActionTypeProperty.Builder |
notify(IResolvable notify)
|
public CfnUserPoolRiskConfigurationAttachment.AccountTakeoverActionTypeProperty.Builder eventAction(java.lang.String eventAction)
CfnUserPoolRiskConfigurationAttachment.AccountTakeoverActionTypeProperty.getEventAction()
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.this
public CfnUserPoolRiskConfigurationAttachment.AccountTakeoverActionTypeProperty.Builder notify(java.lang.Boolean notify)
CfnUserPoolRiskConfigurationAttachment.AccountTakeoverActionTypeProperty.getNotify()
notify
- Flag specifying whether to send a notification. This parameter is required.this
public CfnUserPoolRiskConfigurationAttachment.AccountTakeoverActionTypeProperty.Builder notify(IResolvable notify)
CfnUserPoolRiskConfigurationAttachment.AccountTakeoverActionTypeProperty.getNotify()
notify
- Flag specifying whether to send a notification. This parameter is required.this
public CfnUserPoolRiskConfigurationAttachment.AccountTakeoverActionTypeProperty build()
CfnUserPoolRiskConfigurationAttachment.AccountTakeoverActionTypeProperty
java.lang.NullPointerException
- if any required attribute was not provided