Module Smaws_Client_CognitoIdentityProvider.AdminUpdateAuthEventFeedback

Provides the feedback for an authentication event generated by threat protection features. Your response indicates that you think that the event either was from a valid user or was an unwanted authentication attempt. This feedback improves the risk evaluation decision for the user pool as part of Amazon Cognito threat protection. To activate this setting, your user pool must be on the Plus tier.

To train the threat-protection model to recognize trusted and untrusted sign-in characteristics, configure threat protection in audit-only mode and provide a mechanism for users or administrators to submit feedback. Your feedback can tell Amazon Cognito that a risk rating was assigned at a level you don't agree with.

Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.

Learn more

val error_to_string : [ Smaws_Lib.Protocols.AwsJson.error | `InternalErrorException of Types.internal_error_exception | `InvalidParameterException of Types.invalid_parameter_exception | `NotAuthorizedException of Types.not_authorized_exception | `OperationNotEnabledException of Types.operation_not_enabled_exception | `ResourceNotFoundException of Types.resource_not_found_exception | `TooManyRequestsException of Types.too_many_requests_exception | `UserNotFoundException of Types.user_not_found_exception | `UserPoolAddOnNotEnabledException of Types.user_pool_add_on_not_enabled_exception ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.admin_update_auth_event_feedback_request -> (Types.admin_update_auth_event_feedback_response, [> Smaws_Lib.Protocols.AwsJson.error | `InternalErrorException of Types.internal_error_exception | `InvalidParameterException of Types.invalid_parameter_exception | `NotAuthorizedException of Types.not_authorized_exception | `OperationNotEnabledException of Types.operation_not_enabled_exception | `ResourceNotFoundException of Types.resource_not_found_exception | `TooManyRequestsException of Types.too_many_requests_exception | `UserNotFoundException of Types.user_not_found_exception | `UserPoolAddOnNotEnabledException of Types.user_pool_add_on_not_enabled_exception ]) Stdlib.result
val request_with_metadata : 'http_type Smaws_Lib.Context.t -> Types.admin_update_auth_event_feedback_request -> (Types.admin_update_auth_event_feedback_response Smaws_Lib.Response.t, [> Smaws_Lib.Protocols.AwsJson.error | `InternalErrorException of Types.internal_error_exception | `InvalidParameterException of Types.invalid_parameter_exception | `NotAuthorizedException of Types.not_authorized_exception | `OperationNotEnabledException of Types.operation_not_enabled_exception | `ResourceNotFoundException of Types.resource_not_found_exception | `TooManyRequestsException of Types.too_many_requests_exception | `UserNotFoundException of Types.user_not_found_exception | `UserPoolAddOnNotEnabledException of Types.user_pool_add_on_not_enabled_exception ] * Smaws_Lib.Response.metadata) Stdlib.result