Class CfnUserPoolRiskConfigurationAttachment.NotifyConfigurationTypeProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.CfnUserPoolRiskConfigurationAttachment.NotifyConfigurationTypeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUserPoolRiskConfigurationAttachment.NotifyConfigurationTypeProperty>
- Enclosing interface:
CfnUserPoolRiskConfigurationAttachment.NotifyConfigurationTypeProperty
@Stability(Stable)
public static final class CfnUserPoolRiskConfigurationAttachment.NotifyConfigurationTypeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnUserPoolRiskConfigurationAttachment.NotifyConfigurationTypeProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionblockEmail(IResolvable blockEmail) build()Builds the configured instance.mfaEmail(IResolvable mfaEmail) noActionEmail(IResolvable noActionEmail)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
sourceArn
@Stability(Stable) public CfnUserPoolRiskConfigurationAttachment.NotifyConfigurationTypeProperty.Builder sourceArn(String sourceArn) Sets the value ofCfnUserPoolRiskConfigurationAttachment.NotifyConfigurationTypeProperty.getSourceArn()- Parameters:
sourceArn- The Amazon Resource Name (ARN) of the identity that is associated with the sending authorization policy. This parameter is required. This identity permits Amazon Cognito to send for the email address specified in theFromparameter.- Returns:
this
-
blockEmail
@Stability(Stable) public CfnUserPoolRiskConfigurationAttachment.NotifyConfigurationTypeProperty.Builder blockEmail(IResolvable blockEmail) Sets the value ofCfnUserPoolRiskConfigurationAttachment.NotifyConfigurationTypeProperty.getBlockEmail()- Parameters:
blockEmail- The template for the email message that your user pool sends when a detected risk event is blocked.- Returns:
this
-
blockEmail
@Stability(Stable) public CfnUserPoolRiskConfigurationAttachment.NotifyConfigurationTypeProperty.Builder blockEmail(CfnUserPoolRiskConfigurationAttachment.NotifyEmailTypeProperty blockEmail) Sets the value ofCfnUserPoolRiskConfigurationAttachment.NotifyConfigurationTypeProperty.getBlockEmail()- Parameters:
blockEmail- The template for the email message that your user pool sends when a detected risk event is blocked.- Returns:
this
-
from
@Stability(Stable) public CfnUserPoolRiskConfigurationAttachment.NotifyConfigurationTypeProperty.Builder from(String from) - Parameters:
from- The email address that sends the email message. The address must be either individually verified with Amazon Simple Email Service, or from a domain that has been verified with Amazon SES.- Returns:
this
-
mfaEmail
@Stability(Stable) public CfnUserPoolRiskConfigurationAttachment.NotifyConfigurationTypeProperty.Builder mfaEmail(IResolvable mfaEmail) Sets the value ofCfnUserPoolRiskConfigurationAttachment.NotifyConfigurationTypeProperty.getMfaEmail()- Parameters:
mfaEmail- The template for the email message that your user pool sends when MFA is challenged in response to a detected risk.- Returns:
this
-
mfaEmail
@Stability(Stable) public CfnUserPoolRiskConfigurationAttachment.NotifyConfigurationTypeProperty.Builder mfaEmail(CfnUserPoolRiskConfigurationAttachment.NotifyEmailTypeProperty mfaEmail) Sets the value ofCfnUserPoolRiskConfigurationAttachment.NotifyConfigurationTypeProperty.getMfaEmail()- Parameters:
mfaEmail- The template for the email message that your user pool sends when MFA is challenged in response to a detected risk.- Returns:
this
-
noActionEmail
@Stability(Stable) public CfnUserPoolRiskConfigurationAttachment.NotifyConfigurationTypeProperty.Builder noActionEmail(IResolvable noActionEmail) Sets the value ofCfnUserPoolRiskConfigurationAttachment.NotifyConfigurationTypeProperty.getNoActionEmail()- Parameters:
noActionEmail- The template for the email message that your user pool sends when no action is taken in response to a detected risk.- Returns:
this
-
noActionEmail
@Stability(Stable) public CfnUserPoolRiskConfigurationAttachment.NotifyConfigurationTypeProperty.Builder noActionEmail(CfnUserPoolRiskConfigurationAttachment.NotifyEmailTypeProperty noActionEmail) Sets the value ofCfnUserPoolRiskConfigurationAttachment.NotifyConfigurationTypeProperty.getNoActionEmail()- Parameters:
noActionEmail- The template for the email message that your user pool sends when no action is taken in response to a detected risk.- Returns:
this
-
replyTo
@Stability(Stable) public CfnUserPoolRiskConfigurationAttachment.NotifyConfigurationTypeProperty.Builder replyTo(String replyTo) Sets the value ofCfnUserPoolRiskConfigurationAttachment.NotifyConfigurationTypeProperty.getReplyTo()- Parameters:
replyTo- The reply-to email address of an email template.- Returns:
this
-
build
@Stability(Stable) public CfnUserPoolRiskConfigurationAttachment.NotifyConfigurationTypeProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnUserPoolRiskConfigurationAttachment.NotifyConfigurationTypeProperty>- Returns:
- a new instance of
CfnUserPoolRiskConfigurationAttachment.NotifyConfigurationTypeProperty - Throws:
NullPointerException- if any required attribute was not provided
-