def submit(ruby_service_hash)
      aws_request = AwsRequestV4.new(self, ruby_service_hash)
      begin
        RestClient::Request.execute(
          :method => :post,
          :url => aws_request.url,
          :payload => aws_request.payload,
          :headers => aws_request.headers,
          :timeout => @timeout
        )
      rescue RestClient::BadRequest => e
        type, message = AwsSession.parse_error_response(e.http_body)
        raise ThrottlingException, message if type == 'ThrottlingException'
        raise ArgumentError, message
      end
    end
def submit(ruby_service_hash)
      aws_request = AwsRequestV4.new(self, ruby_service_hash)
      begin
        RestClient::Request.execute(
          :method => :post,
          :url => aws_request.url,
          :payload => aws_request.payload,
          :headers => aws_request.headers,
          :timeout => @timeout
        )
      rescue RestClient::BadRequest => e
        type, message = AwsSession.parse_error_response(e.http_body)
        raise ThrottlingException, message if type == 'ThrottlingException'
        raise ArgumentError, message
      end
    end
Supported values for options:
  :region - AWS region (e.g. us-west-1)
  :secure - true or false, default true.
  :timeout - the timeout, in seconds, when making a request to EMR, default 60.