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
Constructors -
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 where this configuration is applied. This parameter is required. When this parameter isn't present, the risk configuration applies to all user pool app clients that don't have client-level settings.- Returns:
this
-
userPoolId
@Stability(Stable) public CfnUserPoolRiskConfigurationAttachmentProps.Builder userPoolId(String userPoolId) Sets the value ofCfnUserPoolRiskConfigurationAttachmentProps.getUserPoolId()
- Parameters:
userPoolId
- The ID of the user pool that has the risk configuration applied. This parameter is required.- Returns:
this
-
accountTakeoverRiskConfiguration
@Stability(Stable) public CfnUserPoolRiskConfigurationAttachmentProps.Builder accountTakeoverRiskConfiguration(IResolvable accountTakeoverRiskConfiguration) - Parameters:
accountTakeoverRiskConfiguration
- The settings for automated responses and notification templates for adaptive authentication with threat protection.- Returns:
this
-
accountTakeoverRiskConfiguration
@Stability(Stable) public CfnUserPoolRiskConfigurationAttachmentProps.Builder accountTakeoverRiskConfiguration(CfnUserPoolRiskConfigurationAttachment.AccountTakeoverRiskConfigurationTypeProperty accountTakeoverRiskConfiguration) - Parameters:
accountTakeoverRiskConfiguration
- The settings for automated responses and notification templates for adaptive authentication with threat protection.- Returns:
this
-
compromisedCredentialsRiskConfiguration
@Stability(Stable) public CfnUserPoolRiskConfigurationAttachmentProps.Builder compromisedCredentialsRiskConfiguration(IResolvable compromisedCredentialsRiskConfiguration) Sets the value ofCfnUserPoolRiskConfigurationAttachmentProps.getCompromisedCredentialsRiskConfiguration()
- Parameters:
compromisedCredentialsRiskConfiguration
- Settings for compromised-credentials actions and authentication types with threat protection in full-functionENFORCED
mode.- Returns:
this
-
compromisedCredentialsRiskConfiguration
@Stability(Stable) public CfnUserPoolRiskConfigurationAttachmentProps.Builder compromisedCredentialsRiskConfiguration(CfnUserPoolRiskConfigurationAttachment.CompromisedCredentialsRiskConfigurationTypeProperty compromisedCredentialsRiskConfiguration) Sets the value ofCfnUserPoolRiskConfigurationAttachmentProps.getCompromisedCredentialsRiskConfiguration()
- Parameters:
compromisedCredentialsRiskConfiguration
- Settings for compromised-credentials actions and authentication types with threat protection in full-functionENFORCED
mode.- Returns:
this
-
riskExceptionConfiguration
@Stability(Stable) public CfnUserPoolRiskConfigurationAttachmentProps.Builder riskExceptionConfiguration(IResolvable riskExceptionConfiguration) - Parameters:
riskExceptionConfiguration
- Exceptions to the risk evaluation configuration, including always-allow and always-block IP address ranges.- Returns:
this
-
riskExceptionConfiguration
@Stability(Stable) public CfnUserPoolRiskConfigurationAttachmentProps.Builder riskExceptionConfiguration(CfnUserPoolRiskConfigurationAttachment.RiskExceptionConfigurationTypeProperty riskExceptionConfiguration) - Parameters:
riskExceptionConfiguration
- Exceptions to the risk evaluation configuration, including always-allow and always-block IP address ranges.- 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
-