Class CfnUserPool.DeviceConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.CfnUserPool.DeviceConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUserPool.DeviceConfigurationProperty>
- Enclosing interface:
- CfnUserPool.DeviceConfigurationProperty
@Stability(Stable)
public static final class CfnUserPool.DeviceConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnUserPool.DeviceConfigurationProperty>
A builder for
CfnUserPool.DeviceConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.challengeRequiredOnNewDevice(Boolean challengeRequiredOnNewDevice) challengeRequiredOnNewDevice(IResolvable challengeRequiredOnNewDevice) deviceOnlyRememberedOnUserPrompt(Boolean deviceOnlyRememberedOnUserPrompt) deviceOnlyRememberedOnUserPrompt(IResolvable deviceOnlyRememberedOnUserPrompt)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
challengeRequiredOnNewDevice
@Stability(Stable) public CfnUserPool.DeviceConfigurationProperty.Builder challengeRequiredOnNewDevice(Boolean challengeRequiredOnNewDevice) - Parameters:
challengeRequiredOnNewDevice- When true, a remembered device can sign in with device authentication instead of SMS and time-based one-time password (TOTP) factors for multi-factor authentication (MFA).Whether or not
ChallengeRequiredOnNewDeviceis true, users who sign in with devices that have not been confirmed or remembered must still provide a second factor in a user pool that requires MFA.- Returns:
this
-
challengeRequiredOnNewDevice
@Stability(Stable) public CfnUserPool.DeviceConfigurationProperty.Builder challengeRequiredOnNewDevice(IResolvable challengeRequiredOnNewDevice) - Parameters:
challengeRequiredOnNewDevice- When true, a remembered device can sign in with device authentication instead of SMS and time-based one-time password (TOTP) factors for multi-factor authentication (MFA).Whether or not
ChallengeRequiredOnNewDeviceis true, users who sign in with devices that have not been confirmed or remembered must still provide a second factor in a user pool that requires MFA.- Returns:
this
-
deviceOnlyRememberedOnUserPrompt
@Stability(Stable) public CfnUserPool.DeviceConfigurationProperty.Builder deviceOnlyRememberedOnUserPrompt(Boolean deviceOnlyRememberedOnUserPrompt) - Parameters:
deviceOnlyRememberedOnUserPrompt- When true, Amazon Cognito doesn't automatically remember a user's device when your app sends a ConfirmDevice API request. In your app, create a prompt for your user to choose whether they want to remember their device. Return the user's choice in an UpdateDeviceStatus API request. WhenDeviceOnlyRememberedOnUserPromptisfalse, Amazon Cognito immediately remembers devices that you register in aConfirmDeviceAPI request.- Returns:
this
-
deviceOnlyRememberedOnUserPrompt
@Stability(Stable) public CfnUserPool.DeviceConfigurationProperty.Builder deviceOnlyRememberedOnUserPrompt(IResolvable deviceOnlyRememberedOnUserPrompt) - Parameters:
deviceOnlyRememberedOnUserPrompt- When true, Amazon Cognito doesn't automatically remember a user's device when your app sends a ConfirmDevice API request. In your app, create a prompt for your user to choose whether they want to remember their device. Return the user's choice in an UpdateDeviceStatus API request. WhenDeviceOnlyRememberedOnUserPromptisfalse, Amazon Cognito immediately remembers devices that you register in aConfirmDeviceAPI request.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnUserPool.DeviceConfigurationProperty>- Returns:
- a new instance of
CfnUserPool.DeviceConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-