Class CfnUserPoolRiskConfigurationAttachmentProps.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.CfnUserPoolRiskConfigurationAttachmentProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUserPoolRiskConfigurationAttachmentProps>
- Enclosing interface:
CfnUserPoolRiskConfigurationAttachmentProps
@Stability(Stable)
public static final class CfnUserPoolRiskConfigurationAttachmentProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnUserPoolRiskConfigurationAttachmentProps>
A builder for
CfnUserPoolRiskConfigurationAttachmentProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaccountTakeoverRiskConfiguration
(IResolvable accountTakeoverRiskConfiguration) accountTakeoverRiskConfiguration
(CfnUserPoolRiskConfigurationAttachment.AccountTakeoverRiskConfigurationTypeProperty accountTakeoverRiskConfiguration) build()
Builds the configured instance.Sets the value ofCfnUserPoolRiskConfigurationAttachmentProps.getClientId()
compromisedCredentialsRiskConfiguration
(IResolvable compromisedCredentialsRiskConfiguration) compromisedCredentialsRiskConfiguration
(CfnUserPoolRiskConfigurationAttachment.CompromisedCredentialsRiskConfigurationTypeProperty compromisedCredentialsRiskConfiguration) riskExceptionConfiguration
(IResolvable riskExceptionConfiguration) riskExceptionConfiguration
(CfnUserPoolRiskConfigurationAttachment.RiskExceptionConfigurationTypeProperty riskExceptionConfiguration) userPoolId
(String userPoolId) Sets the value ofCfnUserPoolRiskConfigurationAttachmentProps.getUserPoolId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clientId
@Stability(Stable) public CfnUserPoolRiskConfigurationAttachmentProps.Builder clientId(String clientId) Sets the value ofCfnUserPoolRiskConfigurationAttachmentProps.getClientId()
- Parameters:
clientId
- The app client ID. This parameter is required. You can specify the risk configuration for a single client (with a specific ClientId) or for all clients (by setting the ClientId toALL
).- Returns:
this
-
userPoolId
@Stability(Stable) public CfnUserPoolRiskConfigurationAttachmentProps.Builder userPoolId(String userPoolId) Sets the value ofCfnUserPoolRiskConfigurationAttachmentProps.getUserPoolId()
- Parameters:
userPoolId
- The user pool ID. This parameter is required.- Returns:
this
-
accountTakeoverRiskConfiguration
@Stability(Stable) public CfnUserPoolRiskConfigurationAttachmentProps.Builder accountTakeoverRiskConfiguration(IResolvable accountTakeoverRiskConfiguration) - Parameters:
accountTakeoverRiskConfiguration
- The account takeover risk configuration object, including theNotifyConfiguration
object andActions
to take if there is an account takeover.- Returns:
this
-
accountTakeoverRiskConfiguration
@Stability(Stable) public CfnUserPoolRiskConfigurationAttachmentProps.Builder accountTakeoverRiskConfiguration(CfnUserPoolRiskConfigurationAttachment.AccountTakeoverRiskConfigurationTypeProperty accountTakeoverRiskConfiguration) - Parameters:
accountTakeoverRiskConfiguration
- The account takeover risk configuration object, including theNotifyConfiguration
object andActions
to take if there is an account takeover.- Returns:
this
-
compromisedCredentialsRiskConfiguration
@Stability(Stable) public CfnUserPoolRiskConfigurationAttachmentProps.Builder compromisedCredentialsRiskConfiguration(IResolvable compromisedCredentialsRiskConfiguration) Sets the value ofCfnUserPoolRiskConfigurationAttachmentProps.getCompromisedCredentialsRiskConfiguration()
- Parameters:
compromisedCredentialsRiskConfiguration
- The compromised credentials risk configuration object, including theEventFilter
and theEventAction
.- Returns:
this
-
compromisedCredentialsRiskConfiguration
@Stability(Stable) public CfnUserPoolRiskConfigurationAttachmentProps.Builder compromisedCredentialsRiskConfiguration(CfnUserPoolRiskConfigurationAttachment.CompromisedCredentialsRiskConfigurationTypeProperty compromisedCredentialsRiskConfiguration) Sets the value ofCfnUserPoolRiskConfigurationAttachmentProps.getCompromisedCredentialsRiskConfiguration()
- Parameters:
compromisedCredentialsRiskConfiguration
- The compromised credentials risk configuration object, including theEventFilter
and theEventAction
.- Returns:
this
-
riskExceptionConfiguration
@Stability(Stable) public CfnUserPoolRiskConfigurationAttachmentProps.Builder riskExceptionConfiguration(IResolvable riskExceptionConfiguration) - Parameters:
riskExceptionConfiguration
- The configuration to override the risk decision.- Returns:
this
-
riskExceptionConfiguration
@Stability(Stable) public CfnUserPoolRiskConfigurationAttachmentProps.Builder riskExceptionConfiguration(CfnUserPoolRiskConfigurationAttachment.RiskExceptionConfigurationTypeProperty riskExceptionConfiguration) - Parameters:
riskExceptionConfiguration
- The configuration to override the risk decision.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnUserPoolRiskConfigurationAttachmentProps>
- Returns:
- a new instance of
CfnUserPoolRiskConfigurationAttachmentProps
- Throws:
NullPointerException
- if any required attribute was not provided
-