Class AccountTakeoverActionType
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AccountTakeoverActionType.Builder,AccountTakeoverActionType>
The automated response to a risk level for adaptive authentication in full-function, or ENFORCED, mode.
You can assign an action to each risk level that threat protection evaluates.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) The action to take for the attempted account takeover action for the associated risk level.final StringThe action to take for the attempted account takeover action for the associated risk level.final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final BooleanDetermines whether Amazon Cognito sends a user a notification message when your user pools assesses a user's session at the associated risk level.static Class<? extends AccountTakeoverActionType.Builder>final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
eventAction
The action to take for the attempted account takeover action for the associated risk level. Valid values are as follows:
-
BLOCK: Block the request. -
MFA_IF_CONFIGURED: Present an MFA challenge if possible. MFA is possible if the user pool has active MFA methods that the user can set up. For example, if the user pool only supports SMS message MFA but the user doesn't have a phone number attribute, MFA setup isn't possible. If MFA setup isn't possible, allow the request. -
MFA_REQUIRED: Present an MFA challenge if possible. Block the request if a user hasn't set up MFA. To sign in with required MFA, users must have an email address or phone number attribute, or a registered TOTP factor. -
NO_ACTION: Take no action. Permit sign-in.
If the service returns an enum value that is not available in the current SDK version,
eventActionwill returnAccountTakeoverEventActionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromeventActionAsString().- Returns:
- The action to take for the attempted account takeover action for the associated risk level. Valid values
are as follows:
-
BLOCK: Block the request. -
MFA_IF_CONFIGURED: Present an MFA challenge if possible. MFA is possible if the user pool has active MFA methods that the user can set up. For example, if the user pool only supports SMS message MFA but the user doesn't have a phone number attribute, MFA setup isn't possible. If MFA setup isn't possible, allow the request. -
MFA_REQUIRED: Present an MFA challenge if possible. Block the request if a user hasn't set up MFA. To sign in with required MFA, users must have an email address or phone number attribute, or a registered TOTP factor. -
NO_ACTION: Take no action. Permit sign-in.
-
- See Also:
-
-
eventActionAsString
The action to take for the attempted account takeover action for the associated risk level. Valid values are as follows:
-
BLOCK: Block the request. -
MFA_IF_CONFIGURED: Present an MFA challenge if possible. MFA is possible if the user pool has active MFA methods that the user can set up. For example, if the user pool only supports SMS message MFA but the user doesn't have a phone number attribute, MFA setup isn't possible. If MFA setup isn't possible, allow the request. -
MFA_REQUIRED: Present an MFA challenge if possible. Block the request if a user hasn't set up MFA. To sign in with required MFA, users must have an email address or phone number attribute, or a registered TOTP factor. -
NO_ACTION: Take no action. Permit sign-in.
If the service returns an enum value that is not available in the current SDK version,
eventActionwill returnAccountTakeoverEventActionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromeventActionAsString().- Returns:
- The action to take for the attempted account takeover action for the associated risk level. Valid values
are as follows:
-
BLOCK: Block the request. -
MFA_IF_CONFIGURED: Present an MFA challenge if possible. MFA is possible if the user pool has active MFA methods that the user can set up. For example, if the user pool only supports SMS message MFA but the user doesn't have a phone number attribute, MFA setup isn't possible. If MFA setup isn't possible, allow the request. -
MFA_REQUIRED: Present an MFA challenge if possible. Block the request if a user hasn't set up MFA. To sign in with required MFA, users must have an email address or phone number attribute, or a registered TOTP factor. -
NO_ACTION: Take no action. Permit sign-in.
-
- See Also:
-
-
sendNotification
Determines whether Amazon Cognito sends a user a notification message when your user pools assesses a user's session at the associated risk level.
- Returns:
- Determines whether Amazon Cognito sends a user a notification message when your user pools assesses a user's session at the associated risk level.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<AccountTakeoverActionType.Builder,AccountTakeoverActionType>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-