AdvancedSecurityMode

class aws_cdk.aws_cognito.AdvancedSecurityMode(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Enum

The different ways in which a user pool’s Advanced Security Mode can be configured.

See:

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-userpooladdons.html#cfn-cognito-userpool-userpooladdons-advancedsecuritymode

ExampleMetadata:

infused

Example:

cognito.UserPool(self, "myuserpool",
    # ...
    advanced_security_mode=cognito.AdvancedSecurityMode.ENFORCED
)

Attributes

AUDIT

gather metrics on detected risks without taking action.

Metrics are published to Amazon CloudWatch

ENFORCED

Enable advanced security mode.

OFF

Advanced security mode is disabled.