Class CfnUserPoolPropsMixin.DeviceConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUserPoolPropsMixin.DeviceConfigurationProperty>
- Enclosing interface:
CfnUserPoolPropsMixin.DeviceConfigurationProperty
CfnUserPoolPropsMixin.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 CfnUserPoolPropsMixin.DeviceConfigurationProperty.Builder challengeRequiredOnNewDevice(Boolean challengeRequiredOnNewDevice) Sets the value ofCfnUserPoolPropsMixin.DeviceConfigurationProperty.getChallengeRequiredOnNewDevice()- 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 CfnUserPoolPropsMixin.DeviceConfigurationProperty.Builder challengeRequiredOnNewDevice(IResolvable challengeRequiredOnNewDevice) Sets the value ofCfnUserPoolPropsMixin.DeviceConfigurationProperty.getChallengeRequiredOnNewDevice()- 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 CfnUserPoolPropsMixin.DeviceConfigurationProperty.Builder deviceOnlyRememberedOnUserPrompt(Boolean deviceOnlyRememberedOnUserPrompt) Sets the value ofCfnUserPoolPropsMixin.DeviceConfigurationProperty.getDeviceOnlyRememberedOnUserPrompt()- Parameters:
deviceOnlyRememberedOnUserPrompt- When true, Amazon Cognito doesn't automatically remember a user's device when your app sends aConfirmDeviceAPI 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 anUpdateDeviceStatusAPI request.When
DeviceOnlyRememberedOnUserPromptisfalse, Amazon Cognito immediately remembers devices that you register in aConfirmDeviceAPI request.- Returns:
this
-
deviceOnlyRememberedOnUserPrompt
@Stability(Stable) public CfnUserPoolPropsMixin.DeviceConfigurationProperty.Builder deviceOnlyRememberedOnUserPrompt(IResolvable deviceOnlyRememberedOnUserPrompt) Sets the value ofCfnUserPoolPropsMixin.DeviceConfigurationProperty.getDeviceOnlyRememberedOnUserPrompt()- Parameters:
deviceOnlyRememberedOnUserPrompt- When true, Amazon Cognito doesn't automatically remember a user's device when your app sends aConfirmDeviceAPI 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 anUpdateDeviceStatusAPI request.When
DeviceOnlyRememberedOnUserPromptisfalse, 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<CfnUserPoolPropsMixin.DeviceConfigurationProperty>- Returns:
- a new instance of
CfnUserPoolPropsMixin.DeviceConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-