code: def set_spot_instance_settings(self, maximum_bid_price_percentage=None,
                                     timeout_for_request=None,
                                     maximum_spot_instance_percentage=None):
          
          self.hadoop_settings['spot_instance_settings'] = {
                 'maximum_bid_price_percentage': maximum_bid_price_percentage,
                 'timeout_for_request': timeout_for_request,
                 'maximum_spot_instance_percentage': maximum_spot_instance_percentage}
docs: Purchase options for spot instances. Valid only when
          `slave_request_type` is hybrid or spot.
  
          `maximum_bid_price_percentage`: Maximum value to bid for spot
              instances, expressed as a percentage of the base price for the
              slave node instance type.
  
          `timeout_for_request`: Timeout for a spot instance request (Unit:
              minutes)
  
          `maximum_spot_instance_percentage`: Maximum percentage of instances
              that may be purchased from the AWS Spot market. Valid only when
              slave_request_type is "hybrid".