public static interface CfnUserPool.DeviceConfigurationProperty
When you provide values for any DeviceConfiguration field, you activate device tracking.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.cognito.*; DeviceConfigurationProperty deviceConfigurationProperty = DeviceConfigurationProperty.builder() .challengeRequiredOnNewDevice(false) .deviceOnlyRememberedOnUserPrompt(false) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnUserPool.DeviceConfigurationProperty.Builder
A builder for
CfnUserPool.DeviceConfigurationProperty |
static class |
CfnUserPool.DeviceConfigurationProperty.Jsii$Proxy
An implementation for
CfnUserPool.DeviceConfigurationProperty |
Modifier and Type | Method and Description |
---|---|
static CfnUserPool.DeviceConfigurationProperty.Builder |
builder() |
default java.lang.Object |
getChallengeRequiredOnNewDevice()
When true, device authentication can replace SMS and time-based one-time password (TOTP) factors for multi-factor authentication (MFA).
|
default java.lang.Object |
getDeviceOnlyRememberedOnUserPrompt()
When true, users can opt in to remembering their device.
|
default java.lang.Object getChallengeRequiredOnNewDevice()
Users that sign in with devices that have not been confirmed or remembered will still have to provide a second factor, whether or not ChallengeRequiredOnNewDevice is true, when your user pool requires MFA.
default java.lang.Object getDeviceOnlyRememberedOnUserPrompt()
Your app code must use callback functions to return the user's choice.
static CfnUserPool.DeviceConfigurationProperty.Builder builder()