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
-
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 theFrom
parameter.- Returns:
this
-
blockEmail
@Stability(Stable) public CfnUserPoolRiskConfigurationAttachment.NotifyConfigurationTypeProperty.Builder blockEmail(IResolvable blockEmail) Sets the value ofCfnUserPoolRiskConfigurationAttachment.NotifyConfigurationTypeProperty.getBlockEmail()
- Parameters:
blockEmail
- Email template used 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
- Email template used 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 is sending the email. 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 multi-factor authentication (MFA) email template used when MFA is challenged as part of 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 multi-factor authentication (MFA) email template used when MFA is challenged as part of a detected risk.- Returns:
this
-
noActionEmail
@Stability(Stable) public CfnUserPoolRiskConfigurationAttachment.NotifyConfigurationTypeProperty.Builder noActionEmail(IResolvable noActionEmail) Sets the value ofCfnUserPoolRiskConfigurationAttachment.NotifyConfigurationTypeProperty.getNoActionEmail()
- Parameters:
noActionEmail
- The email template used when a detected risk event is allowed.- Returns:
this
-
noActionEmail
@Stability(Stable) public CfnUserPoolRiskConfigurationAttachment.NotifyConfigurationTypeProperty.Builder noActionEmail(CfnUserPoolRiskConfigurationAttachment.NotifyEmailTypeProperty noActionEmail) Sets the value ofCfnUserPoolRiskConfigurationAttachment.NotifyConfigurationTypeProperty.getNoActionEmail()
- Parameters:
noActionEmail
- The email template used when a detected risk event is allowed.- Returns:
this
-
replyTo
@Stability(Stable) public CfnUserPoolRiskConfigurationAttachment.NotifyConfigurationTypeProperty.Builder replyTo(String replyTo) Sets the value ofCfnUserPoolRiskConfigurationAttachment.NotifyConfigurationTypeProperty.getReplyTo()
- Parameters:
replyTo
- The destination to which the receiver of an email should reply to.- Returns:
this
-
build
@Stability(Stable) public CfnUserPoolRiskConfigurationAttachment.NotifyConfigurationTypeProperty build()Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnUserPoolRiskConfigurationAttachment.NotifyConfigurationTypeProperty>
- Returns:
- a new instance of
CfnUserPoolRiskConfigurationAttachment.NotifyConfigurationTypeProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-