Module Smaws_Client_CognitoIdentityProvider.SetRiskConfiguration

Configures threat protection for a user pool or app client. Sets configuration for the following.

To set the risk configuration for the user pool to defaults, send this request with only the UserPoolId parameter. To reset the threat protection settings of an app client to be inherited from the user pool, send UserPoolId and ClientId parameters only. To change threat protection to audit-only or off, update the value of UserPoolAddOns in an UpdateUserPool request. To activate this setting, your user pool must be on the Plus tier.

In secondary regions for user pools with multi-region replication, only the SourceARN and From attributes of NotifyConfiguration can be modified to configure region-specific SES integration. All other risk configuration settings must match the existing values to maintain consistency across replicas.

val error_to_string : [ Smaws_Lib.Protocols.AwsJson.error | `CodeDeliveryFailureException of Types.code_delivery_failure_exception | `InternalErrorException of Types.internal_error_exception | `InvalidEmailRoleAccessPolicyException of Types.invalid_email_role_access_policy_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 | `UserPoolAddOnNotEnabledException of Types.user_pool_add_on_not_enabled_exception ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.set_risk_configuration_request -> (Types.set_risk_configuration_response, [> Smaws_Lib.Protocols.AwsJson.error | `CodeDeliveryFailureException of Types.code_delivery_failure_exception | `InternalErrorException of Types.internal_error_exception | `InvalidEmailRoleAccessPolicyException of Types.invalid_email_role_access_policy_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 | `UserPoolAddOnNotEnabledException of Types.user_pool_add_on_not_enabled_exception ]) Stdlib.result
val request_with_metadata : 'http_type Smaws_Lib.Context.t -> Types.set_risk_configuration_request -> (Types.set_risk_configuration_response Smaws_Lib.Response.t, [> Smaws_Lib.Protocols.AwsJson.error | `CodeDeliveryFailureException of Types.code_delivery_failure_exception | `InternalErrorException of Types.internal_error_exception | `InvalidEmailRoleAccessPolicyException of Types.invalid_email_role_access_policy_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 | `UserPoolAddOnNotEnabledException of Types.user_pool_add_on_not_enabled_exception ] * Smaws_Lib.Response.metadata) Stdlib.result