Class CfnUserPool.SignInPolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.CfnUserPool.SignInPolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUserPool.SignInPolicyProperty>
- Enclosing interface:
CfnUserPool.SignInPolicyProperty
@Stability(Stable)
public static final class CfnUserPool.SignInPolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnUserPool.SignInPolicyProperty>
A builder for
CfnUserPool.SignInPolicyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowedFirstAuthFactors(List<String> allowedFirstAuthFactors) Sets the value ofCfnUserPool.SignInPolicyProperty.getAllowedFirstAuthFactors()build()Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allowedFirstAuthFactors
@Stability(Stable) public CfnUserPool.SignInPolicyProperty.Builder allowedFirstAuthFactors(List<String> allowedFirstAuthFactors) Sets the value ofCfnUserPool.SignInPolicyProperty.getAllowedFirstAuthFactors()- Parameters:
allowedFirstAuthFactors- The sign-in methods that a user pool supports as the first factor. You can permit users to start authentication with a standard username and password, or with other one-time password and hardware factors.Supports values of
EMAIL_OTP,SMS_OTP,WEB_AUTHNandPASSWORD,- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnUserPool.SignInPolicyProperty>- Returns:
- a new instance of
CfnUserPool.SignInPolicyProperty - Throws:
NullPointerException- if any required attribute was not provided
-