code: @Override
      public SetRiskConfigurationResult setRiskConfiguration(SetRiskConfigurationRequest request) {
          request = beforeClientExecution(request);
          return executeSetRiskConfiguration(request);
      }
docs: <p>
  Configures actions on detected risks. To delete the risk configuration for <code>UserPoolId</code> or
  <code>ClientId</code>, pass null values for all four configuration types.
  </p>
  <p>
  To enable Amazon Cognito advanced security features, update the user pool to include the
  <code>UserPoolAddOns</code> key<code>AdvancedSecurityMode</code>.
  </p>
  <p>
  See .
  </p>
  
  @param setRiskConfigurationRequest
  @return Result of the SetRiskConfiguration operation returned by the service.
  @throws ResourceNotFoundException
  This exception is thrown when the Amazon Cognito service cannot find the requested resource.
  @throws InvalidParameterException
  This exception is thrown when the Amazon Cognito service encounters an invalid parameter.
  @throws TooManyRequestsException
  This exception is thrown when the user has made too many requests for a given operation.
  @throws NotAuthorizedException
  This exception is thrown when a user is not authorized.
  @throws UserPoolAddOnNotEnabledException
  This exception is thrown when user pool add-ons are not enabled.
  @throws CodeDeliveryFailureException
  This exception is thrown when a verification code fails to deliver successfully.
  @throws InvalidEmailRoleAccessPolicyException
  This exception is thrown when Amazon Cognito is not allowed to use your email identity. HTTP status code:
  400.
  @throws InternalErrorException
  This exception is thrown when Amazon Cognito encounters an internal error.
  @sample AWSCognitoIdentityProvider.SetRiskConfiguration
  @see <a href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SetRiskConfiguration"
  target="_top">AWS API Documentation</a>