DeviceTracking

class aws_cdk.aws_cognito.DeviceTracking(*, challenge_required_on_new_device, device_only_remembered_on_user_prompt)

Bases: object

Device tracking settings.

Parameters:
  • challenge_required_on_new_device (bool) – Indicates whether a challenge is required on a new device. Only applicable to a new device. Default: false

  • device_only_remembered_on_user_prompt (bool) – If true, a device is only remembered on user prompt. Default: false

See:

https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html

ExampleMetadata:

infused

Example:

cognito.UserPool(self, "myuserpool",
    # ...
    device_tracking=cognito.DeviceTracking(
        challenge_required_on_new_device=True,
        device_only_remembered_on_user_prompt=True
    )
)

Attributes

challenge_required_on_new_device

Indicates whether a challenge is required on a new device.

Only applicable to a new device.

Default:

false

See:

https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html

device_only_remembered_on_user_prompt

If true, a device is only remembered on user prompt.

Default:

false

See:

https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html